re PR c++/58516 (ICE with __transaction_atomic)
[official-gcc.git] / gcc / configure
blobf0c3c3bd2ea6eba092e747aff001c5acb10999e8
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 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREECHECKING
777 TREEBROWSER
778 nocommon_flag
779 noexception_flags
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_sysroot
893 with_specs
894 with_pkgversion
895 with_bugurl
896 enable_languages
897 with_multilib_list
898 enable_rpath
899 with_libiconv_prefix
900 enable_sjlj_exceptions
901 enable_secureplt
902 enable_leading_mingw64_underscores
903 enable_cld
904 enable_frame_pointer
905 enable_win32_registry
906 enable_static
907 with_pic
908 enable_fast_install
909 enable_libtool_lock
910 with_plugin_ld
911 enable_gnu_indirect_function
912 enable_initfini_array
913 enable_comdat
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_link_mutex
921 enable_version_specific_runtime_libs
922 enable_plugin
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
935 CXXFLAGS
938 CXXCPP
939 GMPLIBS
940 GMPINC
941 ISLLIBS
942 ISLINC
943 CLOOGLIBS
944 CLOOGINC'
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
995 ac_prev=
996 ac_dashdash=
997 for ac_option
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1015 ac_dashdash=yes ;;
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 esac
1352 done
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1438 /^X\(\/\/\)$/{
1439 s//\1/
1442 /^X\(\/\).*/{
1443 s//\1/
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1451 else
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 --target=TARGET configure for building compilers for TARGET [HOST]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files in source dir intended
1565 for creating source tarballs for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST]
1570 enable expensive run-time checks. With LIST, enable
1571 only specific categories of checks. Categories are:
1572 yes,no,all,none,release. Flags are:
1573 assert,df,fold,gc,gcac,gimple,misc,
1574 rtlflag,rtl,runtime,tree,valgrind,types
1575 --enable-coverage[=LEVEL]
1576 enable compiler's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-multiarch enable support for multiarch paths
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1588 to use
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1591 package
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-sjlj-exceptions
1600 arrange to use setjmp/longjmp exception handling
1601 --enable-secureplt enable -msecure-plt by default for PowerPC
1602 --enable-leading-mingw64-underscores
1603 enable leading underscores on 64 bit mingw targets
1604 --enable-cld enable -mcld by default for 32bit x86
1605 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1607 --disable-win32-registry
1608 disable lookup of installation paths in the Registry
1609 on Windows hosts
1610 --enable-win32-registry enable registry lookup (default)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1613 of the registry key
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1621 glibc systems
1622 --enable-initfini-array use .init_array/.fini_array sections
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1633 thrashing on the build machine
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1641 Optional Packages:
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1672 both]
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-plugin-ld=[ARG] specify the plugin linker
1675 --with-long-double-128 use 128-bit long double by default
1676 --with-gc={page,zone} this option is not supported anymore. It used to
1677 choose the garbage collection mechanism to use with
1678 the compiler
1679 --with-system-zlib use installed libz
1680 --with-linker-hash-style={sysv,gnu,both}
1681 specify the linker hash style
1683 Some influential environment variables:
1684 CC C compiler command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1687 nonstandard directory <lib dir>
1688 LIBS libraries to pass to the linker, e.g. -l<library>
1689 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1690 you have headers in a nonstandard directory <include dir>
1691 CXX C++ compiler command
1692 CXXFLAGS C++ compiler flags
1693 CPP C preprocessor
1694 CXXCPP C++ preprocessor
1695 GMPLIBS How to link GMP
1696 GMPINC How to find GMP include files
1697 ISLLIBS How to link ISL
1698 ISLINC How to find ISL include files
1699 CLOOGLIBS How to link CLOOG
1700 CLOOGINC How to find CLOOG include files
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
1716 ac_builddir=.
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1734 case $srcdir in
1735 .) # We are building in place.
1736 ac_srcdir=.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1758 else
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1762 done
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767 cat <<\_ACEOF
1768 configure
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775 exit
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_cpp ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } >/dev/null && {
1880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 return $ac_retval
1893 } # ac_fn_c_try_cpp
1895 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898 # the include files in INCLUDES and setting the cache variable VAR
1899 # accordingly.
1900 ac_fn_c_check_header_mongrel ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 else
1913 # Is the header compilable?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915 $as_echo_n "checking $2 usability... " >&6; }
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_header_compiler=yes
1923 else
1924 ac_header_compiler=no
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928 $as_echo "$ac_header_compiler" >&6; }
1930 # Is the header present?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932 $as_echo_n "checking $2 presence... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_cpp "$LINENO"; then :
1938 ac_header_preproc=yes
1939 else
1940 ac_header_preproc=no
1942 rm -f conftest.err conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944 $as_echo "$ac_header_preproc" >&6; }
1946 # So? What about this header?
1947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948 yes:no: )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 no:yes:* )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1958 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1962 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 esac
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 eval "$3=\$ac_header_compiler"
1974 eval ac_res=\$$3
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 } # ac_fn_c_check_header_mongrel
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1986 ac_fn_c_try_run ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2007 ac_status=$?
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: program exited with status $ac_status" >&5
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_retval=$ac_status
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 return $ac_retval
2022 } # ac_fn_c_try_run
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2039 #include <$2>
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$3=yes"
2043 else
2044 eval "$3=no"
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 } # ac_fn_c_check_header_compile
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 # computed
2060 ac_fn_c_compute_int ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=0 ac_mid=0
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid; break
2096 else
2097 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098 if test $ac_lo -le $ac_mid; then
2099 ac_lo= ac_hi=
2100 break
2102 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=-1 ac_mid=-1
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2138 else
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2141 ac_lo= ac_hi=
2142 break
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 ac_lo= ac_hi=
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid
2172 else
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2190 main ()
2193 FILE *f = fopen ("conftest.val", "w");
2194 if (! f)
2195 return 1;
2196 if (($2) < 0)
2198 long int i = longval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%ld", i);
2203 else
2205 unsigned long int i = ulongval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221 ac_retval=1
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 return $ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 eval "$3=no"
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 if (sizeof ($2))
2253 return 0;
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
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 :
2273 else
2274 eval "$3=yes"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_find_intX_t LINENO BITS VAR
2288 # -----------------------------------
2289 # Finds a signed integer type with width BITS, setting cache variable VAR
2290 # accordingly.
2291 ac_fn_c_find_intX_t ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2295 $as_echo_n "checking for int$2_t... " >&6; }
2296 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 eval "$3=no"
2300 for ac_type in int$2_t 'int' 'long int' \
2301 'long long int' 'short int' 'signed char'; do
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $ac_includes_default
2306 main ()
2308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2309 test_array [0] = 0
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $ac_includes_default
2320 main ()
2322 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2323 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2324 test_array [0] = 0
2327 return 0;
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2332 else
2333 case $ac_type in #(
2334 int$2_t) :
2335 eval "$3=yes" ;; #(
2336 *) :
2337 eval "$3=\$ac_type" ;;
2338 esac
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 eval as_val=\$$3
2344 if test "x$as_val" = x""no; then :
2346 else
2347 break
2349 done
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_find_intX_t
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_c_try_link ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 rm -f conftest.$ac_objext conftest$ac_exeext
2365 if { { ac_try="$ac_link"
2366 case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2373 ac_status=$?
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
2385 $as_test_x conftest$ac_exeext
2386 }; then :
2387 ac_retval=0
2388 else
2389 $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 ac_retval=1
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 return $ac_retval
2402 } # ac_fn_c_try_link
2404 # ac_fn_c_find_uintX_t LINENO BITS VAR
2405 # ------------------------------------
2406 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2407 # accordingly.
2408 ac_fn_c_find_uintX_t ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2412 $as_echo_n "checking for uint$2_t... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 eval "$3=no"
2417 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2418 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2423 main ()
2425 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2426 test_array [0] = 0
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 case $ac_type in #(
2434 uint$2_t) :
2435 eval "$3=yes" ;; #(
2436 *) :
2437 eval "$3=\$ac_type" ;;
2438 esac
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 eval as_val=\$$3
2442 if test "x$as_val" = x""no; then :
2444 else
2445 break
2447 done
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_find_uintX_t
2456 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2457 # ----------------------------------------------
2458 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_preproc ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 #include <$2>
2470 _ACEOF
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2472 eval "$3=yes"
2473 else
2474 eval "$3=no"
2476 rm -f conftest.err conftest.$ac_ext
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_header_preproc
2485 # ac_fn_cxx_try_cpp LINENO
2486 # ------------------------
2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_cxx_try_cpp ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if { { ac_try="$ac_cpp conftest.$ac_ext"
2492 case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499 ac_status=$?
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } >/dev/null && {
2507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 }; then :
2510 ac_retval=0
2511 else
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 ac_retval=1
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 return $ac_retval
2520 } # ac_fn_cxx_try_cpp
2522 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2523 # ------------------------------------------------
2524 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_preproc ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 #include <$2>
2536 _ACEOF
2537 if ac_fn_cxx_try_cpp "$LINENO"; then :
2538 eval "$3=yes"
2539 else
2540 eval "$3=no"
2542 rm -f conftest.err conftest.$ac_ext
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_cxx_check_header_preproc
2551 # ac_fn_c_check_func LINENO FUNC VAR
2552 # ----------------------------------
2553 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2554 ac_fn_c_check_func ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2566 #define $2 innocuous_$2
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $2 (); below.
2570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571 <limits.h> exists even on freestanding compilers. */
2573 #ifdef __STDC__
2574 # include <limits.h>
2575 #else
2576 # include <assert.h>
2577 #endif
2579 #undef $2
2581 /* Override any GCC internal prototype to avoid an error.
2582 Use char because int might match the return type of a GCC
2583 builtin and then its argument prototype would still apply. */
2584 #ifdef __cplusplus
2585 extern "C"
2586 #endif
2587 char $2 ();
2588 /* The GNU C library defines this for functions which it implements
2589 to always fail with ENOSYS. Some functions are actually named
2590 something starting with __ and the normal name is an alias. */
2591 #if defined __stub_$2 || defined __stub___$2
2592 choke me
2593 #endif
2596 main ()
2598 return $2 ();
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_link "$LINENO"; then :
2604 eval "$3=yes"
2605 else
2606 eval "$3=no"
2608 rm -f core conftest.err conftest.$ac_objext \
2609 conftest$ac_exeext conftest.$ac_ext
2611 eval ac_res=\$$3
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_func
2618 # ac_fn_cxx_try_link LINENO
2619 # -------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded.
2621 ac_fn_cxx_try_link ()
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 rm -f conftest.$ac_objext conftest$ac_exeext
2625 if { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>conftest.err
2633 ac_status=$?
2634 if test -s conftest.err; then
2635 grep -v '^ *+' conftest.err >conftest.er1
2636 cat conftest.er1 >&5
2637 mv -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; } && {
2641 test -z "$ac_cxx_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest$ac_exeext && {
2644 test "$cross_compiling" = yes ||
2645 $as_test_x conftest$ac_exeext
2646 }; then :
2647 ac_retval=0
2648 else
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_retval=1
2654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2656 # interfere with the next link command; also delete a directory that is
2657 # left behind by Apple's compiler. We do this before executing the actions.
2658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 return $ac_retval
2662 } # ac_fn_cxx_try_link
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by $as_me, which was
2668 generated by GNU Autoconf 2.64. Invocation command line was
2670 $ $0 $@
2672 _ACEOF
2673 exec 5>>config.log
2675 cat <<_ASUNAME
2676 ## --------- ##
2677 ## Platform. ##
2678 ## --------- ##
2680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2697 _ASUNAME
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2705 done
2706 IFS=$as_save_IFS
2708 } >&5
2710 cat >&5 <<_ACEOF
2713 ## ----------- ##
2714 ## Core tests. ##
2715 ## ----------- ##
2717 _ACEOF
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2725 ac_configure_args=
2726 ac_configure_args0=
2727 ac_configure_args1=
2728 ac_must_keep_next=false
2729 for ac_pass in 1 2
2731 for ac_arg
2733 case $ac_arg in
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2737 continue ;;
2738 *\'*)
2739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 esac
2741 case $ac_pass in
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2747 else
2748 case $ac_arg in
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2755 esac
2757 -* ) ac_must_keep_next=true ;;
2758 esac
2760 as_fn_append ac_configure_args " '$ac_arg'"
2762 esac
2763 done
2764 done
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2776 echo
2778 cat <<\_ASBOX
2779 ## ---------------- ##
2780 ## Cache variables. ##
2781 ## ---------------- ##
2782 _ASBOX
2783 echo
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2787 eval ac_val=\$$ac_var
2788 case $ac_val in #(
2789 *${as_nl}*)
2790 case $ac_var in #(
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 esac
2794 case $ac_var in #(
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2798 esac ;;
2799 esac
2800 done
2801 (set) 2>&1 |
2802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2804 sed -n \
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 ;; #(
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2811 esac |
2812 sort
2814 echo
2816 cat <<\_ASBOX
2817 ## ----------------- ##
2818 ## Output variables. ##
2819 ## ----------------- ##
2820 _ASBOX
2821 echo
2822 for ac_var in $ac_subst_vars
2824 eval ac_val=\$$ac_var
2825 case $ac_val in
2826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2827 esac
2828 $as_echo "$ac_var='\''$ac_val'\''"
2829 done | sort
2830 echo
2832 if test -n "$ac_subst_files"; then
2833 cat <<\_ASBOX
2834 ## ------------------- ##
2835 ## File substitutions. ##
2836 ## ------------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_files
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2850 if test -s confdefs.h; then
2851 cat <<\_ASBOX
2852 ## ----------- ##
2853 ## confdefs.h. ##
2854 ## ----------- ##
2855 _ASBOX
2856 echo
2857 cat confdefs.h
2858 echo
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2863 } >&5
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 exit $exit_status
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870 done
2871 ac_signal=0
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2902 _ACEOF
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2907 ac_site_file1=NONE
2908 ac_site_file2=NONE
2909 if test -n "$CONFIG_SITE"; then
2910 ac_site_file1=$CONFIG_SITE
2911 elif test "x$prefix" != xNONE; then
2912 ac_site_file1=$prefix/share/config.site
2913 ac_site_file2=$prefix/etc/config.site
2914 else
2915 ac_site_file1=$ac_default_prefix/share/config.site
2916 ac_site_file2=$ac_default_prefix/etc/config.site
2918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920 test "x$ac_site_file" = xNONE && continue
2921 if test -r "$ac_site_file"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2924 sed 's/^/| /' "$ac_site_file" >&5
2925 . "$ac_site_file"
2927 done
2929 if test -r "$cache_file"; then
2930 # Some versions of bash will fail to source /dev/null (special
2931 # files actually), so we avoid doing that.
2932 if test -f "$cache_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2934 $as_echo "$as_me: loading cache $cache_file" >&6;}
2935 case $cache_file in
2936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2937 *) . "./$cache_file";;
2938 esac
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2942 $as_echo "$as_me: creating cache $cache_file" >&6;}
2943 >$cache_file
2946 # Check that the precious variables saved in the cache have kept the same
2947 # value.
2948 ac_cache_corrupted=false
2949 for ac_var in $ac_precious_vars; do
2950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2951 eval ac_new_set=\$ac_env_${ac_var}_set
2952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2953 eval ac_new_val=\$ac_env_${ac_var}_value
2954 case $ac_old_set,$ac_new_set in
2955 set,)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2957 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2959 ,set)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2961 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2963 ,);;
2965 if test "x$ac_old_val" != "x$ac_new_val"; then
2966 # differences in whitespace do not lead to failure.
2967 ac_old_val_w=`echo x $ac_old_val`
2968 ac_new_val_w=`echo x $ac_new_val`
2969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2972 ac_cache_corrupted=:
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2976 eval $ac_var=\$ac_old_val
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2979 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2982 fi;;
2983 esac
2984 # Pass precious variables to config.status.
2985 if test "$ac_new_set" = set; then
2986 case $ac_new_val in
2987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2988 *) ac_arg=$ac_var=$ac_new_val ;;
2989 esac
2990 case " $ac_configure_args " in
2991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2993 esac
2995 done
2996 if $ac_cache_corrupted; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3001 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3003 ## -------------------- ##
3004 ## Main body of script. ##
3005 ## -------------------- ##
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3021 gcc_version=`cat $srcdir/BASE-VER`
3023 # Determine the host, build, and target systems
3024 ac_aux_dir=
3025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3026 for ac_t in install-sh install.sh shtool; do
3027 if test -f "$ac_dir/$ac_t"; then
3028 ac_aux_dir=$ac_dir
3029 ac_install_sh="$ac_aux_dir/$ac_t -c"
3030 break 2
3032 done
3033 done
3034 if test -z "$ac_aux_dir"; then
3035 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3038 # These three variables are undocumented and unsupported,
3039 # and are intended to be withdrawn in a future Autoconf release.
3040 # They can cause serious problems if a builder's source tree is in a directory
3041 # whose full name contains unusual characters.
3042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3047 # Make sure we can run config.sub.
3048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3049 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3052 $as_echo_n "checking build system type... " >&6; }
3053 if test "${ac_cv_build+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 ac_build_alias=$build_alias
3057 test "x$ac_build_alias" = x &&
3058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3059 test "x$ac_build_alias" = x &&
3060 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3062 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3066 $as_echo "$ac_cv_build" >&6; }
3067 case $ac_cv_build in
3068 *-*-*) ;;
3069 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3070 esac
3071 build=$ac_cv_build
3072 ac_save_IFS=$IFS; IFS='-'
3073 set x $ac_cv_build
3074 shift
3075 build_cpu=$1
3076 build_vendor=$2
3077 shift; shift
3078 # Remember, the first character of IFS is used to create $*,
3079 # except with old shells:
3080 build_os=$*
3081 IFS=$ac_save_IFS
3082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3086 $as_echo_n "checking host system type... " >&6; }
3087 if test "${ac_cv_host+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test "x$host_alias" = x; then
3091 ac_cv_host=$ac_cv_build
3092 else
3093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3094 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3099 $as_echo "$ac_cv_host" >&6; }
3100 case $ac_cv_host in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3103 esac
3104 host=$ac_cv_host
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_host
3107 shift
3108 host_cpu=$1
3109 host_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 host_os=$*
3114 IFS=$ac_save_IFS
3115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3119 $as_echo_n "checking target system type... " >&6; }
3120 if test "${ac_cv_target+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$target_alias" = x; then
3124 ac_cv_target=$ac_cv_host
3125 else
3126 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3132 $as_echo "$ac_cv_target" >&6; }
3133 case $ac_cv_target in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3136 esac
3137 target=$ac_cv_target
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_target
3140 shift
3141 target_cpu=$1
3142 target_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 target_os=$*
3147 IFS=$ac_save_IFS
3148 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3151 # The aliases save the names the user supplied, while $host etc.
3152 # will get canonicalized.
3153 test -n "$target_alias" &&
3154 test "$program_prefix$program_suffix$program_transform_name" = \
3155 NONENONEs,x,x, &&
3156 program_prefix=${target_alias}-
3158 # Determine the noncanonical target name, for directory use.
3159 case ${build_alias} in
3160 "") build_noncanonical=${build} ;;
3161 *) build_noncanonical=${build_alias} ;;
3162 esac
3164 case ${host_alias} in
3165 "") host_noncanonical=${build_noncanonical} ;;
3166 *) host_noncanonical=${host_alias} ;;
3167 esac
3169 case ${target_alias} in
3170 "") target_noncanonical=${host_noncanonical} ;;
3171 *) target_noncanonical=${target_alias} ;;
3172 esac
3177 # Determine the target- and build-specific subdirectories
3179 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3180 # have matching libraries, they should use host libraries: Makefile.tpl
3181 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3182 # However, they still use the build modules, because the corresponding
3183 # host modules (e.g. bison) are only built for the host when bootstrap
3184 # finishes. So:
3185 # - build_subdir is where we find build modules, and never changes.
3186 # - build_libsubdir is where we find build libraries, and can be overridden.
3188 # Prefix 'build-' so this never conflicts with target_subdir.
3189 build_subdir="build-${build_noncanonical}"
3191 # Check whether --with-build-libsubdir was given.
3192 if test "${with_build_libsubdir+set}" = set; then :
3193 withval=$with_build_libsubdir; build_libsubdir="$withval"
3194 else
3195 build_libsubdir="$build_subdir"
3198 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3199 if ( test $srcdir = . && test -d gcc ) \
3200 || test -d $srcdir/../host-${host_noncanonical}; then
3201 host_subdir="host-${host_noncanonical}"
3202 else
3203 host_subdir=.
3205 # No prefix.
3206 target_subdir=${target_noncanonical}
3209 # Set program_transform_name
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was `s,x,x', remove it if useless.
3217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Check for bogus environment variables.
3222 # Test if LIBRARY_PATH contains the notation for the current directory
3223 # since this would lead to problems installing/building glibc.
3224 # LIBRARY_PATH contains the current directory if one of the following
3225 # is true:
3226 # - one of the terminals (":" and ";") is the first or last sign
3227 # - two terminals occur directly after each other
3228 # - the path contains an element with a dot in it
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3230 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3231 case ${LIBRARY_PATH} in
3232 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3233 library_path_setting="contains current directory"
3236 library_path_setting="ok"
3238 esac
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3240 $as_echo "$library_path_setting" >&6; }
3241 if test "$library_path_setting" != "ok"; then
3242 as_fn_error "
3243 *** LIBRARY_PATH shouldn't contain the current directory when
3244 *** building gcc. Please change the environment variable
3245 *** and run configure again." "$LINENO" 5
3248 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3249 # since this would lead to problems installing/building glibc.
3250 # GCC_EXEC_PREFIX contains the current directory if one of the following
3251 # is true:
3252 # - one of the terminals (":" and ";") is the first or last sign
3253 # - two terminals occur directly after each other
3254 # - the path contains an element with a dot in it
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3256 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3257 case ${GCC_EXEC_PREFIX} in
3258 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3259 gcc_exec_prefix_setting="contains current directory"
3262 gcc_exec_prefix_setting="ok"
3264 esac
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3266 $as_echo "$gcc_exec_prefix_setting" >&6; }
3267 if test "$gcc_exec_prefix_setting" != "ok"; then
3268 as_fn_error "
3269 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3270 *** building gcc. Please change the environment variable
3271 *** and run configure again." "$LINENO" 5
3274 # -----------
3275 # Directories
3276 # -----------
3278 # Specify the local prefix
3279 local_prefix=
3281 # Check whether --with-local-prefix was given.
3282 if test "${with_local_prefix+set}" = set; then :
3283 withval=$with_local_prefix; case "${withval}" in
3284 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3285 no) ;;
3286 *) local_prefix=$with_local_prefix ;;
3287 esac
3291 # Default local prefix if it is empty
3292 if test x$local_prefix = x; then
3293 local_prefix=/usr/local
3296 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3297 # passed in by the toplevel make and thus we'd get different behavior
3298 # depending on where we built the sources.
3299 gcc_gxx_include_dir=
3300 # Specify the g++ header file directory
3302 # Check whether --with-gxx-include-dir was given.
3303 if test "${with_gxx_include_dir+set}" = set; then :
3304 withval=$with_gxx_include_dir; case "${withval}" in
3305 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3306 no) ;;
3307 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3308 esac
3312 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3313 if test x${gcc_gxx_include_dir} = x; then
3314 if test x${enable_version_specific_runtime_libs} = xyes; then
3315 gcc_gxx_include_dir='${libsubdir}/include/c++'
3316 else
3317 libstdcxx_incdir='include/c++/$(version)'
3318 if test x$host != x$target; then
3319 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3321 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 gcc_gxx_include_dir_add_sysroot=0
3326 if test "${with_sysroot+set}" = set; then
3327 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3328 if test "${gcc_gxx_without_sysroot}"; then
3329 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3330 gcc_gxx_include_dir_add_sysroot=1
3335 # Check whether --with-cpp_install_dir was given.
3336 if test "${with_cpp_install_dir+set}" = set; then :
3337 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3338 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3339 elif test x$withval != xno; then
3340 cpp_install_dir=$withval
3345 # We would like to our source tree to be readonly. However when releases or
3346 # pre-releases are generated, the flex/bison generated files as well as the
3347 # various formats of manuals need to be included along with the rest of the
3348 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3349 # just that.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3352 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3353 # Check whether --enable-generated-files-in-srcdir was given.
3354 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3355 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3356 else
3357 generated_files_in_srcdir=no
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3362 $as_echo "$generated_files_in_srcdir" >&6; }
3364 if test "$generated_files_in_srcdir" = "yes"; then
3365 GENINSRC=''
3366 else
3367 GENINSRC='#'
3371 # -------------------
3372 # Find default linker
3373 # -------------------
3375 # With GNU ld
3377 # Check whether --with-gnu-ld was given.
3378 if test "${with_gnu_ld+set}" = set; then :
3379 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3380 else
3381 gnu_ld_flag=no
3385 # With pre-defined ld
3387 # Check whether --with-ld was given.
3388 if test "${with_ld+set}" = set; then :
3389 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3392 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3393 if test ! -x "$DEFAULT_LINKER"; then
3394 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3395 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3396 gnu_ld_flag=yes
3399 cat >>confdefs.h <<_ACEOF
3400 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3401 _ACEOF
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3406 $as_echo_n "checking whether a default linker was specified... " >&6; }
3407 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3408 if test x"$gnu_ld_flag" = x"no"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3413 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 # With demangler in GNU ld
3422 # Check whether --with-demangler-in-ld was given.
3423 if test "${with_demangler_in_ld+set}" = set; then :
3424 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3425 else
3426 demangler_in_ld=yes
3430 # ----------------------
3431 # Find default assembler
3432 # ----------------------
3434 # With GNU as
3436 # Check whether --with-gnu-as was given.
3437 if test "${with_gnu_as+set}" = set; then :
3438 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3439 else
3440 gas_flag=no
3445 # Check whether --with-as was given.
3446 if test "${with_as+set}" = set; then :
3447 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3450 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3451 if test ! -x "$DEFAULT_ASSEMBLER"; then
3452 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3453 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3454 gas_flag=yes
3457 cat >>confdefs.h <<_ACEOF
3458 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3459 _ACEOF
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3464 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3465 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3466 if test x"$gas_flag" = x"no"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3478 # ---------------
3479 # Find C compiler
3480 # ---------------
3482 # If a non-executable a.out is present (e.g. created by GNU as above even if
3483 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3484 # file, even when creating an executable, so an execution test fails.
3485 # Remove possible default executable files to avoid this.
3487 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3488 # Autoconf includes it.
3489 rm -f a.out a.exe b.out
3491 # Find the native compiler
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3537 ac_ct_CC=$CC
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_ac_ct_CC="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3561 IFS=$as_save_IFS
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x; then
3575 CC=""
3576 else
3577 case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583 CC=$ac_ct_CC
3585 else
3586 CC="$ac_cv_prog_CC"
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_CC="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3651 continue
3653 ac_cv_prog_CC="cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3659 IFS=$as_save_IFS
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy $ac_cv_prog_CC
3664 shift
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3669 shift
3670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3728 done
3730 if test -z "$CC"; then
3731 ac_ct_CC=$CC
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CC="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3772 done
3774 if test "x$ac_ct_CC" = x; then
3775 CC=""
3776 else
3777 case $cross_compiling:$ac_tool_warned in
3778 yes:)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3782 esac
3783 CC=$ac_ct_CC
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error "no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797 set X $ac_compile
3798 ac_compiler=$2
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 ac_status=$?
3809 if test -s conftest.err; then
3810 sed '10a\
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3818 done
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 ac_clean_files_save=$ac_clean_files
3832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3833 # Try to create an executable without -o first, disregard a.out.
3834 # It will help us diagnose broken compilers, and finding out an intuition
3835 # of exeext.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3840 # The possible output files:
3841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843 ac_rmfiles=
3844 for ac_file in $ac_files
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 esac
3850 done
3851 rm -f $ac_rmfiles
3853 if { { ac_try="$ac_link_default"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link_default") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3868 # Autoconf.
3869 for ac_file in $ac_files ''
3871 test -f "$ac_file" || continue
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875 [ab].out )
3876 # We found the default executable, but exeext='' is most
3877 # certainly right.
3878 break;;
3879 *.* )
3880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3881 then :; else
3882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3888 # actually working.
3889 break;;
3891 break;;
3892 esac
3893 done
3894 test "$ac_cv_exeext" = no && ac_cv_exeext=
3896 else
3897 ac_file=''
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 if test -z "$ac_file"; then :
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 { as_fn_set_status 77
3908 as_fn_error "C compiler cannot create executables
3909 See \`config.log' for more details." "$LINENO" 5; }; }
3911 ac_exeext=$ac_cv_exeext
3913 # Check that the compiler produces executables we can run. If not, either
3914 # the compiler is broken, or we cross compile.
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3916 $as_echo_n "checking whether the C compiler works... " >&6; }
3917 # If not cross compiling, check that we can run a simple program.
3918 if test "$cross_compiling" != yes; then
3919 if { ac_try='./$ac_file'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details." "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 $as_echo "yes" >&6; }
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3956 $as_echo_n "checking for suffix of executables... " >&6; }
3957 if { { ac_try="$ac_link"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3970 # work properly (i.e., refer to `conftest.exe'), while it won't with
3971 # `rm'.
3972 for ac_file in conftest.exe conftest conftest.*; do
3973 test -f "$ac_file" || continue
3974 case $ac_file in
3975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977 break;;
3978 * ) break;;
3979 esac
3980 done
3981 else
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error "cannot compute suffix of executables: cannot compile and link
3985 See \`config.log' for more details." "$LINENO" 5; }
3987 rm -f conftest$ac_cv_exeext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3989 $as_echo "$ac_cv_exeext" >&6; }
3991 rm -f conftest.$ac_ext
3992 EXEEXT=$ac_cv_exeext
3993 ac_exeext=$EXEEXT
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details." "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4056 #ifndef __GNUC__
4057 choke me
4058 #endif
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_compiler_gnu=yes
4066 else
4067 ac_compiler_gnu=no
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076 GCC=yes
4077 else
4078 GCC=
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 ac_cv_prog_cc_g=no
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104 else
4105 CFLAGS=""
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4119 else
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 main ()
4130 return 0;
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_g=yes
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4149 CFLAGS="-g -O2"
4150 else
4151 CFLAGS="-g"
4153 else
4154 if test "$GCC" = yes; then
4155 CFLAGS="-O2"
4156 else
4157 CFLAGS=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4177 char **p;
4178 int i;
4180 return p[i];
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4184 char *s;
4185 va_list v;
4186 va_start (v,p);
4187 s = g (p, va_arg (v,int));
4188 va_end (v);
4189 return s;
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4203 #define FOO(x) 'x'
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 int argc;
4211 char **argv;
4213 main ()
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 return 0;
4219 _ACEOF
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 esac
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 if test "x$CC" != xcc; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4259 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4262 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4264 set dummy $CC; ac_cc=`$as_echo "$2" |
4265 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4266 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4273 main ()
4277 return 0;
4279 _ACEOF
4280 # Make sure it works both with $CC and with simple cc.
4281 # We do the test twice because some compilers refuse to overwrite an
4282 # existing .o file with -o, though they will create one.
4283 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4284 rm -f conftest2.*
4285 if { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; } &&
4295 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; };
4305 then
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4307 if test "x$CC" != xcc; then
4308 # Test first that cc exists at all.
4309 if { ac_try='cc -c conftest.$ac_ext >&5'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4317 ac_status=$?
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4320 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4321 rm -f conftest2.*
4322 if { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; } &&
4332 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4339 ac_status=$?
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; };
4342 then
4343 # cc works too.
4345 else
4346 # cc exists but doesn't like -o.
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 else
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4354 rm -f core conftest*
4357 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4364 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368 # expand $ac_aux_dir to an absolute path
4369 am_aux_dir=`cd $ac_aux_dir && pwd`
4371 # FIXME: we rely on the cache variable name because
4372 # there is no other way.
4373 set dummy $CC
4374 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4376 if test "$am_t" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC="$am_aux_dir/compile $CC"
4386 ac_ext=cpp
4387 ac_cpp='$CXXCPP $CPPFLAGS'
4388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391 if test -z "$CXX"; then
4392 if test -n "$CCC"; then
4393 CXX=$CCC
4394 else
4395 if test -n "$ac_tool_prefix"; then
4396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$CXX"; then
4406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 CXX=$ac_cv_prog_CXX
4426 if test -n "$CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4428 $as_echo "$CXX" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$CXX" && break
4436 done
4438 if test -z "$CXX"; then
4439 ac_ct_CXX=$CXX
4440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$ac_ct_CXX"; then
4450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CXX="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4470 if test -n "$ac_ct_CXX"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4472 $as_echo "$ac_ct_CXX" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$ac_ct_CXX" && break
4480 done
4482 if test "x$ac_ct_CXX" = x; then
4483 CXX="g++"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 CXX=$ac_ct_CXX
4497 # Provide some information about the compiler.
4498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4499 set X $ac_compile
4500 ac_compiler=$2
4501 for ac_option in --version -v -V -qversion; do
4502 { { ac_try="$ac_compiler $ac_option >&5"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4510 ac_status=$?
4511 if test -s conftest.err; then
4512 sed '10a\
4513 ... rest of stderr output deleted ...
4514 10q' conftest.err >conftest.er1
4515 cat conftest.er1 >&5
4516 rm -f conftest.er1 conftest.err
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520 done
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 main ()
4533 #ifndef __GNUC__
4534 choke me
4535 #endif
4538 return 0;
4540 _ACEOF
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 ac_compiler_gnu=yes
4543 else
4544 ac_compiler_gnu=no
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4552 if test $ac_compiler_gnu = yes; then
4553 GXX=yes
4554 else
4555 GXX=
4557 ac_test_CXXFLAGS=${CXXFLAGS+set}
4558 ac_save_CXXFLAGS=$CXXFLAGS
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4561 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4565 ac_cxx_werror_flag=yes
4566 ac_cv_prog_cxx_g=no
4567 CXXFLAGS="-g"
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 main ()
4576 return 0;
4578 _ACEOF
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580 ac_cv_prog_cxx_g=yes
4581 else
4582 CXXFLAGS=""
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 main ()
4591 return 0;
4593 _ACEOF
4594 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 else
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598 CXXFLAGS="-g"
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4603 main ()
4607 return 0;
4609 _ACEOF
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4611 ac_cv_prog_cxx_g=yes
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4622 if test "$ac_test_CXXFLAGS" = set; then
4623 CXXFLAGS=$ac_save_CXXFLAGS
4624 elif test $ac_cv_prog_cxx_g = yes; then
4625 if test "$GXX" = yes; then
4626 CXXFLAGS="-g -O2"
4627 else
4628 CXXFLAGS="-g"
4630 else
4631 if test "$GXX" = yes; then
4632 CXXFLAGS="-O2"
4633 else
4634 CXXFLAGS=
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATBIND"; then
4655 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 GNATBIND=$ac_cv_prog_GNATBIND
4675 if test -n "$GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4677 $as_echo "$GNATBIND" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATBIND"; then
4686 ac_ct_GNATBIND=$GNATBIND
4687 # Extract the first word of "gnatbind", so it can be a program name with args.
4688 set dummy gnatbind; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATBIND"; then
4695 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4715 if test -n "$ac_ct_GNATBIND"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4717 $as_echo "$ac_ct_GNATBIND" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATBIND" = x; then
4724 GNATBIND="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATBIND=$ac_ct_GNATBIND
4734 else
4735 GNATBIND="$ac_cv_prog_GNATBIND"
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$GNATMAKE"; then
4747 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 GNATMAKE=$ac_cv_prog_GNATMAKE
4767 if test -n "$GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4769 $as_echo "$GNATMAKE" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$ac_cv_prog_GNATMAKE"; then
4778 ac_ct_GNATMAKE=$GNATMAKE
4779 # Extract the first word of "gnatmake", so it can be a program name with args.
4780 set dummy gnatmake; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$ac_ct_GNATMAKE"; then
4787 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4807 if test -n "$ac_ct_GNATMAKE"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4809 $as_echo "$ac_ct_GNATMAKE" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4815 if test "x$ac_ct_GNATMAKE" = x; then
4816 GNATMAKE="no"
4817 else
4818 case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824 GNATMAKE=$ac_ct_GNATMAKE
4826 else
4827 GNATMAKE="$ac_cv_prog_GNATMAKE"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4831 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4832 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 cat >conftest.adb <<EOF
4836 procedure conftest is begin null; end conftest;
4838 acx_cv_cc_gcc_supports_ada=no
4839 # There is a bug in old released versions of GCC which causes the
4840 # driver to exit successfully when the appropriate language module
4841 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4842 # Therefore we must check for the error message as well as an
4843 # unsuccessful exit.
4844 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4845 # given a .adb file, but produce no object file. So we must check
4846 # if an object file was really produced to guard against this.
4847 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4848 if test x"$errors" = x && test -f conftest.$ac_objext; then
4849 acx_cv_cc_gcc_supports_ada=yes
4851 rm -f conftest.*
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4854 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4856 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4857 have_gnat=yes
4858 else
4859 have_gnat=no
4863 # autoconf is lame and doesn't give us any substitution variable for this.
4864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4865 NO_MINUS_C_MINUS_O=yes
4866 else
4867 OUTPUT_OPTION='-o $@'
4872 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4873 # optimizations to be activated explicitly by the toplevel.
4874 case "$CC" in
4875 */prev-gcc/xgcc*) ;;
4876 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4877 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4878 esac
4882 # Determine PICFLAG for target gnatlib.
4887 case "${target}" in
4888 # PIC is the default on some targets or must not be used.
4889 *-*-darwin*)
4890 # PIC is the default on this platform
4891 # Common symbols not allowed in MH_DYLIB files
4892 PICFLAG_FOR_TARGET=-fno-common
4894 alpha*-dec-osf5*)
4895 # PIC is the default.
4897 hppa*64*-*-hpux*)
4898 # PIC is the default for 64-bit PA HP-UX.
4900 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4902 i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 i[34567]86-*-interix[3-9]*)
4905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4906 # Instead, we relocate shared libraries at runtime.
4908 i[34567]86-*-nto-qnx*)
4909 # QNX uses GNU C++, but need to define -shared option too, otherwise
4910 # it will coredump.
4911 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 i[34567]86-pc-msdosdjgpp*)
4914 # DJGPP does not support shared libraries at all.
4916 ia64*-*-hpux*)
4917 # On IA64 HP-UX, PIC is the default but the pic flag
4918 # sets the default TLS model and affects inlining.
4919 PICFLAG_FOR_TARGET=-fPIC
4921 mips-sgi-irix6*)
4922 # PIC is the default.
4924 rs6000-ibm-aix* | powerpc-ibm-aix*)
4925 # All AIX code is PIC.
4928 # Some targets support both -fPIC and -fpic, but prefer the latter.
4929 # FIXME: Why?
4930 i[34567]86-*-* | x86_64-*-*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 m68k-*-*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Override -fPIC default in libgcc only?
4937 sh-*-linux* | sh[2346lbe]*-*-linux*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # FIXME: Simplify to sh*-*-netbsd*?
4941 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4942 sh64-*-netbsd* | sh64l*-*-netbsd*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # Default to -fPIC unless specified otherwise.
4947 PICFLAG_FOR_TARGET=-fPIC
4949 esac
4951 # If the user explicitly uses -fpic/-fPIC, keep that.
4952 case "${CFLAGS_FOR_TARGET}" in
4953 *-fpic*)
4954 PICFLAG_FOR_TARGET=-fpic
4956 *-fPIC*)
4957 PICFLAG_FOR_TARGET=-fPIC
4959 esac
4963 # -------------------------
4964 # Check C compiler features
4965 # -------------------------
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977 CPP=
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002 Syntax error
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5006 else
5007 # Broken: fails on valid input.
5008 continue
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019 # Broken: success on invalid input.
5020 continue
5021 else
5022 # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5026 rm -f conftest.err conftest.$ac_ext
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then :
5032 break
5035 done
5036 ac_cv_prog_CPP=$CPP
5039 CPP=$ac_cv_prog_CPP
5040 else
5041 ac_cv_prog_CPP=$CPP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5045 ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061 Syntax error
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5065 else
5066 # Broken: fails on valid input.
5067 continue
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078 # Broken: success on invalid input.
5079 continue
5080 else
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5085 rm -f conftest.err conftest.$ac_ext
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then :
5092 else
5093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details." "$LINENO" 5; }
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5107 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5108 if test "${ac_cv_path_GREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -z "$GREP"; then
5112 ac_path_GREP_found=false
5113 # Loop through the user's path and test for each of PROGNAME-LIST
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_prog in grep ggrep; do
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5123 # Check for GNU ac_path_GREP and select it if it is found.
5124 # Check for GNU $ac_path_GREP
5125 case `"$ac_path_GREP" --version 2>&1` in
5126 *GNU*)
5127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 ac_count=0
5130 $as_echo_n 0123456789 >"conftest.in"
5131 while :
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 $as_echo 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5139 as_fn_arith $ac_count + 1 && ac_count=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP="$ac_path_GREP"
5143 ac_path_GREP_max=$ac_count
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5147 done
5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 esac
5151 $ac_path_GREP_found && break 3
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 else
5160 ac_cv_path_GREP=$GREP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5165 $as_echo "$ac_cv_path_GREP" >&6; }
5166 GREP="$ac_cv_path_GREP"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if test "${ac_cv_path_EGREP+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in egrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5188 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5192 *GNU*)
5193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP="$ac_path_EGREP"
5209 ac_path_EGREP_max=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5217 $ac_path_EGREP_found && break 3
5218 done
5219 done
5220 done
5221 IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 else
5226 ac_cv_path_EGREP=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5244 #include <stdarg.h>
5245 #include <string.h>
5246 #include <float.h>
5249 main ()
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_cv_header_stdc=yes
5258 else
5259 ac_cv_header_stdc=no
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <string.h>
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev/null 2>&1; then :
5273 else
5274 ac_cv_header_stdc=no
5276 rm -f conftest*
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <stdlib.h>
5286 _ACEOF
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev/null 2>&1; then :
5290 else
5291 ac_cv_header_stdc=no
5293 rm -f conftest*
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <ctype.h>
5305 #include <stdlib.h>
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309 #else
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315 #endif
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 main ()
5321 int i;
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5325 return 2;
5326 return 0;
5328 _ACEOF
5329 if ac_fn_c_try_run "$LINENO"; then :
5331 else
5332 ac_cv_header_stdc=no
5334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5335 conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5350 inttypes.h stdint.h unistd.h
5351 do :
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 eval as_val=\$$as_ac_Header
5356 if test "x$as_val" = x""yes; then :
5357 cat >>confdefs.h <<_ACEOF
5358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 _ACEOF
5363 done
5367 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5368 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5369 MINIX=yes
5370 else
5371 MINIX=
5375 if test "$MINIX" = yes; then
5377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383 $as_echo "#define _MINIX 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5389 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5390 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 # define __EXTENSIONS__ 1
5397 $ac_includes_default
5399 main ()
5403 return 0;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 ac_cv_safe_to_define___extensions__=yes
5408 else
5409 ac_cv_safe_to_define___extensions__=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5414 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5415 test $ac_cv_safe_to_define___extensions__ = yes &&
5416 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5434 # On Suns, sometimes $CPP names a directory.
5435 if test -n "$CPP" && test -d "$CPP"; then
5436 CPP=
5438 if test -z "$CPP"; then
5439 if test "${ac_cv_prog_CPP+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 # Double quotes because CPP needs to be expanded
5443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5445 ac_preproc_ok=false
5446 for ac_c_preproc_warn_flag in '' yes
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #ifdef __STDC__
5457 # include <limits.h>
5458 #else
5459 # include <assert.h>
5460 #endif
5461 Syntax error
5462 _ACEOF
5463 if ac_fn_c_try_cpp "$LINENO"; then :
5465 else
5466 # Broken: fails on valid input.
5467 continue
5469 rm -f conftest.err conftest.$ac_ext
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if ac_fn_c_try_cpp "$LINENO"; then :
5478 # Broken: success on invalid input.
5479 continue
5480 else
5481 # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5485 rm -f conftest.err conftest.$ac_ext
5487 done
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then :
5491 break
5494 done
5495 ac_cv_prog_CPP=$CPP
5498 CPP=$ac_cv_prog_CPP
5499 else
5500 ac_cv_prog_CPP=$CPP
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5503 $as_echo "$CPP" >&6; }
5504 ac_preproc_ok=false
5505 for ac_c_preproc_warn_flag in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #ifdef __STDC__
5516 # include <limits.h>
5517 #else
5518 # include <assert.h>
5519 #endif
5520 Syntax error
5521 _ACEOF
5522 if ac_fn_c_try_cpp "$LINENO"; then :
5524 else
5525 # Broken: fails on valid input.
5526 continue
5528 rm -f conftest.err conftest.$ac_ext
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5535 _ACEOF
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5537 # Broken: success on invalid input.
5538 continue
5539 else
5540 # Passes both tests.
5541 ac_preproc_ok=:
5542 break
5544 rm -f conftest.err conftest.$ac_ext
5546 done
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.$ac_ext
5549 if $ac_preproc_ok; then :
5551 else
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5555 See \`config.log' for more details." "$LINENO" 5; }
5558 ac_ext=c
5559 ac_cpp='$CPP $CPPFLAGS'
5560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5565 $as_echo_n "checking for inline... " >&6; }
5566 if test "${ac_cv_c_inline+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_cv_c_inline=no
5570 for ac_kw in inline __inline__ __inline; do
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #ifndef __cplusplus
5574 typedef int foo_t;
5575 static $ac_kw foo_t static_foo () {return 0; }
5576 $ac_kw foo_t foo () {return 0; }
5577 #endif
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 ac_cv_c_inline=$ac_kw
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 test "$ac_cv_c_inline" != no && break
5585 done
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5589 $as_echo "$ac_cv_c_inline" >&6; }
5591 case $ac_cv_c_inline in
5592 inline | yes) ;;
5594 case $ac_cv_c_inline in
5595 no) ac_val=;;
5596 *) ac_val=$ac_cv_c_inline;;
5597 esac
5598 cat >>confdefs.h <<_ACEOF
5599 #ifndef __cplusplus
5600 #define inline $ac_val
5601 #endif
5602 _ACEOF
5604 esac
5607 # Check whether --enable-largefile was given.
5608 if test "${enable_largefile+set}" = set; then :
5609 enableval=$enable_largefile;
5612 if test "$enable_largefile" != no; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5616 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 ac_cv_sys_largefile_CC=no
5620 if test "$GCC" != yes; then
5621 ac_save_CC=$CC
5622 while :; do
5623 # IRIX 6.2 and later do not support large files by default,
5624 # so use the C compiler's -n32 option if that helps.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 /* Check that off_t can represent 2**63 - 1 correctly.
5629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5630 since some C++ compilers masquerading as C compilers
5631 incorrectly reject 9223372036854775807. */
5632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5634 && LARGE_OFF_T % 2147483647 == 1)
5635 ? 1 : -1];
5637 main ()
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 break
5647 rm -f core conftest.err conftest.$ac_objext
5648 CC="$CC -n32"
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_cv_sys_largefile_CC=' -n32'; break
5652 rm -f core conftest.err conftest.$ac_objext
5653 break
5654 done
5655 CC=$ac_save_CC
5656 rm -f conftest.$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5660 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no; then
5662 CC=$CC$ac_cv_sys_largefile_CC
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 while :; do
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5681 ? 1 : -1];
5683 main ()
5687 return 0;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_sys_file_offset_bits=no; break
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5705 ? 1 : -1];
5707 main ()
5711 return 0;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 ac_cv_sys_file_offset_bits=64; break
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 ac_cv_sys_file_offset_bits=unknown
5719 break
5720 done
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5723 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5724 case $ac_cv_sys_file_offset_bits in #(
5725 no | unknown) ;;
5727 cat >>confdefs.h <<_ACEOF
5728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5729 _ACEOF
5731 esac
5732 rm -rf conftest*
5733 if test $ac_cv_sys_file_offset_bits = unknown; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5735 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_large_files+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 while :; do
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5750 ? 1 : -1];
5752 main ()
5756 return 0;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_sys_large_files=no; break
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5774 ? 1 : -1];
5776 main ()
5780 return 0;
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 ac_cv_sys_large_files=1; break
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_cv_sys_large_files=unknown
5788 break
5789 done
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5792 $as_echo "$ac_cv_sys_large_files" >&6; }
5793 case $ac_cv_sys_large_files in #(
5794 no | unknown) ;;
5796 cat >>confdefs.h <<_ACEOF
5797 #define _LARGE_FILES $ac_cv_sys_large_files
5798 _ACEOF
5800 esac
5801 rm -rf conftest*
5806 # sizeof(char) is 1 by definition.
5807 # The cast to long int works around a bug in the HP C Compiler
5808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5810 # This bug is HP SR number 8606223364.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5812 $as_echo_n "checking size of void *... " >&6; }
5813 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5818 else
5819 if test "$ac_cv_type_void_p" = yes; then
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 { as_fn_set_status 77
5823 as_fn_error "cannot compute sizeof (void *)
5824 See \`config.log' for more details." "$LINENO" 5; }; }
5825 else
5826 ac_cv_sizeof_void_p=0
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5832 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5836 cat >>confdefs.h <<_ACEOF
5837 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5838 _ACEOF
5841 # The cast to long int works around a bug in the HP C Compiler
5842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5844 # This bug is HP SR number 8606223364.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5846 $as_echo_n "checking size of short... " >&6; }
5847 if test "${ac_cv_sizeof_short+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5852 else
5853 if test "$ac_cv_type_short" = yes; then
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 { as_fn_set_status 77
5857 as_fn_error "cannot compute sizeof (short)
5858 See \`config.log' for more details." "$LINENO" 5; }; }
5859 else
5860 ac_cv_sizeof_short=0
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5866 $as_echo "$ac_cv_sizeof_short" >&6; }
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_SHORT $ac_cv_sizeof_short
5872 _ACEOF
5875 # The cast to long int works around a bug in the HP C Compiler
5876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878 # This bug is HP SR number 8606223364.
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5880 $as_echo_n "checking size of int... " >&6; }
5881 if test "${ac_cv_sizeof_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5886 else
5887 if test "$ac_cv_type_int" = yes; then
5888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5890 { as_fn_set_status 77
5891 as_fn_error "cannot compute sizeof (int)
5892 See \`config.log' for more details." "$LINENO" 5; }; }
5893 else
5894 ac_cv_sizeof_int=0
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5900 $as_echo "$ac_cv_sizeof_int" >&6; }
5904 cat >>confdefs.h <<_ACEOF
5905 #define SIZEOF_INT $ac_cv_sizeof_int
5906 _ACEOF
5909 # The cast to long int works around a bug in the HP C Compiler
5910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5912 # This bug is HP SR number 8606223364.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5914 $as_echo_n "checking size of long... " >&6; }
5915 if test "${ac_cv_sizeof_long+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5920 else
5921 if test "$ac_cv_type_long" = yes; then
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { as_fn_set_status 77
5925 as_fn_error "cannot compute sizeof (long)
5926 See \`config.log' for more details." "$LINENO" 5; }; }
5927 else
5928 ac_cv_sizeof_long=0
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5934 $as_echo "$ac_cv_sizeof_long" >&6; }
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5940 _ACEOF
5943 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5944 if test "x$ac_cv_type_long_long" = x""yes; then :
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_LONG_LONG 1
5948 _ACEOF
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5955 $as_echo_n "checking size of long long... " >&6; }
5956 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5961 else
5962 if test "$ac_cv_type_long_long" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status 77
5966 as_fn_error "cannot compute sizeof (long long)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5968 else
5969 ac_cv_sizeof_long_long=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5979 cat >>confdefs.h <<_ACEOF
5980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5981 _ACEOF
5986 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5987 if test "x$ac_cv_type___int64" = x""yes; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define HAVE___INT64 1
5991 _ACEOF
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5998 $as_echo_n "checking size of __int64... " >&6; }
5999 if test "${ac_cv_sizeof___int64+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type___int64" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (__int64)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof___int64=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6018 $as_echo "$ac_cv_sizeof___int64" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6024 _ACEOF
6029 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6030 case $ac_cv_c_int8_t in #(
6031 no|yes) ;; #(
6034 cat >>confdefs.h <<_ACEOF
6035 #define int8_t $ac_cv_c_int8_t
6036 _ACEOF
6038 esac
6040 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6041 case $ac_cv_c_int16_t in #(
6042 no|yes) ;; #(
6045 cat >>confdefs.h <<_ACEOF
6046 #define int16_t $ac_cv_c_int16_t
6047 _ACEOF
6049 esac
6051 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6052 case $ac_cv_c_int32_t in #(
6053 no|yes) ;; #(
6056 cat >>confdefs.h <<_ACEOF
6057 #define int32_t $ac_cv_c_int32_t
6058 _ACEOF
6060 esac
6062 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6063 case $ac_cv_c_int64_t in #(
6064 no|yes) ;; #(
6067 cat >>confdefs.h <<_ACEOF
6068 #define int64_t $ac_cv_c_int64_t
6069 _ACEOF
6071 esac
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6075 $as_echo_n "checking for long long int... " >&6; }
6076 if test "${ac_cv_type_long_long_int+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 /* For now, do not test the preprocessor; as of 2007 there are too many
6083 implementations with broken preprocessors. Perhaps this can
6084 be revisited in 2012. In the meantime, code should not expect
6085 #if to work with literals wider than 32 bits. */
6086 /* Test literals. */
6087 long long int ll = 9223372036854775807ll;
6088 long long int nll = -9223372036854775807LL;
6089 unsigned long long int ull = 18446744073709551615ULL;
6090 /* Test constant expressions. */
6091 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6092 ? 1 : -1)];
6093 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6094 ? 1 : -1)];
6095 int i = 63;
6097 main ()
6099 /* Test availability of runtime routines for shift and division. */
6100 long long int llmax = 9223372036854775807ll;
6101 unsigned long long int ullmax = 18446744073709551615ull;
6102 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6103 | (llmax / ll) | (llmax % ll)
6104 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6105 | (ullmax / ull) | (ullmax % ull));
6107 return 0;
6110 _ACEOF
6111 if ac_fn_c_try_link "$LINENO"; then :
6112 if test "$cross_compiling" = yes; then :
6113 ac_cv_type_long_long_int=yes
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 #include <limits.h>
6118 #ifndef LLONG_MAX
6119 # define HALF \
6120 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6121 # define LLONG_MAX (HALF - 1 + HALF)
6122 #endif
6124 main ()
6126 long long int n = 1;
6127 int i;
6128 for (i = 0; ; i++)
6130 long long int m = n << i;
6131 if (m >> i != n)
6132 return 1;
6133 if (LLONG_MAX / 2 < m)
6134 break;
6136 return 0;
6138 return 0;
6140 _ACEOF
6141 if ac_fn_c_try_run "$LINENO"; then :
6142 ac_cv_type_long_long_int=yes
6143 else
6144 ac_cv_type_long_long_int=no
6146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6147 conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 else
6151 ac_cv_type_long_long_int=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6157 $as_echo "$ac_cv_type_long_long_int" >&6; }
6158 if test $ac_cv_type_long_long_int = yes; then
6160 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6166 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6167 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6169 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6171 else
6172 test $ac_cv_type_long_long_int = yes \
6173 && ac_type='long long int' \
6174 || ac_type='long int'
6176 cat >>confdefs.h <<_ACEOF
6177 #define intmax_t $ac_type
6178 _ACEOF
6184 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6185 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6187 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6189 else
6190 for ac_type in 'int' 'long int' 'long long int'; do
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 $ac_includes_default
6195 main ()
6197 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6198 test_array [0] = 0
6201 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6206 cat >>confdefs.h <<_ACEOF
6207 #define intptr_t $ac_type
6208 _ACEOF
6210 ac_type=
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 test -z "$ac_type" && break
6214 done
6218 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6219 case $ac_cv_c_uint8_t in #(
6220 no|yes) ;; #(
6223 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint8_t $ac_cv_c_uint8_t
6228 _ACEOF
6230 esac
6232 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6233 case $ac_cv_c_uint16_t in #(
6234 no|yes) ;; #(
6238 cat >>confdefs.h <<_ACEOF
6239 #define uint16_t $ac_cv_c_uint16_t
6240 _ACEOF
6242 esac
6244 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6245 case $ac_cv_c_uint32_t in #(
6246 no|yes) ;; #(
6249 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252 cat >>confdefs.h <<_ACEOF
6253 #define uint32_t $ac_cv_c_uint32_t
6254 _ACEOF
6256 esac
6258 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6259 case $ac_cv_c_uint64_t in #(
6260 no|yes) ;; #(
6263 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266 cat >>confdefs.h <<_ACEOF
6267 #define uint64_t $ac_cv_c_uint64_t
6268 _ACEOF
6270 esac
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6274 $as_echo_n "checking for unsigned long long int... " >&6; }
6275 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6281 /* For now, do not test the preprocessor; as of 2007 there are too many
6282 implementations with broken preprocessors. Perhaps this can
6283 be revisited in 2012. In the meantime, code should not expect
6284 #if to work with literals wider than 32 bits. */
6285 /* Test literals. */
6286 long long int ll = 9223372036854775807ll;
6287 long long int nll = -9223372036854775807LL;
6288 unsigned long long int ull = 18446744073709551615ULL;
6289 /* Test constant expressions. */
6290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6291 ? 1 : -1)];
6292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6293 ? 1 : -1)];
6294 int i = 63;
6296 main ()
6298 /* Test availability of runtime routines for shift and division. */
6299 long long int llmax = 9223372036854775807ll;
6300 unsigned long long int ullmax = 18446744073709551615ull;
6301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6302 | (llmax / ll) | (llmax % ll)
6303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6304 | (ullmax / ull) | (ullmax % ull));
6306 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 ac_cv_type_unsigned_long_long_int=yes
6312 else
6313 ac_cv_type_unsigned_long_long_int=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6319 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6320 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6328 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6329 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6331 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6333 else
6334 test $ac_cv_type_unsigned_long_long_int = yes \
6335 && ac_type='unsigned long long int' \
6336 || ac_type='unsigned long int'
6338 cat >>confdefs.h <<_ACEOF
6339 #define uintmax_t $ac_type
6340 _ACEOF
6346 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6347 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6349 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6351 else
6352 for ac_type in 'unsigned int' 'unsigned long int' \
6353 'unsigned long long int'; do
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 $ac_includes_default
6358 main ()
6360 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6361 test_array [0] = 0
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define uintptr_t $ac_type
6371 _ACEOF
6373 ac_type=
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 test -z "$ac_type" && break
6377 done
6394 # ---------------------
6395 # Warnings and checking
6396 # ---------------------
6398 # Check $CC warning features (if it's GCC).
6399 # We want to use -pedantic, but we don't want warnings about
6400 # * 'long long'
6401 # * variadic macros
6402 # * overlong strings
6403 # * C++11 narrowing conversions in { }
6404 # So, we only use -pedantic if we can disable those warnings.
6406 loose_warn=
6407 save_CFLAGS="$CFLAGS"
6408 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6409 # Do the check with the no- prefix removed since gcc silently
6410 # accepts any -Wno-* option on purpose
6411 case $real_option in
6412 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6413 *) option=$real_option ;;
6414 esac
6415 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 CFLAGS="$option"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6427 main ()
6431 return 0;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6436 else
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 eval ac_res=\$$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6448 done
6449 CFLAGS="$save_CFLAGS"
6451 c_loose_warn=
6452 save_CFLAGS="$CFLAGS"
6453 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6454 # Do the check with the no- prefix removed since gcc silently
6455 # accepts any -Wno-* option on purpose
6456 case $real_option in
6457 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6458 *) option=$real_option ;;
6459 esac
6460 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6463 $as_echo_n "checking whether $CC supports $option... " >&6; }
6464 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 CFLAGS="$option"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 main ()
6476 return 0;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 eval "$as_acx_Woption=yes"
6481 else
6482 eval "$as_acx_Woption=no"
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 eval ac_res=\$$as_acx_Woption
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6491 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6493 done
6494 CFLAGS="$save_CFLAGS"
6496 strict_warn=
6497 save_CFLAGS="$CFLAGS"
6498 for real_option in -Wmissing-format-attribute; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option=$real_option ;;
6504 esac
6505 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 CFLAGS="$option"
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6517 main ()
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6526 else
6527 eval "$as_acx_Woption=no"
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 eval ac_res=\$$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6538 done
6539 CFLAGS="$save_CFLAGS"
6541 c_strict_warn=
6542 save_CFLAGS="$CFLAGS"
6543 for real_option in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option=$real_option ;;
6549 esac
6550 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 CFLAGS="$option"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6571 else
6572 eval "$as_acx_Woption=no"
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 eval ac_res=\$$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6583 done
6584 CFLAGS="$save_CFLAGS"
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 save_CFLAGS="$CFLAGS"
6595 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6600 main ()
6604 return 0;
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6609 else
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 CFLAGS="$save_CFLAGS"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval=$enable_werror_always;
6626 else
6627 enable_werror_always=no
6630 if test $enable_werror_always = yes; then :
6631 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6639 warn_cflags=
6640 warn_cxxflags=
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6648 # Disable exceptions and RTTI if building with g++
6649 noexception_flags=
6650 save_CFLAGS="$CFLAGS"
6651 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option=$real_option ;;
6657 esac
6658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 CFLAGS="$option"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 main ()
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6679 else
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 eval ac_res=\$$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6691 done
6692 CFLAGS="$save_CFLAGS"
6695 # Enable expensive internal checks
6696 is_release=
6697 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6698 is_release=yes
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval=$enable_checking; ac_checking_flags="${enableval}"
6704 else
6706 # Determine the default checks.
6707 if test x$is_release = x ; then
6708 ac_checking_flags=yes
6709 else
6710 ac_checking_flags=release
6714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6715 for check in release $ac_checking_flags
6717 case $check in
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking=1 ;
6721 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking= ;
6727 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728 ac_rtlflag_checking= ; ac_runtime_checking= ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6732 ac_fold_checking=1 ; ac_gc_checking=1 ;
6733 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6734 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6735 ac_tree_checking=1 ; ac_valgrind_checking= ;
6736 ac_types_checking=1 ;;
6737 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6738 ac_fold_checking= ; ac_gc_checking= ;
6739 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6740 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6741 ac_tree_checking= ; ac_valgrind_checking= ;
6742 ac_types_checking= ;;
6743 # these enable particular checks
6744 assert) ac_assert_checking=1 ;;
6745 df) ac_df_checking=1 ;;
6746 fold) ac_fold_checking=1 ;;
6747 gc) ac_gc_checking=1 ;;
6748 gcac) ac_gc_always_collect=1 ;;
6749 gimple) ac_gimple_checking=1 ;;
6750 misc) ac_checking=1 ;;
6751 rtl) ac_rtl_checking=1 ;;
6752 rtlflag) ac_rtlflag_checking=1 ;;
6753 runtime) ac_runtime_checking=1 ;;
6754 tree) ac_tree_checking=1 ;;
6755 types) ac_types_checking=1 ;;
6756 valgrind) ac_valgrind_checking=1 ;;
6757 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6758 esac
6759 done
6760 IFS="$ac_save_IFS"
6762 nocommon_flag=""
6763 if test x$ac_checking != x ; then
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767 nocommon_flag=-fno-common
6770 if test x$ac_df_checking != x ; then
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775 if test x$ac_assert_checking != x ; then
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780 if test x$ac_gimple_checking != x ; then
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6786 if test x$ac_runtime_checking != x ; then
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791 if test x$ac_tree_checking != x ; then
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795 TREEBROWSER=tree-browser.o
6796 TREECHECKING=yes
6798 if test x$ac_types_checking != x ; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x$ac_rtl_checking != x ; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x$ac_rtlflag_checking != x ; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x$ac_gc_checking != x ; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x$ac_gc_always_collect != x ; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x$ac_fold_checking != x ; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines=
6831 valgrind_command=
6833 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6835 have_valgrind_h=yes
6836 else
6837 have_valgrind_h=no
6842 if test x$ac_valgrind_checking != x ; then
6843 # It is certainly possible that there's valgrind but no valgrind.h.
6844 # GCC relies on making annotations so we must have both.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6852 #endif
6853 _ACEOF
6854 if ac_fn_c_try_cpp "$LINENO"; then :
6855 gcc_cv_header_valgrind_memcheck_h=yes
6856 else
6857 gcc_cv_header_valgrind_memcheck_h=no
6859 rm -f conftest.err conftest.$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6869 #endif
6870 _ACEOF
6871 if ac_fn_c_try_cpp "$LINENO"; then :
6872 gcc_cv_header_memcheck_h=yes
6873 else
6874 gcc_cv_header_memcheck_h=no
6876 rm -f conftest.err conftest.$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883 echo "#! /bin/sh" >conf$$.sh
6884 echo "exit 0" >>conf$$.sh
6885 chmod +x conf$$.sh
6886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6887 PATH_SEPARATOR=';'
6888 else
6889 PATH_SEPARATOR=:
6891 rm -f conf$$.sh
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.file <<_ASEOF
6897 #! /bin/sh
6898 exit 0
6899 _ASEOF
6900 chmod +x conf$$.file
6901 if test -x conf$$.file >/dev/null 2>&1; then
6902 ac_executable_p="test -x"
6903 else
6904 ac_executable_p="test -f"
6906 rm -f conf$$.file
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 case "$valgrind_path" in
6916 [\\/]* | ?:[\\/]*)
6917 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6920 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6921 for ac_dir in $PATH; do
6922 IFS="$ac_save_IFS"
6923 test -z "$ac_dir" && ac_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6927 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6928 break 2
6931 done
6932 done
6933 IFS="$ac_save_IFS"
6935 esac
6937 valgrind_path="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$valgrind_path" = "x" \
6947 || (test $have_valgrind_h = no \
6948 && test $gcc_cv_header_memcheck_h = no \
6949 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6950 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6952 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953 valgrind_command="$valgrind_path -q"
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6957 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6962 if test $gcc_cv_header_memcheck_h = yes; then
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval=$enable_coverage; case "${enableval}" in
6975 yes|noopt)
6976 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6978 opt)
6979 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6983 coverage_flags=""
6986 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6988 esac
6989 else
6990 coverage_flags=""
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval=$enable_gather_detailed_mem_stats;
6998 else
6999 enable_gather_detailed_mem_stats=no
7002 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004 cat >>confdefs.h <<_ACEOF
7005 #define GATHER_STATISTICS $gather_stats
7006 _ACEOF
7009 # -------------------------------
7010 # Miscenalleous configure options
7011 # -------------------------------
7013 # With stabs
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017 withval=$with_stabs; stabs="$with_stabs"
7018 else
7019 stabs=no
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026 enableval=$enable_multilib;
7027 else
7028 enable_multilib=yes
7033 # Determine whether or not multiarch is enabled.
7034 # Check whether --enable-multiarch was given.
7035 if test "${enable_multiarch+set}" = set; then :
7036 enableval=$enable_multiarch; case "${enableval}" in
7037 yes|no|auto) enable_multiarch=$enableval;;
7038 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7039 esac
7040 else
7041 enable_multiarch=auto
7044 if test x${enable_multiarch} = xauto; then
7045 if test x${with_native_system_header_dir} != x; then
7046 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7047 enable_multiarch=no
7049 if test x$host != x$target && test "x$with_sysroot" = x; then
7050 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7051 enable_multiarch=no
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7055 $as_echo_n "checking for multiarch configuration... " >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7058 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7060 # needed for setting the multiarch name for soft-float/hard-float ABIs
7064 # Enable __cxa_atexit for C++.
7065 # Check whether --enable-__cxa_atexit was given.
7066 if test "${enable___cxa_atexit+set}" = set; then :
7067 enableval=$enable___cxa_atexit;
7071 # Enable C extension for decimal float if target supports it.
7073 # Check whether --enable-decimal-float was given.
7074 if test "${enable_decimal_float+set}" = set; then :
7075 enableval=$enable_decimal_float;
7076 case $enable_decimal_float in
7077 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7078 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7079 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7080 esac
7082 else
7084 case $target in
7085 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7086 i?86*-*-gnu* | \
7087 i?86*-*-mingw* | x86_64*-*-mingw* | \
7088 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7089 enable_decimal_float=yes
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7093 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7094 enable_decimal_float=no
7096 esac
7101 # x86's use BID format instead of DPD
7102 case x$enable_decimal_float in
7103 xyes)
7104 case $target in
7105 i?86*-*-* | x86_64*-*-*)
7106 enable_decimal_float=bid
7109 enable_decimal_float=dpd
7111 esac
7112 default_decimal_float=$enable_decimal_float
7114 xno)
7115 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7116 # dependency on libdecnumber.
7117 default_decimal_float=dpd
7119 esac
7124 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7126 cat >>confdefs.h <<_ACEOF
7127 #define ENABLE_DECIMAL_FLOAT $dfp
7128 _ACEOF
7131 # Use default_decimal_float for dependency.
7132 enable_decimal_float=$default_decimal_float
7134 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7136 cat >>confdefs.h <<_ACEOF
7137 #define ENABLE_DECIMAL_BID_FORMAT $bid
7138 _ACEOF
7141 # Enable C extension for fixed-point arithmetic.
7142 # Check whether --enable-fixed-point was given.
7143 if test "${enable_fixed_point+set}" = set; then :
7144 enableval=$enable_fixed_point;
7145 else
7147 case $target in
7148 arm*)
7149 enable_fixed_point=yes
7152 mips*-*-*)
7153 enable_fixed_point=yes
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7157 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7158 enable_fixed_point=no
7160 esac
7166 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7168 cat >>confdefs.h <<_ACEOF
7169 #define ENABLE_FIXED_POINT $fixedpoint
7170 _ACEOF
7173 # Enable threads
7174 # Pass with no value to take the default
7175 # Pass with a value to specify a thread package
7176 # Check whether --enable-threads was given.
7177 if test "${enable_threads+set}" = set; then :
7178 enableval=$enable_threads;
7179 else
7180 enable_threads=''
7184 # Check whether --enable-tls was given.
7185 if test "${enable_tls+set}" = set; then :
7186 enableval=$enable_tls;
7187 case $enable_tls in
7188 yes | no) ;;
7189 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7191 esac
7193 else
7194 enable_tls=''
7198 # Check whether --enable-objc-gc was given.
7199 if test "${enable_objc_gc+set}" = set; then :
7200 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7201 objc_boehm_gc=''
7202 else
7203 objc_boehm_gc=1
7205 else
7206 objc_boehm_gc=''
7211 # Check whether --with-dwarf2 was given.
7212 if test "${with_dwarf2+set}" = set; then :
7213 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7214 else
7215 dwarf2=no
7219 # Check whether --enable-shared was given.
7220 if test "${enable_shared+set}" = set; then :
7221 enableval=$enable_shared;
7222 case $enable_shared in
7223 yes | no) ;;
7225 enable_shared=no
7226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7227 for pkg in $enableval; do
7228 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7229 enable_shared=yes
7231 done
7232 IFS="$ac_save_ifs"
7234 esac
7236 else
7237 enable_shared=yes
7243 # Check whether --with-native-system-header-dir was given.
7244 if test "${with_native_system_header_dir+set}" = set; then :
7245 withval=$with_native_system_header_dir;
7246 case ${with_native_system_header_dir} in
7247 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7248 /* | [A-Za-z]:[\\/]*) ;;
7249 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7250 esac
7251 configured_native_system_header_dir="${withval}"
7253 else
7254 configured_native_system_header_dir=
7259 # Check whether --with-build-sysroot was given.
7260 if test "${with_build_sysroot+set}" = set; then :
7261 withval=$with_build_sysroot; if test x"$withval" != x ; then
7262 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7264 else
7265 SYSROOT_CFLAGS_FOR_TARGET=
7270 if test "x$prefix" = xNONE; then
7271 test_prefix=/usr/local
7272 else
7273 test_prefix=$prefix
7275 if test "x$exec_prefix" = xNONE; then
7276 test_exec_prefix=$test_prefix
7277 else
7278 test_exec_prefix=$exec_prefix
7282 # Check whether --with-sysroot was given.
7283 if test "${with_sysroot+set}" = set; then :
7284 withval=$with_sysroot;
7285 case ${with_sysroot} in
7286 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7287 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7288 esac
7290 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7291 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7293 case ${TARGET_SYSTEM_ROOT} in
7294 "${test_prefix}"|"${test_prefix}/"*|\
7295 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7296 '${prefix}'|'${prefix}/'*|\
7297 '${exec_prefix}'|'${exec_prefix}/'*)
7298 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7299 TARGET_SYSTEM_ROOT_DEFINE="$t"
7301 esac
7303 else
7305 TARGET_SYSTEM_ROOT=
7306 TARGET_SYSTEM_ROOT_DEFINE=
7307 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7316 # Check whether --with-specs was given.
7317 if test "${with_specs+set}" = set; then :
7318 withval=$with_specs; CONFIGURE_SPECS=$withval
7319 else
7320 CONFIGURE_SPECS=
7328 # Check whether --with-pkgversion was given.
7329 if test "${with_pkgversion+set}" = set; then :
7330 withval=$with_pkgversion; case "$withval" in
7331 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7332 no) PKGVERSION= ;;
7333 *) PKGVERSION="($withval) " ;;
7334 esac
7335 else
7336 PKGVERSION="(GCC) "
7344 # Check whether --with-bugurl was given.
7345 if test "${with_bugurl+set}" = set; then :
7346 withval=$with_bugurl; case "$withval" in
7347 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7348 no) BUGURL=
7350 *) BUGURL="$withval"
7352 esac
7353 else
7354 BUGURL="http://gcc.gnu.org/bugs.html"
7358 case ${BUGURL} in
7360 REPORT_BUGS_TO=
7361 REPORT_BUGS_TEXI=
7364 REPORT_BUGS_TO="<$BUGURL>"
7365 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7367 esac;
7372 # Sanity check enable_languages in case someone does not run the toplevel
7373 # configure # script.
7374 # Check whether --enable-languages was given.
7375 if test "${enable_languages+set}" = set; then :
7376 enableval=$enable_languages; case ,${enable_languages}, in
7377 ,,|,yes,)
7378 # go safe -- we cannot be much sure without the toplevel
7379 # configure's
7380 # analysis of which target libs are present and usable
7381 enable_languages=c
7383 *,all,*)
7384 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7386 *,c,*)
7389 enable_languages=c,${enable_languages}
7391 esac
7392 else
7393 enable_languages=c
7398 # Check whether --with-multilib-list was given.
7399 if test "${with_multilib_list+set}" = set; then :
7400 withval=$with_multilib_list; :
7401 else
7402 with_multilib_list=default
7406 # -------------------------
7407 # Checks for other programs
7408 # -------------------------
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7412 set x ${MAKE-make}
7413 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7414 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat >conftest.make <<\_ACEOF
7418 SHELL = /bin/sh
7419 all:
7420 @echo '@@@%%%=$(MAKE)=@@@%%%'
7421 _ACEOF
7422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7424 *@@@%%%=?*=@@@%%%*)
7425 eval ac_cv_prog_make_${ac_make}_set=yes;;
7427 eval ac_cv_prog_make_${ac_make}_set=no;;
7428 esac
7429 rm -f conftest.make
7431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }
7434 SET_MAKE=
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 SET_MAKE="MAKE=${MAKE-make}"
7442 # Find some useful tools
7443 for ac_prog in gawk mawk nawk awk
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy $ac_prog; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_AWK+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$AWK"; then
7453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_AWK="$ac_prog"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7468 IFS=$as_save_IFS
7472 AWK=$ac_cv_prog_AWK
7473 if test -n "$AWK"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7475 $as_echo "$AWK" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7482 test -n "$AWK" && break
7483 done
7485 # We need awk to create options.c and options.h.
7486 # Bail out if it's missing.
7487 case ${AWK} in
7488 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7489 esac
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7492 $as_echo_n "checking whether ln -s works... " >&6; }
7493 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 rm -f conftestdata_t
7497 echo >conftestdata_f
7498 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7499 then
7500 gcc_cv_prog_LN_S="ln -s"
7501 else
7502 if ln conftestdata_f conftestdata_t 2>/dev/null
7503 then
7504 gcc_cv_prog_LN_S=ln
7505 else
7506 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7507 then
7508 gcc_cv_prog_LN_S="cp -p"
7509 else
7510 gcc_cv_prog_LN_S=cp
7514 rm -f conftestdata_f conftestdata_t
7517 LN_S="$gcc_cv_prog_LN_S"
7518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7521 else
7522 if test "$gcc_cv_prog_LN_S" = "ln"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7524 $as_echo "no, using ln" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7532 $as_echo_n "checking whether ln works... " >&6; }
7533 if test "${acx_cv_prog_LN+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 rm -f conftestdata_t
7537 echo >conftestdata_f
7538 if ln conftestdata_f conftestdata_t 2>/dev/null
7539 then
7540 acx_cv_prog_LN=ln
7541 else
7542 acx_cv_prog_LN=no
7544 rm -f conftestdata_f conftestdata_t
7547 if test $acx_cv_prog_LN = no; then
7548 LN="$LN_S"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7550 $as_echo "no, using $LN" >&6; }
7551 else
7552 LN="$acx_cv_prog_LN"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 RANLIB=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597 ac_ct_RANLIB=$RANLIB
7598 # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$ac_ct_RANLIB"; then
7606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_RANLIB="ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7619 done
7620 done
7621 IFS=$as_save_IFS
7625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_RANLIB" = x; then
7635 RANLIB=":"
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 RANLIB=$ac_ct_RANLIB
7645 else
7646 RANLIB="$ac_cv_prog_RANLIB"
7649 ranlib_flags=""
7652 # Find a good install program. We prefer a C program (faster),
7653 # so one script is as good as another. But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7658 # AIX /bin/install
7659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7661 # ./install, which can be erroneously created by make from ./install.sh.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7663 $as_echo_n "checking for a BSD compatible install... " >&6; }
7664 if test -z "$INSTALL"; then
7665 if test "${ac_cv_path_install+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7669 for ac_dir in $PATH; do
7670 # Account for people who put trailing slashes in PATH elements.
7671 case "$ac_dir/" in
7672 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7674 # OSF1 and SCO ODT 3.0 have their own names for install.
7675 for ac_prog in ginstall scoinst install; do
7676 if test -f $ac_dir/$ac_prog; then
7677 if test $ac_prog = install &&
7678 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7680 # OSF/1 installbsd also uses dspmsg, but is usable.
7682 else
7683 ac_cv_path_install="$ac_dir/$ac_prog -c"
7684 break 2
7687 done
7689 esac
7690 done
7691 IFS="$ac_save_IFS"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL="$ac_cv_path_install"
7696 else
7697 # As a last resort, use the slow shell script. We don't cache a
7698 # path for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the path is relative.
7701 INSTALL="$ac_install_sh"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7705 $as_echo "$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714 # See if cmp has --ignore-initial.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7716 $as_echo_n "checking for cmp's capabilities... " >&6; }
7717 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 echo abfoo >t1
7721 echo cdfoo >t2
7722 gcc_cv_prog_cmp_skip=slowcompare
7723 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7724 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7726 else
7727 gcc_cv_prog_cmp_skip=gnucompare
7730 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7731 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7732 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7734 else
7735 gcc_cv_prog_cmp_skip=fastcompare
7739 rm t1 t2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7744 make_compare_target=$gcc_cv_prog_cmp_skip
7748 # See if we have the mktemp command.
7749 # Extract the first word of "mktemp", so it can be a program name with args.
7750 set dummy mktemp; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$have_mktemp_command"; then
7757 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_have_mktemp_command="yes"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7777 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7778 if test -n "$have_mktemp_command"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7780 $as_echo "$have_mktemp_command" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 # See if makeinfo has been installed and is modern enough
7789 # that we can use it.
7791 # Extract the first word of "makeinfo", so it can be a program name with args.
7792 set dummy makeinfo; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$MAKEINFO"; then
7799 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_MAKEINFO="makeinfo"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 MAKEINFO=$ac_cv_prog_MAKEINFO
7819 if test -n "$MAKEINFO"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7821 $as_echo "$MAKEINFO" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test -n "$MAKEINFO"; then
7829 # Found it, now check the version.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7831 $as_echo_n "checking for modern makeinfo... " >&6; }
7832 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7838 case $ac_prog_version in
7839 '') gcc_cv_prog_makeinfo_modern=no;;
7840 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7841 *) gcc_cv_prog_makeinfo_modern=no;;
7842 esac
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7847 else
7848 gcc_cv_prog_makeinfo_modern=no
7850 if test $gcc_cv_prog_makeinfo_modern = no; then
7851 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7854 if test $gcc_cv_prog_makeinfo_modern = no; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&5
7858 $as_echo "$as_me: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&2;}
7861 BUILD_INFO=
7862 else
7863 BUILD_INFO=info
7867 # Is pod2man recent enough to regenerate manpages?
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7869 $as_echo_n "checking for recent Pod::Man... " >&6; }
7870 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 GENERATED_MANPAGES=generated-manpages
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 GENERATED_MANPAGES=
7881 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7883 # How about lex?
7884 for ac_prog in flex
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_FLEX+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$FLEX"; then
7894 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_FLEX="$ac_prog"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7913 FLEX=$ac_cv_prog_FLEX
7914 if test -n "$FLEX"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7916 $as_echo "$FLEX" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7923 test -n "$FLEX" && break
7924 done
7925 test -n "$FLEX" || FLEX="$MISSING flex"
7928 # Bison?
7929 for ac_prog in bison
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_BISON+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$BISON"; then
7939 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_BISON="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7952 done
7953 done
7954 IFS=$as_save_IFS
7958 BISON=$ac_cv_prog_BISON
7959 if test -n "$BISON"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7961 $as_echo "$BISON" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 test -n "$BISON" && break
7969 done
7970 test -n "$BISON" || BISON="$MISSING bison"
7973 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7974 # check for build == host before using them.
7976 # NM
7977 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7978 && test -d ../binutils ; then
7979 NM='${objdir}/../binutils/nm-new'
7980 else
7981 # Extract the first word of "nm", so it can be a program name with args.
7982 set dummy nm; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_NM+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$NM"; then
7989 ac_cv_prog_NM="$NM" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_NM="nm"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8002 done
8003 done
8004 IFS=$as_save_IFS
8006 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8009 NM=$ac_cv_prog_NM
8010 if test -n "$NM"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8012 $as_echo "$NM" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8021 # AR
8022 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8023 && test -d ../binutils ; then
8024 AR='${objdir}/../binutils/ar'
8025 else
8026 # Extract the first word of "ar", so it can be a program name with args.
8027 set dummy ar; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_AR+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$AR"; then
8034 ac_cv_prog_AR="$AR" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_AR="ar"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8051 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8054 AR=$ac_cv_prog_AR
8055 if test -n "$AR"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8067 # --------------------
8068 # Checks for C headers
8069 # --------------------
8071 # Need to reject headers which give warnings, so that the -Werror bootstrap
8072 # works later. *sigh* This needs to come before all header checks.
8074 ac_c_preproc_warn_flag=yes
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8077 $as_echo_n "checking for ANSI C header files... " >&6; }
8078 if test "${ac_cv_header_stdc+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <stdlib.h>
8084 #include <stdarg.h>
8085 #include <string.h>
8086 #include <float.h>
8089 main ()
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_header_stdc=yes
8098 else
8099 ac_cv_header_stdc=no
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 if test $ac_cv_header_stdc = yes; then
8104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include <string.h>
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "memchr" >/dev/null 2>&1; then :
8113 else
8114 ac_cv_header_stdc=no
8116 rm -f conftest*
8120 if test $ac_cv_header_stdc = yes; then
8121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <stdlib.h>
8126 _ACEOF
8127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "free" >/dev/null 2>&1; then :
8130 else
8131 ac_cv_header_stdc=no
8133 rm -f conftest*
8137 if test $ac_cv_header_stdc = yes; then
8138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8139 if test "$cross_compiling" = yes; then :
8141 else
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <ctype.h>
8145 #include <stdlib.h>
8146 #if ((' ' & 0x0FF) == 0x020)
8147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 #else
8150 # define ISLOWER(c) \
8151 (('a' <= (c) && (c) <= 'i') \
8152 || ('j' <= (c) && (c) <= 'r') \
8153 || ('s' <= (c) && (c) <= 'z'))
8154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8155 #endif
8157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8159 main ()
8161 int i;
8162 for (i = 0; i < 256; i++)
8163 if (XOR (islower (i), ISLOWER (i))
8164 || toupper (i) != TOUPPER (i))
8165 return 2;
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8171 else
8172 ac_cv_header_stdc=no
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8181 $as_echo "$ac_cv_header_stdc" >&6; }
8182 if test $ac_cv_header_stdc = yes; then
8184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8190 if test "${ac_cv_header_time+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/time.h>
8197 #include <time.h>
8200 main ()
8202 if ((struct tm *) 0)
8203 return 0;
8205 return 0;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 ac_cv_header_time=yes
8210 else
8211 ac_cv_header_time=no
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8216 $as_echo "$ac_cv_header_time" >&6; }
8217 if test $ac_cv_header_time = yes; then
8219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8224 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8225 if test "${gcc_cv_header_string+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 #include <string.h>
8231 #include <strings.h>
8233 main ()
8237 return 0;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 gcc_cv_header_string=yes
8242 else
8243 gcc_cv_header_string=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8248 $as_echo "$gcc_cv_header_string" >&6; }
8249 if test $gcc_cv_header_string = yes; then
8251 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8256 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8257 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/wait.h>
8264 #ifndef WEXITSTATUS
8265 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8266 #endif
8267 #ifndef WIFEXITED
8268 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8269 #endif
8272 main ()
8274 int s;
8275 wait (&s);
8276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8278 return 0;
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 ac_cv_header_sys_wait_h=yes
8283 else
8284 ac_cv_header_sys_wait_h=no
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8289 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8290 if test $ac_cv_header_sys_wait_h = yes; then
8292 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8297 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8298 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <termios.h>
8305 #ifdef TIOCGWINSZ
8307 #endif
8309 _ACEOF
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "yes" >/dev/null 2>&1; then :
8312 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8313 else
8314 ac_cv_sys_tiocgwinsz_in_termios_h=no
8316 rm -f conftest*
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8320 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8322 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8324 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8325 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <sys/types.h>
8331 #include <sys/ioctl.h>
8332 #ifdef TIOCGWINSZ
8334 #endif
8336 _ACEOF
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "yes" >/dev/null 2>&1; then :
8339 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8340 else
8341 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8343 rm -f conftest*
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8347 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8349 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8351 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8356 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8357 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8358 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8359 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8360 do :
8361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8362 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8363 eval as_val=\$$as_ac_Header
8364 if test "x$as_val" = x""yes; then :
8365 cat >>confdefs.h <<_ACEOF
8366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 _ACEOF
8370 done
8373 # Check for thread headers.
8374 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8375 if test "x$ac_cv_header_thread_h" = x""yes; then :
8376 have_thread_h=yes
8377 else
8378 have_thread_h=
8381 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8382 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8383 have_pthread_h=yes
8384 else
8385 have_pthread_h=
8389 # These tests can't be done till we know if we have limits.h.
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8391 $as_echo_n "checking for CHAR_BIT... " >&6; }
8392 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifdef HAVE_LIMITS_H
8398 #include <limits.h>
8399 #endif
8400 #ifdef CHAR_BIT
8401 found
8402 #endif
8403 _ACEOF
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "found" >/dev/null 2>&1; then :
8406 gcc_cv_decl_char_bit=yes
8407 else
8408 gcc_cv_decl_char_bit=no
8410 rm -f conftest*
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8415 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8416 if test $gcc_cv_decl_char_bit = no; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8418 $as_echo_n "checking number of bits in a byte... " >&6; }
8419 if test "${gcc_cv_c_nbby+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8423 gcc_cv_c_nbby=
8424 while test $i -lt 65; do
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8429 main ()
8431 switch(0) {
8432 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8433 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8436 return 0;
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 gcc_cv_c_nbby=$i; break
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 i=`expr $i + 1`
8444 done
8445 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8449 $as_echo "$gcc_cv_c_nbby" >&6; }
8450 if test $gcc_cv_c_nbby = failed; then
8451 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8452 else
8454 cat >>confdefs.h <<_ACEOF
8455 #define CHAR_BIT $gcc_cv_c_nbby
8456 _ACEOF
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8462 if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 ac_cv_c_bigendian=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifndef __APPLE_CC__
8470 not a universal capable compiler
8471 #endif
8472 typedef int dummy;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8479 ac_arch=
8480 ac_prev=
8481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8483 case $ac_word in
8484 i?86 | x86_64 | ppc | ppc64)
8485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8486 ac_arch=$ac_word
8487 else
8488 ac_cv_c_bigendian=universal
8489 break
8492 esac
8493 ac_prev=
8494 elif test "x$ac_word" = "x-arch"; then
8495 ac_prev=arch
8497 done
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/param.h>
8508 main ()
8510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8512 && LITTLE_ENDIAN)
8513 bogus endian macros
8514 #endif
8517 return 0;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8528 main ()
8530 #if BYTE_ORDER != BIG_ENDIAN
8531 not big endian
8532 #endif
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_c_bigendian=yes
8540 else
8541 ac_cv_c_bigendian=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 if test $ac_cv_c_bigendian = unknown; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <limits.h>
8554 main ()
8556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8557 bogus endian macros
8558 #endif
8561 return 0;
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <limits.h>
8571 main ()
8573 #ifndef _BIG_ENDIAN
8574 not big endian
8575 #endif
8578 return 0;
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 ac_cv_c_bigendian=yes
8583 else
8584 ac_cv_c_bigendian=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 if test $ac_cv_c_bigendian = unknown; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8610 extern int foo;
8613 main ()
8615 return use_ascii (foo) == use_ebcdic (foo);
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8622 ac_cv_c_bigendian=yes
8624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8625 if test "$ac_cv_c_bigendian" = unknown; then
8626 ac_cv_c_bigendian=no
8627 else
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian=unknown
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 $ac_includes_default
8639 main ()
8642 /* Are we little or big endian? From Harbison&Steele. */
8643 union
8645 long int l;
8646 char c[sizeof (long int)];
8647 } u;
8648 u.l = 1;
8649 return u.c[sizeof (long int) - 1] == 1;
8652 return 0;
8654 _ACEOF
8655 if ac_fn_c_try_run "$LINENO"; then :
8656 ac_cv_c_bigendian=no
8657 else
8658 ac_cv_c_bigendian=yes
8660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8661 conftest.$ac_objext conftest.beam conftest.$ac_ext
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8667 $as_echo "$ac_cv_c_bigendian" >&6; }
8668 case $ac_cv_c_bigendian in #(
8669 yes)
8670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8671 ;; #(
8673 ;; #(
8674 universal)
8676 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8678 ;; #(
8680 as_fn_error "unknown endianness
8681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8682 esac
8685 # ----------------------
8686 # Checks for C++ headers
8687 # ----------------------
8689 ac_ext=cpp
8690 ac_cpp='$CXXCPP $CPPFLAGS'
8691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8696 if test -z "$CXXCPP"; then
8697 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 # Double quotes because CXXCPP needs to be expanded
8701 for CXXCPP in "$CXX -E" "/lib/cpp"
8703 ac_preproc_ok=false
8704 for ac_cxx_preproc_warn_flag in '' yes
8706 # Use a header file that comes with gcc, so configuring glibc
8707 # with a fresh cross-compiler works.
8708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 # <limits.h> exists even on freestanding compilers.
8710 # On the NeXT, cc -E runs the code through the compiler's parser,
8711 # not just through cpp. "Syntax error" is here to catch this case.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #ifdef __STDC__
8715 # include <limits.h>
8716 #else
8717 # include <assert.h>
8718 #endif
8719 Syntax error
8720 _ACEOF
8721 if ac_fn_cxx_try_cpp "$LINENO"; then :
8723 else
8724 # Broken: fails on valid input.
8725 continue
8727 rm -f conftest.err conftest.$ac_ext
8729 # OK, works on sane cases. Now check whether nonexistent headers
8730 # can be detected and how.
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <ac_nonexistent.h>
8734 _ACEOF
8735 if ac_fn_cxx_try_cpp "$LINENO"; then :
8736 # Broken: success on invalid input.
8737 continue
8738 else
8739 # Passes both tests.
8740 ac_preproc_ok=:
8741 break
8743 rm -f conftest.err conftest.$ac_ext
8745 done
8746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8747 rm -f conftest.err conftest.$ac_ext
8748 if $ac_preproc_ok; then :
8749 break
8752 done
8753 ac_cv_prog_CXXCPP=$CXXCPP
8756 CXXCPP=$ac_cv_prog_CXXCPP
8757 else
8758 ac_cv_prog_CXXCPP=$CXXCPP
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8761 $as_echo "$CXXCPP" >&6; }
8762 ac_preproc_ok=false
8763 for ac_cxx_preproc_warn_flag in '' yes
8765 # Use a header file that comes with gcc, so configuring glibc
8766 # with a fresh cross-compiler works.
8767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 # <limits.h> exists even on freestanding compilers.
8769 # On the NeXT, cc -E runs the code through the compiler's parser,
8770 # not just through cpp. "Syntax error" is here to catch this case.
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 #ifdef __STDC__
8774 # include <limits.h>
8775 #else
8776 # include <assert.h>
8777 #endif
8778 Syntax error
8779 _ACEOF
8780 if ac_fn_cxx_try_cpp "$LINENO"; then :
8782 else
8783 # Broken: fails on valid input.
8784 continue
8786 rm -f conftest.err conftest.$ac_ext
8788 # OK, works on sane cases. Now check whether nonexistent headers
8789 # can be detected and how.
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 #include <ac_nonexistent.h>
8793 _ACEOF
8794 if ac_fn_cxx_try_cpp "$LINENO"; then :
8795 # Broken: success on invalid input.
8796 continue
8797 else
8798 # Passes both tests.
8799 ac_preproc_ok=:
8800 break
8802 rm -f conftest.err conftest.$ac_ext
8804 done
8805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8806 rm -f conftest.err conftest.$ac_ext
8807 if $ac_preproc_ok; then :
8809 else
8810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8813 See \`config.log' for more details." >&5
8814 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8815 See \`config.log' for more details." >&2;}; }
8818 ac_ext=c
8819 ac_cpp='$CPP $CPPFLAGS'
8820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8825 ac_ext=cpp
8826 ac_cpp='$CXXCPP $CPPFLAGS'
8827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8834 for ac_header in unordered_map
8835 do :
8836 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8837 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8838 cat >>confdefs.h <<_ACEOF
8839 #define HAVE_UNORDERED_MAP 1
8840 _ACEOF
8843 done
8845 for ac_header in tr1/unordered_map
8846 do :
8847 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8848 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8849 cat >>confdefs.h <<_ACEOF
8850 #define HAVE_TR1_UNORDERED_MAP 1
8851 _ACEOF
8854 done
8856 for ac_header in ext/hash_map
8857 do :
8858 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8859 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_EXT_HASH_MAP 1
8862 _ACEOF
8865 done
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8875 # --------
8876 # UNSORTED
8877 # --------
8880 # These libraries may be used by collect2.
8881 # We may need a special search path to get them linked.
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8883 $as_echo_n "checking for collect2 libraries... " >&6; }
8884 if test "${gcc_cv_collect2_libs+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 save_LIBS="$LIBS"
8888 for libs in '' -lld -lmld \
8889 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8890 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8892 LIBS="$libs"
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char ldopen ();
8904 main ()
8906 return ldopen ();
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 gcc_cv_collect2_libs="$libs"; break
8914 rm -f core conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916 done
8917 LIBS="$save_LIBS"
8918 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8921 $as_echo "$gcc_cv_collect2_libs" >&6; }
8922 case $gcc_cv_collect2_libs in
8923 "none required") ;;
8924 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8925 esac
8928 # When building Ada code on Alpha, we need exc_resume which is usually in
8929 # -lexc. So test for it.
8930 save_LIBS="$LIBS"
8931 LIBS=
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8933 $as_echo_n "checking for library containing exc_resume... " >&6; }
8934 if test "${ac_cv_search_exc_resume+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 ac_func_search_save_LIBS=$LIBS
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944 #ifdef __cplusplus
8945 extern "C"
8946 #endif
8947 char exc_resume ();
8949 main ()
8951 return exc_resume ();
8953 return 0;
8955 _ACEOF
8956 for ac_lib in '' exc; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8959 else
8960 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_exc_resume=$ac_res
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext
8968 if test "${ac_cv_search_exc_resume+set}" = set; then :
8969 break
8971 done
8972 if test "${ac_cv_search_exc_resume+set}" = set; then :
8974 else
8975 ac_cv_search_exc_resume=no
8977 rm conftest.$ac_ext
8978 LIBS=$ac_func_search_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8981 $as_echo "$ac_cv_search_exc_resume" >&6; }
8982 ac_res=$ac_cv_search_exc_resume
8983 if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8988 GNAT_LIBEXC="$LIBS"
8989 LIBS="$save_LIBS"
8992 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8993 save_LIBS="$LIBS"
8994 LIBS=
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8996 $as_echo_n "checking for library containing kstat_open... " >&6; }
8997 if test "${ac_cv_search_kstat_open+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 ac_func_search_save_LIBS=$LIBS
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char kstat_open ();
9012 main ()
9014 return kstat_open ();
9016 return 0;
9018 _ACEOF
9019 for ac_lib in '' kstat; do
9020 if test -z "$ac_lib"; then
9021 ac_res="none required"
9022 else
9023 ac_res=-l$ac_lib
9024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 ac_cv_search_kstat_open=$ac_res
9029 rm -f core conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext
9031 if test "${ac_cv_search_kstat_open+set}" = set; then :
9032 break
9034 done
9035 if test "${ac_cv_search_kstat_open+set}" = set; then :
9037 else
9038 ac_cv_search_kstat_open=no
9040 rm conftest.$ac_ext
9041 LIBS=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9044 $as_echo "$ac_cv_search_kstat_open" >&6; }
9045 ac_res=$ac_cv_search_kstat_open
9046 if test "$ac_res" != no; then :
9047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9051 EXTRA_GCC_LIBS="$LIBS"
9052 LIBS="$save_LIBS"
9055 # Some systems put ldexp and frexp in libm instead of libc; assume
9056 # they're both in the same place. jcf-dump needs them.
9057 save_LIBS="$LIBS"
9058 LIBS=
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9060 $as_echo_n "checking for library containing ldexp... " >&6; }
9061 if test "${ac_cv_search_ldexp+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 ac_func_search_save_LIBS=$LIBS
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9068 /* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 char ldexp ();
9076 main ()
9078 return ldexp ();
9080 return 0;
9082 _ACEOF
9083 for ac_lib in '' m; do
9084 if test -z "$ac_lib"; then
9085 ac_res="none required"
9086 else
9087 ac_res=-l$ac_lib
9088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9090 if ac_fn_c_try_link "$LINENO"; then :
9091 ac_cv_search_ldexp=$ac_res
9093 rm -f core conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext
9095 if test "${ac_cv_search_ldexp+set}" = set; then :
9096 break
9098 done
9099 if test "${ac_cv_search_ldexp+set}" = set; then :
9101 else
9102 ac_cv_search_ldexp=no
9104 rm conftest.$ac_ext
9105 LIBS=$ac_func_search_save_LIBS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9108 $as_echo "$ac_cv_search_ldexp" >&6; }
9109 ac_res=$ac_cv_search_ldexp
9110 if test "$ac_res" != no; then :
9111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115 LDEXP_LIB="$LIBS"
9116 LIBS="$save_LIBS"
9119 # Use <inttypes.h> only if it exists,
9120 # doesn't clash with <sys/types.h>, and declares intmax_t.
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9122 $as_echo_n "checking for inttypes.h... " >&6; }
9123 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #include <inttypes.h>
9131 main ()
9133 intmax_t i = -1;
9135 return 0;
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139 gcc_cv_header_inttypes_h=yes
9140 else
9141 gcc_cv_header_inttypes_h=no
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9147 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9148 if test $gcc_cv_header_inttypes_h = yes; then
9150 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9156 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9157 sysconf strsignal getrusage nl_langinfo \
9158 gettimeofday mbstowcs wcswidth mmap setlocale \
9159 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
9160 do :
9161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9163 eval as_val=\$$as_ac_var
9164 if test "x$as_val" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9167 _ACEOF
9170 done
9173 if test x$ac_cv_func_mbstowcs = xyes; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9175 $as_echo_n "checking whether mbstowcs works... " >&6; }
9176 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 if test "$cross_compiling" = yes; then :
9180 gcc_cv_func_mbstowcs_works=yes
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <stdlib.h>
9185 int main()
9187 mbstowcs(0, "", 0);
9188 return 0;
9190 _ACEOF
9191 if ac_fn_c_try_run "$LINENO"; then :
9192 gcc_cv_func_mbstowcs_works=yes
9193 else
9194 gcc_cv_func_mbstowcs_works=no
9196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9197 conftest.$ac_objext conftest.beam conftest.$ac_ext
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9202 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9203 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9205 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9210 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9211 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9213 else
9215 cat >>confdefs.h <<_ACEOF
9216 #define ssize_t int
9217 _ACEOF
9221 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9224 else
9226 cat >>confdefs.h <<_ACEOF
9227 #define caddr_t char *
9228 _ACEOF
9234 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9235 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9236 gcc_header_sys_mman_h=yes
9237 else
9238 gcc_header_sys_mman_h=no
9241 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9242 if test "x$ac_cv_func_mmap" = x""yes; then :
9243 gcc_func_mmap=yes
9244 else
9245 gcc_func_mmap=no
9248 if test "$gcc_header_sys_mman_h" != yes \
9249 || test "$gcc_func_mmap" != yes; then
9250 gcc_cv_func_mmap_file=no
9251 gcc_cv_func_mmap_dev_zero=no
9252 gcc_cv_func_mmap_anon=no
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9255 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9256 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 # Add a system to this blacklist if
9260 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9261 # memory area containing the same data that you'd get if you applied
9262 # read() to the same fd. The only system known to have a problem here
9263 # is VMS, where text files have record structure.
9264 case "$host_os" in
9265 *vms* | ultrix*)
9266 gcc_cv_func_mmap_file=no ;;
9268 gcc_cv_func_mmap_file=yes;;
9269 esac
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9272 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9274 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9275 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 # Add a system to this blacklist if it has mmap() but /dev/zero
9279 # does not exist, or if mmapping /dev/zero does not give anonymous
9280 # zeroed pages with both the following properties:
9281 # 1. If you map N consecutive pages in with one call, and then
9282 # unmap any subset of those pages, the pages that were not
9283 # explicitly unmapped remain accessible.
9284 # 2. If you map two adjacent blocks of memory and then unmap them
9285 # both at once, they must both go away.
9286 # Systems known to be in this category are Windows (all variants),
9287 # VMS, and Darwin.
9288 case "$host_os" in
9289 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9290 gcc_cv_func_mmap_dev_zero=no ;;
9292 gcc_cv_func_mmap_dev_zero=yes;;
9293 esac
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9296 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9298 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9300 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9301 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <sys/types.h>
9307 #include <sys/mman.h>
9308 #include <unistd.h>
9310 #ifndef MAP_ANONYMOUS
9311 #define MAP_ANONYMOUS MAP_ANON
9312 #endif
9315 main ()
9317 int n = MAP_ANONYMOUS;
9319 return 0;
9321 _ACEOF
9322 if ac_fn_c_try_compile "$LINENO"; then :
9323 gcc_cv_decl_map_anon=yes
9324 else
9325 gcc_cv_decl_map_anon=no
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9330 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9332 if test $gcc_cv_decl_map_anon = no; then
9333 gcc_cv_func_mmap_anon=no
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9336 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9337 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9342 # doesn't give anonymous zeroed pages with the same properties listed
9343 # above for use of /dev/zero.
9344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9345 case "$host_os" in
9346 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9347 gcc_cv_func_mmap_anon=no ;;
9349 gcc_cv_func_mmap_anon=yes;;
9350 esac
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9353 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9357 if test $gcc_cv_func_mmap_file = yes; then
9359 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9362 if test $gcc_cv_func_mmap_dev_zero = yes; then
9364 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9367 if test $gcc_cv_func_mmap_anon = yes; then
9369 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9374 case "${host}" in
9375 *-*-*vms*)
9376 # Under VMS, vfork works very differently than on Unix. The standard test
9377 # won't work, and it isn't easily adaptable. It makes more sense to
9378 # just force it.
9379 ac_cv_func_vfork_works=yes
9381 esac
9382 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9383 if test "x$ac_cv_type_pid_t" = x""yes; then :
9385 else
9387 cat >>confdefs.h <<_ACEOF
9388 #define pid_t int
9389 _ACEOF
9393 for ac_header in vfork.h
9394 do :
9395 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9396 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9397 cat >>confdefs.h <<_ACEOF
9398 #define HAVE_VFORK_H 1
9399 _ACEOF
9402 done
9404 for ac_func in fork vfork
9405 do :
9406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9408 eval as_val=\$$as_ac_var
9409 if test "x$as_val" = x""yes; then :
9410 cat >>confdefs.h <<_ACEOF
9411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9412 _ACEOF
9415 done
9417 if test "x$ac_cv_func_fork" = xyes; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9419 $as_echo_n "checking for working fork... " >&6; }
9420 if test "${ac_cv_func_fork_works+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test "$cross_compiling" = yes; then :
9424 ac_cv_func_fork_works=cross
9425 else
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 $ac_includes_default
9430 main ()
9433 /* By Ruediger Kuhlmann. */
9434 return fork () < 0;
9437 return 0;
9439 _ACEOF
9440 if ac_fn_c_try_run "$LINENO"; then :
9441 ac_cv_func_fork_works=yes
9442 else
9443 ac_cv_func_fork_works=no
9445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9446 conftest.$ac_objext conftest.beam conftest.$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9451 $as_echo "$ac_cv_func_fork_works" >&6; }
9453 else
9454 ac_cv_func_fork_works=$ac_cv_func_fork
9456 if test "x$ac_cv_func_fork_works" = xcross; then
9457 case $host in
9458 *-*-amigaos* | *-*-msdosdjgpp*)
9459 # Override, as these systems have only a dummy fork() stub
9460 ac_cv_func_fork_works=no
9463 ac_cv_func_fork_works=yes
9465 esac
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9467 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9469 ac_cv_func_vfork_works=$ac_cv_func_vfork
9470 if test "x$ac_cv_func_vfork" = xyes; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9472 $as_echo_n "checking for working vfork... " >&6; }
9473 if test "${ac_cv_func_vfork_works+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 if test "$cross_compiling" = yes; then :
9477 ac_cv_func_vfork_works=cross
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 /* Thanks to Paul Eggert for this test. */
9482 $ac_includes_default
9483 #include <sys/wait.h>
9484 #ifdef HAVE_VFORK_H
9485 # include <vfork.h>
9486 #endif
9487 /* On some sparc systems, changes by the child to local and incoming
9488 argument registers are propagated back to the parent. The compiler
9489 is told about this with #include <vfork.h>, but some compilers
9490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9491 static variable whose address is put into a register that is
9492 clobbered by the vfork. */
9493 static void
9494 #ifdef __cplusplus
9495 sparc_address_test (int arg)
9496 # else
9497 sparc_address_test (arg) int arg;
9498 #endif
9500 static pid_t child;
9501 if (!child) {
9502 child = vfork ();
9503 if (child < 0) {
9504 perror ("vfork");
9505 _exit(2);
9507 if (!child) {
9508 arg = getpid();
9509 write(-1, "", 0);
9510 _exit (arg);
9516 main ()
9518 pid_t parent = getpid ();
9519 pid_t child;
9521 sparc_address_test (0);
9523 child = vfork ();
9525 if (child == 0) {
9526 /* Here is another test for sparc vfork register problems. This
9527 test uses lots of local variables, at least as many local
9528 variables as main has allocated so far including compiler
9529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9531 reuse the register of parent for one of the local variables,
9532 since it will think that parent can't possibly be used any more
9533 in this routine. Assigning to the local variable will thus
9534 munge parent in the parent process. */
9535 pid_t
9536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9538 /* Convince the compiler that p..p7 are live; otherwise, it might
9539 use the same hardware register for all 8 local variables. */
9540 if (p != p1 || p != p2 || p != p3 || p != p4
9541 || p != p5 || p != p6 || p != p7)
9542 _exit(1);
9544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9545 from child file descriptors. If the child closes a descriptor
9546 before it execs or exits, this munges the parent's descriptor
9547 as well. Test for this by closing stdout in the child. */
9548 _exit(close(fileno(stdout)) != 0);
9549 } else {
9550 int status;
9551 struct stat st;
9553 while (wait(&status) != child)
9555 return (
9556 /* Was there some problem with vforking? */
9557 child < 0
9559 /* Did the child fail? (This shouldn't happen.) */
9560 || status
9562 /* Did the vfork/compiler bug occur? */
9563 || parent != getpid()
9565 /* Did the file descriptor bug occur? */
9566 || fstat(fileno(stdout), &st) != 0
9570 _ACEOF
9571 if ac_fn_c_try_run "$LINENO"; then :
9572 ac_cv_func_vfork_works=yes
9573 else
9574 ac_cv_func_vfork_works=no
9576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9577 conftest.$ac_objext conftest.beam conftest.$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9582 $as_echo "$ac_cv_func_vfork_works" >&6; }
9585 if test "x$ac_cv_func_fork_works" = xcross; then
9586 ac_cv_func_vfork_works=$ac_cv_func_vfork
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9588 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9591 if test "x$ac_cv_func_vfork_works" = xyes; then
9593 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9595 else
9597 $as_echo "#define vfork fork" >>confdefs.h
9600 if test "x$ac_cv_func_fork_works" = xyes; then
9602 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9607 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9608 # iconv() prototype.
9609 ac_ext=cpp
9610 ac_cpp='$CXXCPP $CPPFLAGS'
9611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9616 if test "X$prefix" = "XNONE"; then
9617 acl_final_prefix="$ac_default_prefix"
9618 else
9619 acl_final_prefix="$prefix"
9621 if test "X$exec_prefix" = "XNONE"; then
9622 acl_final_exec_prefix='${prefix}'
9623 else
9624 acl_final_exec_prefix="$exec_prefix"
9626 acl_save_prefix="$prefix"
9627 prefix="$acl_final_prefix"
9628 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9629 prefix="$acl_save_prefix"
9632 # Check whether --with-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then :
9634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9635 else
9636 with_gnu_ld=no
9639 # Prepare PATH_SEPARATOR.
9640 # The user is always right.
9641 if test "${PATH_SEPARATOR+set}" != set; then
9642 echo "#! /bin/sh" >conf$$.sh
9643 echo "exit 0" >>conf$$.sh
9644 chmod +x conf$$.sh
9645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9646 PATH_SEPARATOR=';'
9647 else
9648 PATH_SEPARATOR=:
9650 rm -f conf$$.sh
9652 ac_prog=ld
9653 if test "$GCC" = yes; then
9654 # Check if gcc -print-prog-name=ld gives a path.
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9656 $as_echo_n "checking for ld used by GCC... " >&6; }
9657 case $host in
9658 *-*-mingw*)
9659 # gcc leaves a trailing carriage return which upsets mingw
9660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9663 esac
9664 case $ac_prog in
9665 # Accept absolute paths.
9666 [\\/]* | [A-Za-z]:[\\/]*)
9667 re_direlt='/[^/][^/]*/\.\./'
9668 # Canonicalize the path of ld
9669 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9670 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9671 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9672 done
9673 test -z "$LD" && LD="$ac_prog"
9676 # If it fails, then pretend we aren't using GCC.
9677 ac_prog=ld
9680 # If it is relative, then search for the first ld in PATH.
9681 with_gnu_ld=unknown
9683 esac
9684 elif test "$with_gnu_ld" = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9686 $as_echo_n "checking for GNU ld... " >&6; }
9687 else
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9689 $as_echo_n "checking for non-GNU ld... " >&6; }
9691 if test "${acl_cv_path_LD+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 if test -z "$LD"; then
9695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9696 for ac_dir in $PATH; do
9697 test -z "$ac_dir" && ac_dir=.
9698 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9699 acl_cv_path_LD="$ac_dir/$ac_prog"
9700 # Check to see if the program is GNU ld. I'd rather use --version,
9701 # but apparently some GNU ld's only accept -v.
9702 # Break only if it was the GNU/non-GNU ld that we prefer.
9703 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9704 test "$with_gnu_ld" != no && break
9705 else
9706 test "$with_gnu_ld" != yes && break
9709 done
9710 IFS="$ac_save_ifs"
9711 else
9712 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9716 LD="$acl_cv_path_LD"
9717 if test -n "$LD"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9719 $as_echo "$LD" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9724 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9727 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9731 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9732 acl_cv_prog_gnu_ld=yes
9733 else
9734 acl_cv_prog_gnu_ld=no
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9738 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9739 with_gnu_ld=$acl_cv_prog_gnu_ld
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9744 $as_echo_n "checking for shared library run path origin... " >&6; }
9745 if test "${acl_cv_rpath+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9749 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9750 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9751 . ./conftest.sh
9752 rm -f ./conftest.sh
9753 acl_cv_rpath=done
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9757 $as_echo "$acl_cv_rpath" >&6; }
9758 wl="$acl_cv_wl"
9759 libext="$acl_cv_libext"
9760 shlibext="$acl_cv_shlibext"
9761 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9762 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9763 hardcode_direct="$acl_cv_hardcode_direct"
9764 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9765 # Check whether --enable-rpath was given.
9766 if test "${enable_rpath+set}" = set; then :
9767 enableval=$enable_rpath; :
9768 else
9769 enable_rpath=yes
9779 use_additional=yes
9781 acl_save_prefix="$prefix"
9782 prefix="$acl_final_prefix"
9783 acl_save_exec_prefix="$exec_prefix"
9784 exec_prefix="$acl_final_exec_prefix"
9786 eval additional_includedir=\"$includedir\"
9787 eval additional_libdir=\"$libdir\"
9789 exec_prefix="$acl_save_exec_prefix"
9790 prefix="$acl_save_prefix"
9793 # Check whether --with-libiconv-prefix was given.
9794 if test "${with_libiconv_prefix+set}" = set; then :
9795 withval=$with_libiconv_prefix;
9796 if test "X$withval" = "Xno"; then
9797 use_additional=no
9798 else
9799 if test "X$withval" = "X"; then
9801 acl_save_prefix="$prefix"
9802 prefix="$acl_final_prefix"
9803 acl_save_exec_prefix="$exec_prefix"
9804 exec_prefix="$acl_final_exec_prefix"
9806 eval additional_includedir=\"$includedir\"
9807 eval additional_libdir=\"$libdir\"
9809 exec_prefix="$acl_save_exec_prefix"
9810 prefix="$acl_save_prefix"
9812 else
9813 additional_includedir="$withval/include"
9814 additional_libdir="$withval/lib"
9820 LIBICONV=
9821 LTLIBICONV=
9822 INCICONV=
9823 rpathdirs=
9824 ltrpathdirs=
9825 names_already_handled=
9826 names_next_round='iconv '
9827 while test -n "$names_next_round"; do
9828 names_this_round="$names_next_round"
9829 names_next_round=
9830 for name in $names_this_round; do
9831 already_handled=
9832 for n in $names_already_handled; do
9833 if test "$n" = "$name"; then
9834 already_handled=yes
9835 break
9837 done
9838 if test -z "$already_handled"; then
9839 names_already_handled="$names_already_handled $name"
9840 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9841 eval value=\"\$HAVE_LIB$uppername\"
9842 if test -n "$value"; then
9843 if test "$value" = yes; then
9844 eval value=\"\$LIB$uppername\"
9845 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9846 eval value=\"\$LTLIB$uppername\"
9847 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9848 else
9851 else
9852 found_dir=
9853 found_la=
9854 found_so=
9855 found_a=
9856 if test $use_additional = yes; then
9857 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9858 found_dir="$additional_libdir"
9859 found_so="$additional_libdir/lib$name.$shlibext"
9860 if test -f "$additional_libdir/lib$name.la"; then
9861 found_la="$additional_libdir/lib$name.la"
9863 else
9864 if test -f "$additional_libdir/lib$name.$libext"; then
9865 found_dir="$additional_libdir"
9866 found_a="$additional_libdir/lib$name.$libext"
9867 if test -f "$additional_libdir/lib$name.la"; then
9868 found_la="$additional_libdir/lib$name.la"
9873 if test "X$found_dir" = "X"; then
9874 for x in $LDFLAGS $LTLIBICONV; do
9876 acl_save_prefix="$prefix"
9877 prefix="$acl_final_prefix"
9878 acl_save_exec_prefix="$exec_prefix"
9879 exec_prefix="$acl_final_exec_prefix"
9880 eval x=\"$x\"
9881 exec_prefix="$acl_save_exec_prefix"
9882 prefix="$acl_save_prefix"
9884 case "$x" in
9885 -L*)
9886 dir=`echo "X$x" | sed -e 's/^X-L//'`
9887 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9888 found_dir="$dir"
9889 found_so="$dir/lib$name.$shlibext"
9890 if test -f "$dir/lib$name.la"; then
9891 found_la="$dir/lib$name.la"
9893 else
9894 if test -f "$dir/lib$name.$libext"; then
9895 found_dir="$dir"
9896 found_a="$dir/lib$name.$libext"
9897 if test -f "$dir/lib$name.la"; then
9898 found_la="$dir/lib$name.la"
9903 esac
9904 if test "X$found_dir" != "X"; then
9905 break
9907 done
9909 if test "X$found_dir" != "X"; then
9910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9911 if test "X$found_so" != "X"; then
9912 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9914 else
9915 haveit=
9916 for x in $ltrpathdirs; do
9917 if test "X$x" = "X$found_dir"; then
9918 haveit=yes
9919 break
9921 done
9922 if test -z "$haveit"; then
9923 ltrpathdirs="$ltrpathdirs $found_dir"
9925 if test "$hardcode_direct" = yes; then
9926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9927 else
9928 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9930 haveit=
9931 for x in $rpathdirs; do
9932 if test "X$x" = "X$found_dir"; then
9933 haveit=yes
9934 break
9936 done
9937 if test -z "$haveit"; then
9938 rpathdirs="$rpathdirs $found_dir"
9940 else
9941 haveit=
9942 for x in $LDFLAGS $LIBICONV; do
9944 acl_save_prefix="$prefix"
9945 prefix="$acl_final_prefix"
9946 acl_save_exec_prefix="$exec_prefix"
9947 exec_prefix="$acl_final_exec_prefix"
9948 eval x=\"$x\"
9949 exec_prefix="$acl_save_exec_prefix"
9950 prefix="$acl_save_prefix"
9952 if test "X$x" = "X-L$found_dir"; then
9953 haveit=yes
9954 break
9956 done
9957 if test -z "$haveit"; then
9958 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9960 if test "$hardcode_minus_L" != no; then
9961 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9962 else
9963 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9968 else
9969 if test "X$found_a" != "X"; then
9970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9971 else
9972 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9975 additional_includedir=
9976 case "$found_dir" in
9977 */lib | */lib/)
9978 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9979 additional_includedir="$basedir/include"
9981 esac
9982 if test "X$additional_includedir" != "X"; then
9983 if test "X$additional_includedir" != "X/usr/include"; then
9984 haveit=
9985 if test "X$additional_includedir" = "X/usr/local/include"; then
9986 if test -n "$GCC"; then
9987 case $host_os in
9988 linux*) haveit=yes;;
9989 esac
9992 if test -z "$haveit"; then
9993 for x in $CPPFLAGS $INCICONV; do
9995 acl_save_prefix="$prefix"
9996 prefix="$acl_final_prefix"
9997 acl_save_exec_prefix="$exec_prefix"
9998 exec_prefix="$acl_final_exec_prefix"
9999 eval x=\"$x\"
10000 exec_prefix="$acl_save_exec_prefix"
10001 prefix="$acl_save_prefix"
10003 if test "X$x" = "X-I$additional_includedir"; then
10004 haveit=yes
10005 break
10007 done
10008 if test -z "$haveit"; then
10009 if test -d "$additional_includedir"; then
10010 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10016 if test -n "$found_la"; then
10017 save_libdir="$libdir"
10018 case "$found_la" in
10019 */* | *\\*) . "$found_la" ;;
10020 *) . "./$found_la" ;;
10021 esac
10022 libdir="$save_libdir"
10023 for dep in $dependency_libs; do
10024 case "$dep" in
10025 -L*)
10026 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10027 if test "X$additional_libdir" != "X/usr/lib"; then
10028 haveit=
10029 if test "X$additional_libdir" = "X/usr/local/lib"; then
10030 if test -n "$GCC"; then
10031 case $host_os in
10032 linux*) haveit=yes;;
10033 esac
10036 if test -z "$haveit"; then
10037 haveit=
10038 for x in $LDFLAGS $LIBICONV; do
10040 acl_save_prefix="$prefix"
10041 prefix="$acl_final_prefix"
10042 acl_save_exec_prefix="$exec_prefix"
10043 exec_prefix="$acl_final_exec_prefix"
10044 eval x=\"$x\"
10045 exec_prefix="$acl_save_exec_prefix"
10046 prefix="$acl_save_prefix"
10048 if test "X$x" = "X-L$additional_libdir"; then
10049 haveit=yes
10050 break
10052 done
10053 if test -z "$haveit"; then
10054 if test -d "$additional_libdir"; then
10055 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10058 haveit=
10059 for x in $LDFLAGS $LTLIBICONV; do
10061 acl_save_prefix="$prefix"
10062 prefix="$acl_final_prefix"
10063 acl_save_exec_prefix="$exec_prefix"
10064 exec_prefix="$acl_final_exec_prefix"
10065 eval x=\"$x\"
10066 exec_prefix="$acl_save_exec_prefix"
10067 prefix="$acl_save_prefix"
10069 if test "X$x" = "X-L$additional_libdir"; then
10070 haveit=yes
10071 break
10073 done
10074 if test -z "$haveit"; then
10075 if test -d "$additional_libdir"; then
10076 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10082 -R*)
10083 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10084 if test "$enable_rpath" != no; then
10085 haveit=
10086 for x in $rpathdirs; do
10087 if test "X$x" = "X$dir"; then
10088 haveit=yes
10089 break
10091 done
10092 if test -z "$haveit"; then
10093 rpathdirs="$rpathdirs $dir"
10095 haveit=
10096 for x in $ltrpathdirs; do
10097 if test "X$x" = "X$dir"; then
10098 haveit=yes
10099 break
10101 done
10102 if test -z "$haveit"; then
10103 ltrpathdirs="$ltrpathdirs $dir"
10107 -l*)
10108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10110 *.la)
10111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10114 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10117 esac
10118 done
10120 else
10121 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10122 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10126 done
10127 done
10128 if test "X$rpathdirs" != "X"; then
10129 if test -n "$hardcode_libdir_separator"; then
10130 alldirs=
10131 for found_dir in $rpathdirs; do
10132 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10133 done
10134 acl_save_libdir="$libdir"
10135 libdir="$alldirs"
10136 eval flag=\"$hardcode_libdir_flag_spec\"
10137 libdir="$acl_save_libdir"
10138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10139 else
10140 for found_dir in $rpathdirs; do
10141 acl_save_libdir="$libdir"
10142 libdir="$found_dir"
10143 eval flag=\"$hardcode_libdir_flag_spec\"
10144 libdir="$acl_save_libdir"
10145 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10146 done
10149 if test "X$ltrpathdirs" != "X"; then
10150 for found_dir in $ltrpathdirs; do
10151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10152 done
10161 am_save_CPPFLAGS="$CPPFLAGS"
10163 for element in $INCICONV; do
10164 haveit=
10165 for x in $CPPFLAGS; do
10167 acl_save_prefix="$prefix"
10168 prefix="$acl_final_prefix"
10169 acl_save_exec_prefix="$exec_prefix"
10170 exec_prefix="$acl_final_exec_prefix"
10171 eval x=\"$x\"
10172 exec_prefix="$acl_save_exec_prefix"
10173 prefix="$acl_save_prefix"
10175 if test "X$x" = "X$element"; then
10176 haveit=yes
10177 break
10179 done
10180 if test -z "$haveit"; then
10181 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10183 done
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10187 $as_echo_n "checking for iconv... " >&6; }
10188 if test "${am_cv_func_iconv+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10192 am_cv_func_iconv="no, consider installing GNU libiconv"
10193 am_cv_lib_iconv=no
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <stdlib.h>
10197 #include <iconv.h>
10199 main ()
10201 iconv_t cd = iconv_open("","");
10202 iconv(cd,NULL,NULL,NULL,NULL);
10203 iconv_close(cd);
10205 return 0;
10207 _ACEOF
10208 if ac_fn_cxx_try_link "$LINENO"; then :
10209 am_cv_func_iconv=yes
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 if test "$am_cv_func_iconv" != yes; then
10214 am_save_LIBS="$LIBS"
10215 LIBS="$LIBS $LIBICONV"
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_lib_iconv=yes
10232 am_cv_func_iconv=yes
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 LIBS="$am_save_LIBS"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10241 $as_echo "$am_cv_func_iconv" >&6; }
10242 if test "$am_cv_func_iconv" = yes; then
10244 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10247 if test "$am_cv_lib_iconv" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10249 $as_echo_n "checking how to link with libiconv... " >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10251 $as_echo "$LIBICONV" >&6; }
10252 else
10253 CPPFLAGS="$am_save_CPPFLAGS"
10254 LIBICONV=
10255 LTLIBICONV=
10260 if test "$am_cv_func_iconv" = yes; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10262 $as_echo_n "checking for iconv declaration... " >&6; }
10263 if test "${am_cv_proto_iconv+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10270 #include <stdlib.h>
10271 #include <iconv.h>
10272 extern
10273 #ifdef __cplusplus
10275 #endif
10276 #if defined(__STDC__) || defined(__cplusplus)
10277 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10278 #else
10279 size_t iconv();
10280 #endif
10283 main ()
10287 return 0;
10289 _ACEOF
10290 if ac_fn_cxx_try_compile "$LINENO"; then :
10291 am_cv_proto_iconv_arg1=""
10292 else
10293 am_cv_proto_iconv_arg1="const"
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 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);"
10299 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10301 }$am_cv_proto_iconv" >&5
10302 $as_echo "${ac_t:-
10303 }$am_cv_proto_iconv" >&6; }
10305 cat >>confdefs.h <<_ACEOF
10306 #define ICONV_CONST $am_cv_proto_iconv_arg1
10307 _ACEOF
10311 ac_ext=c
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318 # Until we have in-tree GNU iconv:
10319 LIBICONV_DEP=
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10324 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10325 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #include <locale.h>
10332 main ()
10334 return LC_MESSAGES
10336 return 0;
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 am_cv_val_LC_MESSAGES=yes
10341 else
10342 am_cv_val_LC_MESSAGES=no
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10348 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10349 if test $am_cv_val_LC_MESSAGES = yes; then
10351 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10358 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10359 if test "${am_cv_langinfo_codeset+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 #include <langinfo.h>
10366 main ()
10368 char* cs = nl_langinfo(CODESET);
10370 return 0;
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374 am_cv_langinfo_codeset=yes
10375 else
10376 am_cv_langinfo_codeset=no
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10383 $as_echo "$am_cv_langinfo_codeset" >&6; }
10384 if test $am_cv_langinfo_codeset = yes; then
10386 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10391 # We will need to find libiberty.h and ansidecl.h
10392 saved_CFLAGS="$CFLAGS"
10393 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10394 saved_CXXFLAGS="$CXXFLAGS"
10395 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10396 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10397 strsignal strstr stpcpy strverscmp \
10398 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10399 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
10401 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10403 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10404 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409 #undef $ac_tr_decl
10410 #define $ac_tr_decl 1
10412 #include "ansidecl.h"
10413 #include "system.h"
10416 main ()
10418 #ifndef $ac_func
10419 char *(*pfn) = (char *(*)) $ac_func ;
10420 #endif
10422 return 0;
10424 _ACEOF
10425 if ac_fn_c_try_compile "$LINENO"; then :
10426 eval "gcc_cv_have_decl_$ac_func=yes"
10427 else
10428 eval "gcc_cv_have_decl_$ac_func=no"
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10436 #define $ac_tr_decl 1
10437 _ACEOF
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10442 #define $ac_tr_decl 0
10443 _ACEOF
10447 done
10450 for ac_func in getrlimit setrlimit getrusage
10452 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10454 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10455 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 #undef $ac_tr_decl
10461 #define $ac_tr_decl 1
10463 #include "ansidecl.h"
10464 #include "system.h"
10465 #ifdef HAVE_SYS_RESOURCE_H
10466 #include <sys/resource.h>
10467 #endif
10471 main ()
10473 #ifndef $ac_func
10474 char *(*pfn) = (char *(*)) $ac_func ;
10475 #endif
10477 return 0;
10479 _ACEOF
10480 if ac_fn_c_try_compile "$LINENO"; then :
10481 eval "gcc_cv_have_decl_$ac_func=yes"
10482 else
10483 eval "gcc_cv_have_decl_$ac_func=no"
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10488 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10491 #define $ac_tr_decl 1
10492 _ACEOF
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10497 #define $ac_tr_decl 0
10498 _ACEOF
10502 done
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 #include "ansidecl.h"
10509 #include "system.h"
10510 #ifdef HAVE_SYS_RESOURCE_H
10511 #include <sys/resource.h>
10512 #endif
10515 main ()
10517 rlim_t l = 0;
10519 return 0;
10521 _ACEOF
10522 if ac_fn_c_try_compile "$LINENO"; then :
10524 else
10526 $as_echo "#define rlim_t long" >>confdefs.h
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10532 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10533 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10534 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10535 for ac_func in ldgetname
10537 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10540 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #undef $ac_tr_decl
10546 #define $ac_tr_decl 1
10548 #include "ansidecl.h"
10549 #include "system.h"
10550 #ifdef HAVE_LDFCN_H
10551 #undef FREAD
10552 #undef FWRITE
10553 #include <ldfcn.h>
10554 #endif
10558 main ()
10560 #ifndef $ac_func
10561 char *(*pfn) = (char *(*)) $ac_func ;
10562 #endif
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10569 else
10570 eval "gcc_cv_have_decl_$ac_func=no"
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10578 #define $ac_tr_decl 1
10579 _ACEOF
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10584 #define $ac_tr_decl 0
10585 _ACEOF
10589 done
10592 for ac_func in times
10594 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10596 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10597 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 #undef $ac_tr_decl
10603 #define $ac_tr_decl 1
10605 #include "ansidecl.h"
10606 #include "system.h"
10607 #ifdef HAVE_SYS_TIMES_H
10608 #include <sys/times.h>
10609 #endif
10613 main ()
10615 #ifndef $ac_func
10616 char *(*pfn) = (char *(*)) $ac_func ;
10617 #endif
10619 return 0;
10621 _ACEOF
10622 if ac_fn_c_try_compile "$LINENO"; then :
10623 eval "gcc_cv_have_decl_$ac_func=yes"
10624 else
10625 eval "gcc_cv_have_decl_$ac_func=no"
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10633 #define $ac_tr_decl 1
10634 _ACEOF
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10639 #define $ac_tr_decl 0
10640 _ACEOF
10644 done
10647 for ac_func in sigaltstack
10649 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10651 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10652 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #undef $ac_tr_decl
10658 #define $ac_tr_decl 1
10660 #include "ansidecl.h"
10661 #include "system.h"
10662 #include <signal.h>
10666 main ()
10668 #ifndef $ac_func
10669 char *(*pfn) = (char *(*)) $ac_func ;
10670 #endif
10672 return 0;
10674 _ACEOF
10675 if ac_fn_c_try_compile "$LINENO"; then :
10676 eval "gcc_cv_have_decl_$ac_func=yes"
10677 else
10678 eval "gcc_cv_have_decl_$ac_func=no"
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 1
10687 _ACEOF
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10692 #define $ac_tr_decl 0
10693 _ACEOF
10697 done
10700 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10701 # prototype.
10702 ac_ext=cpp
10703 ac_cpp='$CXXCPP $CPPFLAGS'
10704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10708 for ac_func in madvise
10710 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10713 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #undef $ac_tr_decl
10719 #define $ac_tr_decl 1
10721 #include "ansidecl.h"
10722 #include "system.h"
10726 main ()
10728 #ifndef $ac_func
10729 char *(*pfn) = (char *(*)) $ac_func ;
10730 #endif
10732 return 0;
10734 _ACEOF
10735 if ac_fn_cxx_try_compile "$LINENO"; then :
10736 eval "gcc_cv_have_decl_$ac_func=yes"
10737 else
10738 eval "gcc_cv_have_decl_$ac_func=no"
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10745 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10746 #define $ac_tr_decl 1
10747 _ACEOF
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10752 #define $ac_tr_decl 0
10753 _ACEOF
10757 done
10759 ac_ext=c
10760 ac_cpp='$CPP $CPPFLAGS'
10761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10766 # More time-related stuff.
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10768 $as_echo_n "checking for struct tms... " >&6; }
10769 if test "${ac_cv_struct_tms+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 #include "ansidecl.h"
10777 #include "system.h"
10778 #ifdef HAVE_SYS_TIMES_H
10779 #include <sys/times.h>
10780 #endif
10783 main ()
10785 struct tms tms;
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"; then :
10791 ac_cv_struct_tms=yes
10792 else
10793 ac_cv_struct_tms=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10798 $as_echo "$ac_cv_struct_tms" >&6; }
10799 if test $ac_cv_struct_tms = yes; then
10801 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10805 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10806 # revisit after autoconf 2.50.
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10808 $as_echo_n "checking for clock_t... " >&6; }
10809 if test "${gcc_cv_type_clock_t+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10816 #include "ansidecl.h"
10817 #include "system.h"
10820 main ()
10822 clock_t x;
10824 return 0;
10826 _ACEOF
10827 if ac_fn_c_try_compile "$LINENO"; then :
10828 gcc_cv_type_clock_t=yes
10829 else
10830 gcc_cv_type_clock_t=no
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10835 $as_echo "$gcc_cv_type_clock_t" >&6; }
10836 if test $gcc_cv_type_clock_t = yes; then
10838 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10842 # Check if F_SETLKW is supported by fcntl.
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10844 $as_echo_n "checking for F_SETLKW... " >&6; }
10845 if test "${ac_cv_f_setlkw+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 #include <fcntl.h>
10854 main ()
10857 struct flock fl;
10858 fl.l_whence = 0;
10859 fl.l_start = 0;
10860 fl.l_len = 0;
10861 fl.l_pid = 0;
10862 return fcntl (1, F_SETLKW, &fl);
10864 return 0;
10866 _ACEOF
10867 if ac_fn_c_try_compile "$LINENO"; then :
10868 ac_cv_f_setlkw=yes
10869 else
10870 ac_cv_f_setlkw=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10875 $as_echo "$ac_cv_f_setlkw" >&6; }
10876 if test $ac_cv_f_setlkw = yes; then
10878 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10882 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10883 CFLAGS="$saved_CFLAGS"
10884 CXXFLAGS="$saved_CXXFLAGS"
10886 # mkdir takes a single argument on some systems.
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10888 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10889 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 #include <sys/types.h>
10896 #ifdef HAVE_SYS_STAT_H
10897 # include <sys/stat.h>
10898 #endif
10899 #ifdef HAVE_UNISTD_H
10900 # include <unistd.h>
10901 #endif
10902 #ifdef HAVE_DIRECT_H
10903 # include <direct.h>
10904 #endif
10906 main ()
10908 mkdir ("foo", 0);
10910 return 0;
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"; then :
10914 gcc_cv_mkdir_takes_one_arg=no
10915 else
10916 gcc_cv_mkdir_takes_one_arg=yes
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10921 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10922 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10924 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10929 # File extensions
10930 manext='.1'
10931 objext='.o'
10935 # With Setjmp/Longjmp based exception handling.
10936 # Check whether --enable-sjlj-exceptions was given.
10937 if test "${enable_sjlj_exceptions+set}" = set; then :
10938 enableval=$enable_sjlj_exceptions; case $target in
10939 *-*-hpux10*)
10940 if test $enableval != yes; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10942 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10943 enableval=yes
10946 esac
10947 force_sjlj_exceptions=yes
10948 else
10949 case $target in
10950 *-*-hpux10*)
10951 force_sjlj_exceptions=yes
10952 enableval=yes
10955 force_sjlj_exceptions=no
10957 esac
10960 if test $force_sjlj_exceptions = yes; then
10961 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10963 cat >>confdefs.h <<_ACEOF
10964 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10965 _ACEOF
10969 # --------------------------------------------------------
10970 # Build, host, and target specific configuration fragments
10971 # --------------------------------------------------------
10973 # Collect build-machine-specific information.
10974 . ${srcdir}/config.build
10976 # Collect host-machine-specific information.
10977 . ${srcdir}/config.host
10979 target_gtfiles=
10981 # Collect target-machine-specific information.
10982 . ${srcdir}/config.gcc
10984 extra_objs="${host_extra_objs} ${extra_objs}"
10985 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10987 # Default the target-machine variables that were not explicitly set.
10988 if test x"$tm_file" = x
10989 then tm_file=$cpu_type/$cpu_type.h; fi
10991 if test x"$extra_headers" = x
10992 then extra_headers=; fi
10994 if test x$md_file = x
10995 then md_file=$cpu_type/$cpu_type.md; fi
10997 if test x$out_file = x
10998 then out_file=$cpu_type/$cpu_type.c; fi
11000 if test x"$tmake_file" = x
11001 then tmake_file=$cpu_type/t-$cpu_type
11004 # Support --enable-initfini-array.
11005 if test x$enable_initfini_array != xno; then
11006 tm_file="${tm_file} initfini-array.h"
11009 if test x"$dwarf2" = xyes
11010 then tm_file="$tm_file tm-dwarf2.h"
11013 # Say what files are being used for the output code and MD file.
11014 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11015 echo "Using \`$srcdir/config/$md_file' as machine description file."
11017 # If any of the xm_file variables contain nonexistent files, warn
11018 # about them and drop them.
11021 for x in $build_xm_file; do
11022 if test -f $srcdir/config/$x
11023 then bx="$bx $x"
11024 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11025 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11027 done
11028 build_xm_file="$bx"
11031 for x in $host_xm_file; do
11032 if test -f $srcdir/config/$x
11033 then hx="$hx $x"
11034 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11035 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11037 done
11038 host_xm_file="$hx"
11041 for x in $xm_file; do
11042 if test -f $srcdir/config/$x
11043 then tx="$tx $x"
11044 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11045 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11047 done
11048 xm_file="$tx"
11050 count=a
11051 for f in $tm_file; do
11052 count=${count}x
11053 done
11054 if test $count = ax; then
11055 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11056 else
11057 echo "Using the following target machine macro files:"
11058 for f in $tm_file; do
11059 echo " $srcdir/config/$f"
11060 done
11063 if test x$need_64bit_hwint = xyes; then
11065 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11069 if test x$use_long_long_for_widest_fast_int = xyes; then
11071 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11075 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_GNU_LD $gnu_ld_bool
11079 _ACEOF
11082 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11084 cat >>confdefs.h <<_ACEOF
11085 #define HAVE_GNU_AS $gnu_as_bool
11086 _ACEOF
11089 count=a
11090 for f in $host_xm_file; do
11091 count=${count}x
11092 done
11093 if test $count = a; then
11095 elif test $count = ax; then
11096 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11097 else
11098 echo "Using the following host machine macro files:"
11099 for f in $host_xm_file; do
11100 echo " $srcdir/config/$f"
11101 done
11103 echo "Using ${out_host_hook_obj} for host machine hooks."
11105 if test "$host_xm_file" != "$build_xm_file"; then
11106 count=a
11107 for f in $build_xm_file; do
11108 count=${count}x
11109 done
11110 if test $count = a; then
11112 elif test $count = ax; then
11113 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11114 else
11115 echo "Using the following build machine macro files:"
11116 for f in $build_xm_file; do
11117 echo " $srcdir/config/$f"
11118 done
11122 if test -n "$configured_native_system_header_dir"; then
11123 native_system_header_dir=$configured_native_system_header_dir
11125 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11128 case ${host} in
11129 powerpc*-*-darwin*)
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11131 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11132 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 #include <sys/cdefs.h>
11139 #include <sys/signal.h>
11140 #include <ucontext.h>
11141 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11143 _ACEOF
11144 if ac_fn_c_try_compile "$LINENO"; then :
11145 gcc_cv_mcontext_underscores=no
11146 else
11147 gcc_cv_mcontext_underscores=yes
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11152 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11153 if test $gcc_cv_mcontext_underscores = yes; then
11155 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11159 esac
11161 # ---------
11162 # Threading
11163 # ---------
11165 # Check if a valid thread package
11166 case ${enable_threads} in
11167 "" | no)
11168 # No threads
11169 target_thread_file='single'
11171 yes)
11172 # default
11173 target_thread_file='single'
11175 aix | dce | lynx | mipssde | posix | rtems | \
11176 single | tpf | vxworks | win32)
11177 target_thread_file=${enable_threads}
11180 echo "${enable_threads} is an unknown thread package" 1>&2
11181 exit 1
11183 esac
11185 if test x${thread_file} = x; then
11186 # No thread file set by target-specific clauses in config.gcc,
11187 # so use file chosen by default logic above
11188 thread_file=${target_thread_file}
11191 # --------
11192 # UNSORTED
11193 # --------
11195 use_cxa_atexit=no
11196 if test x$enable___cxa_atexit = xyes || \
11197 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11198 if test x$host = x$target; then
11199 case $host in
11200 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11201 # keyed to flag_use_cxa_atexit
11202 *-*-mingw32*)
11203 use_cxa_atexit=yes
11205 powerpc-ibm-aix*)
11206 use_cxa_atexit=yes
11209 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11210 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11211 use_cxa_atexit=yes
11212 else
11213 echo "__cxa_atexit can't be enabled on this target"
11217 esac
11218 else
11219 # We can't check for __cxa_atexit when building a cross, so assume
11220 # it is available
11221 use_cxa_atexit=yes
11223 if test x$use_cxa_atexit = xyes; then
11225 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11230 # Look for a file containing extra machine modes.
11231 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11232 extra_modes_file='$(srcdir)'/config/${extra_modes}
11235 cat >>confdefs.h <<_ACEOF
11236 #define EXTRA_MODES_FILE "config/$extra_modes"
11237 _ACEOF
11241 # Convert extra_options into a form suitable for Makefile use.
11242 extra_opt_files=
11243 all_opt_files=
11244 for f in $extra_options; do
11245 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11246 all_opt_files="$all_opt_files $srcdir/config/$f"
11247 done
11250 # auto-host.h is the file containing items generated by autoconf and is
11251 # the first file included by config.h.
11252 # If host=build, it is correct to have bconfig include auto-host.h
11253 # as well. If host!=build, we are in error and need to do more
11254 # work to find out the build config parameters.
11255 if test x$host = x$build
11256 then
11257 build_auto=auto-host.h
11258 else
11259 # We create a subdir, then run autoconf in the subdir.
11260 # To prevent recursion we set host and build for the new
11261 # invocation of configure to the build for this invocation
11262 # of configure.
11263 tempdir=build.$$
11264 rm -rf $tempdir
11265 mkdir $tempdir
11266 cd $tempdir
11267 case ${srcdir} in
11268 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11269 *) realsrcdir=../${srcdir};;
11270 esac
11271 saved_CFLAGS="${CFLAGS}"
11272 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11273 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11274 ${realsrcdir}/configure \
11275 --enable-languages=${enable_languages-all} \
11276 --target=$target_alias --host=$build_alias --build=$build_alias
11277 CFLAGS="${saved_CFLAGS}"
11279 # We just finished tests for the build machine, so rename
11280 # the file auto-build.h in the gcc directory.
11281 mv auto-host.h ../auto-build.h
11282 cd ..
11283 rm -rf $tempdir
11284 build_auto=auto-build.h
11288 tm_file="${tm_file} defaults.h"
11289 tm_p_file="${tm_p_file} tm-preds.h"
11290 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11291 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11292 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11293 # put this back in temporarily.
11294 xm_file="auto-host.h ansidecl.h ${xm_file}"
11296 # --------
11297 # UNSORTED
11298 # --------
11300 # Compile in configure arguments.
11301 if test -f configargs.h ; then
11302 # Being re-configured.
11303 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11304 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11305 else
11306 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11309 # Double all backslashes and backslash all quotes to turn
11310 # gcc_config_arguments into a C string.
11311 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11312 $gcc_config_arguments
11314 gcc_config_arguments_str=`cat conftest.out`
11315 rm -f conftest.out
11317 cat > configargs.h <<EOF
11318 /* Generated automatically. */
11319 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11320 static const char thread_model[] = "$thread_file";
11322 static const struct {
11323 const char *name, *value;
11324 } configure_default_options[] = $configure_default_options;
11327 gcc_BASEVER=`cat $srcdir/BASE-VER`
11328 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11329 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11330 if test -f $srcdir/REVISION ; then
11331 gcc_REVISION=`cat $srcdir/REVISION`
11332 else
11333 gcc_REVISION=""
11335 cat > plugin-version.h <<EOF
11336 #include "configargs.h"
11338 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11339 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11340 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11341 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11343 static char basever[] = "$gcc_BASEVER";
11344 static char datestamp[] = "$gcc_DATESTAMP";
11345 static char devphase[] = "$gcc_DEVPHASE";
11346 static char revision[] = "$gcc_REVISION";
11348 /* FIXME plugins: We should make the version information more precise.
11349 One way to do is to add a checksum. */
11351 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11352 devphase, revision,
11353 configuration_arguments};
11356 # Internationalization
11357 # If we haven't got the data from the intl directory,
11358 # assume NLS is disabled.
11359 USE_NLS=no
11360 LIBINTL=
11361 LIBINTL_DEP=
11362 INCINTL=
11363 XGETTEXT=
11364 GMSGFMT=
11365 POSUB=
11367 if test -f ../intl/config.intl; then
11368 . ../intl/config.intl
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11371 $as_echo_n "checking whether NLS is requested... " >&6; }
11372 if test x"$USE_NLS" != xyes; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11379 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11383 $as_echo_n "checking for catalogs to be installed... " >&6; }
11384 # Look for .po and .gmo files in the source directory.
11385 CATALOGS=
11386 XLINGUAS=
11387 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11388 # If there aren't any .gmo files the shell will give us the
11389 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11390 # weeded out.
11391 case "$cat" in *\**)
11392 continue;;
11393 esac
11394 # The quadruple backslash is collapsed to a double backslash
11395 # by the backticks, then collapsed again by the double quotes,
11396 # leaving us with one backslash in the sed expression (right
11397 # before the dot that mustn't act as a wildcard).
11398 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11399 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11400 # The user is allowed to set LINGUAS to a list of languages to
11401 # install catalogs for. If it's empty that means "all of them."
11402 if test "x$LINGUAS" = x; then
11403 CATALOGS="$CATALOGS $cat"
11404 XLINGUAS="$XLINGUAS $lang"
11405 else
11406 case "$LINGUAS" in *$lang*)
11407 CATALOGS="$CATALOGS $cat"
11408 XLINGUAS="$XLINGUAS $lang"
11410 esac
11412 done
11413 LINGUAS="$XLINGUAS"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11415 $as_echo "$LINGUAS" >&6; }
11418 DATADIRNAME=share
11420 INSTOBJEXT=.mo
11422 GENCAT=gencat
11424 CATOBJEXT=.gmo
11428 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11429 # -liconv on the link line twice.
11430 case "$LIBINTL" in *$LIBICONV*)
11431 LIBICONV= ;;
11432 esac
11434 # Check whether --enable-secureplt was given.
11435 if test "${enable_secureplt+set}" = set; then :
11436 enableval=$enable_secureplt;
11440 # Check whether --enable-leading-mingw64-underscores was given.
11441 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11442 enableval=$enable_leading_mingw64_underscores;
11445 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11447 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11451 # Check whether --enable-cld was given.
11452 if test "${enable_cld+set}" = set; then :
11453 enableval=$enable_cld;
11454 else
11455 enable_cld=no
11459 # Check whether --enable-frame-pointer was given.
11460 if test "${enable_frame_pointer+set}" = set; then :
11461 enableval=$enable_frame_pointer;
11462 else
11464 case $target_os in
11465 linux* | darwin[8912]*)
11466 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11467 # DWARF2.
11468 enable_frame_pointer=no
11471 enable_frame_pointer=yes
11473 esac
11478 # Windows32 Registry support for specifying GCC installation paths.
11479 # Check whether --enable-win32-registry was given.
11480 if test "${enable_win32_registry+set}" = set; then :
11481 enableval=$enable_win32_registry;
11485 case $host_os in
11486 win32 | pe | cygwin* | mingw32* | uwin*)
11487 if test "x$enable_win32_registry" != xno; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11489 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11490 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_func_search_save_LIBS=$LIBS
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char RegOpenKeyExA ();
11505 main ()
11507 return RegOpenKeyExA ();
11509 return 0;
11511 _ACEOF
11512 for ac_lib in '' advapi32; do
11513 if test -z "$ac_lib"; then
11514 ac_res="none required"
11515 else
11516 ac_res=-l$ac_lib
11517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_search_RegOpenKeyExA=$ac_res
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext
11524 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11525 break
11527 done
11528 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11530 else
11531 ac_cv_search_RegOpenKeyExA=no
11533 rm conftest.$ac_ext
11534 LIBS=$ac_func_search_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11537 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11538 ac_res=$ac_cv_search_RegOpenKeyExA
11539 if test "$ac_res" != no; then :
11540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11542 else
11543 enable_win32_registry=no
11548 if test "x$enable_win32_registry" != xno; then
11550 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11553 if test "x$enable_win32_registry" != xyes \
11554 && test "x$enable_win32_registry" != x; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11558 _ACEOF
11563 esac
11565 # Get an absolute path to the GCC top-level source directory
11566 holddir=`${PWDCMD-pwd}`
11567 cd $srcdir
11568 topdir=`${PWDCMD-pwd}`
11569 cd $holddir
11571 # Conditionalize the makefile for this host machine.
11572 xmake_file=
11573 for f in ${host_xmake_file}
11575 if test -f ${srcdir}/config/$f
11576 then
11577 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11579 done
11581 # Conditionalize the makefile for this target machine.
11582 tmake_file_=
11583 for f in ${tmake_file}
11585 if test -f ${srcdir}/config/$f
11586 then
11587 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11589 done
11590 tmake_file="${tmake_file_}"
11592 out_object_file=`basename $out_file .c`.o
11593 common_out_object_file=`basename $common_out_file .c`.o
11595 tm_file_list="options.h"
11596 tm_include_list="options.h insn-constants.h"
11597 for f in $tm_file; do
11598 case $f in
11599 ./* )
11600 f=`echo $f | sed 's/^..//'`
11601 tm_file_list="${tm_file_list} $f"
11602 tm_include_list="${tm_include_list} $f"
11604 defaults.h )
11605 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11606 tm_include_list="${tm_include_list} $f"
11609 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11610 tm_include_list="${tm_include_list} config/$f"
11612 esac
11613 done
11615 tm_p_file_list=
11616 tm_p_include_list=
11617 for f in $tm_p_file; do
11618 case $f in
11619 tm-preds.h )
11620 tm_p_file_list="${tm_p_file_list} $f"
11621 tm_p_include_list="${tm_p_include_list} $f"
11624 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11625 tm_p_include_list="${tm_p_include_list} config/$f"
11626 esac
11627 done
11629 xm_file_list=
11630 xm_include_list=
11631 for f in $xm_file; do
11632 case $f in
11633 ansidecl.h )
11634 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11635 xm_include_list="${xm_include_list} $f"
11637 auto-host.h )
11638 xm_file_list="${xm_file_list} $f"
11639 xm_include_list="${xm_include_list} $f"
11642 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11643 xm_include_list="${xm_include_list} config/$f"
11645 esac
11646 done
11648 host_xm_file_list=
11649 host_xm_include_list=
11650 for f in $host_xm_file; do
11651 case $f in
11652 ansidecl.h )
11653 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11654 host_xm_include_list="${host_xm_include_list} $f"
11656 auto-host.h )
11657 host_xm_file_list="${host_xm_file_list} $f"
11658 host_xm_include_list="${host_xm_include_list} $f"
11661 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11662 host_xm_include_list="${host_xm_include_list} config/$f"
11664 esac
11665 done
11667 build_xm_file_list=
11668 for f in $build_xm_file; do
11669 case $f in
11670 ansidecl.h )
11671 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11672 build_xm_include_list="${build_xm_include_list} $f"
11674 auto-build.h | auto-host.h )
11675 build_xm_file_list="${build_xm_file_list} $f"
11676 build_xm_include_list="${build_xm_include_list} $f"
11679 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11680 build_xm_include_list="${build_xm_include_list} config/$f"
11682 esac
11683 done
11685 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11686 # cross-compiler which does not use the native headers and libraries.
11687 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11688 CROSS=
11689 ALL=all.internal
11690 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11692 if test "x$with_build_sysroot" != x; then
11693 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11694 else
11695 # This value is used, even on a native system, because
11696 # CROSS_SYSTEM_HEADER_DIR is just
11697 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11698 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11701 if test x$host != x$target
11702 then
11703 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11704 ALL=all.cross
11705 SYSTEM_HEADER_DIR=$build_system_header_dir
11706 case "$host","$target" in
11707 # Darwin crosses can use the host system's libraries and headers,
11708 # because of the fat library support. Of course, it must be the
11709 # same version of Darwin on both sides. Allow the user to
11710 # just say --target=foo-darwin without a version number to mean
11711 # "the version on this system".
11712 *-*-darwin*,*-*-darwin*)
11713 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11714 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11715 if test $hostos = $targetos -o $targetos = darwin ; then
11716 CROSS=
11717 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11718 with_headers=yes
11722 i?86-*-*,x86_64-*-* \
11723 | powerpc*-*-*,powerpc64*-*-*)
11724 CROSS="$CROSS -DNATIVE_CROSS" ;;
11725 esac
11727 case $target in
11728 *-*-mingw*)
11729 if test "x$with_headers" = x; then
11730 with_headers=yes
11735 esac
11736 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11737 SYSTEM_HEADER_DIR=$build_system_header_dir
11740 # If this is a cross-compiler that does not
11741 # have its own set of headers then define
11742 # inhibit_libc
11744 # If this is using newlib, without having the headers available now,
11745 # then define inhibit_libc in LIBGCC2_CFLAGS.
11746 # This prevents libgcc2 from containing any code which requires libc
11747 # support.
11748 : ${inhibit_libc=false}
11749 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11750 test x$with_newlib = xyes ; } &&
11751 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11752 inhibit_libc=true
11756 # When building gcc with a cross-compiler, we need to adjust things so
11757 # that the generator programs are still built with the native compiler.
11758 # Also, we cannot run fixincludes.
11760 # These are the normal (build=host) settings:
11761 CC_FOR_BUILD='$(CC)'
11762 CXX_FOR_BUILD='$(CXX)'
11763 BUILD_CFLAGS='$(ALL_CFLAGS)'
11764 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11765 BUILD_LDFLAGS='$(LDFLAGS)'
11766 STMP_FIXINC=stmp-fixinc
11768 # And these apply if build != host, or we are generating coverage data
11769 if test x$build != x$host || test "x$coverage_flags" != x
11770 then
11771 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11772 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11775 # Expand extra_headers to include complete path.
11776 # This substitutes for lots of t-* files.
11777 extra_headers_list=
11778 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11779 for file in ${extra_headers} ; do
11780 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11781 done
11783 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11784 if test x"$use_gcc_tgmath" = xyes
11785 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11788 # Define collect2 in Makefile.
11789 case $host_can_use_collect2 in
11790 no) collect2= ;;
11791 *) collect2='collect2$(exeext)' ;;
11792 esac
11795 # Add a definition of USE_COLLECT2 if system wants one.
11796 case $use_collect2 in
11797 no) use_collect2= ;;
11798 "") ;;
11800 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11801 xm_defines="${xm_defines} USE_COLLECT2"
11802 case $host_can_use_collect2 in
11804 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11806 esac
11808 esac
11811 cat >>confdefs.h <<_ACEOF
11812 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11813 _ACEOF
11816 # ---------------------------
11817 # Assembler & linker features
11818 # ---------------------------
11820 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11821 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11822 # However when ld-new is first executed from the build tree, libtool will
11823 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11824 # to the build tree. While doing this we need to use the previous-stage
11825 # linker, or we have an infinite loop. The presence of a shell script as
11826 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11827 # the gcc/collect-ld script. So we need to know how libtool works, or
11828 # exec-tool will fail.
11831 case `pwd` in
11832 *\ * | *\ *)
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11834 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11835 esac
11839 macro_version='2.2.7a'
11840 macro_revision='1.3134'
11854 ltmain="$ac_aux_dir/ltmain.sh"
11856 # Backslashify metacharacters that are still active within
11857 # double-quoted strings.
11858 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11860 # Same as above, but do not quote variable references.
11861 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11863 # Sed substitution to delay expansion of an escaped shell variable in a
11864 # double_quote_subst'ed string.
11865 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11867 # Sed substitution to delay expansion of an escaped single quote.
11868 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11870 # Sed substitution to avoid accidental globbing in evaled expressions
11871 no_glob_subst='s/\*/\\\*/g'
11873 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11878 $as_echo_n "checking how to print strings... " >&6; }
11879 # Test print first, because it will be a builtin if present.
11880 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11881 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11882 ECHO='print -r --'
11883 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11884 ECHO='printf %s\n'
11885 else
11886 # Use this function as a fallback that always works.
11887 func_fallback_echo ()
11889 eval 'cat <<_LTECHO_EOF
11891 _LTECHO_EOF'
11893 ECHO='func_fallback_echo'
11896 # func_echo_all arg...
11897 # Invoke $ECHO with all args, space-separated.
11898 func_echo_all ()
11900 $ECHO ""
11903 case "$ECHO" in
11904 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11905 $as_echo "printf" >&6; } ;;
11906 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11907 $as_echo "print -r" >&6; } ;;
11908 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11909 $as_echo "cat" >&6; } ;;
11910 esac
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11926 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11927 if test "${ac_cv_path_SED+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11931 for ac_i in 1 2 3 4 5 6 7; do
11932 ac_script="$ac_script$as_nl$ac_script"
11933 done
11934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11935 { ac_script=; unset ac_script;}
11936 if test -z "$SED"; then
11937 ac_path_SED_found=false
11938 # Loop through the user's path and test for each of PROGNAME-LIST
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_prog in sed gsed; do
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11947 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11948 # Check for GNU ac_path_SED and select it if it is found.
11949 # Check for GNU $ac_path_SED
11950 case `"$ac_path_SED" --version 2>&1` in
11951 *GNU*)
11952 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11954 ac_count=0
11955 $as_echo_n 0123456789 >"conftest.in"
11956 while :
11958 cat "conftest.in" "conftest.in" >"conftest.tmp"
11959 mv "conftest.tmp" "conftest.in"
11960 cp "conftest.in" "conftest.nl"
11961 $as_echo '' >> "conftest.nl"
11962 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11964 as_fn_arith $ac_count + 1 && ac_count=$as_val
11965 if test $ac_count -gt ${ac_path_SED_max-0}; then
11966 # Best one so far, save it but keep looking for a better one
11967 ac_cv_path_SED="$ac_path_SED"
11968 ac_path_SED_max=$ac_count
11970 # 10*(2^10) chars as input seems more than enough
11971 test $ac_count -gt 10 && break
11972 done
11973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11974 esac
11976 $ac_path_SED_found && break 3
11977 done
11978 done
11979 done
11980 IFS=$as_save_IFS
11981 if test -z "$ac_cv_path_SED"; then
11982 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11984 else
11985 ac_cv_path_SED=$SED
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11990 $as_echo "$ac_cv_path_SED" >&6; }
11991 SED="$ac_cv_path_SED"
11992 rm -f conftest.sed
11994 test -z "$SED" && SED=sed
11995 Xsed="$SED -e 1s/^X//"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12008 $as_echo_n "checking for fgrep... " >&6; }
12009 if test "${ac_cv_path_FGREP+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12013 then ac_cv_path_FGREP="$GREP -F"
12014 else
12015 if test -z "$FGREP"; then
12016 ac_path_FGREP_found=false
12017 # Loop through the user's path and test for each of PROGNAME-LIST
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_prog in fgrep; do
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12026 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12027 # Check for GNU ac_path_FGREP and select it if it is found.
12028 # Check for GNU $ac_path_FGREP
12029 case `"$ac_path_FGREP" --version 2>&1` in
12030 *GNU*)
12031 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12033 ac_count=0
12034 $as_echo_n 0123456789 >"conftest.in"
12035 while :
12037 cat "conftest.in" "conftest.in" >"conftest.tmp"
12038 mv "conftest.tmp" "conftest.in"
12039 cp "conftest.in" "conftest.nl"
12040 $as_echo 'FGREP' >> "conftest.nl"
12041 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12043 as_fn_arith $ac_count + 1 && ac_count=$as_val
12044 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12045 # Best one so far, save it but keep looking for a better one
12046 ac_cv_path_FGREP="$ac_path_FGREP"
12047 ac_path_FGREP_max=$ac_count
12049 # 10*(2^10) chars as input seems more than enough
12050 test $ac_count -gt 10 && break
12051 done
12052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12053 esac
12055 $ac_path_FGREP_found && break 3
12056 done
12057 done
12058 done
12059 IFS=$as_save_IFS
12060 if test -z "$ac_cv_path_FGREP"; then
12061 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12063 else
12064 ac_cv_path_FGREP=$FGREP
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12070 $as_echo "$ac_cv_path_FGREP" >&6; }
12071 FGREP="$ac_cv_path_FGREP"
12074 test -z "$GREP" && GREP=grep
12094 # Check whether --with-gnu-ld was given.
12095 if test "${with_gnu_ld+set}" = set; then :
12096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12097 else
12098 with_gnu_ld=no
12101 ac_prog=ld
12102 if test "$GCC" = yes; then
12103 # Check if gcc -print-prog-name=ld gives a path.
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12105 $as_echo_n "checking for ld used by $CC... " >&6; }
12106 case $host in
12107 *-*-mingw*)
12108 # gcc leaves a trailing carriage return which upsets mingw
12109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12112 esac
12113 case $ac_prog in
12114 # Accept absolute paths.
12115 [\\/]* | ?:[\\/]*)
12116 re_direlt='/[^/][^/]*/\.\./'
12117 # Canonicalize the pathname of ld
12118 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12119 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12120 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12121 done
12122 test -z "$LD" && LD="$ac_prog"
12125 # If it fails, then pretend we aren't using GCC.
12126 ac_prog=ld
12129 # If it is relative, then search for the first ld in PATH.
12130 with_gnu_ld=unknown
12132 esac
12133 elif test "$with_gnu_ld" = yes; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12135 $as_echo_n "checking for GNU ld... " >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12138 $as_echo_n "checking for non-GNU ld... " >&6; }
12140 if test "${lt_cv_path_LD+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test -z "$LD"; then
12144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12145 for ac_dir in $PATH; do
12146 IFS="$lt_save_ifs"
12147 test -z "$ac_dir" && ac_dir=.
12148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12149 lt_cv_path_LD="$ac_dir/$ac_prog"
12150 # Check to see if the program is GNU ld. I'd rather use --version,
12151 # but apparently some variants of GNU ld only accept -v.
12152 # Break only if it was the GNU/non-GNU ld that we prefer.
12153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12154 *GNU* | *'with BFD'*)
12155 test "$with_gnu_ld" != no && break
12158 test "$with_gnu_ld" != yes && break
12160 esac
12162 done
12163 IFS="$lt_save_ifs"
12164 else
12165 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12169 LD="$lt_cv_path_LD"
12170 if test -n "$LD"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12172 $as_echo "$LD" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12177 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12180 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12184 case `$LD -v 2>&1 </dev/null` in
12185 *GNU* | *'with BFD'*)
12186 lt_cv_prog_gnu_ld=yes
12189 lt_cv_prog_gnu_ld=no
12191 esac
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12194 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12195 with_gnu_ld=$lt_cv_prog_gnu_ld
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12206 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12207 if test "${lt_cv_path_NM+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 if test -n "$NM"; then
12211 # Let the user override the test.
12212 lt_cv_path_NM="$NM"
12213 else
12214 lt_nm_to_check="${ac_tool_prefix}nm"
12215 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12216 lt_nm_to_check="$lt_nm_to_check nm"
12218 for lt_tmp_nm in $lt_nm_to_check; do
12219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12220 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12221 IFS="$lt_save_ifs"
12222 test -z "$ac_dir" && ac_dir=.
12223 tmp_nm="$ac_dir/$lt_tmp_nm"
12224 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12225 # Check to see if the nm accepts a BSD-compat flag.
12226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12227 # nm: unknown option "B" ignored
12228 # Tru64's nm complains that /dev/null is an invalid object file
12229 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12230 */dev/null* | *'Invalid file or object type'*)
12231 lt_cv_path_NM="$tmp_nm -B"
12232 break
12235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12236 */dev/null*)
12237 lt_cv_path_NM="$tmp_nm -p"
12238 break
12241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12242 continue # so that we can try to find one that supports BSD flags
12244 esac
12246 esac
12248 done
12249 IFS="$lt_save_ifs"
12250 done
12251 : ${lt_cv_path_NM=no}
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12255 $as_echo "$lt_cv_path_NM" >&6; }
12256 if test "$lt_cv_path_NM" != "no"; then
12257 NM="$lt_cv_path_NM"
12258 else
12259 # Didn't find any BSD compatible name lister, look for dumpbin.
12260 if test -n "$DUMPBIN"; then :
12261 # Let the user override the test.
12262 else
12263 if test -n "$ac_tool_prefix"; then
12264 for ac_prog in dumpbin "link -dump"
12266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 if test -n "$DUMPBIN"; then
12274 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12287 done
12288 done
12289 IFS=$as_save_IFS
12293 DUMPBIN=$ac_cv_prog_DUMPBIN
12294 if test -n "$DUMPBIN"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12296 $as_echo "$DUMPBIN" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12303 test -n "$DUMPBIN" && break
12304 done
12306 if test -z "$DUMPBIN"; then
12307 ac_ct_DUMPBIN=$DUMPBIN
12308 for ac_prog in dumpbin "link -dump"
12310 # Extract the first word of "$ac_prog", so it can be a program name with args.
12311 set dummy $ac_prog; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if test -n "$ac_ct_DUMPBIN"; then
12318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12331 done
12332 done
12333 IFS=$as_save_IFS
12337 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12338 if test -n "$ac_ct_DUMPBIN"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12340 $as_echo "$ac_ct_DUMPBIN" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12347 test -n "$ac_ct_DUMPBIN" && break
12348 done
12350 if test "x$ac_ct_DUMPBIN" = x; then
12351 DUMPBIN=":"
12352 else
12353 case $cross_compiling:$ac_tool_warned in
12354 yes:)
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned=yes ;;
12358 esac
12359 DUMPBIN=$ac_ct_DUMPBIN
12363 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12364 *COFF*)
12365 DUMPBIN="$DUMPBIN -symbols"
12368 DUMPBIN=:
12370 esac
12373 if test "$DUMPBIN" != ":"; then
12374 NM="$DUMPBIN"
12377 test -z "$NM" && NM=nm
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12386 if test "${lt_cv_nm_interface+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 lt_cv_nm_interface="BSD nm"
12390 echo "int some_variable = 0;" > conftest.$ac_ext
12391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12392 (eval "$ac_compile" 2>conftest.err)
12393 cat conftest.err >&5
12394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12396 cat conftest.err >&5
12397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12398 cat conftest.out >&5
12399 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12400 lt_cv_nm_interface="MS dumpbin"
12402 rm -f conftest*
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12405 $as_echo "$lt_cv_nm_interface" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12408 $as_echo_n "checking whether ln -s works... " >&6; }
12409 LN_S=$as_ln_s
12410 if test "$LN_S" = "ln -s"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12415 $as_echo "no, using $LN_S" >&6; }
12418 # find the maximum length of command line arguments
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12421 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12425 teststring="ABCD"
12427 case $build_os in
12428 msdosdjgpp*)
12429 # On DJGPP, this test can blow up pretty badly due to problems in libc
12430 # (any single argument exceeding 2000 bytes causes a buffer overrun
12431 # during glob expansion). Even if it were fixed, the result of this
12432 # check would be larger than it should be.
12433 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12436 gnu*)
12437 # Under GNU Hurd, this test is not required because there is
12438 # no limit to the length of command line arguments.
12439 # Libtool will interpret -1 as no limit whatsoever
12440 lt_cv_sys_max_cmd_len=-1;
12443 cygwin* | mingw* | cegcc*)
12444 # On Win9x/ME, this test blows up -- it succeeds, but takes
12445 # about 5 minutes as the teststring grows exponentially.
12446 # Worse, since 9x/ME are not pre-emptively multitasking,
12447 # you end up with a "frozen" computer, even though with patience
12448 # the test eventually succeeds (with a max line length of 256k).
12449 # Instead, let's just punt: use the minimum linelength reported by
12450 # all of the supported platforms: 8192 (on NT/2K/XP).
12451 lt_cv_sys_max_cmd_len=8192;
12454 mint*)
12455 # On MiNT this can take a long time and run out of memory.
12456 lt_cv_sys_max_cmd_len=8192;
12459 amigaos*)
12460 # On AmigaOS with pdksh, this test takes hours, literally.
12461 # So we just punt and use a minimum line length of 8192.
12462 lt_cv_sys_max_cmd_len=8192;
12465 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12466 # This has been around since 386BSD, at least. Likely further.
12467 if test -x /sbin/sysctl; then
12468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12469 elif test -x /usr/sbin/sysctl; then
12470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12471 else
12472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12474 # And add a safety zone
12475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12479 interix*)
12480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12481 lt_cv_sys_max_cmd_len=196608
12484 osf*)
12485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12487 # nice to cause kernel panics so lets avoid the loop below.
12488 # First set a reasonable default.
12489 lt_cv_sys_max_cmd_len=16384
12491 if test -x /sbin/sysconfig; then
12492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12493 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12494 esac
12497 sco3.2v5*)
12498 lt_cv_sys_max_cmd_len=102400
12500 sysv5* | sco5v6* | sysv4.2uw2*)
12501 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12502 if test -n "$kargmax"; then
12503 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12504 else
12505 lt_cv_sys_max_cmd_len=32768
12509 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12510 if test -n "$lt_cv_sys_max_cmd_len"; then
12511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12513 else
12514 # Make teststring a little bigger before we do anything with it.
12515 # a 1K string should be a reasonable start.
12516 for i in 1 2 3 4 5 6 7 8 ; do
12517 teststring=$teststring$teststring
12518 done
12519 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12520 # If test is not a shell built-in, we'll probably end up computing a
12521 # maximum length that is only half of the actual maximum length, but
12522 # we can't tell.
12523 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12524 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12525 test $i != 17 # 1/2 MB should be enough
12527 i=`expr $i + 1`
12528 teststring=$teststring$teststring
12529 done
12530 # Only check the string length outside the loop.
12531 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12532 teststring=
12533 # Add a significant safety factor because C++ compilers can tack on
12534 # massive amounts of additional arguments before passing them to the
12535 # linker. It appears as though 1/2 is a usable value.
12536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12539 esac
12543 if test -n $lt_cv_sys_max_cmd_len ; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12548 $as_echo "none" >&6; }
12550 max_cmd_len=$lt_cv_sys_max_cmd_len
12557 : ${CP="cp -f"}
12558 : ${MV="mv -f"}
12559 : ${RM="rm -f"}
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12562 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12563 # Try some XSI features
12564 xsi_shell=no
12565 ( _lt_dummy="a/b/c"
12566 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12567 = c,a/b,, \
12568 && eval 'test $(( 1 + 1 )) -eq 2 \
12569 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12570 && xsi_shell=yes
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12572 $as_echo "$xsi_shell" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12576 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12577 lt_shell_append=no
12578 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12579 >/dev/null 2>&1 \
12580 && lt_shell_append=yes
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12582 $as_echo "$lt_shell_append" >&6; }
12585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12586 lt_unset=unset
12587 else
12588 lt_unset=false
12595 # test EBCDIC or ASCII
12596 case `echo X|tr X '\101'` in
12597 A) # ASCII based system
12598 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12599 lt_SP2NL='tr \040 \012'
12600 lt_NL2SP='tr \015\012 \040\040'
12602 *) # EBCDIC based system
12603 lt_SP2NL='tr \100 \n'
12604 lt_NL2SP='tr \r\n \100\100'
12606 esac
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12617 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12618 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 lt_cv_ld_reload_flag='-r'
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12625 reload_flag=$lt_cv_ld_reload_flag
12626 case $reload_flag in
12627 "" | " "*) ;;
12628 *) reload_flag=" $reload_flag" ;;
12629 esac
12630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12631 case $host_os in
12632 darwin*)
12633 if test "$GCC" = yes; then
12634 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12635 else
12636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12639 esac
12649 if test -n "$ac_tool_prefix"; then
12650 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12651 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 if test -n "$OBJDUMP"; then
12658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12659 else
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12671 done
12672 done
12673 IFS=$as_save_IFS
12677 OBJDUMP=$ac_cv_prog_OBJDUMP
12678 if test -n "$OBJDUMP"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12680 $as_echo "$OBJDUMP" >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12688 if test -z "$ac_cv_prog_OBJDUMP"; then
12689 ac_ct_OBJDUMP=$OBJDUMP
12690 # Extract the first word of "objdump", so it can be a program name with args.
12691 set dummy objdump; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -n "$ac_ct_OBJDUMP"; then
12698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12718 if test -n "$ac_ct_OBJDUMP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12720 $as_echo "$ac_ct_OBJDUMP" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12726 if test "x$ac_ct_OBJDUMP" = x; then
12727 OBJDUMP="false"
12728 else
12729 case $cross_compiling:$ac_tool_warned in
12730 yes:)
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12733 ac_tool_warned=yes ;;
12734 esac
12735 OBJDUMP=$ac_ct_OBJDUMP
12737 else
12738 OBJDUMP="$ac_cv_prog_OBJDUMP"
12741 test -z "$OBJDUMP" && OBJDUMP=objdump
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12752 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12753 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 lt_cv_file_magic_cmd='$MAGIC_CMD'
12757 lt_cv_file_magic_test_file=
12758 lt_cv_deplibs_check_method='unknown'
12759 # Need to set the preceding variable on all platforms that support
12760 # interlibrary dependencies.
12761 # 'none' -- dependencies not supported.
12762 # `unknown' -- same as none, but documents that we really don't know.
12763 # 'pass_all' -- all dependencies passed with no checks.
12764 # 'test_compile' -- check by making test program.
12765 # 'file_magic [[regex]]' -- check by looking for files in library path
12766 # which responds to the $file_magic_cmd with a given extended regex.
12767 # If you have `file' or equivalent on your system and you're not sure
12768 # whether `pass_all' will *always* work, you probably want this one.
12770 case $host_os in
12771 aix[4-9]*)
12772 lt_cv_deplibs_check_method=pass_all
12775 beos*)
12776 lt_cv_deplibs_check_method=pass_all
12779 bsdi[45]*)
12780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12781 lt_cv_file_magic_cmd='/usr/bin/file -L'
12782 lt_cv_file_magic_test_file=/shlib/libc.so
12785 cygwin*)
12786 # func_win32_libid is a shell function defined in ltmain.sh
12787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12788 lt_cv_file_magic_cmd='func_win32_libid'
12791 mingw* | pw32*)
12792 # Base MSYS/MinGW do not provide the 'file' command needed by
12793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12794 # unless we find 'file', for example because we are cross-compiling.
12795 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12796 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12798 lt_cv_file_magic_cmd='func_win32_libid'
12799 else
12800 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12805 cegcc*)
12806 # use the weaker test based on 'objdump'. See mingw*.
12807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12808 lt_cv_file_magic_cmd='$OBJDUMP -f'
12811 darwin* | rhapsody*)
12812 lt_cv_deplibs_check_method=pass_all
12815 freebsd* | dragonfly*)
12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12817 case $host_cpu in
12818 i*86 )
12819 # Not sure whether the presence of OpenBSD here was a mistake.
12820 # Let's accept both of them until this is cleared up.
12821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822 lt_cv_file_magic_cmd=/usr/bin/file
12823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12825 esac
12826 else
12827 lt_cv_deplibs_check_method=pass_all
12831 gnu*)
12832 lt_cv_deplibs_check_method=pass_all
12835 haiku*)
12836 lt_cv_deplibs_check_method=pass_all
12839 hpux10.20* | hpux11*)
12840 lt_cv_file_magic_cmd=/usr/bin/file
12841 case $host_cpu in
12842 ia64*)
12843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12846 hppa*64*)
12847 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]'
12848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12854 esac
12857 interix[3-9]*)
12858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12862 irix5* | irix6* | nonstopux*)
12863 case $LD in
12864 *-32|*"-32 ") libmagic=32-bit;;
12865 *-n32|*"-n32 ") libmagic=N32;;
12866 *-64|*"-64 ") libmagic=64-bit;;
12867 *) libmagic=never-match;;
12868 esac
12869 lt_cv_deplibs_check_method=pass_all
12872 # This must be Linux ELF.
12873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12874 lt_cv_deplibs_check_method=pass_all
12877 netbsd*)
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12880 else
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12885 newos6*)
12886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12887 lt_cv_file_magic_cmd=/usr/bin/file
12888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12891 *nto* | *qnx*)
12892 lt_cv_deplibs_check_method=pass_all
12895 openbsd*)
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12898 else
12899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12903 osf3* | osf4* | osf5*)
12904 lt_cv_deplibs_check_method=pass_all
12907 rdos*)
12908 lt_cv_deplibs_check_method=pass_all
12911 solaris*)
12912 lt_cv_deplibs_check_method=pass_all
12915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12916 lt_cv_deplibs_check_method=pass_all
12919 sysv4 | sysv4.3*)
12920 case $host_vendor in
12921 motorola)
12922 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]'
12923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12925 ncr)
12926 lt_cv_deplibs_check_method=pass_all
12928 sequent)
12929 lt_cv_file_magic_cmd='/bin/file'
12930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12932 sni)
12933 lt_cv_file_magic_cmd='/bin/file'
12934 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12935 lt_cv_file_magic_test_file=/lib/libc.so
12937 siemens)
12938 lt_cv_deplibs_check_method=pass_all
12941 lt_cv_deplibs_check_method=pass_all
12943 esac
12946 tpf*)
12947 lt_cv_deplibs_check_method=pass_all
12949 esac
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12953 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12954 file_magic_cmd=$lt_cv_file_magic_cmd
12955 deplibs_check_method=$lt_cv_deplibs_check_method
12956 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12969 if test -n "$ac_tool_prefix"; then
12970 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}ar; ac_word=$2
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973 $as_echo_n "checking for $ac_word... " >&6; }
12974 if test "${ac_cv_prog_AR+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 if test -n "$AR"; then
12978 ac_cv_prog_AR="$AR" # Let the user override the test.
12979 else
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_prog_AR="${ac_tool_prefix}ar"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12991 done
12992 done
12993 IFS=$as_save_IFS
12997 AR=$ac_cv_prog_AR
12998 if test -n "$AR"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13000 $as_echo "$AR" >&6; }
13001 else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 $as_echo "no" >&6; }
13008 if test -z "$ac_cv_prog_AR"; then
13009 ac_ct_AR=$AR
13010 # Extract the first word of "ar", so it can be a program name with args.
13011 set dummy ar; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 if test -n "$ac_ct_AR"; then
13018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_ac_ct_AR="ar"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13031 done
13032 done
13033 IFS=$as_save_IFS
13037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13038 if test -n "$ac_ct_AR"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13040 $as_echo "$ac_ct_AR" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13046 if test "x$ac_ct_AR" = x; then
13047 AR="false"
13048 else
13049 case $cross_compiling:$ac_tool_warned in
13050 yes:)
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13053 ac_tool_warned=yes ;;
13054 esac
13055 AR=$ac_ct_AR
13057 else
13058 AR="$ac_cv_prog_AR"
13061 test -z "$AR" && AR=ar
13062 test -z "$AR_FLAGS" && AR_FLAGS=cru
13074 if test -n "$ac_tool_prefix"; then
13075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13076 set dummy ${ac_tool_prefix}strip; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13078 $as_echo_n "checking for $ac_word... " >&6; }
13079 if test "${ac_cv_prog_STRIP+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 if test -n "$STRIP"; then
13083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13084 else
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13096 done
13097 done
13098 IFS=$as_save_IFS
13102 STRIP=$ac_cv_prog_STRIP
13103 if test -n "$STRIP"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13105 $as_echo "$STRIP" >&6; }
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13113 if test -z "$ac_cv_prog_STRIP"; then
13114 ac_ct_STRIP=$STRIP
13115 # Extract the first word of "strip", so it can be a program name with args.
13116 set dummy strip; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 if test -n "$ac_ct_STRIP"; then
13123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13124 else
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_ac_ct_STRIP="strip"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13136 done
13137 done
13138 IFS=$as_save_IFS
13142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13143 if test -n "$ac_ct_STRIP"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13145 $as_echo "$ac_ct_STRIP" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13151 if test "x$ac_ct_STRIP" = x; then
13152 STRIP=":"
13153 else
13154 case $cross_compiling:$ac_tool_warned in
13155 yes:)
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13158 ac_tool_warned=yes ;;
13159 esac
13160 STRIP=$ac_ct_STRIP
13162 else
13163 STRIP="$ac_cv_prog_STRIP"
13166 test -z "$STRIP" && STRIP=:
13173 if test -n "$ac_tool_prefix"; then
13174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$RANLIB"; then
13182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13201 RANLIB=$ac_cv_prog_RANLIB
13202 if test -n "$RANLIB"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13204 $as_echo "$RANLIB" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13212 if test -z "$ac_cv_prog_RANLIB"; then
13213 ac_ct_RANLIB=$RANLIB
13214 # Extract the first word of "ranlib", so it can be a program name with args.
13215 set dummy ranlib; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 if test -n "$ac_ct_RANLIB"; then
13222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13223 else
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13227 IFS=$as_save_IFS
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13231 ac_cv_prog_ac_ct_RANLIB="ranlib"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13233 break 2
13235 done
13236 done
13237 IFS=$as_save_IFS
13241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13242 if test -n "$ac_ct_RANLIB"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13244 $as_echo "$ac_ct_RANLIB" >&6; }
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13250 if test "x$ac_ct_RANLIB" = x; then
13251 RANLIB=":"
13252 else
13253 case $cross_compiling:$ac_tool_warned in
13254 yes:)
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13257 ac_tool_warned=yes ;;
13258 esac
13259 RANLIB=$ac_ct_RANLIB
13261 else
13262 RANLIB="$ac_cv_prog_RANLIB"
13265 test -z "$RANLIB" && RANLIB=:
13272 # Determine commands to create old-style static archives.
13273 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13274 old_postinstall_cmds='chmod 644 $oldlib'
13275 old_postuninstall_cmds=
13277 if test -n "$RANLIB"; then
13278 case $host_os in
13279 openbsd*)
13280 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13285 esac
13286 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13289 case $host_os in
13290 darwin*)
13291 lock_old_archive_extraction=yes ;;
13293 lock_old_archive_extraction=no ;;
13294 esac
13334 # If no C compiler was specified, use CC.
13335 LTCC=${LTCC-"$CC"}
13337 # If no C compiler flags were specified, use CFLAGS.
13338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13340 # Allow CC to be a program name with arguments.
13341 compiler=$CC
13344 # Check for command to grab the raw symbol name followed by C symbol from nm.
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13346 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13351 # These are sane defaults that work on at least a few old systems.
13352 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13354 # Character class describing NM global symbol codes.
13355 symcode='[BCDEGRST]'
13357 # Regexp to match symbols that can be accessed directly from C.
13358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13360 # Define system-specific variables.
13361 case $host_os in
13362 aix*)
13363 symcode='[BCDT]'
13365 cygwin* | mingw* | pw32* | cegcc*)
13366 symcode='[ABCDGISTW]'
13368 hpux*)
13369 if test "$host_cpu" = ia64; then
13370 symcode='[ABCDEGRST]'
13373 irix* | nonstopux*)
13374 symcode='[BCDEGRST]'
13376 osf*)
13377 symcode='[BCDEGQRST]'
13379 solaris*)
13380 symcode='[BDRT]'
13382 sco3.2v5*)
13383 symcode='[DT]'
13385 sysv4.2uw2*)
13386 symcode='[DT]'
13388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13389 symcode='[ABDT]'
13391 sysv4)
13392 symcode='[DFNSTU]'
13394 esac
13396 # If we're using GNU nm, then use its standard symbol codes.
13397 case `$NM -V 2>&1` in
13398 *GNU* | *'with BFD'*)
13399 symcode='[ABCDGIRSTW]' ;;
13400 esac
13402 # Transform an extracted symbol line into a proper C declaration.
13403 # Some systems (esp. on ia64) link data and code symbols differently,
13404 # so use this general approach.
13405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13407 # Transform an extracted symbol line into symbol name and symbol address
13408 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13409 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'"
13411 # Handle CRLF in mingw tool chain
13412 opt_cr=
13413 case $build_os in
13414 mingw*)
13415 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13417 esac
13419 # Try without a prefix underscore, then with it.
13420 for ac_symprfx in "" "_"; do
13422 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13423 symxfrm="\\1 $ac_symprfx\\2 \\2"
13425 # Write the raw and C identifiers.
13426 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13427 # Fake it for dumpbin and say T for any non-static function
13428 # and D for any global variable.
13429 # Also find C++ and __fastcall symbols from MSVC++,
13430 # which start with @ or ?.
13431 lt_cv_sys_global_symbol_pipe="$AWK '"\
13432 " {last_section=section; section=\$ 3};"\
13433 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13434 " \$ 0!~/External *\|/{next};"\
13435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13436 " {if(hide[section]) next};"\
13437 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13438 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13439 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13440 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13441 " ' prfx=^$ac_symprfx"
13442 else
13443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13446 # Check to see that the pipe works correctly.
13447 pipe_works=no
13449 rm -f conftest*
13450 cat > conftest.$ac_ext <<_LT_EOF
13451 #ifdef __cplusplus
13452 extern "C" {
13453 #endif
13454 char nm_test_var;
13455 void nm_test_func(void);
13456 void nm_test_func(void){}
13457 #ifdef __cplusplus
13459 #endif
13460 int main(){nm_test_var='a';nm_test_func();return(0);}
13461 _LT_EOF
13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13467 test $ac_status = 0; }; then
13468 # Now try to grab the symbols.
13469 nlist=conftest.nm
13470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13472 ac_status=$?
13473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13474 test $ac_status = 0; } && test -s "$nlist"; then
13475 # Try sorting and uniquifying the output.
13476 if sort "$nlist" | uniq > "$nlist"T; then
13477 mv -f "$nlist"T "$nlist"
13478 else
13479 rm -f "$nlist"T
13482 # Make sure that we snagged all the symbols we need.
13483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13485 cat <<_LT_EOF > conftest.$ac_ext
13486 #ifdef __cplusplus
13487 extern "C" {
13488 #endif
13490 _LT_EOF
13491 # Now generate the symbol file.
13492 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13494 cat <<_LT_EOF >> conftest.$ac_ext
13496 /* The mapping between symbol names and symbols. */
13497 const struct {
13498 const char *name;
13499 void *address;
13501 lt__PROGRAM__LTX_preloaded_symbols[] =
13503 { "@PROGRAM@", (void *) 0 },
13504 _LT_EOF
13505 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13506 cat <<\_LT_EOF >> conftest.$ac_ext
13507 {0, (void *) 0}
13510 /* This works around a problem in FreeBSD linker */
13511 #ifdef FREEBSD_WORKAROUND
13512 static const void *lt_preloaded_setup() {
13513 return lt__PROGRAM__LTX_preloaded_symbols;
13515 #endif
13517 #ifdef __cplusplus
13519 #endif
13520 _LT_EOF
13521 # Now try linking the two files.
13522 mv conftest.$ac_objext conftstm.$ac_objext
13523 lt_save_LIBS="$LIBS"
13524 lt_save_CFLAGS="$CFLAGS"
13525 LIBS="conftstm.$ac_objext"
13526 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13528 (eval $ac_link) 2>&5
13529 ac_status=$?
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13531 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13532 pipe_works=yes
13534 LIBS="$lt_save_LIBS"
13535 CFLAGS="$lt_save_CFLAGS"
13536 else
13537 echo "cannot find nm_test_func in $nlist" >&5
13539 else
13540 echo "cannot find nm_test_var in $nlist" >&5
13542 else
13543 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13545 else
13546 echo "$progname: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13549 rm -rf conftest* conftst*
13551 # Do not use the global_symbol_pipe unless it works.
13552 if test "$pipe_works" = yes; then
13553 break
13554 else
13555 lt_cv_sys_global_symbol_pipe=
13557 done
13561 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13562 lt_cv_sys_global_symbol_to_cdecl=
13564 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13566 $as_echo "failed" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13569 $as_echo "ok" >&6; }
13593 # Check whether --enable-libtool-lock was given.
13594 if test "${enable_libtool_lock+set}" = set; then :
13595 enableval=$enable_libtool_lock;
13598 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13600 # Some flags need to be propagated to the compiler or linker for good
13601 # libtool support.
13602 case $host in
13603 ia64-*-hpux*)
13604 # Find out which ABI we are using.
13605 echo 'int i;' > conftest.$ac_ext
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; }; then
13611 case `/usr/bin/file conftest.$ac_objext` in
13612 *ELF-32*)
13613 HPUX_IA64_MODE="32"
13615 *ELF-64*)
13616 HPUX_IA64_MODE="64"
13618 esac
13620 rm -rf conftest*
13622 *-*-irix6*)
13623 # Find out which ABI we are using.
13624 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13626 (eval $ac_compile) 2>&5
13627 ac_status=$?
13628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13629 test $ac_status = 0; }; then
13630 if test "$lt_cv_prog_gnu_ld" = yes; then
13631 case `/usr/bin/file conftest.$ac_objext` in
13632 *32-bit*)
13633 LD="${LD-ld} -melf32bsmip"
13635 *N32*)
13636 LD="${LD-ld} -melf32bmipn32"
13638 *64-bit*)
13639 LD="${LD-ld} -melf64bmip"
13641 esac
13642 else
13643 case `/usr/bin/file conftest.$ac_objext` in
13644 *32-bit*)
13645 LD="${LD-ld} -32"
13647 *N32*)
13648 LD="${LD-ld} -n32"
13650 *64-bit*)
13651 LD="${LD-ld} -64"
13653 esac
13656 rm -rf conftest*
13659 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13660 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13661 # Find out which ABI we are using.
13662 echo 'int i;' > conftest.$ac_ext
13663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13664 (eval $ac_compile) 2>&5
13665 ac_status=$?
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13667 test $ac_status = 0; }; then
13668 case `/usr/bin/file conftest.o` in
13669 *32-bit*)
13670 case $host in
13671 x86_64-*kfreebsd*-gnu)
13672 LD="${LD-ld} -m elf_i386_fbsd"
13674 x86_64-*linux*)
13675 case `/usr/bin/file conftest.o` in
13676 *x86-64*)
13677 LD="${LD-ld} -m elf32_x86_64"
13680 LD="${LD-ld} -m elf_i386"
13682 esac
13684 powerpc64le-*linux*)
13685 LD="${LD-ld} -m elf32lppclinux"
13687 powerpc64-*linux*)
13688 LD="${LD-ld} -m elf32ppclinux"
13690 s390x-*linux*)
13691 LD="${LD-ld} -m elf_s390"
13693 sparc64-*linux*)
13694 LD="${LD-ld} -m elf32_sparc"
13696 esac
13698 *64-bit*)
13699 case $host in
13700 x86_64-*kfreebsd*-gnu)
13701 LD="${LD-ld} -m elf_x86_64_fbsd"
13703 x86_64-*linux*)
13704 LD="${LD-ld} -m elf_x86_64"
13706 powerpcle-*linux*)
13707 LD="${LD-ld} -m elf64lppc"
13709 powerpc-*linux*)
13710 LD="${LD-ld} -m elf64ppc"
13712 s390*-*linux*|s390*-*tpf*)
13713 LD="${LD-ld} -m elf64_s390"
13715 sparc*-*linux*)
13716 LD="${LD-ld} -m elf64_sparc"
13718 esac
13720 esac
13722 rm -rf conftest*
13725 *-*-sco3.2v5*)
13726 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13727 SAVE_CFLAGS="$CFLAGS"
13728 CFLAGS="$CFLAGS -belf"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13730 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13731 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 ac_ext=c
13735 ac_cpp='$CPP $CPPFLAGS'
13736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13744 main ()
13748 return 0;
13750 _ACEOF
13751 if ac_fn_c_try_link "$LINENO"; then :
13752 lt_cv_cc_needs_belf=yes
13753 else
13754 lt_cv_cc_needs_belf=no
13756 rm -f core conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13758 ac_ext=c
13759 ac_cpp='$CPP $CPPFLAGS'
13760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13766 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13767 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13768 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13769 CFLAGS="$SAVE_CFLAGS"
13772 sparc*-*solaris*)
13773 # Find out which ABI we are using.
13774 echo 'int i;' > conftest.$ac_ext
13775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13776 (eval $ac_compile) 2>&5
13777 ac_status=$?
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 test $ac_status = 0; }; then
13780 case `/usr/bin/file conftest.o` in
13781 *64-bit*)
13782 case $lt_cv_prog_gnu_ld in
13783 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13785 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13786 LD="${LD-ld} -64"
13789 esac
13791 esac
13793 rm -rf conftest*
13795 esac
13797 need_locks="$enable_libtool_lock"
13800 case $host_os in
13801 rhapsody* | darwin*)
13802 if test -n "$ac_tool_prefix"; then
13803 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13804 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 if test -n "$DSYMUTIL"; then
13811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13812 else
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
13819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13820 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 break 2
13824 done
13825 done
13826 IFS=$as_save_IFS
13830 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13831 if test -n "$DSYMUTIL"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13833 $as_echo "$DSYMUTIL" >&6; }
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13841 if test -z "$ac_cv_prog_DSYMUTIL"; then
13842 ac_ct_DSYMUTIL=$DSYMUTIL
13843 # Extract the first word of "dsymutil", so it can be a program name with args.
13844 set dummy dsymutil; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846 $as_echo_n "checking for $ac_word... " >&6; }
13847 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 if test -n "$ac_ct_DSYMUTIL"; then
13851 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13852 else
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13864 done
13865 done
13866 IFS=$as_save_IFS
13870 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13871 if test -n "$ac_ct_DSYMUTIL"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13873 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13874 else
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876 $as_echo "no" >&6; }
13879 if test "x$ac_ct_DSYMUTIL" = x; then
13880 DSYMUTIL=":"
13881 else
13882 case $cross_compiling:$ac_tool_warned in
13883 yes:)
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13886 ac_tool_warned=yes ;;
13887 esac
13888 DSYMUTIL=$ac_ct_DSYMUTIL
13890 else
13891 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13894 if test -n "$ac_tool_prefix"; then
13895 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13896 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13898 $as_echo_n "checking for $ac_word... " >&6; }
13899 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 if test -n "$NMEDIT"; then
13903 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13904 else
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13908 IFS=$as_save_IFS
13909 test -z "$as_dir" && as_dir=.
13910 for ac_exec_ext in '' $ac_executable_extensions; do
13911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13914 break 2
13916 done
13917 done
13918 IFS=$as_save_IFS
13922 NMEDIT=$ac_cv_prog_NMEDIT
13923 if test -n "$NMEDIT"; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13925 $as_echo "$NMEDIT" >&6; }
13926 else
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 $as_echo "no" >&6; }
13933 if test -z "$ac_cv_prog_NMEDIT"; then
13934 ac_ct_NMEDIT=$NMEDIT
13935 # Extract the first word of "nmedit", so it can be a program name with args.
13936 set dummy nmedit; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 if test -n "$ac_ct_NMEDIT"; then
13943 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13944 else
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13948 IFS=$as_save_IFS
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13952 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 break 2
13956 done
13957 done
13958 IFS=$as_save_IFS
13962 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13963 if test -n "$ac_ct_NMEDIT"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13965 $as_echo "$ac_ct_NMEDIT" >&6; }
13966 else
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13971 if test "x$ac_ct_NMEDIT" = x; then
13972 NMEDIT=":"
13973 else
13974 case $cross_compiling:$ac_tool_warned in
13975 yes:)
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13978 ac_tool_warned=yes ;;
13979 esac
13980 NMEDIT=$ac_ct_NMEDIT
13982 else
13983 NMEDIT="$ac_cv_prog_NMEDIT"
13986 if test -n "$ac_tool_prefix"; then
13987 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13988 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13990 $as_echo_n "checking for $ac_word... " >&6; }
13991 if test "${ac_cv_prog_LIPO+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 if test -n "$LIPO"; then
13995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13996 else
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14008 done
14009 done
14010 IFS=$as_save_IFS
14014 LIPO=$ac_cv_prog_LIPO
14015 if test -n "$LIPO"; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14017 $as_echo "$LIPO" >&6; }
14018 else
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020 $as_echo "no" >&6; }
14025 if test -z "$ac_cv_prog_LIPO"; then
14026 ac_ct_LIPO=$LIPO
14027 # Extract the first word of "lipo", so it can be a program name with args.
14028 set dummy lipo; ac_word=$2
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14030 $as_echo_n "checking for $ac_word... " >&6; }
14031 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 if test -n "$ac_ct_LIPO"; then
14035 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14036 else
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14040 IFS=$as_save_IFS
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044 ac_cv_prog_ac_ct_LIPO="lipo"
14045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14046 break 2
14048 done
14049 done
14050 IFS=$as_save_IFS
14054 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14055 if test -n "$ac_ct_LIPO"; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14057 $as_echo "$ac_ct_LIPO" >&6; }
14058 else
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14063 if test "x$ac_ct_LIPO" = x; then
14064 LIPO=":"
14065 else
14066 case $cross_compiling:$ac_tool_warned in
14067 yes:)
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14070 ac_tool_warned=yes ;;
14071 esac
14072 LIPO=$ac_ct_LIPO
14074 else
14075 LIPO="$ac_cv_prog_LIPO"
14078 if test -n "$ac_tool_prefix"; then
14079 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14080 set dummy ${ac_tool_prefix}otool; ac_word=$2
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14082 $as_echo_n "checking for $ac_word... " >&6; }
14083 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 if test -n "$OTOOL"; then
14087 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14088 else
14089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090 for as_dir in $PATH
14092 IFS=$as_save_IFS
14093 test -z "$as_dir" && as_dir=.
14094 for ac_exec_ext in '' $ac_executable_extensions; do
14095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14096 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14098 break 2
14100 done
14101 done
14102 IFS=$as_save_IFS
14106 OTOOL=$ac_cv_prog_OTOOL
14107 if test -n "$OTOOL"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14109 $as_echo "$OTOOL" >&6; }
14110 else
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14117 if test -z "$ac_cv_prog_OTOOL"; then
14118 ac_ct_OTOOL=$OTOOL
14119 # Extract the first word of "otool", so it can be a program name with args.
14120 set dummy otool; ac_word=$2
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122 $as_echo_n "checking for $ac_word... " >&6; }
14123 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 if test -n "$ac_ct_OTOOL"; then
14127 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14128 else
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14136 ac_cv_prog_ac_ct_OTOOL="otool"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14140 done
14141 done
14142 IFS=$as_save_IFS
14146 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14147 if test -n "$ac_ct_OTOOL"; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14149 $as_echo "$ac_ct_OTOOL" >&6; }
14150 else
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14152 $as_echo "no" >&6; }
14155 if test "x$ac_ct_OTOOL" = x; then
14156 OTOOL=":"
14157 else
14158 case $cross_compiling:$ac_tool_warned in
14159 yes:)
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14162 ac_tool_warned=yes ;;
14163 esac
14164 OTOOL=$ac_ct_OTOOL
14166 else
14167 OTOOL="$ac_cv_prog_OTOOL"
14170 if test -n "$ac_tool_prefix"; then
14171 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14172 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 $as_echo_n "checking for $ac_word... " >&6; }
14175 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 if test -n "$OTOOL64"; then
14179 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14180 else
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14184 IFS=$as_save_IFS
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 break 2
14192 done
14193 done
14194 IFS=$as_save_IFS
14198 OTOOL64=$ac_cv_prog_OTOOL64
14199 if test -n "$OTOOL64"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14201 $as_echo "$OTOOL64" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14209 if test -z "$ac_cv_prog_OTOOL64"; then
14210 ac_ct_OTOOL64=$OTOOL64
14211 # Extract the first word of "otool64", so it can be a program name with args.
14212 set dummy otool64; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 if test -n "$ac_ct_OTOOL64"; then
14219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14220 else
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14228 ac_cv_prog_ac_ct_OTOOL64="otool64"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 break 2
14232 done
14233 done
14234 IFS=$as_save_IFS
14238 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14239 if test -n "$ac_ct_OTOOL64"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14241 $as_echo "$ac_ct_OTOOL64" >&6; }
14242 else
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14247 if test "x$ac_ct_OTOOL64" = x; then
14248 OTOOL64=":"
14249 else
14250 case $cross_compiling:$ac_tool_warned in
14251 yes:)
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14254 ac_tool_warned=yes ;;
14255 esac
14256 OTOOL64=$ac_ct_OTOOL64
14258 else
14259 OTOOL64="$ac_cv_prog_OTOOL64"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14289 $as_echo_n "checking for -single_module linker flag... " >&6; }
14290 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 lt_cv_apple_cc_single_mod=no
14294 if test -z "${LT_MULTI_MODULE}"; then
14295 # By default we will add the -single_module flag. You can override
14296 # by either setting the environment variable LT_MULTI_MODULE
14297 # non-empty at configure time, or by adding -multi_module to the
14298 # link flags.
14299 rm -rf libconftest.dylib*
14300 echo "int foo(void){return 1;}" > conftest.c
14301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14302 -dynamiclib -Wl,-single_module conftest.c" >&5
14303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14305 _lt_result=$?
14306 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14307 lt_cv_apple_cc_single_mod=yes
14308 else
14309 cat conftest.err >&5
14311 rm -rf libconftest.dylib*
14312 rm -f conftest.*
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14316 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14318 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14319 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 lt_cv_ld_exported_symbols_list=no
14323 save_LDFLAGS=$LDFLAGS
14324 echo "_main" > conftest.sym
14325 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14330 main ()
14334 return 0;
14336 _ACEOF
14337 if ac_fn_c_try_link "$LINENO"; then :
14338 lt_cv_ld_exported_symbols_list=yes
14339 else
14340 lt_cv_ld_exported_symbols_list=no
14342 rm -f core conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LDFLAGS="$save_LDFLAGS"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14348 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14350 $as_echo_n "checking for -force_load linker flag... " >&6; }
14351 if test "${lt_cv_ld_force_load+set}" = set; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 lt_cv_ld_force_load=no
14355 cat > conftest.c << _LT_EOF
14356 int forced_loaded() { return 2;}
14357 _LT_EOF
14358 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14359 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14360 echo "$AR cru libconftest.a conftest.o" >&5
14361 $AR cru libconftest.a conftest.o 2>&5
14362 cat > conftest.c << _LT_EOF
14363 int main() { return 0;}
14364 _LT_EOF
14365 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14366 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14367 _lt_result=$?
14368 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14369 lt_cv_ld_force_load=yes
14370 else
14371 cat conftest.err >&5
14373 rm -f conftest.err libconftest.a conftest conftest.c
14374 rm -rf conftest.dSYM
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14378 $as_echo "$lt_cv_ld_force_load" >&6; }
14379 case $host_os in
14380 rhapsody* | darwin1.[012])
14381 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14382 darwin1.*)
14383 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14384 darwin*) # darwin 5.x on
14385 # if running on 10.5 or later, the deployment target defaults
14386 # to the OS version, if on x86, and 10.4, the deployment
14387 # target defaults to 10.4. Don't you love it?
14388 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14389 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14390 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14391 10.[012]*)
14392 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14393 10.*)
14394 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14395 esac
14397 esac
14398 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14399 _lt_dar_single_mod='$single_module'
14401 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14402 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14403 else
14404 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14406 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14407 _lt_dsymutil='~$DSYMUTIL $lib || :'
14408 else
14409 _lt_dsymutil=
14412 esac
14414 for ac_header in dlfcn.h
14415 do :
14416 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14417 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_DLFCN_H 1
14420 _ACEOF
14423 done
14429 # Set options
14433 enable_dlopen=no
14436 enable_win32_dll=no
14439 # Check whether --enable-shared was given.
14440 if test "${enable_shared+set}" = set; then :
14441 enableval=$enable_shared; p=${PACKAGE-default}
14442 case $enableval in
14443 yes) enable_shared=yes ;;
14444 no) enable_shared=no ;;
14446 enable_shared=no
14447 # Look at the argument we got. We use all the common list separators.
14448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14449 for pkg in $enableval; do
14450 IFS="$lt_save_ifs"
14451 if test "X$pkg" = "X$p"; then
14452 enable_shared=yes
14454 done
14455 IFS="$lt_save_ifs"
14457 esac
14458 else
14459 enable_shared=yes
14470 # Check whether --enable-static was given.
14471 if test "${enable_static+set}" = set; then :
14472 enableval=$enable_static; p=${PACKAGE-default}
14473 case $enableval in
14474 yes) enable_static=yes ;;
14475 no) enable_static=no ;;
14477 enable_static=no
14478 # Look at the argument we got. We use all the common list separators.
14479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14480 for pkg in $enableval; do
14481 IFS="$lt_save_ifs"
14482 if test "X$pkg" = "X$p"; then
14483 enable_static=yes
14485 done
14486 IFS="$lt_save_ifs"
14488 esac
14489 else
14490 enable_static=yes
14502 # Check whether --with-pic was given.
14503 if test "${with_pic+set}" = set; then :
14504 withval=$with_pic; pic_mode="$withval"
14505 else
14506 pic_mode=default
14510 test -z "$pic_mode" && pic_mode=default
14518 # Check whether --enable-fast-install was given.
14519 if test "${enable_fast_install+set}" = set; then :
14520 enableval=$enable_fast_install; p=${PACKAGE-default}
14521 case $enableval in
14522 yes) enable_fast_install=yes ;;
14523 no) enable_fast_install=no ;;
14525 enable_fast_install=no
14526 # Look at the argument we got. We use all the common list separators.
14527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14528 for pkg in $enableval; do
14529 IFS="$lt_save_ifs"
14530 if test "X$pkg" = "X$p"; then
14531 enable_fast_install=yes
14533 done
14534 IFS="$lt_save_ifs"
14536 esac
14537 else
14538 enable_fast_install=yes
14551 # This can be used to rebuild libtool when needed
14552 LIBTOOL_DEPS="$ltmain"
14554 # Always use our own libtool.
14555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14582 test -z "$LN_S" && LN_S="ln -s"
14597 if test -n "${ZSH_VERSION+set}" ; then
14598 setopt NO_GLOB_SUBST
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14602 $as_echo_n "checking for objdir... " >&6; }
14603 if test "${lt_cv_objdir+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 rm -f .libs 2>/dev/null
14607 mkdir .libs 2>/dev/null
14608 if test -d .libs; then
14609 lt_cv_objdir=.libs
14610 else
14611 # MS-DOS does not allow filenames that begin with a dot.
14612 lt_cv_objdir=_libs
14614 rmdir .libs 2>/dev/null
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14617 $as_echo "$lt_cv_objdir" >&6; }
14618 objdir=$lt_cv_objdir
14624 cat >>confdefs.h <<_ACEOF
14625 #define LT_OBJDIR "$lt_cv_objdir/"
14626 _ACEOF
14631 case $host_os in
14632 aix3*)
14633 # AIX sometimes has problems with the GCC collect2 program. For some
14634 # reason, if we set the COLLECT_NAMES environment variable, the problems
14635 # vanish in a puff of smoke.
14636 if test "X${COLLECT_NAMES+set}" != Xset; then
14637 COLLECT_NAMES=
14638 export COLLECT_NAMES
14641 esac
14643 # Global variables:
14644 ofile=libtool
14645 can_build_shared=yes
14647 # All known linkers require a `.a' archive for static linking (except MSVC,
14648 # which needs '.lib').
14649 libext=a
14651 with_gnu_ld="$lt_cv_prog_gnu_ld"
14653 old_CC="$CC"
14654 old_CFLAGS="$CFLAGS"
14656 # Set sane defaults for various variables
14657 test -z "$CC" && CC=cc
14658 test -z "$LTCC" && LTCC=$CC
14659 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14660 test -z "$LD" && LD=ld
14661 test -z "$ac_objext" && ac_objext=o
14663 for cc_temp in $compiler""; do
14664 case $cc_temp in
14665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14667 \-*) ;;
14668 *) break;;
14669 esac
14670 done
14671 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14674 # Only perform the check for file, if the check method requires it
14675 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14676 case $deplibs_check_method in
14677 file_magic*)
14678 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14680 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 case $MAGIC_CMD in
14685 [\\/*] | ?:[\\/]*)
14686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14689 lt_save_MAGIC_CMD="$MAGIC_CMD"
14690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14692 for ac_dir in $ac_dummy; do
14693 IFS="$lt_save_ifs"
14694 test -z "$ac_dir" && ac_dir=.
14695 if test -f $ac_dir/${ac_tool_prefix}file; then
14696 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14697 if test -n "$file_magic_test_file"; then
14698 case $deplibs_check_method in
14699 "file_magic "*)
14700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14703 $EGREP "$file_magic_regex" > /dev/null; then
14705 else
14706 cat <<_LT_EOF 1>&2
14708 *** Warning: the command libtool uses to detect shared libraries,
14709 *** $file_magic_cmd, produces output that libtool cannot recognize.
14710 *** The result is that libtool may fail to recognize shared libraries
14711 *** as such. This will affect the creation of libtool libraries that
14712 *** depend on shared libraries, but programs linked with such libtool
14713 *** libraries will work regardless of this problem. Nevertheless, you
14714 *** may want to report the problem to your system manager and/or to
14715 *** bug-libtool@gnu.org
14717 _LT_EOF
14718 fi ;;
14719 esac
14721 break
14723 done
14724 IFS="$lt_save_ifs"
14725 MAGIC_CMD="$lt_save_MAGIC_CMD"
14727 esac
14730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14731 if test -n "$MAGIC_CMD"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14733 $as_echo "$MAGIC_CMD" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14743 if test -z "$lt_cv_path_MAGIC_CMD"; then
14744 if test -n "$ac_tool_prefix"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14746 $as_echo_n "checking for file... " >&6; }
14747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 case $MAGIC_CMD in
14751 [\\/*] | ?:[\\/]*)
14752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14755 lt_save_MAGIC_CMD="$MAGIC_CMD"
14756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14758 for ac_dir in $ac_dummy; do
14759 IFS="$lt_save_ifs"
14760 test -z "$ac_dir" && ac_dir=.
14761 if test -f $ac_dir/file; then
14762 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14763 if test -n "$file_magic_test_file"; then
14764 case $deplibs_check_method in
14765 "file_magic "*)
14766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14769 $EGREP "$file_magic_regex" > /dev/null; then
14771 else
14772 cat <<_LT_EOF 1>&2
14774 *** Warning: the command libtool uses to detect shared libraries,
14775 *** $file_magic_cmd, produces output that libtool cannot recognize.
14776 *** The result is that libtool may fail to recognize shared libraries
14777 *** as such. This will affect the creation of libtool libraries that
14778 *** depend on shared libraries, but programs linked with such libtool
14779 *** libraries will work regardless of this problem. Nevertheless, you
14780 *** may want to report the problem to your system manager and/or to
14781 *** bug-libtool@gnu.org
14783 _LT_EOF
14784 fi ;;
14785 esac
14787 break
14789 done
14790 IFS="$lt_save_ifs"
14791 MAGIC_CMD="$lt_save_MAGIC_CMD"
14793 esac
14796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14797 if test -n "$MAGIC_CMD"; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14799 $as_echo "$MAGIC_CMD" >&6; }
14800 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14806 else
14807 MAGIC_CMD=:
14813 esac
14815 # Use C for the default configuration in the libtool script
14817 lt_save_CC="$CC"
14818 ac_ext=c
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825 # Source file extension for C test sources.
14826 ac_ext=c
14828 # Object file extension for compiled C test sources.
14829 objext=o
14830 objext=$objext
14832 # Code to be used in simple compile tests
14833 lt_simple_compile_test_code="int some_variable = 0;"
14835 # Code to be used in simple link tests
14836 lt_simple_link_test_code='int main(){return(0);}'
14844 # If no C compiler was specified, use CC.
14845 LTCC=${LTCC-"$CC"}
14847 # If no C compiler flags were specified, use CFLAGS.
14848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14850 # Allow CC to be a program name with arguments.
14851 compiler=$CC
14853 # Save the default compiler, since it gets overwritten when the other
14854 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14855 compiler_DEFAULT=$CC
14857 # save warnings/boilerplate of simple test code
14858 ac_outfile=conftest.$ac_objext
14859 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14861 _lt_compiler_boilerplate=`cat conftest.err`
14862 $RM conftest*
14864 ac_outfile=conftest.$ac_objext
14865 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14867 _lt_linker_boilerplate=`cat conftest.err`
14868 $RM -r conftest*
14871 ## CAVEAT EMPTOR:
14872 ## There is no encapsulation within the following macros, do not change
14873 ## the running order or otherwise move them around unless you know exactly
14874 ## what you are doing...
14875 if test -n "$compiler"; then
14877 lt_prog_compiler_no_builtin_flag=
14879 if test "$GCC" = yes; then
14880 case $cc_basename in
14881 nvcc*)
14882 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14884 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14885 esac
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14888 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14889 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 lt_cv_prog_compiler_rtti_exceptions=no
14893 ac_outfile=conftest.$ac_objext
14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895 lt_compiler_flag="-fno-rtti -fno-exceptions"
14896 # Insert the option either (1) after the last *FLAGS variable, or
14897 # (2) before a word containing "conftest.", or (3) at the end.
14898 # Note that $ac_compile itself does not contain backslashes and begins
14899 # with a dollar sign (not a hyphen), so the echo should work correctly.
14900 # The option is referenced via a variable to avoid confusing sed.
14901 lt_compile=`echo "$ac_compile" | $SED \
14902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904 -e 's:$: $lt_compiler_flag:'`
14905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14906 (eval "$lt_compile" 2>conftest.err)
14907 ac_status=$?
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 if (exit $ac_status) && test -s "$ac_outfile"; then
14911 # The compiler can only warn and ignore the option if not recognized
14912 # So say no if there are warnings other than the usual output.
14913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14916 lt_cv_prog_compiler_rtti_exceptions=yes
14919 $RM conftest*
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14923 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14925 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14926 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14927 else
14938 lt_prog_compiler_wl=
14939 lt_prog_compiler_pic=
14940 lt_prog_compiler_static=
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14945 if test "$GCC" = yes; then
14946 lt_prog_compiler_wl='-Wl,'
14947 lt_prog_compiler_static='-static'
14949 case $host_os in
14950 aix*)
14951 # All AIX code is PIC.
14952 if test "$host_cpu" = ia64; then
14953 # AIX 5 now supports IA64 processor
14954 lt_prog_compiler_static='-Bstatic'
14956 lt_prog_compiler_pic='-fPIC'
14959 amigaos*)
14960 case $host_cpu in
14961 powerpc)
14962 # see comment about AmigaOS4 .so support
14963 lt_prog_compiler_pic='-fPIC'
14965 m68k)
14966 # FIXME: we need at least 68020 code to build shared libraries, but
14967 # adding the `-m68020' flag to GCC prevents building anything better,
14968 # like `-m68040'.
14969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14971 esac
14974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14975 # PIC is the default for these OSes.
14978 mingw* | cygwin* | pw32* | os2* | cegcc*)
14979 # This hack is so that the source file can tell whether it is being
14980 # built for inclusion in a dll (and should export symbols for example).
14981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14982 # (--disable-auto-import) libraries
14983 lt_prog_compiler_pic='-DDLL_EXPORT'
14986 darwin* | rhapsody*)
14987 # PIC is the default on this platform
14988 # Common symbols not allowed in MH_DYLIB files
14989 lt_prog_compiler_pic='-fno-common'
14992 haiku*)
14993 # PIC is the default for Haiku.
14994 # The "-static" flag exists, but is broken.
14995 lt_prog_compiler_static=
14998 hpux*)
14999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15001 # sets the default TLS model and affects inlining.
15002 case $host_cpu in
15003 hppa*64*)
15004 # +Z the default
15007 lt_prog_compiler_pic='-fPIC'
15009 esac
15012 interix[3-9]*)
15013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15014 # Instead, we relocate shared libraries at runtime.
15017 msdosdjgpp*)
15018 # Just because we use GCC doesn't mean we suddenly get shared libraries
15019 # on systems that don't support them.
15020 lt_prog_compiler_can_build_shared=no
15021 enable_shared=no
15024 *nto* | *qnx*)
15025 # QNX uses GNU C++, but need to define -shared option too, otherwise
15026 # it will coredump.
15027 lt_prog_compiler_pic='-fPIC -shared'
15030 sysv4*MP*)
15031 if test -d /usr/nec; then
15032 lt_prog_compiler_pic=-Kconform_pic
15037 lt_prog_compiler_pic='-fPIC'
15039 esac
15041 case $cc_basename in
15042 nvcc*) # Cuda Compiler Driver 2.2
15043 lt_prog_compiler_wl='-Xlinker '
15044 lt_prog_compiler_pic='-Xcompiler -fPIC'
15046 esac
15047 else
15048 # PORTME Check for flag to pass linker flags through the system compiler.
15049 case $host_os in
15050 aix*)
15051 lt_prog_compiler_wl='-Wl,'
15052 if test "$host_cpu" = ia64; then
15053 # AIX 5 now supports IA64 processor
15054 lt_prog_compiler_static='-Bstatic'
15055 else
15056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15060 mingw* | cygwin* | pw32* | os2* | cegcc*)
15061 # This hack is so that the source file can tell whether it is being
15062 # built for inclusion in a dll (and should export symbols for example).
15063 lt_prog_compiler_pic='-DDLL_EXPORT'
15066 hpux9* | hpux10* | hpux11*)
15067 lt_prog_compiler_wl='-Wl,'
15068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15069 # not for PA HP-UX.
15070 case $host_cpu in
15071 hppa*64*|ia64*)
15072 # +Z the default
15075 lt_prog_compiler_pic='+Z'
15077 esac
15078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15079 lt_prog_compiler_static='${wl}-a ${wl}archive'
15082 irix5* | irix6* | nonstopux*)
15083 lt_prog_compiler_wl='-Wl,'
15084 # PIC (with -KPIC) is the default.
15085 lt_prog_compiler_static='-non_shared'
15088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15089 case $cc_basename in
15090 # old Intel for x86_64 which still supported -KPIC.
15091 ecc*)
15092 lt_prog_compiler_wl='-Wl,'
15093 lt_prog_compiler_pic='-KPIC'
15094 lt_prog_compiler_static='-static'
15096 # icc used to be incompatible with GCC.
15097 # ICC 10 doesn't accept -KPIC any more.
15098 icc* | ifort*)
15099 lt_prog_compiler_wl='-Wl,'
15100 lt_prog_compiler_pic='-fPIC'
15101 lt_prog_compiler_static='-static'
15103 # Lahey Fortran 8.1.
15104 lf95*)
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='--shared'
15107 lt_prog_compiler_static='--static'
15109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15110 # Portland Group compilers (*not* the Pentium gcc compiler,
15111 # which looks to be a dead project)
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-fpic'
15114 lt_prog_compiler_static='-Bstatic'
15116 ccc*)
15117 lt_prog_compiler_wl='-Wl,'
15118 # All Alpha code is PIC.
15119 lt_prog_compiler_static='-non_shared'
15121 xl* | bgxl* | bgf* | mpixl*)
15122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_pic='-qpic'
15125 lt_prog_compiler_static='-qstaticlink'
15128 case `$CC -V 2>&1 | sed 5q` in
15129 *Sun\ F* | *Sun*Fortran*)
15130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15131 lt_prog_compiler_pic='-KPIC'
15132 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_wl=''
15135 *Sun\ C*)
15136 # Sun C 5.9
15137 lt_prog_compiler_pic='-KPIC'
15138 lt_prog_compiler_static='-Bstatic'
15139 lt_prog_compiler_wl='-Wl,'
15141 esac
15143 esac
15146 newsos6)
15147 lt_prog_compiler_pic='-KPIC'
15148 lt_prog_compiler_static='-Bstatic'
15151 *nto* | *qnx*)
15152 # QNX uses GNU C++, but need to define -shared option too, otherwise
15153 # it will coredump.
15154 lt_prog_compiler_pic='-fPIC -shared'
15157 osf3* | osf4* | osf5*)
15158 lt_prog_compiler_wl='-Wl,'
15159 # All OSF/1 code is PIC.
15160 lt_prog_compiler_static='-non_shared'
15163 rdos*)
15164 lt_prog_compiler_static='-non_shared'
15167 solaris*)
15168 lt_prog_compiler_pic='-KPIC'
15169 lt_prog_compiler_static='-Bstatic'
15170 case $cc_basename in
15171 f77* | f90* | f95*)
15172 lt_prog_compiler_wl='-Qoption ld ';;
15174 lt_prog_compiler_wl='-Wl,';;
15175 esac
15178 sunos4*)
15179 lt_prog_compiler_wl='-Qoption ld '
15180 lt_prog_compiler_pic='-PIC'
15181 lt_prog_compiler_static='-Bstatic'
15184 sysv4 | sysv4.2uw2* | sysv4.3*)
15185 lt_prog_compiler_wl='-Wl,'
15186 lt_prog_compiler_pic='-KPIC'
15187 lt_prog_compiler_static='-Bstatic'
15190 sysv4*MP*)
15191 if test -d /usr/nec ;then
15192 lt_prog_compiler_pic='-Kconform_pic'
15193 lt_prog_compiler_static='-Bstatic'
15197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_pic='-KPIC'
15200 lt_prog_compiler_static='-Bstatic'
15203 unicos*)
15204 lt_prog_compiler_wl='-Wl,'
15205 lt_prog_compiler_can_build_shared=no
15208 uts4*)
15209 lt_prog_compiler_pic='-pic'
15210 lt_prog_compiler_static='-Bstatic'
15214 lt_prog_compiler_can_build_shared=no
15216 esac
15219 case $host_os in
15220 # For platforms which do not support PIC, -DPIC is meaningless:
15221 *djgpp*)
15222 lt_prog_compiler_pic=
15225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15227 esac
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15229 $as_echo "$lt_prog_compiler_pic" >&6; }
15237 # Check to make sure the PIC flag actually works.
15239 if test -n "$lt_prog_compiler_pic"; then
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15242 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 lt_cv_prog_compiler_pic_works=no
15246 ac_outfile=conftest.$ac_objext
15247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 # The option is referenced via a variable to avoid confusing sed.
15254 lt_compile=`echo "$ac_compile" | $SED \
15255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257 -e 's:$: $lt_compiler_flag:'`
15258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15259 (eval "$lt_compile" 2>conftest.err)
15260 ac_status=$?
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 if (exit $ac_status) && test -s "$ac_outfile"; then
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings other than the usual output.
15266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15269 lt_cv_prog_compiler_pic_works=yes
15272 $RM conftest*
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15276 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15278 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15279 case $lt_prog_compiler_pic in
15280 "" | " "*) ;;
15281 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15282 esac
15283 else
15284 lt_prog_compiler_pic=
15285 lt_prog_compiler_can_build_shared=no
15296 # Check to make sure the static flag actually works.
15298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15300 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15301 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304 lt_cv_prog_compiler_static_works=no
15305 save_LDFLAGS="$LDFLAGS"
15306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15309 # The linker can only warn and ignore the option if not recognized
15310 # So say no if there are warnings
15311 if test -s conftest.err; then
15312 # Append any errors to the config.log.
15313 cat conftest.err 1>&5
15314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15316 if diff conftest.exp conftest.er2 >/dev/null; then
15317 lt_cv_prog_compiler_static_works=yes
15319 else
15320 lt_cv_prog_compiler_static_works=yes
15323 $RM -r conftest*
15324 LDFLAGS="$save_LDFLAGS"
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15328 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15330 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15332 else
15333 lt_prog_compiler_static=
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 lt_cv_prog_compiler_c_o=no
15348 $RM -r conftest 2>/dev/null
15349 mkdir conftest
15350 cd conftest
15351 mkdir out
15352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354 lt_compiler_flag="-o out/conftest2.$ac_objext"
15355 # Insert the option either (1) after the last *FLAGS variable, or
15356 # (2) before a word containing "conftest.", or (3) at the end.
15357 # Note that $ac_compile itself does not contain backslashes and begins
15358 # with a dollar sign (not a hyphen), so the echo should work correctly.
15359 lt_compile=`echo "$ac_compile" | $SED \
15360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362 -e 's:$: $lt_compiler_flag:'`
15363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15364 (eval "$lt_compile" 2>out/conftest.err)
15365 ac_status=$?
15366 cat out/conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15369 then
15370 # The compiler can only warn and ignore the option if not recognized
15371 # So say no if there are warnings
15372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375 lt_cv_prog_compiler_c_o=yes
15378 chmod u+w . 2>&5
15379 $RM conftest*
15380 # SGI C++ compiler will create directory out/ii_files/ for
15381 # template instantiation
15382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15383 $RM out/* && rmdir out
15384 cd ..
15385 $RM -r conftest
15386 $RM conftest*
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15398 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15399 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15402 lt_cv_prog_compiler_c_o=no
15403 $RM -r conftest 2>/dev/null
15404 mkdir conftest
15405 cd conftest
15406 mkdir out
15407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409 lt_compiler_flag="-o out/conftest2.$ac_objext"
15410 # Insert the option either (1) after the last *FLAGS variable, or
15411 # (2) before a word containing "conftest.", or (3) at the end.
15412 # Note that $ac_compile itself does not contain backslashes and begins
15413 # with a dollar sign (not a hyphen), so the echo should work correctly.
15414 lt_compile=`echo "$ac_compile" | $SED \
15415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15417 -e 's:$: $lt_compiler_flag:'`
15418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15419 (eval "$lt_compile" 2>out/conftest.err)
15420 ac_status=$?
15421 cat out/conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15424 then
15425 # The compiler can only warn and ignore the option if not recognized
15426 # So say no if there are warnings
15427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15430 lt_cv_prog_compiler_c_o=yes
15433 chmod u+w . 2>&5
15434 $RM conftest*
15435 # SGI C++ compiler will create directory out/ii_files/ for
15436 # template instantiation
15437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15438 $RM out/* && rmdir out
15439 cd ..
15440 $RM -r conftest
15441 $RM conftest*
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15445 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15450 hard_links="nottested"
15451 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15452 # do not overwrite the value of need_locks provided by the user
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15454 $as_echo_n "checking if we can lock with hard links... " >&6; }
15455 hard_links=yes
15456 $RM conftest*
15457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458 touch conftest.a
15459 ln conftest.a conftest.b 2>&5 || hard_links=no
15460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15462 $as_echo "$hard_links" >&6; }
15463 if test "$hard_links" = no; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15465 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15466 need_locks=warn
15468 else
15469 need_locks=no
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15478 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15480 runpath_var=
15481 allow_undefined_flag=
15482 always_export_symbols=no
15483 archive_cmds=
15484 archive_expsym_cmds=
15485 compiler_needs_object=no
15486 enable_shared_with_static_runtimes=no
15487 export_dynamic_flag_spec=
15488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15489 hardcode_automatic=no
15490 hardcode_direct=no
15491 hardcode_direct_absolute=no
15492 hardcode_libdir_flag_spec=
15493 hardcode_libdir_flag_spec_ld=
15494 hardcode_libdir_separator=
15495 hardcode_minus_L=no
15496 hardcode_shlibpath_var=unsupported
15497 inherit_rpath=no
15498 link_all_deplibs=unknown
15499 module_cmds=
15500 module_expsym_cmds=
15501 old_archive_from_new_cmds=
15502 old_archive_from_expsyms_cmds=
15503 thread_safe_flag_spec=
15504 whole_archive_flag_spec=
15505 # include_expsyms should be a list of space-separated symbols to be *always*
15506 # included in the symbol list
15507 include_expsyms=
15508 # exclude_expsyms can be an extended regexp of symbols to exclude
15509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15511 # as well as any symbol that contains `d'.
15512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15514 # platforms (ab)use it in PIC code, but their linkers get confused if
15515 # the symbol is explicitly referenced. Since portable code cannot
15516 # rely on this symbol name, it's probably fine to never include it in
15517 # preloaded symbol tables.
15518 # Exclude shared library initialization/finalization symbols.
15519 extract_expsyms_cmds=
15521 case $host_os in
15522 cygwin* | mingw* | pw32* | cegcc*)
15523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15524 # When not using gcc, we currently assume that we are using
15525 # Microsoft Visual C++.
15526 if test "$GCC" != yes; then
15527 with_gnu_ld=no
15530 interix*)
15531 # we just hope/assume this is gcc and not c89 (= MSVC++)
15532 with_gnu_ld=yes
15534 openbsd*)
15535 with_gnu_ld=no
15537 esac
15539 ld_shlibs=yes
15541 # On some targets, GNU ld is compatible enough with the native linker
15542 # that we're better off using the native interface for both.
15543 lt_use_gnu_ld_interface=no
15544 if test "$with_gnu_ld" = yes; then
15545 case $host_os in
15546 aix*)
15547 # The AIX port of GNU ld has always aspired to compatibility
15548 # with the native linker. However, as the warning in the GNU ld
15549 # block says, versions before 2.19.5* couldn't really create working
15550 # shared libraries, regardless of the interface used.
15551 case `$LD -v 2>&1` in
15552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15556 lt_use_gnu_ld_interface=yes
15558 esac
15561 lt_use_gnu_ld_interface=yes
15563 esac
15566 if test "$lt_use_gnu_ld_interface" = yes; then
15567 # If archive_cmds runs LD, not CC, wlarc should be empty
15568 wlarc='${wl}'
15570 # Set some defaults for GNU ld with shared library support. These
15571 # are reset later if shared libraries are not supported. Putting them
15572 # here allows them to be overridden if necessary.
15573 runpath_var=LD_RUN_PATH
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 export_dynamic_flag_spec='${wl}--export-dynamic'
15576 # ancient GNU ld didn't support --whole-archive et. al.
15577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15579 else
15580 whole_archive_flag_spec=
15582 supports_anon_versioning=no
15583 case `$LD -v 2>&1` in
15584 *GNU\ gold*) supports_anon_versioning=yes ;;
15585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15590 esac
15592 # See if GNU ld supports shared libraries.
15593 case $host_os in
15594 aix[3-9]*)
15595 # On AIX/PPC, the GNU linker is very broken
15596 if test "$host_cpu" != ia64; then
15597 ld_shlibs=no
15598 cat <<_LT_EOF 1>&2
15600 *** Warning: the GNU linker, at least up to release 2.19, is reported
15601 *** to be unable to reliably create shared libraries on AIX.
15602 *** Therefore, libtool is disabling shared libraries support. If you
15603 *** really care for shared libraries, you may want to install binutils
15604 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15605 *** You will then need to restart the configuration process.
15607 _LT_EOF
15611 amigaos*)
15612 case $host_cpu in
15613 powerpc)
15614 # see comment about AmigaOS4 .so support
15615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616 archive_expsym_cmds=''
15618 m68k)
15619 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)'
15620 hardcode_libdir_flag_spec='-L$libdir'
15621 hardcode_minus_L=yes
15623 esac
15626 beos*)
15627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15628 allow_undefined_flag=unsupported
15629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15630 # support --undefined. This deserves some investigation. FIXME
15631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 else
15633 ld_shlibs=no
15637 cygwin* | mingw* | pw32* | cegcc*)
15638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15639 # as there is no search path for DLLs.
15640 hardcode_libdir_flag_spec='-L$libdir'
15641 export_dynamic_flag_spec='${wl}--export-all-symbols'
15642 allow_undefined_flag=unsupported
15643 always_export_symbols=no
15644 enable_shared_with_static_runtimes=yes
15645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15647 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15649 # If the export-symbols file already is a .def file (1st line
15650 # is EXPORTS), use it as is; otherwise, prepend...
15651 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15652 cp $export_symbols $output_objdir/$soname.def;
15653 else
15654 echo EXPORTS > $output_objdir/$soname.def;
15655 cat $export_symbols >> $output_objdir/$soname.def;
15657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15658 else
15659 ld_shlibs=no
15663 haiku*)
15664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15665 link_all_deplibs=yes
15668 interix[3-9]*)
15669 hardcode_direct=no
15670 hardcode_shlibpath_var=no
15671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15672 export_dynamic_flag_spec='${wl}-E'
15673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15674 # Instead, shared libraries are loaded at an image base (0x10000000 by
15675 # default) and relocated if they conflict, which is a slow very memory
15676 # consuming and fragmenting process. To avoid this, we pick a random,
15677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15680 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'
15683 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15684 tmp_diet=no
15685 if test "$host_os" = linux-dietlibc; then
15686 case $cc_basename in
15687 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15688 esac
15690 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15691 && test "$tmp_diet" = no
15692 then
15693 tmp_addflag=
15694 tmp_sharedflag='-shared'
15695 case $cc_basename,$host_cpu in
15696 pgcc*) # Portland Group C compiler
15697 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'
15698 tmp_addflag=' $pic_flag'
15700 pgf77* | pgf90* | pgf95* | pgfortran*)
15701 # Portland Group f77 and f90 compilers
15702 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'
15703 tmp_addflag=' $pic_flag -Mnomain' ;;
15704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15705 tmp_addflag=' -i_dynamic' ;;
15706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15707 tmp_addflag=' -i_dynamic -nofor_main' ;;
15708 ifc* | ifort*) # Intel Fortran compiler
15709 tmp_addflag=' -nofor_main' ;;
15710 lf95*) # Lahey Fortran 8.1
15711 whole_archive_flag_spec=
15712 tmp_sharedflag='--shared' ;;
15713 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15714 tmp_sharedflag='-qmkshrobj'
15715 tmp_addflag= ;;
15716 nvcc*) # Cuda Compiler Driver 2.2
15717 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'
15718 compiler_needs_object=yes
15720 esac
15721 case `$CC -V 2>&1 | sed 5q` in
15722 *Sun\ C*) # Sun C 5.9
15723 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'
15724 compiler_needs_object=yes
15725 tmp_sharedflag='-G' ;;
15726 *Sun\ F*) # Sun Fortran 8.3
15727 tmp_sharedflag='-G' ;;
15728 esac
15729 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731 if test "x$supports_anon_versioning" = xyes; then
15732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15734 echo "local: *; };" >> $output_objdir/$libname.ver~
15735 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15738 case $cc_basename in
15739 xlf* | bgf* | bgxlf* | mpixlf*)
15740 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15741 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15742 hardcode_libdir_flag_spec=
15743 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15744 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15745 if test "x$supports_anon_versioning" = xyes; then
15746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15748 echo "local: *; };" >> $output_objdir/$libname.ver~
15749 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15752 esac
15753 else
15754 ld_shlibs=no
15758 netbsd*)
15759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15761 wlarc=
15762 else
15763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15768 solaris*)
15769 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15770 ld_shlibs=no
15771 cat <<_LT_EOF 1>&2
15773 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15774 *** create shared libraries on Solaris systems. Therefore, libtool
15775 *** is disabling shared libraries support. We urge you to upgrade GNU
15776 *** binutils to release 2.9.1 or newer. Another option is to modify
15777 *** your PATH or compiler configuration so that the native linker is
15778 *** used, and then restart.
15780 _LT_EOF
15781 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15784 else
15785 ld_shlibs=no
15789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15790 case `$LD -v 2>&1` in
15791 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15792 ld_shlibs=no
15793 cat <<_LT_EOF 1>&2
15795 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15796 *** reliably create shared libraries on SCO systems. Therefore, libtool
15797 *** is disabling shared libraries support. We urge you to upgrade GNU
15798 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15799 *** your PATH or compiler configuration so that the native linker is
15800 *** used, and then restart.
15802 _LT_EOF
15805 # For security reasons, it is highly recommended that you always
15806 # use absolute paths for naming shared libraries, and exclude the
15807 # DT_RUNPATH tag from executables and libraries. But doing so
15808 # requires that you compile everything twice, which is a pain.
15809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15813 else
15814 ld_shlibs=no
15817 esac
15820 sunos4*)
15821 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15822 wlarc=
15823 hardcode_direct=yes
15824 hardcode_shlibpath_var=no
15828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15831 else
15832 ld_shlibs=no
15835 esac
15837 if test "$ld_shlibs" = no; then
15838 runpath_var=
15839 hardcode_libdir_flag_spec=
15840 export_dynamic_flag_spec=
15841 whole_archive_flag_spec=
15843 else
15844 # PORTME fill in a description of your system's linker (not GNU ld)
15845 case $host_os in
15846 aix3*)
15847 allow_undefined_flag=unsupported
15848 always_export_symbols=yes
15849 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'
15850 # Note: this linker hardcodes the directories in LIBPATH if there
15851 # are no directories specified by -L.
15852 hardcode_minus_L=yes
15853 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15854 # Neither direct hardcoding nor static linking is supported with a
15855 # broken collect2.
15856 hardcode_direct=unsupported
15860 aix[4-9]*)
15861 if test "$host_cpu" = ia64; then
15862 # On IA64, the linker does run time linking by default, so we don't
15863 # have to do anything special.
15864 aix_use_runtimelinking=no
15865 exp_sym_flag='-Bexport'
15866 no_entry_flag=""
15867 else
15868 # If we're using GNU nm, then we don't want the "-C" option.
15869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15870 # Also, AIX nm treats weak defined symbols like other global
15871 # defined symbols, whereas GNU nm marks them as "W".
15872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15873 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'
15874 else
15875 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'
15877 aix_use_runtimelinking=no
15879 # Test if we are trying to use run time linking or normal
15880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15881 # need to do runtime linking.
15882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15883 for ld_flag in $LDFLAGS; do
15884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15885 aix_use_runtimelinking=yes
15886 break
15888 done
15890 esac
15892 exp_sym_flag='-bexport'
15893 no_entry_flag='-bnoentry'
15896 # When large executables or shared objects are built, AIX ld can
15897 # have problems creating the table of contents. If linking a library
15898 # or program results in "error TOC overflow" add -mminimal-toc to
15899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15902 archive_cmds=''
15903 hardcode_direct=yes
15904 hardcode_direct_absolute=yes
15905 hardcode_libdir_separator=':'
15906 link_all_deplibs=yes
15907 file_list_spec='${wl}-f,'
15909 if test "$GCC" = yes; then
15910 case $host_os in aix4.[012]|aix4.[012].*)
15911 # We only want to do this on AIX 4.2 and lower, the check
15912 # below for broken collect2 doesn't work under 4.3+
15913 collect2name=`${CC} -print-prog-name=collect2`
15914 if test -f "$collect2name" &&
15915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15916 then
15917 # We have reworked collect2
15919 else
15920 # We have old collect2
15921 hardcode_direct=unsupported
15922 # It fails to find uninstalled libraries when the uninstalled
15923 # path is not listed in the libpath. Setting hardcode_minus_L
15924 # to unsupported forces relinking
15925 hardcode_minus_L=yes
15926 hardcode_libdir_flag_spec='-L$libdir'
15927 hardcode_libdir_separator=
15930 esac
15931 shared_flag='-shared'
15932 if test "$aix_use_runtimelinking" = yes; then
15933 shared_flag="$shared_flag "'${wl}-G'
15935 else
15936 # not using gcc
15937 if test "$host_cpu" = ia64; then
15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15939 # chokes on -Wl,-G. The following line is correct:
15940 shared_flag='-G'
15941 else
15942 if test "$aix_use_runtimelinking" = yes; then
15943 shared_flag='${wl}-G'
15944 else
15945 shared_flag='${wl}-bM:SRE'
15950 export_dynamic_flag_spec='${wl}-bexpall'
15951 # It seems that -bexpall does not export symbols beginning with
15952 # underscore (_), so it is better to generate a list of symbols to export.
15953 always_export_symbols=yes
15954 if test "$aix_use_runtimelinking" = yes; then
15955 # Warning - without using the other runtime loading flags (-brtl),
15956 # -berok will link without error, but may produce a broken library.
15957 allow_undefined_flag='-berok'
15958 # Determine the default libpath from the value encoded in an
15959 # empty executable.
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15964 main ()
15968 return 0;
15970 _ACEOF
15971 if ac_fn_c_try_link "$LINENO"; then :
15973 lt_aix_libpath_sed='
15974 /Import File Strings/,/^$/ {
15975 /^0/ {
15976 s/^0 *\(.*\)$/\1/
15980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15981 # Check for a 64-bit object if we didn't find anything.
15982 if test -z "$aix_libpath"; then
15983 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15986 rm -f core conftest.err conftest.$ac_objext \
15987 conftest$ac_exeext conftest.$ac_ext
15988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15991 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"
15992 else
15993 if test "$host_cpu" = ia64; then
15994 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15995 allow_undefined_flag="-z nodefs"
15996 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"
15997 else
15998 # Determine the default libpath from the value encoded in an
15999 # empty executable.
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16004 main ()
16008 return 0;
16010 _ACEOF
16011 if ac_fn_c_try_link "$LINENO"; then :
16013 lt_aix_libpath_sed='
16014 /Import File Strings/,/^$/ {
16015 /^0/ {
16016 s/^0 *\(.*\)$/\1/
16020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16021 # Check for a 64-bit object if we didn't find anything.
16022 if test -z "$aix_libpath"; then
16023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16026 rm -f core conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
16028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16031 # Warning - without using the other run time loading flags,
16032 # -berok will link without error, but may produce a broken library.
16033 no_undefined_flag=' ${wl}-bernotok'
16034 allow_undefined_flag=' ${wl}-berok'
16035 if test "$with_gnu_ld" = yes; then
16036 # We only use this code for GNU lds that support --whole-archive.
16037 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16038 else
16039 # Exported symbols can be pulled into shared objects from archives
16040 whole_archive_flag_spec='$convenience'
16042 archive_cmds_need_lc=yes
16043 # This is similar to how AIX traditionally builds its shared libraries.
16044 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'
16049 amigaos*)
16050 case $host_cpu in
16051 powerpc)
16052 # see comment about AmigaOS4 .so support
16053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 archive_expsym_cmds=''
16056 m68k)
16057 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)'
16058 hardcode_libdir_flag_spec='-L$libdir'
16059 hardcode_minus_L=yes
16061 esac
16064 bsdi[45]*)
16065 export_dynamic_flag_spec=-rdynamic
16068 cygwin* | mingw* | pw32* | cegcc*)
16069 # When not using gcc, we currently assume that we are using
16070 # Microsoft Visual C++.
16071 # hardcode_libdir_flag_spec is actually meaningless, as there is
16072 # no search path for DLLs.
16073 hardcode_libdir_flag_spec=' '
16074 allow_undefined_flag=unsupported
16075 # Tell ltmain to make .lib files, not .a files.
16076 libext=lib
16077 # Tell ltmain to make .dll files, not .so files.
16078 shrext_cmds=".dll"
16079 # FIXME: Setting linknames here is a bad hack.
16080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16081 # The linker will automatically build a .lib file if we build a DLL.
16082 old_archive_from_new_cmds='true'
16083 # FIXME: Should let the user specify the lib program.
16084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16085 fix_srcfile_path='`cygpath -w "$srcfile"`'
16086 enable_shared_with_static_runtimes=yes
16089 darwin* | rhapsody*)
16092 archive_cmds_need_lc=no
16093 hardcode_direct=no
16094 hardcode_automatic=yes
16095 hardcode_shlibpath_var=unsupported
16096 if test "$lt_cv_ld_force_load" = "yes"; then
16097 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\"`'
16098 else
16099 whole_archive_flag_spec=''
16101 link_all_deplibs=yes
16102 allow_undefined_flag="$_lt_dar_allow_undefined"
16103 case $cc_basename in
16104 ifort*) _lt_dar_can_shared=yes ;;
16105 *) _lt_dar_can_shared=$GCC ;;
16106 esac
16107 if test "$_lt_dar_can_shared" = "yes"; then
16108 output_verbose_link_cmd=func_echo_all
16109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16111 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}"
16112 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}"
16114 else
16115 ld_shlibs=no
16120 dgux*)
16121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_libdir_flag_spec='-L$libdir'
16123 hardcode_shlibpath_var=no
16126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16127 # support. Future versions do this automatically, but an explicit c++rt0.o
16128 # does not break anything, and helps significantly (at the cost of a little
16129 # extra space).
16130 freebsd2.2*)
16131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16132 hardcode_libdir_flag_spec='-R$libdir'
16133 hardcode_direct=yes
16134 hardcode_shlibpath_var=no
16137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16138 freebsd2.*)
16139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16140 hardcode_direct=yes
16141 hardcode_minus_L=yes
16142 hardcode_shlibpath_var=no
16145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16146 freebsd* | dragonfly*)
16147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16148 hardcode_libdir_flag_spec='-R$libdir'
16149 hardcode_direct=yes
16150 hardcode_shlibpath_var=no
16153 hpux9*)
16154 if test "$GCC" = yes; then
16155 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'
16156 else
16157 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'
16159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16160 hardcode_libdir_separator=:
16161 hardcode_direct=yes
16163 # hardcode_minus_L: Not really in the search PATH,
16164 # but as the default location of the library.
16165 hardcode_minus_L=yes
16166 export_dynamic_flag_spec='${wl}-E'
16169 hpux10*)
16170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16172 else
16173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16175 if test "$with_gnu_ld" = no; then
16176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16177 hardcode_libdir_flag_spec_ld='+b $libdir'
16178 hardcode_libdir_separator=:
16179 hardcode_direct=yes
16180 hardcode_direct_absolute=yes
16181 export_dynamic_flag_spec='${wl}-E'
16182 # hardcode_minus_L: Not really in the search PATH,
16183 # but as the default location of the library.
16184 hardcode_minus_L=yes
16188 hpux11*)
16189 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16190 case $host_cpu in
16191 hppa*64*)
16192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 ia64*)
16195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16200 esac
16201 else
16202 case $host_cpu in
16203 hppa*64*)
16204 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 ia64*)
16207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 # Older versions of the 11.00 compiler do not understand -b yet
16212 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16214 $as_echo_n "checking if $CC understands -b... " >&6; }
16215 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 lt_cv_prog_compiler__b=no
16219 save_LDFLAGS="$LDFLAGS"
16220 LDFLAGS="$LDFLAGS -b"
16221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16223 # The linker can only warn and ignore the option if not recognized
16224 # So say no if there are warnings
16225 if test -s conftest.err; then
16226 # Append any errors to the config.log.
16227 cat conftest.err 1>&5
16228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16230 if diff conftest.exp conftest.er2 >/dev/null; then
16231 lt_cv_prog_compiler__b=yes
16233 else
16234 lt_cv_prog_compiler__b=yes
16237 $RM -r conftest*
16238 LDFLAGS="$save_LDFLAGS"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16242 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16244 if test x"$lt_cv_prog_compiler__b" = xyes; then
16245 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16246 else
16247 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16251 esac
16253 if test "$with_gnu_ld" = no; then
16254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16255 hardcode_libdir_separator=:
16257 case $host_cpu in
16258 hppa*64*|ia64*)
16259 hardcode_direct=no
16260 hardcode_shlibpath_var=no
16263 hardcode_direct=yes
16264 hardcode_direct_absolute=yes
16265 export_dynamic_flag_spec='${wl}-E'
16267 # hardcode_minus_L: Not really in the search PATH,
16268 # but as the default location of the library.
16269 hardcode_minus_L=yes
16271 esac
16275 irix5* | irix6* | nonstopux*)
16276 if test "$GCC" = yes; then
16277 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'
16278 # Try to use the -exported_symbol ld option, if it does not
16279 # work, assume that -exports_file does not work either and
16280 # implicitly export all symbols.
16281 save_LDFLAGS="$LDFLAGS"
16282 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 int foo(void) {}
16286 _ACEOF
16287 if ac_fn_c_try_link "$LINENO"; then :
16288 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'
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LDFLAGS="$save_LDFLAGS"
16294 else
16295 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'
16296 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'
16298 archive_cmds_need_lc='no'
16299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16300 hardcode_libdir_separator=:
16301 inherit_rpath=yes
16302 link_all_deplibs=yes
16305 netbsd*)
16306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16308 else
16309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16311 hardcode_libdir_flag_spec='-R$libdir'
16312 hardcode_direct=yes
16313 hardcode_shlibpath_var=no
16316 newsos6)
16317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318 hardcode_direct=yes
16319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16320 hardcode_libdir_separator=:
16321 hardcode_shlibpath_var=no
16324 *nto* | *qnx*)
16327 openbsd*)
16328 if test -f /usr/libexec/ld.so; then
16329 hardcode_direct=yes
16330 hardcode_shlibpath_var=no
16331 hardcode_direct_absolute=yes
16332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16334 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16336 export_dynamic_flag_spec='${wl}-E'
16337 else
16338 case $host_os in
16339 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16341 hardcode_libdir_flag_spec='-R$libdir'
16344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16347 esac
16349 else
16350 ld_shlibs=no
16354 os2*)
16355 hardcode_libdir_flag_spec='-L$libdir'
16356 hardcode_minus_L=yes
16357 allow_undefined_flag=unsupported
16358 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'
16359 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16362 osf3*)
16363 if test "$GCC" = yes; then
16364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16365 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'
16366 else
16367 allow_undefined_flag=' -expect_unresolved \*'
16368 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'
16370 archive_cmds_need_lc='no'
16371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16372 hardcode_libdir_separator=:
16375 osf4* | osf5*) # as osf3* with the addition of -msym flag
16376 if test "$GCC" = yes; then
16377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16378 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'
16379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16380 else
16381 allow_undefined_flag=' -expect_unresolved \*'
16382 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'
16383 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~
16384 $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'
16386 # Both c and cxx compiler support -rpath directly
16387 hardcode_libdir_flag_spec='-rpath $libdir'
16389 archive_cmds_need_lc='no'
16390 hardcode_libdir_separator=:
16393 solaris*)
16394 no_undefined_flag=' -z defs'
16395 if test "$GCC" = yes; then
16396 wlarc='${wl}'
16397 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16399 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16400 else
16401 case `$CC -V 2>&1` in
16402 *"Compilers 5.0"*)
16403 wlarc=''
16404 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16409 wlarc='${wl}'
16410 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16412 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16414 esac
16416 hardcode_libdir_flag_spec='-R$libdir'
16417 hardcode_shlibpath_var=no
16418 case $host_os in
16419 solaris2.[0-5] | solaris2.[0-5].*) ;;
16421 # The compiler driver will combine and reorder linker options,
16422 # but understands `-z linker_flag'. GCC discards it without `$wl',
16423 # but is careful enough not to reorder.
16424 # Supported since Solaris 2.6 (maybe 2.5.1?)
16425 if test "$GCC" = yes; then
16426 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16427 else
16428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16431 esac
16432 link_all_deplibs=yes
16435 sunos4*)
16436 if test "x$host_vendor" = xsequent; then
16437 # Use $CC to link under sequent, because it throws in some extra .o
16438 # files that make .init and .fini sections work.
16439 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16440 else
16441 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16443 hardcode_libdir_flag_spec='-L$libdir'
16444 hardcode_direct=yes
16445 hardcode_minus_L=yes
16446 hardcode_shlibpath_var=no
16449 sysv4)
16450 case $host_vendor in
16451 sni)
16452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453 hardcode_direct=yes # is this really true???
16455 siemens)
16456 ## LD is ld it makes a PLAMLIB
16457 ## CC just makes a GrossModule.
16458 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16459 reload_cmds='$CC -r -o $output$reload_objs'
16460 hardcode_direct=no
16462 motorola)
16463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16466 esac
16467 runpath_var='LD_RUN_PATH'
16468 hardcode_shlibpath_var=no
16471 sysv4.3*)
16472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_shlibpath_var=no
16474 export_dynamic_flag_spec='-Bexport'
16477 sysv4*MP*)
16478 if test -d /usr/nec; then
16479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_shlibpath_var=no
16481 runpath_var=LD_RUN_PATH
16482 hardcode_runpath_var=yes
16483 ld_shlibs=yes
16487 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16488 no_undefined_flag='${wl}-z,text'
16489 archive_cmds_need_lc=no
16490 hardcode_shlibpath_var=no
16491 runpath_var='LD_RUN_PATH'
16493 if test "$GCC" = yes; then
16494 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16496 else
16497 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16498 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16502 sysv5* | sco3.2v5* | sco5v6*)
16503 # Note: We can NOT use -z defs as we might desire, because we do not
16504 # link with -lc, and that would cause any symbols used from libc to
16505 # always be unresolved, which means just about no library would
16506 # ever link correctly. If we're not using GNU ld we use -z text
16507 # though, which does catch some bad symbols but isn't as heavy-handed
16508 # as -z defs.
16509 no_undefined_flag='${wl}-z,text'
16510 allow_undefined_flag='${wl}-z,nodefs'
16511 archive_cmds_need_lc=no
16512 hardcode_shlibpath_var=no
16513 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16514 hardcode_libdir_separator=':'
16515 link_all_deplibs=yes
16516 export_dynamic_flag_spec='${wl}-Bexport'
16517 runpath_var='LD_RUN_PATH'
16519 if test "$GCC" = yes; then
16520 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 else
16523 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16524 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16528 uts4*)
16529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_libdir_flag_spec='-L$libdir'
16531 hardcode_shlibpath_var=no
16535 ld_shlibs=no
16537 esac
16539 if test x$host_vendor = xsni; then
16540 case $host in
16541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16542 export_dynamic_flag_spec='${wl}-Blargedynsym'
16544 esac
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16549 $as_echo "$ld_shlibs" >&6; }
16550 test "$ld_shlibs" = no && can_build_shared=no
16552 with_gnu_ld=$with_gnu_ld
16569 # Do we need to explicitly link libc?
16571 case "x$archive_cmds_need_lc" in
16572 x|xyes)
16573 # Assume -lc should be added
16574 archive_cmds_need_lc=yes
16576 if test "$enable_shared" = yes && test "$GCC" = yes; then
16577 case $archive_cmds in
16578 *'~'*)
16579 # FIXME: we may have to deal with multi-command sequences.
16581 '$CC '*)
16582 # Test whether the compiler implicitly links with -lc since on some
16583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584 # to ld, don't add -lc before -lgcc.
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16586 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16587 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16588 $as_echo_n "(cached) " >&6
16589 else
16590 $RM conftest*
16591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16594 (eval $ac_compile) 2>&5
16595 ac_status=$?
16596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16597 test $ac_status = 0; } 2>conftest.err; then
16598 soname=conftest
16599 lib=conftest
16600 libobjs=conftest.$ac_objext
16601 deplibs=
16602 wl=$lt_prog_compiler_wl
16603 pic_flag=$lt_prog_compiler_pic
16604 compiler_flags=-v
16605 linker_flags=-v
16606 verstring=
16607 output_objdir=.
16608 libname=conftest
16609 lt_save_allow_undefined_flag=$allow_undefined_flag
16610 allow_undefined_flag=
16611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16612 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16613 ac_status=$?
16614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16615 test $ac_status = 0; }
16616 then
16617 lt_cv_archive_cmds_need_lc=no
16618 else
16619 lt_cv_archive_cmds_need_lc=yes
16621 allow_undefined_flag=$lt_save_allow_undefined_flag
16622 else
16623 cat conftest.err 1>&5
16625 $RM conftest*
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16629 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16630 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16632 esac
16635 esac
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16796 if test "$GCC" = yes; then
16797 case $host_os in
16798 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16799 *) lt_awk_arg="/^libraries:/" ;;
16800 esac
16801 case $host_os in
16802 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16803 *) lt_sed_strip_eq="s,=/,/,g" ;;
16804 esac
16805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16806 case $lt_search_path_spec in
16807 *\;*)
16808 # if the path contains ";" then we assume it to be the separator
16809 # otherwise default to the standard path separator (i.e. ":") - it is
16810 # assumed that no part of a normal pathname contains ";" but that should
16811 # okay in the real world where ";" in dirpaths is itself problematic.
16812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16817 esac
16818 # Ok, now we have the path, separated by spaces, we can step through it
16819 # and add multilib dir if necessary.
16820 lt_tmp_lt_search_path_spec=
16821 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16822 for lt_sys_path in $lt_search_path_spec; do
16823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16825 else
16826 test -d "$lt_sys_path" && \
16827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16829 done
16830 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16831 BEGIN {RS=" "; FS="/|\n";} {
16832 lt_foo="";
16833 lt_count=0;
16834 for (lt_i = NF; lt_i > 0; lt_i--) {
16835 if ($lt_i != "" && $lt_i != ".") {
16836 if ($lt_i == "..") {
16837 lt_count++;
16838 } else {
16839 if (lt_count == 0) {
16840 lt_foo="/" $lt_i lt_foo;
16841 } else {
16842 lt_count--;
16847 if (lt_foo != "") { lt_freq[lt_foo]++; }
16848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16850 # AWK program above erroneously prepends '/' to C:/dos/paths
16851 # for these hosts.
16852 case $host_os in
16853 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16854 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16855 esac
16856 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16857 else
16858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16860 library_names_spec=
16861 libname_spec='lib$name'
16862 soname_spec=
16863 shrext_cmds=".so"
16864 postinstall_cmds=
16865 postuninstall_cmds=
16866 finish_cmds=
16867 finish_eval=
16868 shlibpath_var=
16869 shlibpath_overrides_runpath=unknown
16870 version_type=none
16871 dynamic_linker="$host_os ld.so"
16872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16873 need_lib_prefix=unknown
16874 hardcode_into_libs=no
16876 # when you set need_version to no, make sure it does not cause -set_version
16877 # flags to be left without arguments
16878 need_version=unknown
16880 case $host_os in
16881 aix3*)
16882 version_type=linux
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16884 shlibpath_var=LIBPATH
16886 # AIX 3 has no versioning support, so we append a major version to the name.
16887 soname_spec='${libname}${release}${shared_ext}$major'
16890 aix[4-9]*)
16891 version_type=linux
16892 need_lib_prefix=no
16893 need_version=no
16894 hardcode_into_libs=yes
16895 if test "$host_cpu" = ia64; then
16896 # AIX 5 supports IA64
16897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 else
16900 # With GCC up to 2.95.x, collect2 would create an import file
16901 # for dependence libraries. The import file would start with
16902 # the line `#! .'. This would cause the generated library to
16903 # depend on `.', always an invalid library. This was fixed in
16904 # development snapshots of GCC prior to 3.0.
16905 case $host_os in
16906 aix4 | aix4.[01] | aix4.[01].*)
16907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16908 echo ' yes '
16909 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16911 else
16912 can_build_shared=no
16915 esac
16916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16917 # soname into executable. Probably we can add versioning support to
16918 # collect2, so additional links can be useful in future.
16919 if test "$aix_use_runtimelinking" = yes; then
16920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16921 # instead of lib<name>.a to let people know that these are not
16922 # typical AIX shared libraries.
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924 else
16925 # We preserve .a as extension for shared libraries through AIX4.2
16926 # and later when we are not doing run time linking.
16927 library_names_spec='${libname}${release}.a $libname.a'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16930 shlibpath_var=LIBPATH
16934 amigaos*)
16935 case $host_cpu in
16936 powerpc)
16937 # Since July 2007 AmigaOS4 officially supports .so libraries.
16938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 m68k)
16942 library_names_spec='$libname.ixlibrary $libname.a'
16943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16944 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'
16946 esac
16949 beos*)
16950 library_names_spec='${libname}${shared_ext}'
16951 dynamic_linker="$host_os ld.so"
16952 shlibpath_var=LIBRARY_PATH
16955 bsdi[45]*)
16956 version_type=linux
16957 need_version=no
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16964 # the default ld.so.conf also contains /usr/contrib/lib and
16965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16966 # libtool to hard-code these into programs
16969 cygwin* | mingw* | pw32* | cegcc*)
16970 version_type=windows
16971 shrext_cmds=".dll"
16972 need_version=no
16973 need_lib_prefix=no
16975 case $GCC,$host_os in
16976 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16977 library_names_spec='$libname.dll.a'
16978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16979 postinstall_cmds='base_file=`basename \${file}`~
16980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16981 dldir=$destdir/`dirname \$dlpath`~
16982 test -d \$dldir || mkdir -p \$dldir~
16983 $install_prog $dir/$dlname \$dldir/$dlname~
16984 chmod a+x \$dldir/$dlname~
16985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16989 dlpath=$dir/\$dldll~
16990 $RM \$dlpath'
16991 shlibpath_overrides_runpath=yes
16993 case $host_os in
16994 cygwin*)
16995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17000 mingw* | cegcc*)
17001 # MinGW DLLs use traditional 'lib' prefix
17002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004 pw32*)
17005 # pw32 DLLs use 'pw' prefix rather than 'lib'
17006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17008 esac
17012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17014 esac
17015 dynamic_linker='Win32 ld.exe'
17016 # FIXME: first we should search . and the directory the executable is in
17017 shlibpath_var=PATH
17020 darwin* | rhapsody*)
17021 dynamic_linker="$host_os dyld"
17022 version_type=darwin
17023 need_lib_prefix=no
17024 need_version=no
17025 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17026 soname_spec='${libname}${release}${major}$shared_ext'
17027 shlibpath_overrides_runpath=yes
17028 shlibpath_var=DYLD_LIBRARY_PATH
17029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17035 dgux*)
17036 version_type=linux
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 shlibpath_var=LD_LIBRARY_PATH
17044 freebsd* | dragonfly*)
17045 # DragonFly does not have aout. When/if they implement a new
17046 # versioning mechanism, adjust this.
17047 if test -x /usr/bin/objformat; then
17048 objformat=`/usr/bin/objformat`
17049 else
17050 case $host_os in
17051 freebsd[23].*) objformat=aout ;;
17052 *) objformat=elf ;;
17053 esac
17055 version_type=freebsd-$objformat
17056 case $version_type in
17057 freebsd-elf*)
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17059 need_version=no
17060 need_lib_prefix=no
17062 freebsd-*)
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17064 need_version=yes
17066 esac
17067 shlibpath_var=LD_LIBRARY_PATH
17068 case $host_os in
17069 freebsd2.*)
17070 shlibpath_overrides_runpath=yes
17072 freebsd3.[01]* | freebsdelf3.[01]*)
17073 shlibpath_overrides_runpath=yes
17074 hardcode_into_libs=yes
17076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17078 shlibpath_overrides_runpath=no
17079 hardcode_into_libs=yes
17081 *) # from 4.6 on, and DragonFly
17082 shlibpath_overrides_runpath=yes
17083 hardcode_into_libs=yes
17085 esac
17088 gnu*)
17089 version_type=linux
17090 need_lib_prefix=no
17091 need_version=no
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 hardcode_into_libs=yes
17098 haiku*)
17099 version_type=linux
17100 need_lib_prefix=no
17101 need_version=no
17102 dynamic_linker="$host_os runtime_loader"
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 shlibpath_var=LIBRARY_PATH
17106 shlibpath_overrides_runpath=yes
17107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17108 hardcode_into_libs=yes
17111 hpux9* | hpux10* | hpux11*)
17112 # Give a soname corresponding to the major version so that dld.sl refuses to
17113 # link against other versions.
17114 version_type=sunos
17115 need_lib_prefix=no
17116 need_version=no
17117 case $host_cpu in
17118 ia64*)
17119 shrext_cmds='.so'
17120 hardcode_into_libs=yes
17121 dynamic_linker="$host_os dld.so"
17122 shlibpath_var=LD_LIBRARY_PATH
17123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 if test "X$HPUX_IA64_MODE" = X32; then
17127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17128 else
17129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17133 hppa*64*)
17134 shrext_cmds='.sl'
17135 hardcode_into_libs=yes
17136 dynamic_linker="$host_os dld.sl"
17137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 soname_spec='${libname}${release}${shared_ext}$major'
17141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17145 shrext_cmds='.sl'
17146 dynamic_linker="$host_os dld.sl"
17147 shlibpath_var=SHLIB_PATH
17148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17152 esac
17153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17154 postinstall_cmds='chmod 555 $lib'
17155 # or fails outright, so override atomically:
17156 install_override_mode=555
17159 interix[3-9]*)
17160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=no
17168 hardcode_into_libs=yes
17171 irix5* | irix6* | nonstopux*)
17172 case $host_os in
17173 nonstopux*) version_type=nonstopux ;;
17175 if test "$lt_cv_prog_gnu_ld" = yes; then
17176 version_type=linux
17177 else
17178 version_type=irix
17179 fi ;;
17180 esac
17181 need_lib_prefix=no
17182 need_version=no
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17185 case $host_os in
17186 irix5* | nonstopux*)
17187 libsuff= shlibsuff=
17190 case $LD in # libtool.m4 will add one of these switches to LD
17191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17192 libsuff= shlibsuff= libmagic=32-bit;;
17193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17194 libsuff=32 shlibsuff=N32 libmagic=N32;;
17195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17197 *) libsuff= shlibsuff= libmagic=never-match;;
17198 esac
17200 esac
17201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17202 shlibpath_overrides_runpath=no
17203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17205 hardcode_into_libs=yes
17208 # No shared lib support for Linux oldld, aout, or coff.
17209 linux*oldld* | linux*aout* | linux*coff*)
17210 dynamic_linker=no
17213 # This must be Linux ELF.
17214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17215 version_type=linux
17216 need_lib_prefix=no
17217 need_version=no
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=no
17224 # Some binutils ld are patched to set DT_RUNPATH
17225 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17226 $as_echo_n "(cached) " >&6
17227 else
17228 lt_cv_shlibpath_overrides_runpath=no
17229 save_LDFLAGS=$LDFLAGS
17230 save_libdir=$libdir
17231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17237 main ()
17241 return 0;
17243 _ACEOF
17244 if ac_fn_c_try_link "$LINENO"; then :
17245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17246 lt_cv_shlibpath_overrides_runpath=yes
17249 rm -f core conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17251 LDFLAGS=$save_LDFLAGS
17252 libdir=$save_libdir
17256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17258 # This implies no fast_install, which is unacceptable.
17259 # Some rework will be needed to allow for fast_install
17260 # before this can be enabled.
17261 hardcode_into_libs=yes
17263 # Append ld.so.conf contents to the search path
17264 if test -f /etc/ld.so.conf; then
17265 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' ' '`
17266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17269 # We used to test for /lib/ld.so.1 and disable shared libraries on
17270 # powerpc, because MkLinux only supported shared libraries with the
17271 # GNU dynamic linker. Since this was broken with cross compilers,
17272 # most powerpc-linux boxes support dynamic linking these days and
17273 # people can always --disable-shared, the test was removed, and we
17274 # assume the GNU/Linux dynamic linker is in use.
17275 dynamic_linker='GNU/Linux ld.so'
17278 netbsd*)
17279 version_type=sunos
17280 need_lib_prefix=no
17281 need_version=no
17282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17285 dynamic_linker='NetBSD (a.out) ld.so'
17286 else
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 dynamic_linker='NetBSD ld.elf_so'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 hardcode_into_libs=yes
17296 newsos6)
17297 version_type=linux
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17303 *nto* | *qnx*)
17304 version_type=qnx
17305 need_lib_prefix=no
17306 need_version=no
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=no
17311 hardcode_into_libs=yes
17312 dynamic_linker='ldqnx.so'
17315 openbsd*)
17316 version_type=sunos
17317 sys_lib_dlsearch_path_spec="/usr/lib"
17318 need_lib_prefix=no
17319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17320 case $host_os in
17321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17322 *) need_version=no ;;
17323 esac
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17328 case $host_os in
17329 openbsd2.[89] | openbsd2.[89].*)
17330 shlibpath_overrides_runpath=no
17333 shlibpath_overrides_runpath=yes
17335 esac
17336 else
17337 shlibpath_overrides_runpath=yes
17341 os2*)
17342 libname_spec='$name'
17343 shrext_cmds=".dll"
17344 need_lib_prefix=no
17345 library_names_spec='$libname${shared_ext} $libname.a'
17346 dynamic_linker='OS/2 ld.exe'
17347 shlibpath_var=LIBPATH
17350 osf3* | osf4* | osf5*)
17351 version_type=osf
17352 need_lib_prefix=no
17353 need_version=no
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17361 rdos*)
17362 dynamic_linker=no
17365 solaris*)
17366 version_type=linux
17367 need_lib_prefix=no
17368 need_version=no
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 shlibpath_overrides_runpath=yes
17373 hardcode_into_libs=yes
17374 # ldd complains unless libraries are executable
17375 postinstall_cmds='chmod +x $lib'
17378 sunos4*)
17379 version_type=sunos
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=yes
17384 if test "$with_gnu_ld" = yes; then
17385 need_lib_prefix=no
17387 need_version=yes
17390 sysv4 | sysv4.3*)
17391 version_type=linux
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 shlibpath_var=LD_LIBRARY_PATH
17395 case $host_vendor in
17396 sni)
17397 shlibpath_overrides_runpath=no
17398 need_lib_prefix=no
17399 runpath_var=LD_RUN_PATH
17401 siemens)
17402 need_lib_prefix=no
17404 motorola)
17405 need_lib_prefix=no
17406 need_version=no
17407 shlibpath_overrides_runpath=no
17408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17410 esac
17413 sysv4*MP*)
17414 if test -d /usr/nec ;then
17415 version_type=linux
17416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17417 soname_spec='$libname${shared_ext}.$major'
17418 shlibpath_var=LD_LIBRARY_PATH
17422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17423 version_type=freebsd-elf
17424 need_lib_prefix=no
17425 need_version=no
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath=yes
17430 hardcode_into_libs=yes
17431 if test "$with_gnu_ld" = yes; then
17432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17433 else
17434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17435 case $host_os in
17436 sco3.2v5*)
17437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17439 esac
17441 sys_lib_dlsearch_path_spec='/usr/lib'
17444 tpf*)
17445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17446 version_type=linux
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath=no
17452 hardcode_into_libs=yes
17455 uts4*)
17456 version_type=linux
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 soname_spec='${libname}${release}${shared_ext}$major'
17459 shlibpath_var=LD_LIBRARY_PATH
17463 dynamic_linker=no
17465 esac
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17467 $as_echo "$dynamic_linker" >&6; }
17468 test "$dynamic_linker" = no && can_build_shared=no
17470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17471 if test "$GCC" = yes; then
17472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17575 hardcode_action=
17576 if test -n "$hardcode_libdir_flag_spec" ||
17577 test -n "$runpath_var" ||
17578 test "X$hardcode_automatic" = "Xyes" ; then
17580 # We can hardcode non-existent directories.
17581 if test "$hardcode_direct" != no &&
17582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17583 # have to relink, otherwise we might link with an installed library
17584 # when we should be linking with a yet-to-be-installed one
17585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17586 test "$hardcode_minus_L" != no; then
17587 # Linking always hardcodes the temporary library directory.
17588 hardcode_action=relink
17589 else
17590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17591 hardcode_action=immediate
17593 else
17594 # We cannot hardcode anything, or else we can only hardcode existing
17595 # directories.
17596 hardcode_action=unsupported
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17599 $as_echo "$hardcode_action" >&6; }
17601 if test "$hardcode_action" = relink ||
17602 test "$inherit_rpath" = yes; then
17603 # Fast installation is not supported
17604 enable_fast_install=no
17605 elif test "$shlibpath_overrides_runpath" = yes ||
17606 test "$enable_shared" = no; then
17607 # Fast installation is not necessary
17608 enable_fast_install=needless
17616 if test "x$enable_dlopen" != xyes; then
17617 enable_dlopen=unknown
17618 enable_dlopen_self=unknown
17619 enable_dlopen_self_static=unknown
17620 else
17621 lt_cv_dlopen=no
17622 lt_cv_dlopen_libs=
17624 case $host_os in
17625 beos*)
17626 lt_cv_dlopen="load_add_on"
17627 lt_cv_dlopen_libs=
17628 lt_cv_dlopen_self=yes
17631 mingw* | pw32* | cegcc*)
17632 lt_cv_dlopen="LoadLibrary"
17633 lt_cv_dlopen_libs=
17636 cygwin*)
17637 lt_cv_dlopen="dlopen"
17638 lt_cv_dlopen_libs=
17641 darwin*)
17642 # if libdl is installed we need to link against it
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
17647 else
17648 ac_check_lib_save_LIBS=$LIBS
17649 LIBS="-ldl $LIBS"
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17653 /* Override any GCC internal prototype to avoid an error.
17654 Use char because int might match the return type of a GCC
17655 builtin and then its argument prototype would still apply. */
17656 #ifdef __cplusplus
17657 extern "C"
17658 #endif
17659 char dlopen ();
17661 main ()
17663 return dlopen ();
17665 return 0;
17667 _ACEOF
17668 if ac_fn_c_try_link "$LINENO"; then :
17669 ac_cv_lib_dl_dlopen=yes
17670 else
17671 ac_cv_lib_dl_dlopen=no
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17679 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17681 else
17683 lt_cv_dlopen="dyld"
17684 lt_cv_dlopen_libs=
17685 lt_cv_dlopen_self=yes
17692 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17693 if test "x$ac_cv_func_shl_load" = x""yes; then :
17694 lt_cv_dlopen="shl_load"
17695 else
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17698 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17699 $as_echo_n "(cached) " >&6
17700 else
17701 ac_check_lib_save_LIBS=$LIBS
17702 LIBS="-ldld $LIBS"
17703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17709 #ifdef __cplusplus
17710 extern "C"
17711 #endif
17712 char shl_load ();
17714 main ()
17716 return shl_load ();
17718 return 0;
17720 _ACEOF
17721 if ac_fn_c_try_link "$LINENO"; then :
17722 ac_cv_lib_dld_shl_load=yes
17723 else
17724 ac_cv_lib_dld_shl_load=no
17726 rm -f core conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
17728 LIBS=$ac_check_lib_save_LIBS
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17732 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17734 else
17735 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17736 if test "x$ac_cv_func_dlopen" = x""yes; then :
17737 lt_cv_dlopen="dlopen"
17738 else
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
17743 else
17744 ac_check_lib_save_LIBS=$LIBS
17745 LIBS="-ldl $LIBS"
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17749 /* Override any GCC internal prototype to avoid an error.
17750 Use char because int might match the return type of a GCC
17751 builtin and then its argument prototype would still apply. */
17752 #ifdef __cplusplus
17753 extern "C"
17754 #endif
17755 char dlopen ();
17757 main ()
17759 return dlopen ();
17761 return 0;
17763 _ACEOF
17764 if ac_fn_c_try_link "$LINENO"; then :
17765 ac_cv_lib_dl_dlopen=yes
17766 else
17767 ac_cv_lib_dl_dlopen=no
17769 rm -f core conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
17771 LIBS=$ac_check_lib_save_LIBS
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17775 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17777 else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17780 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17781 $as_echo_n "(cached) " >&6
17782 else
17783 ac_check_lib_save_LIBS=$LIBS
17784 LIBS="-lsvld $LIBS"
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17788 /* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17791 #ifdef __cplusplus
17792 extern "C"
17793 #endif
17794 char dlopen ();
17796 main ()
17798 return dlopen ();
17800 return 0;
17802 _ACEOF
17803 if ac_fn_c_try_link "$LINENO"; then :
17804 ac_cv_lib_svld_dlopen=yes
17805 else
17806 ac_cv_lib_svld_dlopen=no
17808 rm -f core conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17810 LIBS=$ac_check_lib_save_LIBS
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17814 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17816 else
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17819 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17820 $as_echo_n "(cached) " >&6
17821 else
17822 ac_check_lib_save_LIBS=$LIBS
17823 LIBS="-ldld $LIBS"
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17827 /* Override any GCC internal prototype to avoid an error.
17828 Use char because int might match the return type of a GCC
17829 builtin and then its argument prototype would still apply. */
17830 #ifdef __cplusplus
17831 extern "C"
17832 #endif
17833 char dld_link ();
17835 main ()
17837 return dld_link ();
17839 return 0;
17841 _ACEOF
17842 if ac_fn_c_try_link "$LINENO"; then :
17843 ac_cv_lib_dld_dld_link=yes
17844 else
17845 ac_cv_lib_dld_dld_link=no
17847 rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17849 LIBS=$ac_check_lib_save_LIBS
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17853 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17854 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17873 esac
17875 if test "x$lt_cv_dlopen" != xno; then
17876 enable_dlopen=yes
17877 else
17878 enable_dlopen=no
17881 case $lt_cv_dlopen in
17882 dlopen)
17883 save_CPPFLAGS="$CPPFLAGS"
17884 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17886 save_LDFLAGS="$LDFLAGS"
17887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17889 save_LIBS="$LIBS"
17890 LIBS="$lt_cv_dlopen_libs $LIBS"
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17894 if test "${lt_cv_dlopen_self+set}" = set; then :
17895 $as_echo_n "(cached) " >&6
17896 else
17897 if test "$cross_compiling" = yes; then :
17898 lt_cv_dlopen_self=cross
17899 else
17900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17901 lt_status=$lt_dlunknown
17902 cat > conftest.$ac_ext <<_LT_EOF
17903 #line 17903 "configure"
17904 #include "confdefs.h"
17906 #if HAVE_DLFCN_H
17907 #include <dlfcn.h>
17908 #endif
17910 #include <stdio.h>
17912 #ifdef RTLD_GLOBAL
17913 # define LT_DLGLOBAL RTLD_GLOBAL
17914 #else
17915 # ifdef DL_GLOBAL
17916 # define LT_DLGLOBAL DL_GLOBAL
17917 # else
17918 # define LT_DLGLOBAL 0
17919 # endif
17920 #endif
17922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17923 find out it does not work in some platform. */
17924 #ifndef LT_DLLAZY_OR_NOW
17925 # ifdef RTLD_LAZY
17926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17927 # else
17928 # ifdef DL_LAZY
17929 # define LT_DLLAZY_OR_NOW DL_LAZY
17930 # else
17931 # ifdef RTLD_NOW
17932 # define LT_DLLAZY_OR_NOW RTLD_NOW
17933 # else
17934 # ifdef DL_NOW
17935 # define LT_DLLAZY_OR_NOW DL_NOW
17936 # else
17937 # define LT_DLLAZY_OR_NOW 0
17938 # endif
17939 # endif
17940 # endif
17941 # endif
17942 #endif
17944 /* When -fvisbility=hidden is used, assume the code has been annotated
17945 correspondingly for the symbols needed. */
17946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17947 void fnord () __attribute__((visibility("default")));
17948 #endif
17950 void fnord () { int i=42; }
17951 int main ()
17953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17954 int status = $lt_dlunknown;
17956 if (self)
17958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17959 else
17961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17962 else puts (dlerror ());
17964 /* dlclose (self); */
17966 else
17967 puts (dlerror ());
17969 return status;
17971 _LT_EOF
17972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17973 (eval $ac_link) 2>&5
17974 ac_status=$?
17975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17976 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17977 (./conftest; exit; ) >&5 2>/dev/null
17978 lt_status=$?
17979 case x$lt_status in
17980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17982 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17983 esac
17984 else :
17985 # compilation failed
17986 lt_cv_dlopen_self=no
17989 rm -fr conftest*
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17994 $as_echo "$lt_cv_dlopen_self" >&6; }
17996 if test "x$lt_cv_dlopen_self" = xyes; then
17997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18000 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18001 $as_echo_n "(cached) " >&6
18002 else
18003 if test "$cross_compiling" = yes; then :
18004 lt_cv_dlopen_self_static=cross
18005 else
18006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18007 lt_status=$lt_dlunknown
18008 cat > conftest.$ac_ext <<_LT_EOF
18009 #line 18009 "configure"
18010 #include "confdefs.h"
18012 #if HAVE_DLFCN_H
18013 #include <dlfcn.h>
18014 #endif
18016 #include <stdio.h>
18018 #ifdef RTLD_GLOBAL
18019 # define LT_DLGLOBAL RTLD_GLOBAL
18020 #else
18021 # ifdef DL_GLOBAL
18022 # define LT_DLGLOBAL DL_GLOBAL
18023 # else
18024 # define LT_DLGLOBAL 0
18025 # endif
18026 #endif
18028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18029 find out it does not work in some platform. */
18030 #ifndef LT_DLLAZY_OR_NOW
18031 # ifdef RTLD_LAZY
18032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18033 # else
18034 # ifdef DL_LAZY
18035 # define LT_DLLAZY_OR_NOW DL_LAZY
18036 # else
18037 # ifdef RTLD_NOW
18038 # define LT_DLLAZY_OR_NOW RTLD_NOW
18039 # else
18040 # ifdef DL_NOW
18041 # define LT_DLLAZY_OR_NOW DL_NOW
18042 # else
18043 # define LT_DLLAZY_OR_NOW 0
18044 # endif
18045 # endif
18046 # endif
18047 # endif
18048 #endif
18050 /* When -fvisbility=hidden is used, assume the code has been annotated
18051 correspondingly for the symbols needed. */
18052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18053 void fnord () __attribute__((visibility("default")));
18054 #endif
18056 void fnord () { int i=42; }
18057 int main ()
18059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18060 int status = $lt_dlunknown;
18062 if (self)
18064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18065 else
18067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18068 else puts (dlerror ());
18070 /* dlclose (self); */
18072 else
18073 puts (dlerror ());
18075 return status;
18077 _LT_EOF
18078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18079 (eval $ac_link) 2>&5
18080 ac_status=$?
18081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18082 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18083 (./conftest; exit; ) >&5 2>/dev/null
18084 lt_status=$?
18085 case x$lt_status in
18086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18089 esac
18090 else :
18091 # compilation failed
18092 lt_cv_dlopen_self_static=no
18095 rm -fr conftest*
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18103 CPPFLAGS="$save_CPPFLAGS"
18104 LDFLAGS="$save_LDFLAGS"
18105 LIBS="$save_LIBS"
18107 esac
18109 case $lt_cv_dlopen_self in
18110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18111 *) enable_dlopen_self=unknown ;;
18112 esac
18114 case $lt_cv_dlopen_self_static in
18115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18116 *) enable_dlopen_self_static=unknown ;;
18117 esac
18136 striplib=
18137 old_striplib=
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18140 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144 $as_echo "yes" >&6; }
18145 else
18146 # FIXME - insert some real tests, host_os isn't really good enough
18147 case $host_os in
18148 darwin*)
18149 if test -n "$STRIP" ; then
18150 striplib="$STRIP -x"
18151 old_striplib="$STRIP -S"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18153 $as_echo "yes" >&6; }
18154 else
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156 $as_echo "no" >&6; }
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18161 $as_echo "no" >&6; }
18163 esac
18177 # Report which library types will actually be built
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18181 $as_echo "$can_build_shared" >&6; }
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18184 $as_echo_n "checking whether to build shared libraries... " >&6; }
18185 test "$can_build_shared" = "no" && enable_shared=no
18187 # On AIX, shared libraries and static libraries use the same namespace, and
18188 # are all built from PIC.
18189 case $host_os in
18190 aix3*)
18191 test "$enable_shared" = yes && enable_static=no
18192 if test -n "$RANLIB"; then
18193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18194 postinstall_cmds='$RANLIB $lib'
18198 aix[4-9]*)
18199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18200 test "$enable_shared" = yes && enable_static=no
18203 esac
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18205 $as_echo "$enable_shared" >&6; }
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18208 $as_echo_n "checking whether to build static libraries... " >&6; }
18209 # Make sure either enable_shared or enable_static is yes.
18210 test "$enable_shared" = yes || enable_static=yes
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18212 $as_echo "$enable_static" >&6; }
18218 ac_ext=c
18219 ac_cpp='$CPP $CPPFLAGS'
18220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224 CC="$lt_save_CC"
18226 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18227 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18228 (test "X$CXX" != "Xg++"))) ; then
18229 ac_ext=cpp
18230 ac_cpp='$CXXCPP $CPPFLAGS'
18231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18235 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18236 if test -z "$CXXCPP"; then
18237 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18238 $as_echo_n "(cached) " >&6
18239 else
18240 # Double quotes because CXXCPP needs to be expanded
18241 for CXXCPP in "$CXX -E" "/lib/cpp"
18243 ac_preproc_ok=false
18244 for ac_cxx_preproc_warn_flag in '' yes
18246 # Use a header file that comes with gcc, so configuring glibc
18247 # with a fresh cross-compiler works.
18248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 # <limits.h> exists even on freestanding compilers.
18250 # On the NeXT, cc -E runs the code through the compiler's parser,
18251 # not just through cpp. "Syntax error" is here to catch this case.
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 #ifdef __STDC__
18255 # include <limits.h>
18256 #else
18257 # include <assert.h>
18258 #endif
18259 Syntax error
18260 _ACEOF
18261 if ac_fn_cxx_try_cpp "$LINENO"; then :
18263 else
18264 # Broken: fails on valid input.
18265 continue
18267 rm -f conftest.err conftest.$ac_ext
18269 # OK, works on sane cases. Now check whether nonexistent headers
18270 # can be detected and how.
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18273 #include <ac_nonexistent.h>
18274 _ACEOF
18275 if ac_fn_cxx_try_cpp "$LINENO"; then :
18276 # Broken: success on invalid input.
18277 continue
18278 else
18279 # Passes both tests.
18280 ac_preproc_ok=:
18281 break
18283 rm -f conftest.err conftest.$ac_ext
18285 done
18286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18287 rm -f conftest.err conftest.$ac_ext
18288 if $ac_preproc_ok; then :
18289 break
18292 done
18293 ac_cv_prog_CXXCPP=$CXXCPP
18296 CXXCPP=$ac_cv_prog_CXXCPP
18297 else
18298 ac_cv_prog_CXXCPP=$CXXCPP
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18301 $as_echo "$CXXCPP" >&6; }
18302 ac_preproc_ok=false
18303 for ac_cxx_preproc_warn_flag in '' yes
18305 # Use a header file that comes with gcc, so configuring glibc
18306 # with a fresh cross-compiler works.
18307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18308 # <limits.h> exists even on freestanding compilers.
18309 # On the NeXT, cc -E runs the code through the compiler's parser,
18310 # not just through cpp. "Syntax error" is here to catch this case.
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 #ifdef __STDC__
18314 # include <limits.h>
18315 #else
18316 # include <assert.h>
18317 #endif
18318 Syntax error
18319 _ACEOF
18320 if ac_fn_cxx_try_cpp "$LINENO"; then :
18322 else
18323 # Broken: fails on valid input.
18324 continue
18326 rm -f conftest.err conftest.$ac_ext
18328 # OK, works on sane cases. Now check whether nonexistent headers
18329 # can be detected and how.
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18332 #include <ac_nonexistent.h>
18333 _ACEOF
18334 if ac_fn_cxx_try_cpp "$LINENO"; then :
18335 # Broken: success on invalid input.
18336 continue
18337 else
18338 # Passes both tests.
18339 ac_preproc_ok=:
18340 break
18342 rm -f conftest.err conftest.$ac_ext
18344 done
18345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18346 rm -f conftest.err conftest.$ac_ext
18347 if $ac_preproc_ok; then :
18349 else
18350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18352 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18353 See \`config.log' for more details." "$LINENO" 5; }
18356 ac_ext=c
18357 ac_cpp='$CPP $CPPFLAGS'
18358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18362 else
18363 _lt_caught_CXX_error=yes
18366 ac_ext=cpp
18367 ac_cpp='$CXXCPP $CPPFLAGS'
18368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18372 archive_cmds_need_lc_CXX=no
18373 allow_undefined_flag_CXX=
18374 always_export_symbols_CXX=no
18375 archive_expsym_cmds_CXX=
18376 compiler_needs_object_CXX=no
18377 export_dynamic_flag_spec_CXX=
18378 hardcode_direct_CXX=no
18379 hardcode_direct_absolute_CXX=no
18380 hardcode_libdir_flag_spec_CXX=
18381 hardcode_libdir_flag_spec_ld_CXX=
18382 hardcode_libdir_separator_CXX=
18383 hardcode_minus_L_CXX=no
18384 hardcode_shlibpath_var_CXX=unsupported
18385 hardcode_automatic_CXX=no
18386 inherit_rpath_CXX=no
18387 module_cmds_CXX=
18388 module_expsym_cmds_CXX=
18389 link_all_deplibs_CXX=unknown
18390 old_archive_cmds_CXX=$old_archive_cmds
18391 reload_flag_CXX=$reload_flag
18392 reload_cmds_CXX=$reload_cmds
18393 no_undefined_flag_CXX=
18394 whole_archive_flag_spec_CXX=
18395 enable_shared_with_static_runtimes_CXX=no
18397 # Source file extension for C++ test sources.
18398 ac_ext=cpp
18400 # Object file extension for compiled C++ test sources.
18401 objext=o
18402 objext_CXX=$objext
18404 # No sense in running all these tests if we already determined that
18405 # the CXX compiler isn't working. Some variables (like enable_shared)
18406 # are currently assumed to apply to all compilers on this platform,
18407 # and will be corrupted by setting them based on a non-working compiler.
18408 if test "$_lt_caught_CXX_error" != yes; then
18409 # Code to be used in simple compile tests
18410 lt_simple_compile_test_code="int some_variable = 0;"
18412 # Code to be used in simple link tests
18413 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18422 # If no C compiler was specified, use CC.
18423 LTCC=${LTCC-"$CC"}
18425 # If no C compiler flags were specified, use CFLAGS.
18426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18428 # Allow CC to be a program name with arguments.
18429 compiler=$CC
18432 # save warnings/boilerplate of simple test code
18433 ac_outfile=conftest.$ac_objext
18434 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18436 _lt_compiler_boilerplate=`cat conftest.err`
18437 $RM conftest*
18439 ac_outfile=conftest.$ac_objext
18440 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18442 _lt_linker_boilerplate=`cat conftest.err`
18443 $RM -r conftest*
18446 # Allow CC to be a program name with arguments.
18447 lt_save_CC=$CC
18448 lt_save_LD=$LD
18449 lt_save_GCC=$GCC
18450 GCC=$GXX
18451 lt_save_with_gnu_ld=$with_gnu_ld
18452 lt_save_path_LD=$lt_cv_path_LD
18453 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18454 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18455 else
18456 $as_unset lt_cv_prog_gnu_ld
18458 if test -n "${lt_cv_path_LDCXX+set}"; then
18459 lt_cv_path_LD=$lt_cv_path_LDCXX
18460 else
18461 $as_unset lt_cv_path_LD
18463 test -z "${LDCXX+set}" || LD=$LDCXX
18464 CC=${CXX-"c++"}
18465 compiler=$CC
18466 compiler_CXX=$CC
18467 for cc_temp in $compiler""; do
18468 case $cc_temp in
18469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18471 \-*) ;;
18472 *) break;;
18473 esac
18474 done
18475 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18478 if test -n "$compiler"; then
18479 # We don't want -fno-exception when compiling C++ code, so set the
18480 # no_builtin_flag separately
18481 if test "$GXX" = yes; then
18482 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18483 else
18484 lt_prog_compiler_no_builtin_flag_CXX=
18487 if test "$GXX" = yes; then
18488 # Set up default GNU C++ configuration
18492 # Check whether --with-gnu-ld was given.
18493 if test "${with_gnu_ld+set}" = set; then :
18494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18495 else
18496 with_gnu_ld=no
18499 ac_prog=ld
18500 if test "$GCC" = yes; then
18501 # Check if gcc -print-prog-name=ld gives a path.
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18503 $as_echo_n "checking for ld used by $CC... " >&6; }
18504 case $host in
18505 *-*-mingw*)
18506 # gcc leaves a trailing carriage return which upsets mingw
18507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18510 esac
18511 case $ac_prog in
18512 # Accept absolute paths.
18513 [\\/]* | ?:[\\/]*)
18514 re_direlt='/[^/][^/]*/\.\./'
18515 # Canonicalize the pathname of ld
18516 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18517 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18518 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18519 done
18520 test -z "$LD" && LD="$ac_prog"
18523 # If it fails, then pretend we aren't using GCC.
18524 ac_prog=ld
18527 # If it is relative, then search for the first ld in PATH.
18528 with_gnu_ld=unknown
18530 esac
18531 elif test "$with_gnu_ld" = yes; then
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18533 $as_echo_n "checking for GNU ld... " >&6; }
18534 else
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18536 $as_echo_n "checking for non-GNU ld... " >&6; }
18538 if test "${lt_cv_path_LD+set}" = set; then :
18539 $as_echo_n "(cached) " >&6
18540 else
18541 if test -z "$LD"; then
18542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18543 for ac_dir in $PATH; do
18544 IFS="$lt_save_ifs"
18545 test -z "$ac_dir" && ac_dir=.
18546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18547 lt_cv_path_LD="$ac_dir/$ac_prog"
18548 # Check to see if the program is GNU ld. I'd rather use --version,
18549 # but apparently some variants of GNU ld only accept -v.
18550 # Break only if it was the GNU/non-GNU ld that we prefer.
18551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18552 *GNU* | *'with BFD'*)
18553 test "$with_gnu_ld" != no && break
18556 test "$with_gnu_ld" != yes && break
18558 esac
18560 done
18561 IFS="$lt_save_ifs"
18562 else
18563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18567 LD="$lt_cv_path_LD"
18568 if test -n "$LD"; then
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18570 $as_echo "$LD" >&6; }
18571 else
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573 $as_echo "no" >&6; }
18575 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18578 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18582 case `$LD -v 2>&1 </dev/null` in
18583 *GNU* | *'with BFD'*)
18584 lt_cv_prog_gnu_ld=yes
18587 lt_cv_prog_gnu_ld=no
18589 esac
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18593 with_gnu_ld=$lt_cv_prog_gnu_ld
18601 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18602 # archiving commands below assume that GNU ld is being used.
18603 if test "$with_gnu_ld" = yes; then
18604 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605 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'
18607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18610 # If archive_cmds runs LD, not CC, wlarc should be empty
18611 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18612 # investigate it a little bit more. (MM)
18613 wlarc='${wl}'
18615 # ancient GNU ld didn't support --whole-archive et. al.
18616 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18617 $GREP 'no-whole-archive' > /dev/null; then
18618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18619 else
18620 whole_archive_flag_spec_CXX=
18622 else
18623 with_gnu_ld=no
18624 wlarc=
18626 # A generic and very simple default shared library creation
18627 # command for GNU C++ for the case where it uses the native
18628 # linker, instead of GNU ld. If possible, this setting should
18629 # overridden to take advantage of the native linker features on
18630 # the platform it is being used on.
18631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18634 # Commands to make compiler produce verbose output that lists
18635 # what "hidden" libraries, object files and flags are used when
18636 # linking a shared library.
18637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18639 else
18640 GXX=no
18641 with_gnu_ld=no
18642 wlarc=
18645 # PORTME: fill in a description of your system's C++ link characteristics
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18648 ld_shlibs_CXX=yes
18649 case $host_os in
18650 aix3*)
18651 # FIXME: insert proper C++ library support
18652 ld_shlibs_CXX=no
18654 aix[4-9]*)
18655 if test "$host_cpu" = ia64; then
18656 # On IA64, the linker does run time linking by default, so we don't
18657 # have to do anything special.
18658 aix_use_runtimelinking=no
18659 exp_sym_flag='-Bexport'
18660 no_entry_flag=""
18661 else
18662 aix_use_runtimelinking=no
18664 # Test if we are trying to use run time linking or normal
18665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18666 # need to do runtime linking.
18667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18668 for ld_flag in $LDFLAGS; do
18669 case $ld_flag in
18670 *-brtl*)
18671 aix_use_runtimelinking=yes
18672 break
18674 esac
18675 done
18677 esac
18679 exp_sym_flag='-bexport'
18680 no_entry_flag='-bnoentry'
18683 # When large executables or shared objects are built, AIX ld can
18684 # have problems creating the table of contents. If linking a library
18685 # or program results in "error TOC overflow" add -mminimal-toc to
18686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18689 archive_cmds_CXX=''
18690 hardcode_direct_CXX=yes
18691 hardcode_direct_absolute_CXX=yes
18692 hardcode_libdir_separator_CXX=':'
18693 link_all_deplibs_CXX=yes
18694 file_list_spec_CXX='${wl}-f,'
18696 if test "$GXX" = yes; then
18697 case $host_os in aix4.[012]|aix4.[012].*)
18698 # We only want to do this on AIX 4.2 and lower, the check
18699 # below for broken collect2 doesn't work under 4.3+
18700 collect2name=`${CC} -print-prog-name=collect2`
18701 if test -f "$collect2name" &&
18702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18703 then
18704 # We have reworked collect2
18706 else
18707 # We have old collect2
18708 hardcode_direct_CXX=unsupported
18709 # It fails to find uninstalled libraries when the uninstalled
18710 # path is not listed in the libpath. Setting hardcode_minus_L
18711 # to unsupported forces relinking
18712 hardcode_minus_L_CXX=yes
18713 hardcode_libdir_flag_spec_CXX='-L$libdir'
18714 hardcode_libdir_separator_CXX=
18716 esac
18717 shared_flag='-shared'
18718 if test "$aix_use_runtimelinking" = yes; then
18719 shared_flag="$shared_flag "'${wl}-G'
18721 else
18722 # not using gcc
18723 if test "$host_cpu" = ia64; then
18724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18725 # chokes on -Wl,-G. The following line is correct:
18726 shared_flag='-G'
18727 else
18728 if test "$aix_use_runtimelinking" = yes; then
18729 shared_flag='${wl}-G'
18730 else
18731 shared_flag='${wl}-bM:SRE'
18736 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18737 # It seems that -bexpall does not export symbols beginning with
18738 # underscore (_), so it is better to generate a list of symbols to
18739 # export.
18740 always_export_symbols_CXX=yes
18741 if test "$aix_use_runtimelinking" = yes; then
18742 # Warning - without using the other runtime loading flags (-brtl),
18743 # -berok will link without error, but may produce a broken library.
18744 allow_undefined_flag_CXX='-berok'
18745 # Determine the default libpath from the value encoded in an empty
18746 # executable.
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18751 main ()
18755 return 0;
18757 _ACEOF
18758 if ac_fn_cxx_try_link "$LINENO"; then :
18760 lt_aix_libpath_sed='
18761 /Import File Strings/,/^$/ {
18762 /^0/ {
18763 s/^0 *\(.*\)$/\1/
18767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18768 # Check for a 64-bit object if we didn't find anything.
18769 if test -z "$aix_libpath"; then
18770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18773 rm -f core conftest.err conftest.$ac_objext \
18774 conftest$ac_exeext conftest.$ac_ext
18775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18779 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"
18780 else
18781 if test "$host_cpu" = ia64; then
18782 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18783 allow_undefined_flag_CXX="-z nodefs"
18784 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"
18785 else
18786 # Determine the default libpath from the value encoded in an
18787 # empty executable.
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18792 main ()
18796 return 0;
18798 _ACEOF
18799 if ac_fn_cxx_try_link "$LINENO"; then :
18801 lt_aix_libpath_sed='
18802 /Import File Strings/,/^$/ {
18803 /^0/ {
18804 s/^0 *\(.*\)$/\1/
18808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18809 # Check for a 64-bit object if we didn't find anything.
18810 if test -z "$aix_libpath"; then
18811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18814 rm -f core conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18819 # Warning - without using the other run time loading flags,
18820 # -berok will link without error, but may produce a broken library.
18821 no_undefined_flag_CXX=' ${wl}-bernotok'
18822 allow_undefined_flag_CXX=' ${wl}-berok'
18823 if test "$with_gnu_ld" = yes; then
18824 # We only use this code for GNU lds that support --whole-archive.
18825 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18826 else
18827 # Exported symbols can be pulled into shared objects from archives
18828 whole_archive_flag_spec_CXX='$convenience'
18830 archive_cmds_need_lc_CXX=yes
18831 # This is similar to how AIX traditionally builds its shared
18832 # libraries.
18833 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'
18838 beos*)
18839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18840 allow_undefined_flag_CXX=unsupported
18841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18842 # support --undefined. This deserves some investigation. FIXME
18843 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18844 else
18845 ld_shlibs_CXX=no
18849 chorus*)
18850 case $cc_basename in
18852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18855 esac
18858 cygwin* | mingw* | pw32* | cegcc*)
18859 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18860 # as there is no search path for DLLs.
18861 hardcode_libdir_flag_spec_CXX='-L$libdir'
18862 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18863 allow_undefined_flag_CXX=unsupported
18864 always_export_symbols_CXX=no
18865 enable_shared_with_static_runtimes_CXX=yes
18867 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18868 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'
18869 # If the export-symbols file already is a .def file (1st line
18870 # is EXPORTS), use it as is; otherwise, prepend...
18871 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18872 cp $export_symbols $output_objdir/$soname.def;
18873 else
18874 echo EXPORTS > $output_objdir/$soname.def;
18875 cat $export_symbols >> $output_objdir/$soname.def;
18877 $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'
18878 else
18879 ld_shlibs_CXX=no
18882 darwin* | rhapsody*)
18885 archive_cmds_need_lc_CXX=no
18886 hardcode_direct_CXX=no
18887 hardcode_automatic_CXX=yes
18888 hardcode_shlibpath_var_CXX=unsupported
18889 if test "$lt_cv_ld_force_load" = "yes"; then
18890 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\"`'
18891 else
18892 whole_archive_flag_spec_CXX=''
18894 link_all_deplibs_CXX=yes
18895 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18896 case $cc_basename in
18897 ifort*) _lt_dar_can_shared=yes ;;
18898 *) _lt_dar_can_shared=$GCC ;;
18899 esac
18900 if test "$_lt_dar_can_shared" = "yes"; then
18901 output_verbose_link_cmd=func_echo_all
18902 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}"
18903 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18904 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}"
18905 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}"
18906 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18907 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}"
18908 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}"
18911 else
18912 ld_shlibs_CXX=no
18917 dgux*)
18918 case $cc_basename in
18919 ec++*)
18920 # FIXME: insert proper C++ library support
18921 ld_shlibs_CXX=no
18923 ghcx*)
18924 # Green Hills C++ Compiler
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18929 # FIXME: insert proper C++ library support
18930 ld_shlibs_CXX=no
18932 esac
18935 freebsd2.*)
18936 # C++ shared libraries reported to be fairly broken before
18937 # switch to ELF
18938 ld_shlibs_CXX=no
18941 freebsd-elf*)
18942 archive_cmds_need_lc_CXX=no
18945 freebsd* | dragonfly*)
18946 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18947 # conventions
18948 ld_shlibs_CXX=yes
18951 gnu*)
18954 haiku*)
18955 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18956 link_all_deplibs_CXX=yes
18959 hpux9*)
18960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18961 hardcode_libdir_separator_CXX=:
18962 export_dynamic_flag_spec_CXX='${wl}-E'
18963 hardcode_direct_CXX=yes
18964 hardcode_minus_L_CXX=yes # Not in the search PATH,
18965 # but as the default
18966 # location of the library.
18968 case $cc_basename in
18969 CC*)
18970 # FIXME: insert proper C++ library support
18971 ld_shlibs_CXX=no
18973 aCC*)
18974 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'
18975 # Commands to make compiler produce verbose output that lists
18976 # what "hidden" libraries, object files and flags are used when
18977 # linking a shared library.
18979 # There doesn't appear to be a way to prevent this compiler from
18980 # explicitly linking system object files so we need to strip them
18981 # from the output so that they don't get included in the library
18982 # dependencies.
18983 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"'
18986 if test "$GXX" = yes; then
18987 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'
18988 else
18989 # FIXME: insert proper C++ library support
18990 ld_shlibs_CXX=no
18993 esac
18996 hpux10*|hpux11*)
18997 if test $with_gnu_ld = no; then
18998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18999 hardcode_libdir_separator_CXX=:
19001 case $host_cpu in
19002 hppa*64*|ia64*)
19005 export_dynamic_flag_spec_CXX='${wl}-E'
19007 esac
19009 case $host_cpu in
19010 hppa*64*|ia64*)
19011 hardcode_direct_CXX=no
19012 hardcode_shlibpath_var_CXX=no
19015 hardcode_direct_CXX=yes
19016 hardcode_direct_absolute_CXX=yes
19017 hardcode_minus_L_CXX=yes # Not in the search PATH,
19018 # but as the default
19019 # location of the library.
19021 esac
19023 case $cc_basename in
19024 CC*)
19025 # FIXME: insert proper C++ library support
19026 ld_shlibs_CXX=no
19028 aCC*)
19029 case $host_cpu in
19030 hppa*64*)
19031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19033 ia64*)
19034 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19037 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19039 esac
19040 # Commands to make compiler produce verbose output that lists
19041 # what "hidden" libraries, object files and flags are used when
19042 # linking a shared library.
19044 # There doesn't appear to be a way to prevent this compiler from
19045 # explicitly linking system object files so we need to strip them
19046 # from the output so that they don't get included in the library
19047 # dependencies.
19048 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"'
19051 if test "$GXX" = yes; then
19052 if test $with_gnu_ld = no; then
19053 case $host_cpu in
19054 hppa*64*)
19055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19057 ia64*)
19058 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19061 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'
19063 esac
19065 else
19066 # FIXME: insert proper C++ library support
19067 ld_shlibs_CXX=no
19070 esac
19073 interix[3-9]*)
19074 hardcode_direct_CXX=no
19075 hardcode_shlibpath_var_CXX=no
19076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19077 export_dynamic_flag_spec_CXX='${wl}-E'
19078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19079 # Instead, shared libraries are loaded at an image base (0x10000000 by
19080 # default) and relocated if they conflict, which is a slow very memory
19081 # consuming and fragmenting process. To avoid this, we pick a random,
19082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19084 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'
19085 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'
19087 irix5* | irix6*)
19088 case $cc_basename in
19089 CC*)
19090 # SGI C++
19091 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'
19093 # Archives containing C++ object files must be created using
19094 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19095 # necessary to make sure instantiated templates are included
19096 # in the archive.
19097 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19100 if test "$GXX" = yes; then
19101 if test "$with_gnu_ld" = no; then
19102 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'
19103 else
19104 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'
19107 link_all_deplibs_CXX=yes
19109 esac
19110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19111 hardcode_libdir_separator_CXX=:
19112 inherit_rpath_CXX=yes
19115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19116 case $cc_basename in
19117 KCC*)
19118 # Kuck and Associates, Inc. (KAI) C++ Compiler
19120 # KCC will only create a shared library if the output file
19121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19122 # to its proper name (with version) after linking.
19123 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'
19124 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'
19125 # Commands to make compiler produce verbose output that lists
19126 # what "hidden" libraries, object files and flags are used when
19127 # linking a shared library.
19129 # There doesn't appear to be a way to prevent this compiler from
19130 # explicitly linking system object files so we need to strip them
19131 # from the output so that they don't get included in the library
19132 # dependencies.
19133 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"'
19135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19138 # Archives containing C++ object files must be created using
19139 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19140 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19142 icpc* | ecpc* )
19143 # Intel C++
19144 with_gnu_ld=yes
19145 # version 8.0 and above of icpc choke on multiply defined symbols
19146 # if we add $predep_objects and $postdep_objects, however 7.1 and
19147 # earlier do not add the objects themselves.
19148 case `$CC -V 2>&1` in
19149 *"Version 7."*)
19150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151 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'
19153 *) # Version 8.0 or newer
19154 tmp_idyn=
19155 case $host_cpu in
19156 ia64*) tmp_idyn=' -i_dynamic';;
19157 esac
19158 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 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'
19161 esac
19162 archive_cmds_need_lc_CXX=no
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19165 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19167 pgCC* | pgcpp*)
19168 # Portland Group C++ compiler
19169 case `$CC -V` in
19170 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19171 prelink_cmds_CXX='tpldir=Template.dir~
19172 rm -rf $tpldir~
19173 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19174 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19175 old_archive_cmds_CXX='tpldir=Template.dir~
19176 rm -rf $tpldir~
19177 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19178 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19179 $RANLIB $oldlib'
19180 archive_cmds_CXX='tpldir=Template.dir~
19181 rm -rf $tpldir~
19182 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19183 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19184 archive_expsym_cmds_CXX='tpldir=Template.dir~
19185 rm -rf $tpldir~
19186 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19187 $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'
19189 *) # Version 6 and above use weak symbols
19190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19191 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'
19193 esac
19195 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19196 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19197 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'
19199 cxx*)
19200 # Compaq C++
19201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19202 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'
19204 runpath_var=LD_RUN_PATH
19205 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19206 hardcode_libdir_separator_CXX=:
19208 # Commands to make compiler produce verbose output that lists
19209 # what "hidden" libraries, object files and flags are used when
19210 # linking a shared library.
19212 # There doesn't appear to be a way to prevent this compiler from
19213 # explicitly linking system object files so we need to strip them
19214 # from the output so that they don't get included in the library
19215 # dependencies.
19216 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'
19218 xl* | mpixl* | bgxl*)
19219 # IBM XL 8.0 on PPC, with GNU ld
19220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19221 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19222 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19223 if test "x$supports_anon_versioning" = xyes; then
19224 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19226 echo "local: *; };" >> $output_objdir/$libname.ver~
19227 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19231 case `$CC -V 2>&1 | sed 5q` in
19232 *Sun\ C*)
19233 # Sun C++ 5.9
19234 no_undefined_flag_CXX=' -zdefs'
19235 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19236 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'
19237 hardcode_libdir_flag_spec_CXX='-R$libdir'
19238 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'
19239 compiler_needs_object_CXX=yes
19241 # Not sure whether something based on
19242 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19243 # would be better.
19244 output_verbose_link_cmd='func_echo_all'
19246 # Archives containing C++ object files must be created using
19247 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19248 # necessary to make sure instantiated templates are included
19249 # in the archive.
19250 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19252 esac
19254 esac
19257 lynxos*)
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19262 m88k*)
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19267 mvs*)
19268 case $cc_basename in
19269 cxx*)
19270 # FIXME: insert proper C++ library support
19271 ld_shlibs_CXX=no
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19277 esac
19280 netbsd*)
19281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19282 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19283 wlarc=
19284 hardcode_libdir_flag_spec_CXX='-R$libdir'
19285 hardcode_direct_CXX=yes
19286 hardcode_shlibpath_var_CXX=no
19288 # Workaround some broken pre-1.5 toolchains
19289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19292 *nto* | *qnx*)
19293 ld_shlibs_CXX=yes
19296 openbsd2*)
19297 # C++ shared libraries are fairly broken
19298 ld_shlibs_CXX=no
19301 openbsd*)
19302 if test -f /usr/libexec/ld.so; then
19303 hardcode_direct_CXX=yes
19304 hardcode_shlibpath_var_CXX=no
19305 hardcode_direct_absolute_CXX=yes
19306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19309 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19310 export_dynamic_flag_spec_CXX='${wl}-E'
19311 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19313 output_verbose_link_cmd=func_echo_all
19314 else
19315 ld_shlibs_CXX=no
19319 osf3* | osf4* | osf5*)
19320 case $cc_basename in
19321 KCC*)
19322 # Kuck and Associates, Inc. (KAI) C++ Compiler
19324 # KCC will only create a shared library if the output file
19325 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19326 # to its proper name (with version) after linking.
19327 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'
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330 hardcode_libdir_separator_CXX=:
19332 # Archives containing C++ object files must be created using
19333 # the KAI C++ compiler.
19334 case $host in
19335 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19336 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19337 esac
19339 RCC*)
19340 # Rational C++ 2.4.1
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19344 cxx*)
19345 case $host in
19346 osf3*)
19347 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19348 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'
19349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19352 allow_undefined_flag_CXX=' -expect_unresolved \*'
19353 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'
19354 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19355 echo "-hidden">> $lib.exp~
19356 $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~
19357 $RM $lib.exp'
19358 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19360 esac
19362 hardcode_libdir_separator_CXX=:
19364 # Commands to make compiler produce verbose output that lists
19365 # what "hidden" libraries, object files and flags are used when
19366 # linking a shared library.
19368 # There doesn't appear to be a way to prevent this compiler from
19369 # explicitly linking system object files so we need to strip them
19370 # from the output so that they don't get included in the library
19371 # dependencies.
19372 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"'
19375 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19376 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19377 case $host in
19378 osf3*)
19379 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'
19382 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'
19384 esac
19386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19387 hardcode_libdir_separator_CXX=:
19389 # Commands to make compiler produce verbose output that lists
19390 # what "hidden" libraries, object files and flags are used when
19391 # linking a shared library.
19392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19394 else
19395 # FIXME: insert proper C++ library support
19396 ld_shlibs_CXX=no
19399 esac
19402 psos*)
19403 # FIXME: insert proper C++ library support
19404 ld_shlibs_CXX=no
19407 sunos4*)
19408 case $cc_basename in
19409 CC*)
19410 # Sun C++ 4.x
19411 # FIXME: insert proper C++ library support
19412 ld_shlibs_CXX=no
19414 lcc*)
19415 # Lucid
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19420 # FIXME: insert proper C++ library support
19421 ld_shlibs_CXX=no
19423 esac
19426 solaris*)
19427 case $cc_basename in
19428 CC*)
19429 # Sun C++ 4.2, 5.x and Centerline C++
19430 archive_cmds_need_lc_CXX=yes
19431 no_undefined_flag_CXX=' -zdefs'
19432 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19433 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19434 $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'
19436 hardcode_libdir_flag_spec_CXX='-R$libdir'
19437 hardcode_shlibpath_var_CXX=no
19438 case $host_os in
19439 solaris2.[0-5] | solaris2.[0-5].*) ;;
19441 # The compiler driver will combine and reorder linker options,
19442 # but understands `-z linker_flag'.
19443 # Supported since Solaris 2.6 (maybe 2.5.1?)
19444 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19446 esac
19447 link_all_deplibs_CXX=yes
19449 output_verbose_link_cmd='func_echo_all'
19451 # Archives containing C++ object files must be created using
19452 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19453 # necessary to make sure instantiated templates are included
19454 # in the archive.
19455 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19457 gcx*)
19458 # Green Hills C++ Compiler
19459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19461 # The C++ compiler must be used to create the archive.
19462 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19465 # GNU C++ compiler with Solaris linker
19466 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19467 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19468 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19469 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19471 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19473 # Commands to make compiler produce verbose output that lists
19474 # what "hidden" libraries, object files and flags are used when
19475 # linking a shared library.
19476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19477 else
19478 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19479 # platform.
19480 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19481 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19482 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19484 # Commands to make compiler produce verbose output that lists
19485 # what "hidden" libraries, object files and flags are used when
19486 # linking a shared library.
19487 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19490 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19491 case $host_os in
19492 solaris2.[0-5] | solaris2.[0-5].*) ;;
19494 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19496 esac
19499 esac
19502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19503 no_undefined_flag_CXX='${wl}-z,text'
19504 archive_cmds_need_lc_CXX=no
19505 hardcode_shlibpath_var_CXX=no
19506 runpath_var='LD_RUN_PATH'
19508 case $cc_basename in
19509 CC*)
19510 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19517 esac
19520 sysv5* | sco3.2v5* | sco5v6*)
19521 # Note: We can NOT use -z defs as we might desire, because we do not
19522 # link with -lc, and that would cause any symbols used from libc to
19523 # always be unresolved, which means just about no library would
19524 # ever link correctly. If we're not using GNU ld we use -z text
19525 # though, which does catch some bad symbols but isn't as heavy-handed
19526 # as -z defs.
19527 no_undefined_flag_CXX='${wl}-z,text'
19528 allow_undefined_flag_CXX='${wl}-z,nodefs'
19529 archive_cmds_need_lc_CXX=no
19530 hardcode_shlibpath_var_CXX=no
19531 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19532 hardcode_libdir_separator_CXX=':'
19533 link_all_deplibs_CXX=yes
19534 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19535 runpath_var='LD_RUN_PATH'
19537 case $cc_basename in
19538 CC*)
19539 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19540 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19541 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19542 '"$old_archive_cmds_CXX"
19543 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19544 '"$reload_cmds_CXX"
19547 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19550 esac
19553 tandem*)
19554 case $cc_basename in
19555 NCC*)
19556 # NonStop-UX NCC 3.20
19557 # FIXME: insert proper C++ library support
19558 ld_shlibs_CXX=no
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19564 esac
19567 vxworks*)
19568 # FIXME: insert proper C++ library support
19569 ld_shlibs_CXX=no
19573 # FIXME: insert proper C++ library support
19574 ld_shlibs_CXX=no
19576 esac
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19579 $as_echo "$ld_shlibs_CXX" >&6; }
19580 test "$ld_shlibs_CXX" = no && can_build_shared=no
19582 GCC_CXX="$GXX"
19583 LD_CXX="$LD"
19585 ## CAVEAT EMPTOR:
19586 ## There is no encapsulation within the following macros, do not change
19587 ## the running order or otherwise move them around unless you know exactly
19588 ## what you are doing...
19589 # Dependencies to place before and after the object being linked:
19590 predep_objects_CXX=
19591 postdep_objects_CXX=
19592 predeps_CXX=
19593 postdeps_CXX=
19594 compiler_lib_search_path_CXX=
19596 cat > conftest.$ac_ext <<_LT_EOF
19597 class Foo
19599 public:
19600 Foo (void) { a = 0; }
19601 private:
19602 int a;
19604 _LT_EOF
19606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19607 (eval $ac_compile) 2>&5
19608 ac_status=$?
19609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19610 test $ac_status = 0; }; then
19611 # Parse the compiler output and extract the necessary
19612 # objects, libraries and library flags.
19614 # Sentinel used to keep track of whether or not we are before
19615 # the conftest object file.
19616 pre_test_object_deps_done=no
19618 for p in `eval "$output_verbose_link_cmd"`; do
19619 case $p in
19621 -L* | -R* | -l*)
19622 # Some compilers place space between "-{L,R}" and the path.
19623 # Remove the space.
19624 if test $p = "-L" ||
19625 test $p = "-R"; then
19626 prev=$p
19627 continue
19628 else
19629 prev=
19632 if test "$pre_test_object_deps_done" = no; then
19633 case $p in
19634 -L* | -R*)
19635 # Internal compiler library paths should come after those
19636 # provided the user. The postdeps already come after the
19637 # user supplied libs so there is no need to process them.
19638 if test -z "$compiler_lib_search_path_CXX"; then
19639 compiler_lib_search_path_CXX="${prev}${p}"
19640 else
19641 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19644 # The "-l" case would never come before the object being
19645 # linked, so don't bother handling this case.
19646 esac
19647 else
19648 if test -z "$postdeps_CXX"; then
19649 postdeps_CXX="${prev}${p}"
19650 else
19651 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19656 *.$objext)
19657 # This assumes that the test object file only shows up
19658 # once in the compiler output.
19659 if test "$p" = "conftest.$objext"; then
19660 pre_test_object_deps_done=yes
19661 continue
19664 if test "$pre_test_object_deps_done" = no; then
19665 if test -z "$predep_objects_CXX"; then
19666 predep_objects_CXX="$p"
19667 else
19668 predep_objects_CXX="$predep_objects_CXX $p"
19670 else
19671 if test -z "$postdep_objects_CXX"; then
19672 postdep_objects_CXX="$p"
19673 else
19674 postdep_objects_CXX="$postdep_objects_CXX $p"
19679 *) ;; # Ignore the rest.
19681 esac
19682 done
19684 # Clean up.
19685 rm -f a.out a.exe
19686 else
19687 echo "libtool.m4: error: problem compiling CXX test program"
19690 $RM -f confest.$objext
19692 # PORTME: override above test on systems where it is broken
19693 case $host_os in
19694 interix[3-9]*)
19695 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19696 # hack all around it, let's just trust "g++" to DTRT.
19697 predep_objects_CXX=
19698 postdep_objects_CXX=
19699 postdeps_CXX=
19702 linux*)
19703 case `$CC -V 2>&1 | sed 5q` in
19704 *Sun\ C*)
19705 # Sun C++ 5.9
19707 # The more standards-conforming stlport4 library is
19708 # incompatible with the Cstd library. Avoid specifying
19709 # it if it's in CXXFLAGS. Ignore libCrun as
19710 # -library=stlport4 depends on it.
19711 case " $CXX $CXXFLAGS " in
19712 *" -library=stlport4 "*)
19713 solaris_use_stlport4=yes
19715 esac
19717 if test "$solaris_use_stlport4" != yes; then
19718 postdeps_CXX='-library=Cstd -library=Crun'
19721 esac
19724 solaris*)
19725 case $cc_basename in
19726 CC*)
19727 # The more standards-conforming stlport4 library is
19728 # incompatible with the Cstd library. Avoid specifying
19729 # it if it's in CXXFLAGS. Ignore libCrun as
19730 # -library=stlport4 depends on it.
19731 case " $CXX $CXXFLAGS " in
19732 *" -library=stlport4 "*)
19733 solaris_use_stlport4=yes
19735 esac
19737 # Adding this requires a known-good setup of shared libraries for
19738 # Sun compiler versions before 5.6, else PIC objects from an old
19739 # archive will be linked into the output, leading to subtle bugs.
19740 if test "$solaris_use_stlport4" != yes; then
19741 postdeps_CXX='-library=Cstd -library=Crun'
19744 esac
19746 esac
19749 case " $postdeps_CXX " in
19750 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19751 esac
19752 compiler_lib_search_dirs_CXX=
19753 if test -n "${compiler_lib_search_path_CXX}"; then
19754 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19787 lt_prog_compiler_wl_CXX=
19788 lt_prog_compiler_pic_CXX=
19789 lt_prog_compiler_static_CXX=
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19794 # C++ specific cases for pic, static, wl, etc.
19795 if test "$GXX" = yes; then
19796 lt_prog_compiler_wl_CXX='-Wl,'
19797 lt_prog_compiler_static_CXX='-static'
19799 case $host_os in
19800 aix*)
19801 # All AIX code is PIC.
19802 if test "$host_cpu" = ia64; then
19803 # AIX 5 now supports IA64 processor
19804 lt_prog_compiler_static_CXX='-Bstatic'
19806 lt_prog_compiler_pic_CXX='-fPIC'
19809 amigaos*)
19810 case $host_cpu in
19811 powerpc)
19812 # see comment about AmigaOS4 .so support
19813 lt_prog_compiler_pic_CXX='-fPIC'
19815 m68k)
19816 # FIXME: we need at least 68020 code to build shared libraries, but
19817 # adding the `-m68020' flag to GCC prevents building anything better,
19818 # like `-m68040'.
19819 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19821 esac
19824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19825 # PIC is the default for these OSes.
19827 mingw* | cygwin* | os2* | pw32* | cegcc*)
19828 # This hack is so that the source file can tell whether it is being
19829 # built for inclusion in a dll (and should export symbols for example).
19830 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19831 # (--disable-auto-import) libraries
19832 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19834 darwin* | rhapsody*)
19835 # PIC is the default on this platform
19836 # Common symbols not allowed in MH_DYLIB files
19837 lt_prog_compiler_pic_CXX='-fno-common'
19839 *djgpp*)
19840 # DJGPP does not support shared libraries at all
19841 lt_prog_compiler_pic_CXX=
19843 haiku*)
19844 # PIC is the default for Haiku.
19845 # The "-static" flag exists, but is broken.
19846 lt_prog_compiler_static_CXX=
19848 interix[3-9]*)
19849 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19850 # Instead, we relocate shared libraries at runtime.
19852 sysv4*MP*)
19853 if test -d /usr/nec; then
19854 lt_prog_compiler_pic_CXX=-Kconform_pic
19857 hpux*)
19858 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19859 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19860 # sets the default TLS model and affects inlining.
19861 case $host_cpu in
19862 hppa*64*)
19865 lt_prog_compiler_pic_CXX='-fPIC'
19867 esac
19869 *qnx* | *nto*)
19870 # QNX uses GNU C++, but need to define -shared option too, otherwise
19871 # it will coredump.
19872 lt_prog_compiler_pic_CXX='-fPIC -shared'
19875 lt_prog_compiler_pic_CXX='-fPIC'
19877 esac
19878 else
19879 case $host_os in
19880 aix[4-9]*)
19881 # All AIX code is PIC.
19882 if test "$host_cpu" = ia64; then
19883 # AIX 5 now supports IA64 processor
19884 lt_prog_compiler_static_CXX='-Bstatic'
19885 else
19886 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19889 chorus*)
19890 case $cc_basename in
19891 cxch68*)
19892 # Green Hills C++ Compiler
19893 # _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"
19895 esac
19897 dgux*)
19898 case $cc_basename in
19899 ec++*)
19900 lt_prog_compiler_pic_CXX='-KPIC'
19902 ghcx*)
19903 # Green Hills C++ Compiler
19904 lt_prog_compiler_pic_CXX='-pic'
19908 esac
19910 freebsd* | dragonfly*)
19911 # FreeBSD uses GNU C++
19913 hpux9* | hpux10* | hpux11*)
19914 case $cc_basename in
19915 CC*)
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19918 if test "$host_cpu" != ia64; then
19919 lt_prog_compiler_pic_CXX='+Z'
19922 aCC*)
19923 lt_prog_compiler_wl_CXX='-Wl,'
19924 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19925 case $host_cpu in
19926 hppa*64*|ia64*)
19927 # +Z the default
19930 lt_prog_compiler_pic_CXX='+Z'
19932 esac
19936 esac
19938 interix*)
19939 # This is c89, which is MS Visual C++ (no shared libs)
19940 # Anyone wants to do a port?
19942 irix5* | irix6* | nonstopux*)
19943 case $cc_basename in
19944 CC*)
19945 lt_prog_compiler_wl_CXX='-Wl,'
19946 lt_prog_compiler_static_CXX='-non_shared'
19947 # CC pic flag -KPIC is the default.
19951 esac
19953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19954 case $cc_basename in
19955 KCC*)
19956 # KAI C++ Compiler
19957 lt_prog_compiler_wl_CXX='--backend -Wl,'
19958 lt_prog_compiler_pic_CXX='-fPIC'
19960 ecpc* )
19961 # old Intel C++ for x86_64 which still supported -KPIC.
19962 lt_prog_compiler_wl_CXX='-Wl,'
19963 lt_prog_compiler_pic_CXX='-KPIC'
19964 lt_prog_compiler_static_CXX='-static'
19966 icpc* )
19967 # Intel C++, used to be incompatible with GCC.
19968 # ICC 10 doesn't accept -KPIC any more.
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_pic_CXX='-fPIC'
19971 lt_prog_compiler_static_CXX='-static'
19973 pgCC* | pgcpp*)
19974 # Portland Group C++ compiler
19975 lt_prog_compiler_wl_CXX='-Wl,'
19976 lt_prog_compiler_pic_CXX='-fpic'
19977 lt_prog_compiler_static_CXX='-Bstatic'
19979 cxx*)
19980 # Compaq C++
19981 # Make sure the PIC flag is empty. It appears that all Alpha
19982 # Linux and Compaq Tru64 Unix objects are PIC.
19983 lt_prog_compiler_pic_CXX=
19984 lt_prog_compiler_static_CXX='-non_shared'
19986 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19987 # IBM XL 8.0, 9.0 on PPC and BlueGene
19988 lt_prog_compiler_wl_CXX='-Wl,'
19989 lt_prog_compiler_pic_CXX='-qpic'
19990 lt_prog_compiler_static_CXX='-qstaticlink'
19993 case `$CC -V 2>&1 | sed 5q` in
19994 *Sun\ C*)
19995 # Sun C++ 5.9
19996 lt_prog_compiler_pic_CXX='-KPIC'
19997 lt_prog_compiler_static_CXX='-Bstatic'
19998 lt_prog_compiler_wl_CXX='-Qoption ld '
20000 esac
20002 esac
20004 lynxos*)
20006 m88k*)
20008 mvs*)
20009 case $cc_basename in
20010 cxx*)
20011 lt_prog_compiler_pic_CXX='-W c,exportall'
20015 esac
20017 netbsd*)
20019 *qnx* | *nto*)
20020 # QNX uses GNU C++, but need to define -shared option too, otherwise
20021 # it will coredump.
20022 lt_prog_compiler_pic_CXX='-fPIC -shared'
20024 osf3* | osf4* | osf5*)
20025 case $cc_basename in
20026 KCC*)
20027 lt_prog_compiler_wl_CXX='--backend -Wl,'
20029 RCC*)
20030 # Rational C++ 2.4.1
20031 lt_prog_compiler_pic_CXX='-pic'
20033 cxx*)
20034 # Digital/Compaq C++
20035 lt_prog_compiler_wl_CXX='-Wl,'
20036 # Make sure the PIC flag is empty. It appears that all Alpha
20037 # Linux and Compaq Tru64 Unix objects are PIC.
20038 lt_prog_compiler_pic_CXX=
20039 lt_prog_compiler_static_CXX='-non_shared'
20043 esac
20045 psos*)
20047 solaris*)
20048 case $cc_basename in
20049 CC*)
20050 # Sun C++ 4.2, 5.x and Centerline C++
20051 lt_prog_compiler_pic_CXX='-KPIC'
20052 lt_prog_compiler_static_CXX='-Bstatic'
20053 lt_prog_compiler_wl_CXX='-Qoption ld '
20055 gcx*)
20056 # Green Hills C++ Compiler
20057 lt_prog_compiler_pic_CXX='-PIC'
20061 esac
20063 sunos4*)
20064 case $cc_basename in
20065 CC*)
20066 # Sun C++ 4.x
20067 lt_prog_compiler_pic_CXX='-pic'
20068 lt_prog_compiler_static_CXX='-Bstatic'
20070 lcc*)
20071 # Lucid
20072 lt_prog_compiler_pic_CXX='-pic'
20076 esac
20078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20079 case $cc_basename in
20080 CC*)
20081 lt_prog_compiler_wl_CXX='-Wl,'
20082 lt_prog_compiler_pic_CXX='-KPIC'
20083 lt_prog_compiler_static_CXX='-Bstatic'
20085 esac
20087 tandem*)
20088 case $cc_basename in
20089 NCC*)
20090 # NonStop-UX NCC 3.20
20091 lt_prog_compiler_pic_CXX='-KPIC'
20095 esac
20097 vxworks*)
20100 lt_prog_compiler_can_build_shared_CXX=no
20102 esac
20105 case $host_os in
20106 # For platforms which do not support PIC, -DPIC is meaningless:
20107 *djgpp*)
20108 lt_prog_compiler_pic_CXX=
20111 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20113 esac
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20115 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20120 # Check to make sure the PIC flag actually works.
20122 if test -n "$lt_prog_compiler_pic_CXX"; then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20125 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20127 else
20128 lt_cv_prog_compiler_pic_works_CXX=no
20129 ac_outfile=conftest.$ac_objext
20130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20131 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20132 # Insert the option either (1) after the last *FLAGS variable, or
20133 # (2) before a word containing "conftest.", or (3) at the end.
20134 # Note that $ac_compile itself does not contain backslashes and begins
20135 # with a dollar sign (not a hyphen), so the echo should work correctly.
20136 # The option is referenced via a variable to avoid confusing sed.
20137 lt_compile=`echo "$ac_compile" | $SED \
20138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20140 -e 's:$: $lt_compiler_flag:'`
20141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20142 (eval "$lt_compile" 2>conftest.err)
20143 ac_status=$?
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 if (exit $ac_status) && test -s "$ac_outfile"; then
20147 # The compiler can only warn and ignore the option if not recognized
20148 # So say no if there are warnings other than the usual output.
20149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20152 lt_cv_prog_compiler_pic_works_CXX=yes
20155 $RM conftest*
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20159 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20161 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20162 case $lt_prog_compiler_pic_CXX in
20163 "" | " "*) ;;
20164 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20165 esac
20166 else
20167 lt_prog_compiler_pic_CXX=
20168 lt_prog_compiler_can_build_shared_CXX=no
20176 # Check to make sure the static flag actually works.
20178 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20180 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20181 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20183 else
20184 lt_cv_prog_compiler_static_works_CXX=no
20185 save_LDFLAGS="$LDFLAGS"
20186 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20187 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20189 # The linker can only warn and ignore the option if not recognized
20190 # So say no if there are warnings
20191 if test -s conftest.err; then
20192 # Append any errors to the config.log.
20193 cat conftest.err 1>&5
20194 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20196 if diff conftest.exp conftest.er2 >/dev/null; then
20197 lt_cv_prog_compiler_static_works_CXX=yes
20199 else
20200 lt_cv_prog_compiler_static_works_CXX=yes
20203 $RM -r conftest*
20204 LDFLAGS="$save_LDFLAGS"
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20208 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20210 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20212 else
20213 lt_prog_compiler_static_CXX=
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20221 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20222 $as_echo_n "(cached) " >&6
20223 else
20224 lt_cv_prog_compiler_c_o_CXX=no
20225 $RM -r conftest 2>/dev/null
20226 mkdir conftest
20227 cd conftest
20228 mkdir out
20229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20231 lt_compiler_flag="-o out/conftest2.$ac_objext"
20232 # Insert the option either (1) after the last *FLAGS variable, or
20233 # (2) before a word containing "conftest.", or (3) at the end.
20234 # Note that $ac_compile itself does not contain backslashes and begins
20235 # with a dollar sign (not a hyphen), so the echo should work correctly.
20236 lt_compile=`echo "$ac_compile" | $SED \
20237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239 -e 's:$: $lt_compiler_flag:'`
20240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20241 (eval "$lt_compile" 2>out/conftest.err)
20242 ac_status=$?
20243 cat out/conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20246 then
20247 # The compiler can only warn and ignore the option if not recognized
20248 # So say no if there are warnings
20249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20252 lt_cv_prog_compiler_c_o_CXX=yes
20255 chmod u+w . 2>&5
20256 $RM conftest*
20257 # SGI C++ compiler will create directory out/ii_files/ for
20258 # template instantiation
20259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20260 $RM out/* && rmdir out
20261 cd ..
20262 $RM -r conftest
20263 $RM conftest*
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20267 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20273 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20274 $as_echo_n "(cached) " >&6
20275 else
20276 lt_cv_prog_compiler_c_o_CXX=no
20277 $RM -r conftest 2>/dev/null
20278 mkdir conftest
20279 cd conftest
20280 mkdir out
20281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20283 lt_compiler_flag="-o out/conftest2.$ac_objext"
20284 # Insert the option either (1) after the last *FLAGS variable, or
20285 # (2) before a word containing "conftest.", or (3) at the end.
20286 # Note that $ac_compile itself does not contain backslashes and begins
20287 # with a dollar sign (not a hyphen), so the echo should work correctly.
20288 lt_compile=`echo "$ac_compile" | $SED \
20289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20291 -e 's:$: $lt_compiler_flag:'`
20292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20293 (eval "$lt_compile" 2>out/conftest.err)
20294 ac_status=$?
20295 cat out/conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20298 then
20299 # The compiler can only warn and ignore the option if not recognized
20300 # So say no if there are warnings
20301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20304 lt_cv_prog_compiler_c_o_CXX=yes
20307 chmod u+w . 2>&5
20308 $RM conftest*
20309 # SGI C++ compiler will create directory out/ii_files/ for
20310 # template instantiation
20311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20312 $RM out/* && rmdir out
20313 cd ..
20314 $RM -r conftest
20315 $RM conftest*
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20319 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20324 hard_links="nottested"
20325 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20326 # do not overwrite the value of need_locks provided by the user
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20328 $as_echo_n "checking if we can lock with hard links... " >&6; }
20329 hard_links=yes
20330 $RM conftest*
20331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20332 touch conftest.a
20333 ln conftest.a conftest.b 2>&5 || hard_links=no
20334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20336 $as_echo "$hard_links" >&6; }
20337 if test "$hard_links" = no; then
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20340 need_locks=warn
20342 else
20343 need_locks=no
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20351 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20352 case $host_os in
20353 aix[4-9]*)
20354 # If we're using GNU nm, then we don't want the "-C" option.
20355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20356 # Also, AIX nm treats weak defined symbols like other global defined
20357 # symbols, whereas GNU nm marks them as "W".
20358 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20359 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'
20360 else
20361 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'
20364 pw32*)
20365 export_symbols_cmds_CXX="$ltdll_cmds"
20367 cygwin* | mingw* | cegcc*)
20368 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'
20371 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20373 esac
20374 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20377 $as_echo "$ld_shlibs_CXX" >&6; }
20378 test "$ld_shlibs_CXX" = no && can_build_shared=no
20380 with_gnu_ld_CXX=$with_gnu_ld
20388 # Do we need to explicitly link libc?
20390 case "x$archive_cmds_need_lc_CXX" in
20391 x|xyes)
20392 # Assume -lc should be added
20393 archive_cmds_need_lc_CXX=yes
20395 if test "$enable_shared" = yes && test "$GCC" = yes; then
20396 case $archive_cmds_CXX in
20397 *'~'*)
20398 # FIXME: we may have to deal with multi-command sequences.
20400 '$CC '*)
20401 # Test whether the compiler implicitly links with -lc since on some
20402 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20403 # to ld, don't add -lc before -lgcc.
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20405 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20406 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20407 $as_echo_n "(cached) " >&6
20408 else
20409 $RM conftest*
20410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20413 (eval $ac_compile) 2>&5
20414 ac_status=$?
20415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20416 test $ac_status = 0; } 2>conftest.err; then
20417 soname=conftest
20418 lib=conftest
20419 libobjs=conftest.$ac_objext
20420 deplibs=
20421 wl=$lt_prog_compiler_wl_CXX
20422 pic_flag=$lt_prog_compiler_pic_CXX
20423 compiler_flags=-v
20424 linker_flags=-v
20425 verstring=
20426 output_objdir=.
20427 libname=conftest
20428 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20429 allow_undefined_flag_CXX=
20430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20431 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20432 ac_status=$?
20433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20434 test $ac_status = 0; }
20435 then
20436 lt_cv_archive_cmds_need_lc_CXX=no
20437 else
20438 lt_cv_archive_cmds_need_lc_CXX=yes
20440 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20441 else
20442 cat conftest.err 1>&5
20444 $RM conftest*
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20448 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20449 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20451 esac
20454 esac
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20520 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20522 library_names_spec=
20523 libname_spec='lib$name'
20524 soname_spec=
20525 shrext_cmds=".so"
20526 postinstall_cmds=
20527 postuninstall_cmds=
20528 finish_cmds=
20529 finish_eval=
20530 shlibpath_var=
20531 shlibpath_overrides_runpath=unknown
20532 version_type=none
20533 dynamic_linker="$host_os ld.so"
20534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20535 need_lib_prefix=unknown
20536 hardcode_into_libs=no
20538 # when you set need_version to no, make sure it does not cause -set_version
20539 # flags to be left without arguments
20540 need_version=unknown
20542 case $host_os in
20543 aix3*)
20544 version_type=linux
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20546 shlibpath_var=LIBPATH
20548 # AIX 3 has no versioning support, so we append a major version to the name.
20549 soname_spec='${libname}${release}${shared_ext}$major'
20552 aix[4-9]*)
20553 version_type=linux
20554 need_lib_prefix=no
20555 need_version=no
20556 hardcode_into_libs=yes
20557 if test "$host_cpu" = ia64; then
20558 # AIX 5 supports IA64
20559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20560 shlibpath_var=LD_LIBRARY_PATH
20561 else
20562 # With GCC up to 2.95.x, collect2 would create an import file
20563 # for dependence libraries. The import file would start with
20564 # the line `#! .'. This would cause the generated library to
20565 # depend on `.', always an invalid library. This was fixed in
20566 # development snapshots of GCC prior to 3.0.
20567 case $host_os in
20568 aix4 | aix4.[01] | aix4.[01].*)
20569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20570 echo ' yes '
20571 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20573 else
20574 can_build_shared=no
20577 esac
20578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20579 # soname into executable. Probably we can add versioning support to
20580 # collect2, so additional links can be useful in future.
20581 if test "$aix_use_runtimelinking" = yes; then
20582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20583 # instead of lib<name>.a to let people know that these are not
20584 # typical AIX shared libraries.
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20586 else
20587 # We preserve .a as extension for shared libraries through AIX4.2
20588 # and later when we are not doing run time linking.
20589 library_names_spec='${libname}${release}.a $libname.a'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20592 shlibpath_var=LIBPATH
20596 amigaos*)
20597 case $host_cpu in
20598 powerpc)
20599 # Since July 2007 AmigaOS4 officially supports .so libraries.
20600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20603 m68k)
20604 library_names_spec='$libname.ixlibrary $libname.a'
20605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20606 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'
20608 esac
20611 beos*)
20612 library_names_spec='${libname}${shared_ext}'
20613 dynamic_linker="$host_os ld.so"
20614 shlibpath_var=LIBRARY_PATH
20617 bsdi[45]*)
20618 version_type=linux
20619 need_version=no
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20623 shlibpath_var=LD_LIBRARY_PATH
20624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20626 # the default ld.so.conf also contains /usr/contrib/lib and
20627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20628 # libtool to hard-code these into programs
20631 cygwin* | mingw* | pw32* | cegcc*)
20632 version_type=windows
20633 shrext_cmds=".dll"
20634 need_version=no
20635 need_lib_prefix=no
20637 case $GCC,$host_os in
20638 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20639 library_names_spec='$libname.dll.a'
20640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20641 postinstall_cmds='base_file=`basename \${file}`~
20642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20643 dldir=$destdir/`dirname \$dlpath`~
20644 test -d \$dldir || mkdir -p \$dldir~
20645 $install_prog $dir/$dlname \$dldir/$dlname~
20646 chmod a+x \$dldir/$dlname~
20647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20651 dlpath=$dir/\$dldll~
20652 $RM \$dlpath'
20653 shlibpath_overrides_runpath=yes
20655 case $host_os in
20656 cygwin*)
20657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20661 mingw* | cegcc*)
20662 # MinGW DLLs use traditional 'lib' prefix
20663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20665 pw32*)
20666 # pw32 DLLs use 'pw' prefix rather than 'lib'
20667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20669 esac
20673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20675 esac
20676 dynamic_linker='Win32 ld.exe'
20677 # FIXME: first we should search . and the directory the executable is in
20678 shlibpath_var=PATH
20681 darwin* | rhapsody*)
20682 dynamic_linker="$host_os dyld"
20683 version_type=darwin
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20687 soname_spec='${libname}${release}${major}$shared_ext'
20688 shlibpath_overrides_runpath=yes
20689 shlibpath_var=DYLD_LIBRARY_PATH
20690 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20695 dgux*)
20696 version_type=linux
20697 need_lib_prefix=no
20698 need_version=no
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LD_LIBRARY_PATH
20704 freebsd* | dragonfly*)
20705 # DragonFly does not have aout. When/if they implement a new
20706 # versioning mechanism, adjust this.
20707 if test -x /usr/bin/objformat; then
20708 objformat=`/usr/bin/objformat`
20709 else
20710 case $host_os in
20711 freebsd[23].*) objformat=aout ;;
20712 *) objformat=elf ;;
20713 esac
20715 version_type=freebsd-$objformat
20716 case $version_type in
20717 freebsd-elf*)
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20719 need_version=no
20720 need_lib_prefix=no
20722 freebsd-*)
20723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20724 need_version=yes
20726 esac
20727 shlibpath_var=LD_LIBRARY_PATH
20728 case $host_os in
20729 freebsd2.*)
20730 shlibpath_overrides_runpath=yes
20732 freebsd3.[01]* | freebsdelf3.[01]*)
20733 shlibpath_overrides_runpath=yes
20734 hardcode_into_libs=yes
20736 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20737 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20738 shlibpath_overrides_runpath=no
20739 hardcode_into_libs=yes
20741 *) # from 4.6 on, and DragonFly
20742 shlibpath_overrides_runpath=yes
20743 hardcode_into_libs=yes
20745 esac
20748 gnu*)
20749 version_type=linux
20750 need_lib_prefix=no
20751 need_version=no
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20753 soname_spec='${libname}${release}${shared_ext}$major'
20754 shlibpath_var=LD_LIBRARY_PATH
20755 hardcode_into_libs=yes
20758 haiku*)
20759 version_type=linux
20760 need_lib_prefix=no
20761 need_version=no
20762 dynamic_linker="$host_os runtime_loader"
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20764 soname_spec='${libname}${release}${shared_ext}$major'
20765 shlibpath_var=LIBRARY_PATH
20766 shlibpath_overrides_runpath=yes
20767 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20768 hardcode_into_libs=yes
20771 hpux9* | hpux10* | hpux11*)
20772 # Give a soname corresponding to the major version so that dld.sl refuses to
20773 # link against other versions.
20774 version_type=sunos
20775 need_lib_prefix=no
20776 need_version=no
20777 case $host_cpu in
20778 ia64*)
20779 shrext_cmds='.so'
20780 hardcode_into_libs=yes
20781 dynamic_linker="$host_os dld.so"
20782 shlibpath_var=LD_LIBRARY_PATH
20783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 if test "X$HPUX_IA64_MODE" = X32; then
20787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20788 else
20789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20793 hppa*64*)
20794 shrext_cmds='.sl'
20795 hardcode_into_libs=yes
20796 dynamic_linker="$host_os dld.sl"
20797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800 soname_spec='${libname}${release}${shared_ext}$major'
20801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20805 shrext_cmds='.sl'
20806 dynamic_linker="$host_os dld.sl"
20807 shlibpath_var=SHLIB_PATH
20808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20810 soname_spec='${libname}${release}${shared_ext}$major'
20812 esac
20813 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20814 postinstall_cmds='chmod 555 $lib'
20815 # or fails outright, so override atomically:
20816 install_override_mode=555
20819 interix[3-9]*)
20820 version_type=linux
20821 need_lib_prefix=no
20822 need_version=no
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath=no
20828 hardcode_into_libs=yes
20831 irix5* | irix6* | nonstopux*)
20832 case $host_os in
20833 nonstopux*) version_type=nonstopux ;;
20835 if test "$lt_cv_prog_gnu_ld" = yes; then
20836 version_type=linux
20837 else
20838 version_type=irix
20839 fi ;;
20840 esac
20841 need_lib_prefix=no
20842 need_version=no
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20845 case $host_os in
20846 irix5* | nonstopux*)
20847 libsuff= shlibsuff=
20850 case $LD in # libtool.m4 will add one of these switches to LD
20851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20852 libsuff= shlibsuff= libmagic=32-bit;;
20853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20854 libsuff=32 shlibsuff=N32 libmagic=N32;;
20855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20857 *) libsuff= shlibsuff= libmagic=never-match;;
20858 esac
20860 esac
20861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20862 shlibpath_overrides_runpath=no
20863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20865 hardcode_into_libs=yes
20868 # No shared lib support for Linux oldld, aout, or coff.
20869 linux*oldld* | linux*aout* | linux*coff*)
20870 dynamic_linker=no
20873 # This must be Linux ELF.
20874 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20875 version_type=linux
20876 need_lib_prefix=no
20877 need_version=no
20878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20879 soname_spec='${libname}${release}${shared_ext}$major'
20880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=no
20884 # Some binutils ld are patched to set DT_RUNPATH
20885 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20888 lt_cv_shlibpath_overrides_runpath=no
20889 save_LDFLAGS=$LDFLAGS
20890 save_libdir=$libdir
20891 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20892 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20897 main ()
20901 return 0;
20903 _ACEOF
20904 if ac_fn_cxx_try_link "$LINENO"; then :
20905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20906 lt_cv_shlibpath_overrides_runpath=yes
20909 rm -f core conftest.err conftest.$ac_objext \
20910 conftest$ac_exeext conftest.$ac_ext
20911 LDFLAGS=$save_LDFLAGS
20912 libdir=$save_libdir
20916 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20918 # This implies no fast_install, which is unacceptable.
20919 # Some rework will be needed to allow for fast_install
20920 # before this can be enabled.
20921 hardcode_into_libs=yes
20923 # Append ld.so.conf contents to the search path
20924 if test -f /etc/ld.so.conf; then
20925 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' ' '`
20926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20929 # We used to test for /lib/ld.so.1 and disable shared libraries on
20930 # powerpc, because MkLinux only supported shared libraries with the
20931 # GNU dynamic linker. Since this was broken with cross compilers,
20932 # most powerpc-linux boxes support dynamic linking these days and
20933 # people can always --disable-shared, the test was removed, and we
20934 # assume the GNU/Linux dynamic linker is in use.
20935 dynamic_linker='GNU/Linux ld.so'
20938 netbsd*)
20939 version_type=sunos
20940 need_lib_prefix=no
20941 need_version=no
20942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20945 dynamic_linker='NetBSD (a.out) ld.so'
20946 else
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20948 soname_spec='${libname}${release}${shared_ext}$major'
20949 dynamic_linker='NetBSD ld.elf_so'
20951 shlibpath_var=LD_LIBRARY_PATH
20952 shlibpath_overrides_runpath=yes
20953 hardcode_into_libs=yes
20956 newsos6)
20957 version_type=linux
20958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=yes
20963 *nto* | *qnx*)
20964 version_type=qnx
20965 need_lib_prefix=no
20966 need_version=no
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath=no
20971 hardcode_into_libs=yes
20972 dynamic_linker='ldqnx.so'
20975 openbsd*)
20976 version_type=sunos
20977 sys_lib_dlsearch_path_spec="/usr/lib"
20978 need_lib_prefix=no
20979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20980 case $host_os in
20981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20982 *) need_version=no ;;
20983 esac
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20988 case $host_os in
20989 openbsd2.[89] | openbsd2.[89].*)
20990 shlibpath_overrides_runpath=no
20993 shlibpath_overrides_runpath=yes
20995 esac
20996 else
20997 shlibpath_overrides_runpath=yes
21001 os2*)
21002 libname_spec='$name'
21003 shrext_cmds=".dll"
21004 need_lib_prefix=no
21005 library_names_spec='$libname${shared_ext} $libname.a'
21006 dynamic_linker='OS/2 ld.exe'
21007 shlibpath_var=LIBPATH
21010 osf3* | osf4* | osf5*)
21011 version_type=osf
21012 need_lib_prefix=no
21013 need_version=no
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21021 rdos*)
21022 dynamic_linker=no
21025 solaris*)
21026 version_type=linux
21027 need_lib_prefix=no
21028 need_version=no
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 soname_spec='${libname}${release}${shared_ext}$major'
21031 shlibpath_var=LD_LIBRARY_PATH
21032 shlibpath_overrides_runpath=yes
21033 hardcode_into_libs=yes
21034 # ldd complains unless libraries are executable
21035 postinstall_cmds='chmod +x $lib'
21038 sunos4*)
21039 version_type=sunos
21040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21042 shlibpath_var=LD_LIBRARY_PATH
21043 shlibpath_overrides_runpath=yes
21044 if test "$with_gnu_ld" = yes; then
21045 need_lib_prefix=no
21047 need_version=yes
21050 sysv4 | sysv4.3*)
21051 version_type=linux
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 soname_spec='${libname}${release}${shared_ext}$major'
21054 shlibpath_var=LD_LIBRARY_PATH
21055 case $host_vendor in
21056 sni)
21057 shlibpath_overrides_runpath=no
21058 need_lib_prefix=no
21059 runpath_var=LD_RUN_PATH
21061 siemens)
21062 need_lib_prefix=no
21064 motorola)
21065 need_lib_prefix=no
21066 need_version=no
21067 shlibpath_overrides_runpath=no
21068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21070 esac
21073 sysv4*MP*)
21074 if test -d /usr/nec ;then
21075 version_type=linux
21076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21077 soname_spec='$libname${shared_ext}.$major'
21078 shlibpath_var=LD_LIBRARY_PATH
21082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21083 version_type=freebsd-elf
21084 need_lib_prefix=no
21085 need_version=no
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21087 soname_spec='${libname}${release}${shared_ext}$major'
21088 shlibpath_var=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath=yes
21090 hardcode_into_libs=yes
21091 if test "$with_gnu_ld" = yes; then
21092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21093 else
21094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21095 case $host_os in
21096 sco3.2v5*)
21097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21099 esac
21101 sys_lib_dlsearch_path_spec='/usr/lib'
21104 tpf*)
21105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21106 version_type=linux
21107 need_lib_prefix=no
21108 need_version=no
21109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21110 shlibpath_var=LD_LIBRARY_PATH
21111 shlibpath_overrides_runpath=no
21112 hardcode_into_libs=yes
21115 uts4*)
21116 version_type=linux
21117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21118 soname_spec='${libname}${release}${shared_ext}$major'
21119 shlibpath_var=LD_LIBRARY_PATH
21123 dynamic_linker=no
21125 esac
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21127 $as_echo "$dynamic_linker" >&6; }
21128 test "$dynamic_linker" = no && can_build_shared=no
21130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21131 if test "$GCC" = yes; then
21132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21135 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21136 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21138 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21139 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21180 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21181 hardcode_action_CXX=
21182 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21183 test -n "$runpath_var_CXX" ||
21184 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21186 # We can hardcode non-existent directories.
21187 if test "$hardcode_direct_CXX" != no &&
21188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21189 # have to relink, otherwise we might link with an installed library
21190 # when we should be linking with a yet-to-be-installed one
21191 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21192 test "$hardcode_minus_L_CXX" != no; then
21193 # Linking always hardcodes the temporary library directory.
21194 hardcode_action_CXX=relink
21195 else
21196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21197 hardcode_action_CXX=immediate
21199 else
21200 # We cannot hardcode anything, or else we can only hardcode existing
21201 # directories.
21202 hardcode_action_CXX=unsupported
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21205 $as_echo "$hardcode_action_CXX" >&6; }
21207 if test "$hardcode_action_CXX" = relink ||
21208 test "$inherit_rpath_CXX" = yes; then
21209 # Fast installation is not supported
21210 enable_fast_install=no
21211 elif test "$shlibpath_overrides_runpath" = yes ||
21212 test "$enable_shared" = no; then
21213 # Fast installation is not necessary
21214 enable_fast_install=needless
21223 fi # test -n "$compiler"
21225 CC=$lt_save_CC
21226 LDCXX=$LD
21227 LD=$lt_save_LD
21228 GCC=$lt_save_GCC
21229 with_gnu_ld=$lt_save_with_gnu_ld
21230 lt_cv_path_LDCXX=$lt_cv_path_LD
21231 lt_cv_path_LD=$lt_save_path_LD
21232 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21233 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21234 fi # test "$_lt_caught_CXX_error" != yes
21236 ac_ext=c
21237 ac_cpp='$CPP $CPPFLAGS'
21238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257 # Only expand once:
21263 # Identify the assembler which will work hand-in-glove with the newly
21264 # built GCC, so that we can examine its features. This is the assembler
21265 # which will be driven by the driver program.
21267 # If build != host, and we aren't building gas in-tree, we identify a
21268 # build->target assembler and hope that it will have the same features
21269 # as the host->target assembler we'll be using.
21270 gcc_cv_gas_major_version=
21271 gcc_cv_gas_minor_version=
21272 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21274 if test "${gcc_cv_as+set}" = set; then :
21276 else
21278 if test -x "$DEFAULT_ASSEMBLER"; then
21279 gcc_cv_as="$DEFAULT_ASSEMBLER"
21280 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21281 && test -f ../gas/Makefile \
21282 && test x$build = x$host; then
21283 gcc_cv_as=../gas/as-new$build_exeext
21284 elif test -x as$build_exeext; then
21285 # Build using assembler in the current directory.
21286 gcc_cv_as=./as$build_exeext
21287 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21288 gcc_cv_as="$AS_FOR_TARGET"
21289 else
21290 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21291 set dummy $AS_FOR_TARGET; ac_word=$2
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21293 $as_echo_n "checking for $ac_word... " >&6; }
21294 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21295 $as_echo_n "(cached) " >&6
21296 else
21297 case $gcc_cv_as in
21298 [\\/]* | ?:[\\/]*)
21299 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21303 for as_dir in $PATH
21305 IFS=$as_save_IFS
21306 test -z "$as_dir" && as_dir=.
21307 for ac_exec_ext in '' $ac_executable_extensions; do
21308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21309 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21311 break 2
21313 done
21314 done
21315 IFS=$as_save_IFS
21318 esac
21320 gcc_cv_as=$ac_cv_path_gcc_cv_as
21321 if test -n "$gcc_cv_as"; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21323 $as_echo "$gcc_cv_as" >&6; }
21324 else
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21326 $as_echo "no" >&6; }
21333 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21335 case "$ORIGINAL_AS_FOR_TARGET" in
21336 ./as | ./as$build_exeext) ;;
21337 *) ac_config_files="$ac_config_files as:exec-tool.in"
21339 esac
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21342 $as_echo_n "checking what assembler to use... " >&6; }
21343 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21344 # Single tree build which includes gas. We want to prefer it
21345 # over whatever linker top-level may have detected, since
21346 # we'll use what we're building after installation anyway.
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21348 $as_echo "newly built gas" >&6; }
21349 in_tree_gas=yes
21350 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21351 for f in $gcc_cv_as_bfd_srcdir/configure \
21352 $gcc_cv_as_gas_srcdir/configure \
21353 $gcc_cv_as_gas_srcdir/configure.in \
21354 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21355 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21356 if test x$gcc_cv_gas_version != x; then
21357 break
21359 done
21360 case $gcc_cv_gas_version in
21361 VERSION=[0-9]*) ;;
21362 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21363 esac
21364 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21365 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21366 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21367 case $gcc_cv_gas_patch_version in
21368 "") gcc_cv_gas_patch_version="0" ;;
21369 esac
21370 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21371 + $gcc_cv_gas_minor_version \) \* 1000 \
21372 + $gcc_cv_gas_patch_version`
21374 in_tree_gas_is_elf=no
21375 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21376 || (grep 'obj_format = multi' ../gas/Makefile \
21377 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21378 then
21379 in_tree_gas_is_elf=yes
21381 else
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21383 $as_echo "$gcc_cv_as" >&6; }
21384 in_tree_gas=no
21387 # Identify the linker which will work hand-in-glove with the newly
21388 # built GCC, so that we can examine its features. This is the linker
21389 # which will be driven by the driver program.
21391 # If build != host, and we aren't building gas in-tree, we identify a
21392 # build->target linker and hope that it will have the same features
21393 # as the host->target linker we'll be using.
21394 gcc_cv_gld_major_version=
21395 gcc_cv_gld_minor_version=
21396 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21397 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21399 if test "${gcc_cv_ld+set}" = set; then :
21401 else
21403 if test -x "$DEFAULT_LINKER"; then
21404 gcc_cv_ld="$DEFAULT_LINKER"
21405 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21406 && test -f ../ld/Makefile \
21407 && test x$build = x$host; then
21408 gcc_cv_ld=../ld/ld-new$build_exeext
21409 elif test -x collect-ld$build_exeext; then
21410 # Build using linker in the current directory.
21411 gcc_cv_ld=./collect-ld$build_exeext
21412 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21413 gcc_cv_ld="$LD_FOR_TARGET"
21414 else
21415 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21416 set dummy $LD_FOR_TARGET; ac_word=$2
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21418 $as_echo_n "checking for $ac_word... " >&6; }
21419 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21421 else
21422 case $gcc_cv_ld in
21423 [\\/]* | ?:[\\/]*)
21424 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21428 for as_dir in $PATH
21430 IFS=$as_save_IFS
21431 test -z "$as_dir" && as_dir=.
21432 for ac_exec_ext in '' $ac_executable_extensions; do
21433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21434 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21436 break 2
21438 done
21439 done
21440 IFS=$as_save_IFS
21443 esac
21445 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21446 if test -n "$gcc_cv_ld"; then
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21448 $as_echo "$gcc_cv_ld" >&6; }
21449 else
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21451 $as_echo "no" >&6; }
21458 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21459 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21460 # if the PLUGIN_LD is set ld-new, just have it as ld
21461 # as that is the installed named.
21462 if test x$PLUGIN_LD_SUFFIX = xld-new \
21463 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21464 PLUGIN_LD_SUFFIX=ld
21467 # Check whether --with-plugin-ld was given.
21468 if test "${with_plugin_ld+set}" = set; then :
21469 withval=$with_plugin_ld; if test x"$withval" != x; then
21470 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21471 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21477 cat >>confdefs.h <<_ACEOF
21478 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21479 _ACEOF
21482 # Check to see if we are using gold instead of ld
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21484 $as_echo_n "checking whether we are using gold... " >&6; }
21485 ld_is_gold=no
21486 if test x$gcc_cv_ld != x; then
21487 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21488 | grep "GNU gold" > /dev/null; then
21489 ld_is_gold=yes
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21493 $as_echo "$ld_is_gold" >&6; }
21495 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21497 case "$ORIGINAL_LD_FOR_TARGET" in
21498 ./collect-ld | ./collect-ld$build_exeext) ;;
21499 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21501 esac
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21504 $as_echo_n "checking what linker to use... " >&6; }
21505 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21506 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21507 # Single tree build which includes ld. We want to prefer it
21508 # over whatever linker top-level may have detected, since
21509 # we'll use what we're building after installation anyway.
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21511 $as_echo "newly built ld" >&6; }
21512 in_tree_ld=yes
21513 in_tree_ld_is_elf=no
21514 if (grep 'EMUL = .*elf' ../ld/Makefile \
21515 || grep 'EMUL = .*linux' ../ld/Makefile \
21516 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21517 in_tree_ld_is_elf=yes
21518 elif test "$ld_is_gold" = yes; then
21519 in_tree_ld_is_elf=yes
21521 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
21523 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21524 if test x$gcc_cv_gld_version != x; then
21525 break
21527 done
21528 case $gcc_cv_gld_version in
21529 VERSION=[0-9]*) ;;
21530 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21531 esac
21532 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21533 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21534 else
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21536 $as_echo "$gcc_cv_ld" >&6; }
21537 in_tree_ld=no
21540 # Figure out what nm we will be using.
21541 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21542 if test "${gcc_cv_nm+set}" = set; then :
21544 else
21546 if test -f $gcc_cv_binutils_srcdir/configure.in \
21547 && test -f ../binutils/Makefile \
21548 && test x$build = x$host; then
21549 gcc_cv_nm=../binutils/nm-new$build_exeext
21550 elif test -x nm$build_exeext; then
21551 gcc_cv_nm=./nm$build_exeext
21552 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21553 gcc_cv_nm="$NM_FOR_TARGET"
21554 else
21555 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21556 set dummy $NM_FOR_TARGET; ac_word=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21561 else
21562 case $gcc_cv_nm in
21563 [\\/]* | ?:[\\/]*)
21564 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21568 for as_dir in $PATH
21570 IFS=$as_save_IFS
21571 test -z "$as_dir" && as_dir=.
21572 for ac_exec_ext in '' $ac_executable_extensions; do
21573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21576 break 2
21578 done
21579 done
21580 IFS=$as_save_IFS
21583 esac
21585 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21586 if test -n "$gcc_cv_nm"; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21588 $as_echo "$gcc_cv_nm" >&6; }
21589 else
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21599 $as_echo_n "checking what nm to use... " >&6; }
21600 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21601 # Single tree build which includes binutils.
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21603 $as_echo "newly built nm" >&6; }
21604 in_tree_nm=yes
21605 else
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21607 $as_echo "$gcc_cv_nm" >&6; }
21608 in_tree_nm=no
21611 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21613 case "$ORIGINAL_NM_FOR_TARGET" in
21614 ./nm | ./nm$build_exeext) ;;
21615 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21617 esac
21620 # Figure out what objdump we will be using.
21621 if test "${gcc_cv_objdump+set}" = set; then :
21623 else
21625 if test -f $gcc_cv_binutils_srcdir/configure.in \
21626 && test -f ../binutils/Makefile \
21627 && test x$build = x$host; then
21628 # Single tree build which includes binutils.
21629 gcc_cv_objdump=../binutils/objdump$build_exeext
21630 elif test -x objdump$build_exeext; then
21631 gcc_cv_objdump=./objdump$build_exeext
21632 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21633 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21634 else
21635 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21636 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21641 else
21642 case $gcc_cv_objdump in
21643 [\\/]* | ?:[\\/]*)
21644 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21648 for as_dir in $PATH
21650 IFS=$as_save_IFS
21651 test -z "$as_dir" && as_dir=.
21652 for ac_exec_ext in '' $ac_executable_extensions; do
21653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21654 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21656 break 2
21658 done
21659 done
21660 IFS=$as_save_IFS
21663 esac
21665 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21666 if test -n "$gcc_cv_objdump"; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21668 $as_echo "$gcc_cv_objdump" >&6; }
21669 else
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21679 $as_echo_n "checking what objdump to use... " >&6; }
21680 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21681 # Single tree build which includes binutils.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21683 $as_echo "newly built objdump" >&6; }
21684 elif test x$gcc_cv_objdump = x; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21686 $as_echo "not found" >&6; }
21687 else
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21689 $as_echo "$gcc_cv_objdump" >&6; }
21692 # Figure out what readelf we will be using.
21693 if test "${gcc_cv_readelf+set}" = set; then :
21695 else
21697 if test -f $gcc_cv_binutils_srcdir/configure.in \
21698 && test -f ../binutils/Makefile \
21699 && test x$build = x$host; then
21700 # Single tree build which includes binutils.
21701 gcc_cv_readelf=../binutils/readelf$build_exeext
21702 elif test -x readelf$build_exeext; then
21703 gcc_cv_readelf=./readelf$build_exeext
21704 else
21705 # Extract the first word of "readelf", so it can be a program name with args.
21706 set dummy readelf; ac_word=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21711 else
21712 case $gcc_cv_readelf in
21713 [\\/]* | ?:[\\/]*)
21714 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21720 IFS=$as_save_IFS
21721 test -z "$as_dir" && as_dir=.
21722 for ac_exec_ext in '' $ac_executable_extensions; do
21723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21726 break 2
21728 done
21729 done
21730 IFS=$as_save_IFS
21733 esac
21735 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21736 if test -n "$gcc_cv_readelf"; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21738 $as_echo "$gcc_cv_readelf" >&6; }
21739 else
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21749 $as_echo_n "checking what readelf to use... " >&6; }
21750 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21751 # Single tree build which includes binutils.
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21753 $as_echo "newly built readelf" >&6; }
21754 elif test x$gcc_cv_readelf = x; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21757 else
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21759 $as_echo "$gcc_cv_readelf" >&6; }
21762 # Figure out what assembler alignment features are present.
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21764 $as_echo_n "checking assembler flags... " >&6; }
21765 if test "${gcc_cv_as_flags+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21767 else
21768 case "$target" in
21769 i[34567]86-*-linux*)
21770 gcc_cv_as_flags="--32"
21772 powerpc*-*-darwin*)
21773 gcc_cv_as_flags="-arch ppc"
21776 gcc_cv_as_flags=" "
21778 esac
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21781 $as_echo "$gcc_cv_as_flags" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21784 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21785 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21786 $as_echo_n "(cached) " >&6
21787 else
21788 gcc_cv_as_balign_and_p2align=no
21789 if test $in_tree_gas = yes; then
21790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21791 then gcc_cv_as_balign_and_p2align=yes
21793 elif test x$gcc_cv_as != x; then
21794 $as_echo '.balign 4
21795 .p2align 2' > conftest.s
21796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; }
21802 then
21803 gcc_cv_as_balign_and_p2align=yes
21804 else
21805 echo "configure: failed program was" >&5
21806 cat conftest.s >&5
21808 rm -f conftest.o conftest.s
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21812 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21813 if test $gcc_cv_as_balign_and_p2align = yes; then
21815 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21820 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21821 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 gcc_cv_as_max_skip_p2align=no
21825 if test $in_tree_gas = yes; then
21826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21827 then gcc_cv_as_max_skip_p2align=yes
21829 elif test x$gcc_cv_as != x; then
21830 $as_echo '.p2align 4,,7' > conftest.s
21831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21837 then
21838 gcc_cv_as_max_skip_p2align=yes
21839 else
21840 echo "configure: failed program was" >&5
21841 cat conftest.s >&5
21843 rm -f conftest.o conftest.s
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21848 if test $gcc_cv_as_max_skip_p2align = yes; then
21850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21855 $as_echo_n "checking assembler for .literal16... " >&6; }
21856 if test "${gcc_cv_as_literal16+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 gcc_cv_as_literal16=no
21860 if test $in_tree_gas = yes; then
21861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21862 then gcc_cv_as_literal16=yes
21864 elif test x$gcc_cv_as != x; then
21865 $as_echo '.literal16' > conftest.s
21866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871 test $ac_status = 0; }; }
21872 then
21873 gcc_cv_as_literal16=yes
21874 else
21875 echo "configure: failed program was" >&5
21876 cat conftest.s >&5
21878 rm -f conftest.o conftest.s
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21882 $as_echo "$gcc_cv_as_literal16" >&6; }
21883 if test $gcc_cv_as_literal16 = yes; then
21885 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21890 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21891 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21893 else
21894 gcc_cv_as_subsection_m1=no
21895 if test $in_tree_gas = yes; then
21896 if test $in_tree_gas_is_elf = yes \
21897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21898 then gcc_cv_as_subsection_m1=yes
21900 elif test x$gcc_cv_as != x; then
21901 $as_echo 'conftest_label1: .word 0
21902 .subsection -1
21903 conftest_label2: .word 0
21904 .previous' > conftest.s
21905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21911 then
21912 if test x$gcc_cv_nm != x; then
21913 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21914 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21915 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21916 then :
21917 else gcc_cv_as_subsection_m1=yes
21919 rm -f conftest.nm1 conftest.nm2
21921 else
21922 echo "configure: failed program was" >&5
21923 cat conftest.s >&5
21925 rm -f conftest.o conftest.s
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21930 if test $gcc_cv_as_subsection_m1 = yes; then
21932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21937 $as_echo_n "checking assembler for .weak... " >&6; }
21938 if test "${gcc_cv_as_weak+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 gcc_cv_as_weak=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21944 then gcc_cv_as_weak=yes
21946 elif test x$gcc_cv_as != x; then
21947 $as_echo ' .weak foobar' > conftest.s
21948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21950 (eval $ac_try) 2>&5
21951 ac_status=$?
21952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21953 test $ac_status = 0; }; }
21954 then
21955 gcc_cv_as_weak=yes
21956 else
21957 echo "configure: failed program was" >&5
21958 cat conftest.s >&5
21960 rm -f conftest.o conftest.s
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21964 $as_echo "$gcc_cv_as_weak" >&6; }
21965 if test $gcc_cv_as_weak = yes; then
21967 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21972 $as_echo_n "checking assembler for .weakref... " >&6; }
21973 if test "${gcc_cv_as_weakref+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21975 else
21976 gcc_cv_as_weakref=no
21977 if test $in_tree_gas = yes; then
21978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21979 then gcc_cv_as_weakref=yes
21981 elif test x$gcc_cv_as != x; then
21982 $as_echo ' .weakref foobar, barfnot' > conftest.s
21983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }; }
21989 then
21990 gcc_cv_as_weakref=yes
21991 else
21992 echo "configure: failed program was" >&5
21993 cat conftest.s >&5
21995 rm -f conftest.o conftest.s
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21999 $as_echo "$gcc_cv_as_weakref" >&6; }
22000 if test $gcc_cv_as_weakref = yes; then
22002 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22007 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22008 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 gcc_cv_as_nsubspa_comdat=no
22012 if test $in_tree_gas = yes; then
22013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22014 then gcc_cv_as_nsubspa_comdat=yes
22016 elif test x$gcc_cv_as != x; then
22017 $as_echo ' .SPACE $TEXT$
22018 .NSUBSPA $CODE$,COMDAT' > conftest.s
22019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; }
22025 then
22026 gcc_cv_as_nsubspa_comdat=yes
22027 else
22028 echo "configure: failed program was" >&5
22029 cat conftest.s >&5
22031 rm -f conftest.o conftest.s
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22035 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22036 if test $gcc_cv_as_nsubspa_comdat = yes; then
22038 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22042 # .hidden needs to be supported in both the assembler and the linker,
22043 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22044 # This is irritatingly difficult to feature test for; we have to check the
22045 # date string after the version number. If we've got an in-tree
22046 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22047 # to be safe.
22048 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22050 $as_echo_n "checking assembler for .hidden... " >&6; }
22051 if test "${gcc_cv_as_hidden+set}" = set; then :
22052 $as_echo_n "(cached) " >&6
22053 else
22054 gcc_cv_as_hidden=no
22055 if test $in_tree_gas = yes; then
22056 if test $in_tree_gas_is_elf = yes \
22057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22058 then gcc_cv_as_hidden=yes
22060 elif test x$gcc_cv_as != x; then
22061 $as_echo ' .hidden foobar
22062 foobar:' > conftest.s
22063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
22067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068 test $ac_status = 0; }; }
22069 then
22071 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22072 # STV_HIDDEN, so disable .hidden support if so.
22073 case "${target}" in
22074 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22075 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22076 cat > conftest.s <<EOF
22077 .globl hidden
22078 .hidden hidden
22079 hidden:
22080 .globl default
22081 .set default,hidden
22083 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22084 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22085 grep '\.hidden default' > /dev/null; then
22086 gcc_cv_as_hidden=no
22087 else
22088 gcc_cv_as_hidden=yes
22090 else
22091 # Assume bug is present if objdump is missing.
22092 gcc_cv_as_hidden=no
22096 gcc_cv_as_hidden=yes
22098 esac
22099 else
22100 echo "configure: failed program was" >&5
22101 cat conftest.s >&5
22103 rm -f conftest.o conftest.s
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22107 $as_echo "$gcc_cv_as_hidden" >&6; }
22109 case "${target}" in
22110 *-*-darwin*)
22111 # Darwin as has some visibility support, though with a different syntax.
22112 gcc_cv_as_hidden=yes
22114 esac
22116 # gnu_indirect_function type is an extension proposed at
22117 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22118 # selection of function implementation
22119 # Check whether --enable-gnu-indirect-function was given.
22120 if test "${enable_gnu_indirect_function+set}" = set; then :
22121 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22122 yes | no) ;;
22123 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22124 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22125 esac
22126 else
22127 enable_gnu_indirect_function="$default_gnu_indirect_function"
22131 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22133 cat >>confdefs.h <<_ACEOF
22134 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22135 _ACEOF
22139 if test $in_tree_ld != yes ; then
22140 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22141 if echo "$ld_ver" | grep GNU > /dev/null; then
22142 if test x"$ld_is_gold" = xyes; then
22143 # GNU gold --version looks like this:
22145 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22147 # We extract the binutils version which is more familiar and specific
22148 # than the gold version.
22149 ld_vers=`echo $ld_ver | sed -n \
22150 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22151 else
22152 # GNU ld --version looks like this:
22154 # GNU ld (GNU Binutils) 2.21.51.20110225
22155 ld_vers=`echo $ld_ver | sed -n \
22156 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22158 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'`
22159 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22160 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22161 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22162 else
22163 case "${target}" in
22164 *-*-solaris2*)
22165 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22166 # format.
22168 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22169 # /usr/ccs/bin/ld has been configured.
22170 ld_ver=`$gcc_cv_ld -V 2>&1`
22171 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22172 ld_vers=`echo $ld_ver | sed -n \
22173 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22174 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22175 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22178 esac
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22183 $as_echo_n "checking linker for .hidden support... " >&6; }
22184 if test "${gcc_cv_ld_hidden+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22186 else
22187 if test $in_tree_ld = yes ; then
22188 gcc_cv_ld_hidden=no
22189 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 \
22190 && test $in_tree_ld_is_elf = yes; then
22191 gcc_cv_ld_hidden=yes
22193 else
22194 gcc_cv_ld_hidden=yes
22195 if test x"$ld_is_gold" = xyes; then
22197 elif echo "$ld_ver" | grep GNU > /dev/null; then
22198 case "${target}" in
22199 mmix-knuth-mmixware)
22200 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22201 gcc_cv_ld_hidden=no
22203 esac
22204 if test 0"$ld_date" -lt 20020404; then
22205 if test -n "$ld_date"; then
22206 # If there was date string, but was earlier than 2002-04-04, fail
22207 gcc_cv_ld_hidden=no
22208 elif test -z "$ld_vers"; then
22209 # If there was no date string nor ld version number, something is wrong
22210 gcc_cv_ld_hidden=no
22211 else
22212 test -z "$ld_vers_patch" && ld_vers_patch=0
22213 if test "$ld_vers_major" -lt 2; then
22214 gcc_cv_ld_hidden=no
22215 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22216 gcc_cv_ld_hidden="no"
22217 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22218 gcc_cv_ld_hidden=no
22222 else
22223 case "${target}" in
22224 *-*-darwin*)
22225 # Darwin ld has some visibility support.
22226 gcc_cv_ld_hidden=yes
22228 hppa64*-*-hpux* | ia64*-*-hpux*)
22229 gcc_cv_ld_hidden=yes
22231 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22232 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22233 # .symbolic was only added in Solaris 9 12/02.
22234 gcc_cv_ld_hidden=yes
22237 gcc_cv_ld_hidden=no
22239 esac
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22244 $as_echo "$gcc_cv_ld_hidden" >&6; }
22245 libgcc_visibility=no
22248 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22249 libgcc_visibility=yes
22251 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22256 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22257 gcc_cv_ld_ro_rw_mix=unknown
22258 if test $in_tree_ld = yes ; then
22259 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 \
22260 && test $in_tree_ld_is_elf = yes; then
22261 gcc_cv_ld_ro_rw_mix=read-write
22263 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22264 echo '.section myfoosect, "a"' > conftest1.s
22265 echo '.section myfoosect, "aw"' > conftest2.s
22266 echo '.byte 1' >> conftest2.s
22267 echo '.section myfoosect, "a"' > conftest3.s
22268 echo '.byte 0' >> conftest3.s
22269 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22270 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22271 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22272 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22273 conftest2.o conftest3.o > /dev/null 2>&1; then
22274 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22275 | sed -e '/myfoosect/!d' -e N`
22276 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22277 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22278 gcc_cv_ld_ro_rw_mix=read-only
22279 else
22280 gcc_cv_ld_ro_rw_mix=read-write
22284 rm -f conftest.* conftest[123].*
22286 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22288 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22292 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22294 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22295 case "${target}" in
22296 *-*-solaris2*)
22298 # Solaris 2 ld -V output looks like this for a regular version:
22300 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22302 # but test versions add stuff at the end:
22304 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22306 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22307 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22308 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22309 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22310 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22311 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22314 esac
22317 # Check whether --enable-initfini-array was given.
22318 if test "${enable_initfini_array+set}" = set; then :
22319 enableval=$enable_initfini_array;
22320 else
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22323 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22324 if test "${gcc_cv_initfini_array+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22326 else
22327 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22328 case "${target}" in
22329 ia64-*)
22330 if test "$cross_compiling" = yes; then :
22331 gcc_cv_initfini_array=no
22332 else
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22336 #ifndef __ELF__
22337 #error Not an ELF OS
22338 #endif
22339 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22340 if it can be used. */
22341 static int x = -1;
22342 int main (void) { return x; }
22343 int foo (void) { x = 0; }
22344 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22346 _ACEOF
22347 if ac_fn_c_try_run "$LINENO"; then :
22348 gcc_cv_initfini_array=yes
22349 else
22350 gcc_cv_initfini_array=no
22352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22353 conftest.$ac_objext conftest.beam conftest.$ac_ext
22357 gcc_cv_initfini_array=no
22358 if test $in_tree_ld = yes ; then
22359 if test "$gcc_cv_gld_major_version" -eq 2 \
22360 -a "$gcc_cv_gld_minor_version" -ge 22 \
22361 -o "$gcc_cv_gld_major_version" -gt 2 \
22362 && test $in_tree_ld_is_elf = yes; then
22363 gcc_cv_initfini_array=yes
22365 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22366 cat > conftest.s <<\EOF
22367 .section .dtors,"a",%progbits
22368 .balign 4
22369 .byte 'A', 'A', 'A', 'A'
22370 .section .ctors,"a",%progbits
22371 .balign 4
22372 .byte 'B', 'B', 'B', 'B'
22373 .section .fini_array.65530,"a",%progbits
22374 .balign 4
22375 .byte 'C', 'C', 'C', 'C'
22376 .section .init_array.65530,"a",%progbits
22377 .balign 4
22378 .byte 'D', 'D', 'D', 'D'
22379 .section .dtors.64528,"a",%progbits
22380 .balign 4
22381 .byte 'E', 'E', 'E', 'E'
22382 .section .ctors.64528,"a",%progbits
22383 .balign 4
22384 .byte 'F', 'F', 'F', 'F'
22385 .section .fini_array.01005,"a",%progbits
22386 .balign 4
22387 .byte 'G', 'G', 'G', 'G'
22388 .section .init_array.01005,"a",%progbits
22389 .balign 4
22390 .byte 'H', 'H', 'H', 'H'
22391 .text
22392 .globl _start
22393 _start:
22395 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22396 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22397 && $gcc_cv_objdump -s -j .init_array conftest \
22398 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22399 && $gcc_cv_objdump -s -j .fini_array conftest \
22400 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22401 gcc_cv_initfini_array=yes
22403 rm -f conftest conftest.*
22405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22406 /* end confdefs.h. */
22408 #ifndef __ELF__
22409 # error Not an ELF OS
22410 #endif
22411 #include <stdlib.h>
22412 #if defined __GLIBC_PREREQ
22413 # if __GLIBC_PREREQ (2, 4)
22414 # else
22415 # error GLIBC 2.4 required
22416 # endif
22417 #else
22418 # if defined __sun__ && defined __svr4__
22419 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22420 # else
22421 # error The C library not known to support .init_array/.fini_array
22422 # endif
22423 #endif
22425 _ACEOF
22426 if ac_fn_c_try_cpp "$LINENO"; then :
22428 else
22429 gcc_cv_initfini_array=no
22431 rm -f conftest.err conftest.$ac_ext;;
22432 esac
22433 else
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22435 $as_echo_n "checking cross compile... guessing... " >&6; }
22436 gcc_cv_initfini_array=no
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22440 $as_echo "$gcc_cv_initfini_array" >&6; }
22441 enable_initfini_array=$gcc_cv_initfini_array
22445 if test $enable_initfini_array = yes; then
22447 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22451 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22453 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22454 if test "${gcc_cv_as_leb128+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 gcc_cv_as_leb128=no
22458 if test $in_tree_gas = yes; then
22459 if test $in_tree_gas_is_elf = yes \
22460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22461 then gcc_cv_as_leb128=yes
22463 elif test x$gcc_cv_as != x; then
22464 $as_echo ' .data
22465 .uleb128 L2 - L1
22467 .uleb128 1280
22468 .sleb128 -1010
22469 L2:' > conftest.s
22470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22475 test $ac_status = 0; }; }
22476 then
22477 # GAS versions before 2.11 do not support uleb128,
22478 # despite appearing to.
22479 # ??? There exists an elf-specific test that will crash
22480 # the assembler. Perhaps it's better to figure out whether
22481 # arbitrary sections are supported and try the test.
22482 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22483 if echo "$as_ver" | grep GNU > /dev/null; then
22484 as_vers=`echo $as_ver | sed -n \
22485 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22486 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22487 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22488 if test $as_major -eq 2 && test $as_minor -lt 11
22489 then :
22490 else gcc_cv_as_leb128=yes
22493 else
22494 echo "configure: failed program was" >&5
22495 cat conftest.s >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22501 $as_echo "$gcc_cv_as_leb128" >&6; }
22502 if test $gcc_cv_as_leb128 = yes; then
22504 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22508 # Check if we have assembler support for unwind directives.
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22510 $as_echo_n "checking assembler for cfi directives... " >&6; }
22511 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22513 else
22514 gcc_cv_as_cfi_directive=no
22515 if test x$gcc_cv_as != x; then
22516 $as_echo ' .text
22517 .cfi_startproc
22518 .cfi_offset 0, 0
22519 .cfi_same_value 1
22520 .cfi_def_cfa 1, 2
22521 .cfi_escape 1, 2, 3, 4, 5
22522 .cfi_endproc' > conftest.s
22523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22529 then
22530 case "$target" in
22531 *-*-solaris*)
22532 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22533 # read-only and read-write sections, we need to make sure that the
22534 # assembler used emits read-write .eh_frame sections.
22535 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22536 if test "x$gcc_cv_objdump" != x; then
22537 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22538 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22539 gcc_cv_as_cfi_directive=no
22540 else
22541 case "$target" in
22542 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22543 # On Solaris/x86, make sure that GCC and gas agree on using
22544 # read-only .eh_frame sections for 64-bit.
22545 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22546 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22547 sed -e /.eh_frame/!d -e N | \
22548 grep READONLY > /dev/null; then
22549 gcc_cv_as_cfi_directive=yes
22550 else
22551 gcc_cv_as_cfi_directive=no
22555 gcc_cv_as_cfi_directive=yes
22557 esac
22559 else
22560 # no objdump, err on the side of caution
22561 gcc_cv_as_cfi_directive=no
22563 else
22564 gcc_cv_as_cfi_directive=yes
22567 *-*-*)
22568 gcc_cv_as_cfi_directive=yes
22570 esac
22571 else
22572 echo "configure: failed program was" >&5
22573 cat conftest.s >&5
22575 rm -f conftest.o conftest.s
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22579 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22581 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22583 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22584 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22586 else
22587 gcc_cv_as_cfi_advance_working=no
22588 if test x$gcc_cv_as != x; then
22589 $as_echo ' .text
22590 .cfi_startproc
22591 .cfi_adjust_cfa_offset 64
22592 .skip 75040, 0
22593 .cfi_adjust_cfa_offset 128
22594 .cfi_endproc' > conftest.s
22595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22600 test $ac_status = 0; }; }
22601 then
22603 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22604 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22605 gcc_cv_as_cfi_advance_working=yes
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_advance_working" >&5
22616 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22618 else
22619 # no objdump, err on the side of caution
22620 gcc_cv_as_cfi_advance_working=no
22624 cat >>confdefs.h <<_ACEOF
22625 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22626 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22627 _ACEOF
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22632 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22633 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22635 else
22636 gcc_cv_as_cfi_personality_directive=no
22637 if test x$gcc_cv_as != x; then
22638 $as_echo ' .text
22639 .cfi_startproc
22640 .cfi_personality 0, symbol
22641 .cfi_endproc' > conftest.s
22642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; }
22648 then
22649 gcc_cv_as_cfi_personality_directive=yes
22650 else
22651 echo "configure: failed program was" >&5
22652 cat conftest.s >&5
22654 rm -f conftest.o conftest.s
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22658 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22663 then echo 1; else echo 0; fi`
22664 _ACEOF
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22668 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22669 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22671 else
22672 gcc_cv_as_cfi_sections_directive=no
22673 if test x$gcc_cv_as != x; then
22674 $as_echo ' .text
22675 .cfi_sections .debug_frame, .eh_frame
22676 .cfi_startproc
22677 .cfi_endproc' > conftest.s
22678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22684 then
22685 case $target_os in
22686 win32 | pe | cygwin* | mingw32* | uwin*)
22687 # Need to check that we generated the correct relocation for the
22688 # .debug_frame section. This was fixed for binutils 2.21.
22689 gcc_cv_as_cfi_sections_directive=no
22690 if test "x$gcc_cv_objdump" != x; then
22691 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22692 grep secrel > /dev/null; then
22693 gcc_cv_as_cfi_sections_directive=yes
22698 gcc_cv_as_cfi_sections_directive=yes
22700 esac
22701 else
22702 echo "configure: failed program was" >&5
22703 cat conftest.s >&5
22705 rm -f conftest.o conftest.s
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22709 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22713 cat >>confdefs.h <<_ACEOF
22714 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22715 then echo 1; else echo 0; fi`
22716 _ACEOF
22719 # GAS versions up to and including 2.11.0 may mis-optimize
22720 # .eh_frame data.
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22722 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22723 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_eh_frame=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22730 then gcc_cv_as_eh_frame=yes
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo ' .text
22734 .LFB1:
22735 .4byte 0
22736 .L1:
22737 .4byte 0
22738 .LFE1:
22739 .section .eh_frame,"aw",@progbits
22740 __FRAME_BEGIN__:
22741 .4byte .LECIE1-.LSCIE1
22742 .LSCIE1:
22743 .4byte 0x0
22744 .byte 0x1
22745 .ascii "z\0"
22746 .byte 0x1
22747 .byte 0x78
22748 .byte 0x1a
22749 .byte 0x0
22750 .byte 0x4
22751 .4byte 1
22752 .p2align 1
22753 .LECIE1:
22754 .LSFDE1:
22755 .4byte .LEFDE1-.LASFDE1
22756 .LASFDE1:
22757 .4byte .LASFDE1-__FRAME_BEGIN__
22758 .4byte .LFB1
22759 .4byte .LFE1-.LFB1
22760 .byte 0x4
22761 .4byte .LFE1-.LFB1
22762 .byte 0x4
22763 .4byte .L1-.LFB1
22764 .LEFDE1:' > conftest.s
22765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22771 then
22772 cat > conftest.lit <<EOF
22773 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22774 0010 01000000 12000000 18000000 00000000 ................
22775 0020 08000000 04080000 0044 .........D
22777 cat > conftest.big <<EOF
22778 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22779 0010 00000001 00000012 00000018 00000000 ................
22780 0020 00000008 04000000 0844 .........D
22782 # If the assembler didn't choke, and we can objdump,
22783 # and we got the correct data, then succeed.
22784 # The text in the here-document typically retains its unix-style line
22785 # endings, while the output of objdump will use host line endings.
22786 # Therefore, use diff -b for the comparisons.
22787 if test x$gcc_cv_objdump != x \
22788 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22789 | tail -3 > conftest.got \
22790 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22791 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22792 then
22793 gcc_cv_as_eh_frame=yes
22794 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }; then
22800 gcc_cv_as_eh_frame=buggy
22801 else
22802 # Uh oh, what do we do now?
22803 gcc_cv_as_eh_frame=no
22805 else
22806 echo "configure: failed program was" >&5
22807 cat conftest.s >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22813 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22816 if test $gcc_cv_as_eh_frame = buggy; then
22818 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22823 $as_echo_n "checking assembler for section merging support... " >&6; }
22824 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22826 else
22827 gcc_cv_as_shf_merge=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22831 then gcc_cv_as_shf_merge=yes
22833 elif test x$gcc_cv_as != x; then
22834 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 gcc_cv_as_shf_merge=yes
22843 else
22844 echo "configure: failed program was" >&5
22845 cat conftest.s >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22851 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22853 if test $gcc_cv_as_shf_merge = no; then
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22855 $as_echo_n "checking assembler for section merging support... " >&6; }
22856 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 gcc_cv_as_shf_merge=no
22860 if test $in_tree_gas = yes; then
22861 if test $in_tree_gas_is_elf = yes \
22862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22863 then gcc_cv_as_shf_merge=yes
22865 elif test x$gcc_cv_as != x; then
22866 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22869 (eval $ac_try) 2>&5
22870 ac_status=$?
22871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22872 test $ac_status = 0; }; }
22873 then
22874 gcc_cv_as_shf_merge=yes
22875 else
22876 echo "configure: failed program was" >&5
22877 cat conftest.s >&5
22879 rm -f conftest.o conftest.s
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22883 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22889 _ACEOF
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22893 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22894 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 gcc_cv_as_comdat_group=no
22898 if test $in_tree_gas = yes; then
22899 if test $in_tree_gas_is_elf = yes \
22900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22901 then gcc_cv_as_comdat_group=yes
22903 elif test x$gcc_cv_as != x; then
22904 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }
22911 then
22912 gcc_cv_as_comdat_group=yes
22913 else
22914 echo "configure: failed program was" >&5
22915 cat conftest.s >&5
22917 rm -f conftest.o conftest.s
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22921 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22923 if test $gcc_cv_as_comdat_group = yes; then
22924 gcc_cv_as_comdat_group_percent=no
22925 gcc_cv_as_comdat_group_group=no
22926 else
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22928 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22929 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22930 $as_echo_n "(cached) " >&6
22931 else
22932 gcc_cv_as_comdat_group_percent=no
22933 if test $in_tree_gas = yes; then
22934 if test $in_tree_gas_is_elf = yes \
22935 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22936 then gcc_cv_as_comdat_group_percent=yes
22938 elif test x$gcc_cv_as != x; then
22939 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22942 (eval $ac_try) 2>&5
22943 ac_status=$?
22944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22945 test $ac_status = 0; }; }
22946 then
22947 gcc_cv_as_comdat_group_percent=yes
22948 else
22949 echo "configure: failed program was" >&5
22950 cat conftest.s >&5
22952 rm -f conftest.o conftest.s
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22956 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22958 if test $gcc_cv_as_comdat_group_percent = yes; then
22959 gcc_cv_as_comdat_group_group=no
22960 else
22961 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22962 gcc_cv_as_comdat_group_group=no
22964 case "${target}" in
22965 # Sun as uses a completely different syntax.
22966 *-*-solaris2*)
22967 case "${target}" in
22968 sparc*-*-solaris2*)
22969 conftest_s='
22970 .group foo,".text%foo",#comdat
22971 .section ".text%foo", #alloc,#execinstr,#progbits
22972 .globl foo
22973 foo:
22976 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22977 conftest_s='
22978 .group foo,.text%foo,#comdat
22979 .section .text%foo, "ax", @progbits
22980 .globl foo
22981 foo:
22984 esac
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22986 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22987 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22988 $as_echo_n "(cached) " >&6
22989 else
22990 gcc_cv_as_comdat_group_group=no
22991 if test x$gcc_cv_as != x; then
22992 $as_echo "$conftest_s" > conftest.s
22993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22998 test $ac_status = 0; }; }
22999 then
23000 gcc_cv_as_comdat_group_group=yes
23001 else
23002 echo "configure: failed program was" >&5
23003 cat conftest.s >&5
23005 rm -f conftest.o conftest.s
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23009 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23012 esac
23015 if test x"$ld_is_gold" = xyes; then
23016 comdat_group=yes
23017 elif test $in_tree_ld = yes ; then
23018 comdat_group=no
23019 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 \
23020 && test $in_tree_ld_is_elf = yes; then
23021 comdat_group=yes
23023 elif echo "$ld_ver" | grep GNU > /dev/null; then
23024 comdat_group=yes
23025 if test 0"$ld_date" -lt 20050308; then
23026 if test -n "$ld_date"; then
23027 # If there was date string, but was earlier than 2005-03-08, fail
23028 comdat_group=no
23029 elif test "$ld_vers_major" -lt 2; then
23030 comdat_group=no
23031 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23032 comdat_group=no
23035 else
23036 case "${target}" in
23037 *-*-solaris2.1[1-9]*)
23038 comdat_group=no
23039 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23040 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23041 # version 1.688.
23043 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23044 # least ld version 1.2267.
23045 if test "$ld_vers_major" -gt 1; then
23046 comdat_group=yes
23047 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23048 comdat_group=yes
23049 elif test "$ld_vers_minor" -ge 2267; then
23050 comdat_group=yes
23054 # Assume linkers other than GNU ld don't support COMDAT group.
23055 comdat_group=no
23057 esac
23059 # Allow overriding the automatic COMDAT group tests above.
23060 # Check whether --enable-comdat was given.
23061 if test "${enable_comdat+set}" = set; then :
23062 enableval=$enable_comdat; comdat_group="$enable_comdat"
23065 if test $comdat_group = no; then
23066 gcc_cv_as_comdat_group=no
23067 gcc_cv_as_comdat_group_percent=no
23068 gcc_cv_as_comdat_group_group=no
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23073 || test $gcc_cv_as_comdat_group_percent = yes \
23074 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23075 _ACEOF
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23079 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23080 if test "${gcc_cv_as_discriminator+set}" = set; then :
23081 $as_echo_n "(cached) " >&6
23082 else
23083 gcc_cv_as_discriminator=no
23084 if test $in_tree_gas = yes; then
23085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23086 then gcc_cv_as_discriminator=yes
23088 elif test x$gcc_cv_as != x; then
23089 $as_echo ' .text
23090 .file 1 "conf.c"
23091 .loc 1 1 0 discriminator 1' > conftest.s
23092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23098 then
23099 gcc_cv_as_discriminator=yes
23100 else
23101 echo "configure: failed program was" >&5
23102 cat conftest.s >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23108 $as_echo "$gcc_cv_as_discriminator" >&6; }
23109 if test $gcc_cv_as_discriminator = yes; then
23111 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23115 # Thread-local storage - the check is heavily parameterized.
23116 conftest_s=
23117 tls_first_major=
23118 tls_first_minor=
23119 tls_as_opt=
23120 case "$target" in
23121 alpha*-*-*)
23122 conftest_s='
23123 .section ".tdata","awT",@progbits
23124 foo: .long 25
23125 .text
23126 ldq $27,__tls_get_addr($29) !literal!1
23127 lda $16,foo($29) !tlsgd!1
23128 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23129 ldq $27,__tls_get_addr($29) !literal!2
23130 lda $16,foo($29) !tlsldm!2
23131 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23132 ldq $1,foo($29) !gotdtprel
23133 ldah $2,foo($29) !dtprelhi
23134 lda $3,foo($2) !dtprello
23135 lda $4,foo($29) !dtprel
23136 ldq $1,foo($29) !gottprel
23137 ldah $2,foo($29) !tprelhi
23138 lda $3,foo($2) !tprello
23139 lda $4,foo($29) !tprel'
23140 tls_first_major=2
23141 tls_first_minor=13
23142 tls_as_opt=--fatal-warnings
23144 cris-*-*|crisv32-*-*)
23145 conftest_s='
23146 .section ".tdata","awT",@progbits
23147 x: .long 25
23148 .text
23149 move.d x:IE,$r10
23150 nop'
23151 tls_first_major=2
23152 tls_first_minor=20
23153 tls_as_opt=--fatal-warnings
23155 frv*-*-*)
23156 conftest_s='
23157 .section ".tdata","awT",@progbits
23158 x: .long 25
23159 .text
23160 call #gettlsoff(x)'
23161 tls_first_major=2
23162 tls_first_minor=14
23164 hppa*-*-linux*)
23165 conftest_s='
23166 t1: .reg %r20
23167 t2: .reg %r21
23168 gp: .reg %r19
23169 .section ".tdata","awT",@progbits
23170 foo: .long 25
23171 .text
23172 .align 4
23173 addil LT%foo-$tls_gdidx$,gp
23174 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23175 b __tls_get_addr
23177 addil LT%foo-$tls_ldidx$,gp
23178 b __tls_get_addr
23179 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23180 addil LR%foo-$tls_dtpoff$,%ret0
23181 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23182 mfctl %cr27,%t1
23183 addil LT%foo-$tls_ieoff$,gp
23184 ldw RT%foo-$tls_ieoff$(%r1),%t2
23185 add %t1,%t2,%t3
23186 mfctl %cr27,%t1
23187 addil LR%foo-$tls_leoff$,%t1
23188 ldo RR%foo-$tls_leoff$(%r1),%t2'
23189 tls_first_major=2
23190 tls_first_minor=15
23191 tls_as_opt=--fatal-warnings
23193 arm*-*-*)
23194 conftest_s='
23195 .section ".tdata","awT",%progbits
23196 foo: .long 25
23197 .text
23198 .word foo(gottpoff)
23199 .word foo(tpoff)
23200 .word foo(tlsgd)
23201 .word foo(tlsldm)
23202 .word foo(tlsldo)'
23203 tls_first_major=2
23204 tls_first_minor=17
23206 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23207 case "$target" in
23208 i[34567]86-*-solaris2.*)
23209 on_solaris=yes
23210 tga_func=___tls_get_addr
23212 x86_64-*-solaris2.1[0-9]*)
23213 on_solaris=yes
23214 tga_func=__tls_get_addr
23217 on_solaris=no
23219 esac
23220 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23221 conftest_s='
23222 .section .tdata,"awt",@progbits'
23223 tls_first_major=0
23224 tls_first_minor=0
23226 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23228 else
23229 conftest_s='
23230 .section ".tdata","awT",@progbits'
23231 tls_first_major=2
23232 tls_first_minor=14
23233 tls_as_opt="--fatal-warnings"
23235 conftest_s="$conftest_s
23236 foo: .long 25
23237 .text
23238 movl %gs:0, %eax
23239 leal foo@tlsgd(,%ebx,1), %eax
23240 leal foo@tlsldm(%ebx), %eax
23241 leal foo@dtpoff(%eax), %edx
23242 movl foo@gottpoff(%ebx), %eax
23243 subl foo@gottpoff(%ebx), %eax
23244 addl foo@gotntpoff(%ebx), %eax
23245 movl foo@indntpoff, %eax
23246 movl \$foo@tpoff, %eax
23247 subl \$foo@tpoff, %eax
23248 leal foo@ntpoff(%ecx), %eax"
23250 x86_64-*-*)
23251 conftest_s='
23252 .section ".tdata","awT",@progbits
23253 foo: .long 25
23254 .text
23255 movq %fs:0, %rax
23256 leaq foo@TLSGD(%rip), %rdi
23257 leaq foo@TLSLD(%rip), %rdi
23258 leaq foo@DTPOFF(%rax), %rdx
23259 movq foo@GOTTPOFF(%rip), %rax
23260 movq $foo@TPOFF, %rax'
23261 tls_first_major=2
23262 tls_first_minor=14
23263 tls_as_opt=--fatal-warnings
23265 ia64-*-*)
23266 conftest_s='
23267 .section ".tdata","awT",@progbits
23268 foo: data8 25
23269 .text
23270 addl r16 = @ltoff(@dtpmod(foo#)), gp
23271 addl r17 = @ltoff(@dtprel(foo#)), gp
23272 addl r18 = @ltoff(@tprel(foo#)), gp
23273 addl r19 = @dtprel(foo#), gp
23274 adds r21 = @dtprel(foo#), r13
23275 movl r23 = @dtprel(foo#)
23276 addl r20 = @tprel(foo#), gp
23277 adds r22 = @tprel(foo#), r13
23278 movl r24 = @tprel(foo#)'
23279 tls_first_major=2
23280 tls_first_minor=13
23281 tls_as_opt=--fatal-warnings
23283 microblaze*-*-*)
23284 conftest_s='
23285 .section .tdata,"awT",@progbits
23287 .word 2
23288 .text
23289 addik r5,r20,x@TLSGD
23290 addik r5,r20,x@TLSLDM'
23291 tls_first_major=2
23292 tls_first_minor=20
23293 tls_as_opt='--fatal-warnings'
23295 mips*-*-*)
23296 conftest_s='
23297 .section .tdata,"awT",@progbits
23299 .word 2
23300 .text
23301 addiu $4, $28, %tlsgd(x)
23302 addiu $4, $28, %tlsldm(x)
23303 lui $4, %dtprel_hi(x)
23304 addiu $4, $4, %dtprel_lo(x)
23305 lw $4, %gottprel(x)($28)
23306 lui $4, %tprel_hi(x)
23307 addiu $4, $4, %tprel_lo(x)'
23308 tls_first_major=2
23309 tls_first_minor=16
23310 tls_as_opt='-32 --fatal-warnings'
23312 m68k-*-*)
23313 conftest_s='
23314 .section .tdata,"awT",@progbits
23316 .word 2
23317 .text
23318 foo:
23319 move.l x@TLSGD(%a5),%a0
23320 move.l x@TLSLDM(%a5),%a0
23321 move.l x@TLSLDO(%a5),%a0
23322 move.l x@TLSIE(%a5),%a0
23323 move.l x@TLSLE(%a5),%a0'
23324 tls_first_major=2
23325 tls_first_minor=19
23326 tls_as_opt='--fatal-warnings'
23328 aarch64*-*-*)
23329 conftest_s='
23330 .section ".tdata","awT",%progbits
23331 foo: .long 25
23332 .text
23333 adrp x0, :tlsgd:x
23334 add x0, x0, #:tlsgd_lo12:x
23335 bl __tls_get_addr
23336 nop'
23337 tls_first_major=2
23338 tls_first_minor=20
23339 tls_as_opt='--fatal-warnings'
23341 powerpc-ibm-aix*)
23342 conftest_s='
23343 .extern __get_tpointer
23344 .toc
23345 LC..1:
23346 .tc a[TC],a[TL]@le
23347 .csect .text[PR]
23348 .tlstest:
23349 lwz 9,LC..1(2)
23350 bla __get_tpointer
23351 lwzx 3,9,3
23352 .globl a
23353 .csect a[TL],4
23355 .space 4'
23356 tls_first_major=0
23357 tls_first_minor=0
23359 powerpc64*-*-*)
23360 conftest_s='
23361 .section ".tdata","awT",@progbits
23362 .align 3
23363 ld0: .space 8
23364 ld1: .space 8
23365 x1: .space 8
23366 x2: .space 8
23367 x3: .space 8
23368 .text
23369 addi 3,2,ld0@got@tlsgd
23370 bl .__tls_get_addr
23372 addi 3,2,ld1@toc
23373 bl .__tls_get_addr
23375 addi 3,2,x1@got@tlsld
23376 bl .__tls_get_addr
23378 addi 9,3,x1@dtprel
23379 bl .__tls_get_addr
23381 addis 9,3,x2@dtprel@ha
23382 addi 9,9,x2@dtprel@l
23383 bl .__tls_get_addr
23385 ld 9,x3@got@dtprel(2)
23386 add 9,9,3
23387 bl .__tls_get_addr
23388 nop'
23389 tls_first_major=2
23390 tls_first_minor=14
23391 tls_as_opt="-a64 --fatal-warnings"
23393 powerpc*-*-*)
23394 conftest_s='
23395 .section ".tdata","awT",@progbits
23396 .align 2
23397 ld0: .space 4
23398 ld1: .space 4
23399 x1: .space 4
23400 x2: .space 4
23401 x3: .space 4
23402 .text
23403 addi 3,31,ld0@got@tlsgd
23404 bl __tls_get_addr
23405 addi 3,31,x1@got@tlsld
23406 bl __tls_get_addr
23407 addi 9,3,x1@dtprel
23408 addis 9,3,x2@dtprel@ha
23409 addi 9,9,x2@dtprel@l
23410 lwz 9,x3@got@tprel(31)
23411 add 9,9,x@tls
23412 addi 9,2,x1@tprel
23413 addis 9,2,x2@tprel@ha
23414 addi 9,9,x2@tprel@l'
23415 tls_first_major=2
23416 tls_first_minor=14
23417 tls_as_opt="-a32 --fatal-warnings"
23419 s390-*-*)
23420 conftest_s='
23421 .section ".tdata","awT",@progbits
23422 foo: .long 25
23423 .text
23424 .long foo@TLSGD
23425 .long foo@TLSLDM
23426 .long foo@DTPOFF
23427 .long foo@NTPOFF
23428 .long foo@GOTNTPOFF
23429 .long foo@INDNTPOFF
23430 l %r1,foo@GOTNTPOFF(%r12)
23431 l %r1,0(%r1):tls_load:foo
23432 bas %r14,0(%r1,%r13):tls_gdcall:foo
23433 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23434 tls_first_major=2
23435 tls_first_minor=14
23436 tls_as_opt="-m31 --fatal-warnings"
23438 s390x-*-*)
23439 conftest_s='
23440 .section ".tdata","awT",@progbits
23441 foo: .long 25
23442 .text
23443 .quad foo@TLSGD
23444 .quad foo@TLSLDM
23445 .quad foo@DTPOFF
23446 .quad foo@NTPOFF
23447 .quad foo@GOTNTPOFF
23448 lg %r1,foo@GOTNTPOFF(%r12)
23449 larl %r1,foo@INDNTPOFF
23450 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23451 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23452 tls_first_major=2
23453 tls_first_minor=14
23454 tls_as_opt="-m64 -Aesame --fatal-warnings"
23456 sh-*-* | sh[34]-*-*)
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@GOTTPOFF
23465 .long foo@TPOFF'
23466 tls_first_major=2
23467 tls_first_minor=13
23468 tls_as_opt=--fatal-warnings
23470 sparc*-*-*)
23471 case "$target" in
23472 sparc*-sun-solaris2.*)
23473 on_solaris=yes
23474 tga_func=__tls_get_addr
23477 on_solaris=no
23479 esac
23480 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23481 conftest_s='
23482 .section ".tdata",#alloc,#write,#tls'
23483 tls_first_major=0
23484 tls_first_minor=0
23485 else
23486 conftest_s='
23487 .section ".tdata","awT",@progbits'
23488 tls_first_major=2
23489 tls_first_minor=14
23490 tls_as_opt="-32 --fatal-warnings"
23492 conftest_s="$conftest_s
23493 foo: .long 25
23494 .text
23495 sethi %tgd_hi22(foo), %o0
23496 add %o0, %tgd_lo10(foo), %o1
23497 add %l7, %o1, %o0, %tgd_add(foo)
23498 call __tls_get_addr, %tgd_call(foo)
23499 sethi %tldm_hi22(foo), %l1
23500 add %l1, %tldm_lo10(foo), %l2
23501 add %l7, %l2, %o0, %tldm_add(foo)
23502 call __tls_get_addr, %tldm_call(foo)
23503 sethi %tldo_hix22(foo), %l3
23504 xor %l3, %tldo_lox10(foo), %l4
23505 add %o0, %l4, %l5, %tldo_add(foo)
23506 sethi %tie_hi22(foo), %o3
23507 add %o3, %tie_lo10(foo), %o3
23508 ld [%l7 + %o3], %o2, %tie_ld(foo)
23509 add %g7, %o2, %o4, %tie_add(foo)
23510 sethi %tle_hix22(foo), %l1
23511 xor %l1, %tle_lox10(foo), %o5
23512 ld [%g7 + %o5], %o1"
23514 tilepro*-*-*)
23515 conftest_s='
23516 .section ".tdata","awT",@progbits
23517 foo: .long 25
23518 .text
23519 addli r0, zero, tls_gd(foo)
23520 auli r0, zero, tls_gd_ha16(foo)
23521 addli r0, r0, tls_gd_lo16(foo)
23522 jal __tls_get_addr
23523 addli r0, zero, tls_ie(foo)
23524 auli r0, r0, tls_ie_ha16(foo)
23525 addli r0, r0, tls_ie_lo16(foo)'
23526 tls_first_major=2
23527 tls_first_minor=22
23528 tls_as_opt="--fatal-warnings"
23530 tilegx*-*-*)
23531 conftest_s='
23532 .section ".tdata","awT",@progbits
23533 foo: .long 25
23534 .text
23535 shl16insli r0, zero, hw0_last_tls_gd(foo)
23536 shl16insli r0, zero, hw1_last_tls_gd(foo)
23537 shl16insli r0, r0, hw0_tls_gd(foo)
23538 jal __tls_get_addr
23539 shl16insli r0, zero, hw1_last_tls_ie(foo)
23540 shl16insli r0, r0, hw0_tls_ie(foo)'
23541 tls_first_major=2
23542 tls_first_minor=22
23543 tls_as_opt="--fatal-warnings"
23545 xtensa*-*-*)
23546 conftest_s='
23547 .section ".tdata","awT",@progbits
23548 foo: .long 25
23549 .text
23550 movi a8, foo@TLSFUNC
23551 movi a10, foo@TLSARG
23552 callx8.tls a8, foo@TLSCALL'
23553 tls_first_major=2
23554 tls_first_minor=19
23556 esac
23557 set_have_as_tls=no
23558 if test "x$enable_tls" = xno ; then
23559 : # TLS explicitly disabled.
23560 elif test "x$enable_tls" = xyes ; then
23561 set_have_as_tls=yes # TLS explicitly enabled.
23562 elif test -z "$tls_first_major"; then
23563 : # If we don't have a check, assume no support.
23564 else
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23566 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23567 if test "${gcc_cv_as_tls+set}" = set; then :
23568 $as_echo_n "(cached) " >&6
23569 else
23570 gcc_cv_as_tls=no
23571 if test $in_tree_gas = yes; then
23572 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23573 then gcc_cv_as_tls=yes
23575 elif test x$gcc_cv_as != x; then
23576 $as_echo "$conftest_s" > conftest.s
23577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579 (eval $ac_try) 2>&5
23580 ac_status=$?
23581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582 test $ac_status = 0; }; }
23583 then
23584 gcc_cv_as_tls=yes
23585 else
23586 echo "configure: failed program was" >&5
23587 cat conftest.s >&5
23589 rm -f conftest.o conftest.s
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23593 $as_echo "$gcc_cv_as_tls" >&6; }
23594 if test $gcc_cv_as_tls = yes; then
23595 set_have_as_tls=yes
23598 case "$target" in
23599 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23600 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23601 # Sun style that Sun ld and GCC don't support any longer.
23602 *-*-solaris2.*)
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23604 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23605 ld_tls_support=no
23606 # Check ld and ld.so.1 TLS support.
23607 if echo "$ld_ver" | grep GNU > /dev/null; then
23608 # Assume all interesting versions of GNU ld have TLS support.
23609 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23610 ld_tls_support=yes
23611 else
23612 case "$target" in
23613 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23614 i?86-*-solaris2.9)
23615 min_tls_ld_vers_minor=374
23617 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23618 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23619 min_tls_ld_vers_minor=343
23621 esac
23622 if test "$ld_vers_major" -gt 1 || \
23623 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23624 ld_tls_support=yes
23625 else
23626 set_have_as_tls=no
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23630 $as_echo "$ld_tls_support" >&6; }
23632 save_LIBS="$LIBS"
23633 save_LDFLAGS="$LDFLAGS"
23634 LIBS=
23635 LDFLAGS=
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23638 $as_echo_n "checking library containing $tga_func... " >&6; }
23639 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23640 # (32-bit x86) only lived in libthread, so check for that. Keep
23641 # set_have_as_tls if found, disable if not.
23642 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23644 $as_echo_n "checking for library containing $tga_func... " >&6; }
23645 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23646 $as_echo_n "(cached) " >&6
23647 else
23648 ac_func_search_save_LIBS=$LIBS
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23652 /* Override any GCC internal prototype to avoid an error.
23653 Use char because int might match the return type of a GCC
23654 builtin and then its argument prototype would still apply. */
23655 #ifdef __cplusplus
23656 extern "C"
23657 #endif
23658 char $tga_func ();
23660 main ()
23662 return $tga_func ();
23664 return 0;
23666 _ACEOF
23667 for ac_lib in '' thread; do
23668 if test -z "$ac_lib"; then
23669 ac_res="none required"
23670 else
23671 ac_res=-l$ac_lib
23672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23674 if ac_fn_c_try_link "$LINENO"; then :
23675 eval "$as_ac_Search=\$ac_res"
23677 rm -f core conftest.err conftest.$ac_objext \
23678 conftest$ac_exeext
23679 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23680 break
23682 done
23683 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23685 else
23686 eval "$as_ac_Search=no"
23688 rm conftest.$ac_ext
23689 LIBS=$ac_func_search_save_LIBS
23691 eval ac_res=\$$as_ac_Search
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23693 $as_echo "$ac_res" >&6; }
23694 eval ac_res=\$$as_ac_Search
23695 if test "$ac_res" != no; then :
23696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23698 else
23699 set_have_as_tls=no
23702 # Clear LIBS if we cannot support TLS.
23703 if test $set_have_as_tls = no; then
23704 LIBS=
23706 # Always define LIB_TLS_SPEC, even without TLS support.
23708 cat >>confdefs.h <<_ACEOF
23709 #define LIB_TLS_SPEC "$LIBS"
23710 _ACEOF
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23713 $as_echo "$LIBS" >&6; }
23715 LIBS="$save_LIBS"
23716 LDFLAGS="$save_LDFLAGS"
23718 esac
23719 if test $set_have_as_tls = yes ; then
23721 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23725 # Target-specific assembler checks.
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23728 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23729 gcc_cv_ld_static_dynamic=no
23730 gcc_cv_ld_static_option='-Bstatic'
23731 gcc_cv_ld_dynamic_option='-Bdynamic'
23732 if test $in_tree_ld = yes ; then
23733 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
23734 gcc_cv_ld_static_dynamic=yes
23736 elif test x$gcc_cv_ld != x; then
23737 # Check if linker supports -Bstatic/-Bdynamic option
23738 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23739 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23740 gcc_cv_ld_static_dynamic=yes
23741 else
23742 case "$target" in
23743 # AIX ld uses -b flags
23744 *-*-aix4.[23]* | *-*-aix[5-9]*)
23745 gcc_cv_ld_static_dynamic=yes
23746 gcc_cv_ld_static_option="-bstatic"
23747 gcc_cv_ld_dynamic_option="-bdynamic"
23749 # HP-UX ld uses -a flags to select between shared and archive.
23750 *-*-hpux*)
23751 if test x"$gnu_ld" = xno; then
23752 gcc_cv_ld_static_dynamic=yes
23753 gcc_cv_ld_static_option="-aarchive_shared"
23754 gcc_cv_ld_dynamic_option="-adefault"
23757 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23758 *-*-solaris2*)
23759 gcc_cv_ld_static_dynamic=yes
23761 esac
23764 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23766 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23769 cat >>confdefs.h <<_ACEOF
23770 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23771 _ACEOF
23774 cat >>confdefs.h <<_ACEOF
23775 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23776 _ACEOF
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23780 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23782 if test x"$demangler_in_ld" = xyes; then
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23784 $as_echo_n "checking linker --demangle support... " >&6; }
23785 gcc_cv_ld_demangle=no
23786 if test $in_tree_ld = yes; then
23787 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 \
23788 gcc_cv_ld_demangle=yes
23790 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23791 # Check if the GNU linker supports --demangle option
23792 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23793 gcc_cv_ld_demangle=yes
23796 if test x"$gcc_cv_ld_demangle" = xyes; then
23798 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23802 $as_echo "$gcc_cv_ld_demangle" >&6; }
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23806 $as_echo_n "checking linker plugin support... " >&6; }
23807 gcc_cv_lto_plugin=0
23808 if test -f liblto_plugin.la; then
23809 save_ld_ver="$ld_ver"
23810 save_ld_vers_major="$ld_vers_major"
23811 save_ld_vers_minor="$ld_vers_minor"
23812 save_ld_is_gold="$ld_is_gold"
23814 ld_is_gold=no
23816 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23817 ld_ver="GNU ld"
23818 # FIXME: ld_is_gold?
23819 ld_vers_major="$gcc_cv_gld_major_version"
23820 ld_vers_minor="$gcc_cv_gld_minor_version"
23821 else
23822 # Determine plugin linker version.
23823 # FIXME: Partial duplicate from above, generalize.
23824 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23825 if echo "$ld_ver" | grep GNU > /dev/null; then
23826 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23827 ld_is_gold=yes
23828 ld_vers=`echo $ld_ver | sed -n \
23829 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23830 else
23831 ld_vers=`echo $ld_ver | sed -n \
23832 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23834 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23835 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23839 # Determine plugin support.
23840 if echo "$ld_ver" | grep GNU > /dev/null; then
23841 # Require GNU ld or gold 2.21+ for plugin support by default.
23842 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23843 gcc_cv_lto_plugin=2
23844 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23845 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23846 gcc_cv_lto_plugin=1
23850 ld_ver="$save_ld_ver"
23851 ld_vers_major="$save_ld_vers_major"
23852 ld_vers_minor="$save_ld_vers_minor"
23853 ld_is_gold="$save_ld_is_gold"
23856 cat >>confdefs.h <<_ACEOF
23857 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23858 _ACEOF
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23861 $as_echo "$gcc_cv_lto_plugin" >&6; }
23863 case "$target" in
23864 # All TARGET_ABI_OSF targets.
23865 alpha*-*-linux* | alpha*-*-*bsd*)
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23867 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23868 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23869 $as_echo_n "(cached) " >&6
23870 else
23871 gcc_cv_as_alpha_explicit_relocs=no
23872 if test $in_tree_gas = yes; then
23873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23874 then gcc_cv_as_alpha_explicit_relocs=yes
23876 elif test x$gcc_cv_as != x; then
23877 $as_echo ' .set nomacro
23878 .text
23879 extbl $3, $2, $3 !lituse_bytoff!1
23880 ldq $2, a($29) !literal!1
23881 ldq $4, b($29) !literal!2
23882 ldq_u $3, 0($2) !lituse_base!1
23883 ldq $27, f($29) !literal!5
23884 jsr $26, ($27), f !lituse_jsr!5
23885 ldah $29, 0($26) !gpdisp!3
23886 lda $0, c($29) !gprel
23887 ldah $1, d($29) !gprelhigh
23888 lda $1, d($1) !gprellow
23889 lda $29, 0($29) !gpdisp!3' > conftest.s
23890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23895 test $ac_status = 0; }; }
23896 then
23897 gcc_cv_as_alpha_explicit_relocs=yes
23898 else
23899 echo "configure: failed program was" >&5
23900 cat conftest.s >&5
23902 rm -f conftest.o conftest.s
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23906 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23907 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23909 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23913 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23914 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23915 $as_echo_n "(cached) " >&6
23916 else
23917 gcc_cv_as_alpha_jsrdirect_relocs=no
23918 if test $in_tree_gas = yes; then
23919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23920 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23922 elif test x$gcc_cv_as != x; then
23923 $as_echo ' .set nomacro
23924 .text
23925 ldq $27, a($29) !literal!1
23926 jsr $26, ($27), a !lituse_jsrdirect!1' > 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_jsrdirect_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_jsrdirect_relocs" >&5
23943 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23944 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23946 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23951 cris-*-*)
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23953 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23954 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23956 else
23957 gcc_cv_as_cris_no_mul_bug=no
23958 if test $in_tree_gas = yes; then
23959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23960 then gcc_cv_as_cris_no_mul_bug=yes
23962 elif test x$gcc_cv_as != x; then
23963 $as_echo '.text' > conftest.s
23964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -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_cris_no_mul_bug=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_cris_no_mul_bug" >&5
23980 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23981 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23983 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23988 sparc*-*-*)
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23990 $as_echo_n "checking assembler for .register... " >&6; }
23991 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23992 $as_echo_n "(cached) " >&6
23993 else
23994 gcc_cv_as_sparc_register_op=no
23995 if test x$gcc_cv_as != x; then
23996 $as_echo '.register %g2, #scratch' > conftest.s
23997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24000 ac_status=$?
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24003 then
24004 gcc_cv_as_sparc_register_op=yes
24005 else
24006 echo "configure: failed program was" >&5
24007 cat conftest.s >&5
24009 rm -f conftest.o conftest.s
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24013 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24014 if test $gcc_cv_as_sparc_register_op = yes; then
24016 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24021 $as_echo_n "checking assembler for #nobits... " >&6; }
24022 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024 else
24025 gcc_cv_as_sparc_nobits=no
24026 if test x$gcc_cv_as != x; then
24027 $as_echo '.section "nobits",#alloc,#write,#nobits
24028 .section "progbits",#alloc,#write,#progbits' > conftest.s
24029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24035 then
24036 gcc_cv_as_sparc_nobits=yes
24037 else
24038 echo "configure: failed program was" >&5
24039 cat conftest.s >&5
24041 rm -f conftest.o conftest.s
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24045 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24048 cat >>confdefs.h <<_ACEOF
24049 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24050 _ACEOF
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24054 $as_echo_n "checking assembler for -relax option... " >&6; }
24055 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24056 $as_echo_n "(cached) " >&6
24057 else
24058 gcc_cv_as_sparc_relax=no
24059 if test x$gcc_cv_as != x; then
24060 $as_echo '.text' > conftest.s
24061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066 test $ac_status = 0; }; }
24067 then
24068 gcc_cv_as_sparc_relax=yes
24069 else
24070 echo "configure: failed program was" >&5
24071 cat conftest.s >&5
24073 rm -f conftest.o conftest.s
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24077 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24078 if test $gcc_cv_as_sparc_relax = yes; then
24080 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24085 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24086 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24087 $as_echo_n "(cached) " >&6
24088 else
24089 gcc_cv_as_sparc_gotdata_op=no
24090 if test x$gcc_cv_as != x; then
24091 $as_echo '.text
24092 .align 4
24093 foo:
24095 bar:
24096 sethi %gdop_hix22(foo), %g1
24097 xor %g1, %gdop_lox10(foo), %g1
24098 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24101 (eval $ac_try) 2>&5
24102 ac_status=$?
24103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24104 test $ac_status = 0; }; }
24105 then
24106 if test x$gcc_cv_ld != x \
24107 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24108 if test x$gcc_cv_objdump != x; then
24109 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24110 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24111 gcc_cv_as_sparc_gotdata_op=no
24112 else
24113 gcc_cv_as_sparc_gotdata_op=yes
24117 rm -f conftest
24118 else
24119 echo "configure: failed program was" >&5
24120 cat conftest.s >&5
24122 rm -f conftest.o conftest.s
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24126 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24127 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24129 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24134 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24135 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24136 $as_echo_n "(cached) " >&6
24137 else
24138 gcc_cv_as_sparc_ua_pcrel=no
24139 if test x$gcc_cv_as != x; then
24140 $as_echo '.text
24141 foo:
24143 .data
24144 .align 4
24145 .byte 0
24146 .uaword %r_disp32(foo)' > conftest.s
24147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24149 (eval $ac_try) 2>&5
24150 ac_status=$?
24151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24152 test $ac_status = 0; }; }
24153 then
24154 if test x$gcc_cv_ld != x \
24155 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24156 gcc_cv_as_sparc_ua_pcrel=yes
24158 rm -f conftest
24159 else
24160 echo "configure: failed program was" >&5
24161 cat conftest.s >&5
24163 rm -f conftest.o conftest.s
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24167 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24168 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24170 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24174 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24175 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24177 else
24178 gcc_cv_as_sparc_ua_pcrel_hidden=no
24179 if test x$gcc_cv_as != x; then
24180 $as_echo '.data
24181 .align 4
24182 .byte 0x31
24183 .uaword %r_disp32(foo)
24184 .byte 0x32, 0x33, 0x34
24185 .global foo
24186 .hidden foo
24187 foo:
24188 .skip 4' > conftest.s
24189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24191 (eval $ac_try) 2>&5
24192 ac_status=$?
24193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24194 test $ac_status = 0; }; }
24195 then
24196 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24197 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24198 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24199 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24200 if $gcc_cv_objdump -R conftest 2> /dev/null \
24201 | grep 'DISP32' > /dev/null 2>&1; then
24203 else
24204 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24207 rm -f conftest
24208 else
24209 echo "configure: failed program was" >&5
24210 cat conftest.s >&5
24212 rm -f conftest.o conftest.s
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24216 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24217 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24219 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24223 fi # unaligned pcrel relocs
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24226 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24227 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 gcc_cv_as_sparc_offsetable_lo10=no
24231 if test x$gcc_cv_as != x; then
24232 $as_echo '.text
24233 or %g1, %lo(ab) + 12, %g1
24234 or %g1, %lo(ab + 12), %g1' > conftest.s
24235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24241 then
24242 if test x$gcc_cv_objdump != x \
24243 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24244 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24245 gcc_cv_as_sparc_offsetable_lo10=yes
24247 else
24248 echo "configure: failed program was" >&5
24249 cat conftest.s >&5
24251 rm -f conftest.o conftest.s
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24255 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24256 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24258 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24263 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24264 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24266 else
24267 gcc_cv_as_sparc_fmaf=no
24268 if test x$gcc_cv_as != x; then
24269 $as_echo '.text
24270 .register %g2, #scratch
24271 .register %g3, #scratch
24272 .align 4
24273 fmaddd %f0, %f2, %f4, %f6
24274 addxccc %g1, %g2, %g3
24275 fsrl32 %f2, %f4, %f8
24276 fnaddd %f10, %f12, %f14' > conftest.s
24277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24282 test $ac_status = 0; }; }
24283 then
24284 gcc_cv_as_sparc_fmaf=yes
24285 else
24286 echo "configure: failed program was" >&5
24287 cat conftest.s >&5
24289 rm -f conftest.o conftest.s
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24293 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24294 if test $gcc_cv_as_sparc_fmaf = yes; then
24296 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24301 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24302 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24303 $as_echo_n "(cached) " >&6
24304 else
24305 gcc_cv_as_sparc_sparc4=no
24306 if test x$gcc_cv_as != x; then
24307 $as_echo '.text
24308 .register %g2, #scratch
24309 .register %g3, #scratch
24310 .align 4
24311 cxbe %g2, %g3, 1f
24312 1: cwbneg %g2, %g3, 1f
24313 1: sha1
24315 aes_kexpand0 %f4, %f6, %f8
24316 des_round %f38, %f40, %f42, %f44
24317 camellia_f %f54, %f56, %f58, %f60
24318 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24324 test $ac_status = 0; }; }
24325 then
24326 gcc_cv_as_sparc_sparc4=yes
24327 else
24328 echo "configure: failed program was" >&5
24329 cat conftest.s >&5
24331 rm -f conftest.o conftest.s
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24335 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24336 if test $gcc_cv_as_sparc_sparc4 = yes; then
24338 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24343 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24344 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24345 $as_echo_n "(cached) " >&6
24346 else
24347 gcc_cv_as_sparc_leon=no
24348 if test x$gcc_cv_as != x; then
24349 $as_echo '.text
24350 .register %g2, #scratch
24351 .register %g3, #scratch
24352 .align 4
24353 smac %g2, %g3, %g1
24354 umac %g2, %g3, %g1
24355 cas [%g2], %g3, %g1' > conftest.s
24356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -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_leon=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_leon" >&5
24372 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24373 if test $gcc_cv_as_sparc_leon = yes; then
24375 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24380 i[34567]86-*-* | x86_64-*-*)
24381 case $target_os in
24382 cygwin*)
24383 # Full C++ conformance when using a shared libstdc++-v3 requires some
24384 # support from the Cygwin DLL, which in more recent versions exports
24385 # wrappers to aid in interposing and redirecting operators new, delete,
24386 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24387 # are configuring for a version of Cygwin that exports the wrappers.
24388 if test x$host = x$target && test x$host_cpu = xi686; then
24389 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24390 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24391 gcc_ac_cygwin_dll_wrappers=yes
24392 else
24393 gcc_ac_cygwin_dll_wrappers=no
24396 else
24397 # Can't check presence of libc functions during cross-compile, so
24398 # we just have to assume we're building for an up-to-date target.
24399 gcc_ac_cygwin_dll_wrappers=yes
24402 cat >>confdefs.h <<_ACEOF
24403 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24404 _ACEOF
24406 esac
24407 case $target_os in
24408 cygwin* | pe | mingw32* | interix*)
24409 # Recent binutils allows the three-operand form of ".comm" on PE. This
24410 # definition is used unconditionally to initialise the default state of
24411 # the target option variable that governs usage of the feature.
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24413 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24414 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24416 else
24417 gcc_cv_as_comm_has_align=no
24418 if test $in_tree_gas = yes; then
24419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24420 then gcc_cv_as_comm_has_align=yes
24422 elif test x$gcc_cv_as != x; then
24423 $as_echo '.comm foo,1,32' > conftest.s
24424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }
24430 then
24431 gcc_cv_as_comm_has_align=yes
24432 else
24433 echo "configure: failed program was" >&5
24434 cat conftest.s >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24440 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24443 cat >>confdefs.h <<_ACEOF
24444 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24445 _ACEOF
24447 # Used for DWARF 2 in PE
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24449 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24450 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24452 else
24453 gcc_cv_as_ix86_pe_secrel32=no
24454 if test $in_tree_gas = yes; then
24455 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24456 then gcc_cv_as_ix86_pe_secrel32=yes
24458 elif test x$gcc_cv_as != x; then
24459 $as_echo '.text
24460 foo: nop
24461 .data
24462 .secrel32 foo' > conftest.s
24463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24469 then
24470 if test x$gcc_cv_ld != x \
24471 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24472 gcc_cv_as_ix86_pe_secrel32=yes
24474 rm -f conftest
24475 else
24476 echo "configure: failed program was" >&5
24477 cat conftest.s >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24483 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24484 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24486 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24489 # Test if the assembler supports the extended form of the .section
24490 # directive that specifies section alignment. LTO support uses this,
24491 # but normally only after installation, so we warn but don't fail the
24492 # configure if LTO is enabled but the assembler does not support it.
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24494 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24495 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24497 else
24498 gcc_cv_as_section_has_align=no
24499 if test $in_tree_gas = yes; then
24500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24501 then gcc_cv_as_section_has_align=yes
24503 elif test x$gcc_cv_as != x; then
24504 $as_echo '.section lto_test,"dr0"' > conftest.s
24505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24507 (eval $ac_try) 2>&5
24508 ac_status=$?
24509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24510 test $ac_status = 0; }; }
24511 then
24512 gcc_cv_as_section_has_align=yes
24513 else
24514 echo "configure: failed program was" >&5
24515 cat conftest.s >&5
24517 rm -f conftest.o conftest.s
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24521 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24523 if test x$gcc_cv_as_section_has_align != xyes; then
24524 case ",$enable_languages," in
24525 *,lto,*)
24526 { $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
24527 $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;}
24529 esac
24531 # Test if the assembler supports the section flag 'e' for specifying
24532 # an excluded section.
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24534 $as_echo_n "checking assembler for .section with e... " >&6; }
24535 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24537 else
24538 gcc_cv_as_section_has_e=no
24539 if test $in_tree_gas = yes; then
24540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24541 then gcc_cv_as_section_has_e=yes
24543 elif test x$gcc_cv_as != x; then
24544 $as_echo '.section foo1,"e"
24545 .byte 0,0,0,0' > conftest.s
24546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24552 then
24553 gcc_cv_as_section_has_e=yes
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24562 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24565 cat >>confdefs.h <<_ACEOF
24566 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24567 _ACEOF
24570 esac
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24573 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24574 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24575 $as_echo_n "(cached) " >&6
24576 else
24577 gcc_cv_as_ix86_filds=no
24578 if test x$gcc_cv_as != x; then
24579 $as_echo 'filds mem; fists mem' > conftest.s
24580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24586 then
24587 gcc_cv_as_ix86_filds=yes
24588 else
24589 echo "configure: failed program was" >&5
24590 cat conftest.s >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24596 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24597 if test $gcc_cv_as_ix86_filds = yes; then
24599 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24604 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24605 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24607 else
24608 gcc_cv_as_ix86_fildq=no
24609 if test x$gcc_cv_as != x; then
24610 $as_echo 'fildq mem; fistpq mem' > conftest.s
24611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24617 then
24618 gcc_cv_as_ix86_fildq=yes
24619 else
24620 echo "configure: failed program was" >&5
24621 cat conftest.s >&5
24623 rm -f conftest.o conftest.s
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24627 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24628 if test $gcc_cv_as_ix86_fildq = yes; then
24630 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24635 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24636 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24638 else
24639 gcc_cv_as_ix86_cmov_sun_syntax=no
24640 if test x$gcc_cv_as != x; then
24641 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24645 ac_status=$?
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24648 then
24649 gcc_cv_as_ix86_cmov_sun_syntax=yes
24650 else
24651 echo "configure: failed program was" >&5
24652 cat conftest.s >&5
24654 rm -f conftest.o conftest.s
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24658 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24659 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24661 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24666 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24667 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24668 $as_echo_n "(cached) " >&6
24669 else
24670 gcc_cv_as_ix86_ffreep=no
24671 if test x$gcc_cv_as != x; then
24672 $as_echo 'ffreep %st(1)' > conftest.s
24673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24678 test $ac_status = 0; }; }
24679 then
24680 gcc_cv_as_ix86_ffreep=yes
24681 else
24682 echo "configure: failed program was" >&5
24683 cat conftest.s >&5
24685 rm -f conftest.o conftest.s
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24689 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24690 if test $gcc_cv_as_ix86_ffreep = yes; then
24692 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24697 $as_echo_n "checking assembler for .quad directive... " >&6; }
24698 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24699 $as_echo_n "(cached) " >&6
24700 else
24701 gcc_cv_as_ix86_quad=no
24702 if test x$gcc_cv_as != x; then
24703 $as_echo '.quad 0' > conftest.s
24704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24707 ac_status=$?
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24710 then
24711 gcc_cv_as_ix86_quad=yes
24712 else
24713 echo "configure: failed program was" >&5
24714 cat conftest.s >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24720 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24721 if test $gcc_cv_as_ix86_quad = yes; then
24723 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24728 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24729 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24731 else
24732 gcc_cv_as_ix86_sahf=no
24733 if test x$gcc_cv_as != x; then
24734 $as_echo '.code64
24735 sahf' > conftest.s
24736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24738 (eval $ac_try) 2>&5
24739 ac_status=$?
24740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24741 test $ac_status = 0; }; }
24742 then
24743 gcc_cv_as_ix86_sahf=yes
24744 else
24745 echo "configure: failed program was" >&5
24746 cat conftest.s >&5
24748 rm -f conftest.o conftest.s
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24752 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24753 if test $gcc_cv_as_ix86_sahf = yes; then
24755 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24760 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24761 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 gcc_cv_as_ix86_interunit_movq=no
24765 if test x$gcc_cv_as != x; then
24766 $as_echo '.code64
24767 movq %mm0, %rax
24768 movq %rax, %xmm0' > conftest.s
24769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24774 test $ac_status = 0; }; }
24775 then
24776 gcc_cv_as_ix86_interunit_movq=yes
24777 else
24778 echo "configure: failed program was" >&5
24779 cat conftest.s >&5
24781 rm -f conftest.o conftest.s
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24785 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24786 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24788 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24793 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24794 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24796 else
24797 gcc_cv_as_ix86_hle=no
24798 if test x$gcc_cv_as != x; then
24799 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }
24806 then
24807 gcc_cv_as_ix86_hle=yes
24808 else
24809 echo "configure: failed program was" >&5
24810 cat conftest.s >&5
24812 rm -f conftest.o conftest.s
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24816 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24817 if test $gcc_cv_as_ix86_hle = yes; then
24819 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24824 $as_echo_n "checking assembler for swap suffix... " >&6; }
24825 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24826 $as_echo_n "(cached) " >&6
24827 else
24828 gcc_cv_as_ix86_swap=no
24829 if test x$gcc_cv_as != x; then
24830 $as_echo 'movl.s %esp, %ebp' > conftest.s
24831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833 (eval $ac_try) 2>&5
24834 ac_status=$?
24835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836 test $ac_status = 0; }; }
24837 then
24838 gcc_cv_as_ix86_swap=yes
24839 else
24840 echo "configure: failed program was" >&5
24841 cat conftest.s >&5
24843 rm -f conftest.o conftest.s
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24847 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24848 if test $gcc_cv_as_ix86_swap = yes; then
24850 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24855 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24856 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24857 $as_echo_n "(cached) " >&6
24858 else
24859 gcc_cv_as_ix86_diff_sect_delta=no
24860 if test x$gcc_cv_as != x; then
24861 $as_echo '.section .rodata
24862 .L1:
24863 .long .L2-.L1
24864 .long .L3-.L1
24865 .text
24866 .L3: nop
24867 .L2: nop' > 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_diff_sect_delta=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_diff_sect_delta" >&5
24884 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24885 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24887 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24891 # These two are used unconditionally by i386.[ch]; it is to be defined
24892 # to 1 if the feature is present, 0 otherwise.
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24894 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24895 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24897 else
24898 gcc_cv_as_ix86_gotoff_in_data=no
24899 if test $in_tree_gas = yes; then
24900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24901 then gcc_cv_as_ix86_gotoff_in_data=yes
24903 elif test x$gcc_cv_as != x; then
24904 $as_echo ' .text
24905 .L0:
24907 .data
24908 .long .L0@GOTOFF' > conftest.s
24909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24915 then
24916 gcc_cv_as_ix86_gotoff_in_data=yes
24917 else
24918 echo "configure: failed program was" >&5
24919 cat conftest.s >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24925 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24928 cat >>confdefs.h <<_ACEOF
24929 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24930 _ACEOF
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24934 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24935 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24937 else
24938 gcc_cv_as_ix86_rep_lock_prefix=no
24939 if test x$gcc_cv_as != x; then
24940 $as_echo 'rep movsl
24941 rep ret
24942 rep nop
24943 rep bsf %ecx, %eax
24944 rep bsr %ecx, %eax
24945 lock addl %edi, (%eax,%esi)
24946 lock orl $0, (%esp)' > conftest.s
24947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24950 ac_status=$?
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }
24953 then
24954 gcc_cv_as_ix86_rep_lock_prefix=yes
24955 else
24956 echo "configure: failed program was" >&5
24957 cat conftest.s >&5
24959 rm -f conftest.o conftest.s
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24963 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24964 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24966 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24971 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24972 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24973 $as_echo_n "(cached) " >&6
24974 else
24975 gcc_cv_as_ix86_tlsgdplt=no
24976 if test x$gcc_cv_as != x; then
24977 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24983 test $ac_status = 0; }; }
24984 then
24985 if test x$gcc_cv_ld != x \
24986 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24987 gcc_cv_as_ix86_tlsgdplt=yes
24989 rm -f conftest
24990 else
24991 echo "configure: failed program was" >&5
24992 cat conftest.s >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24998 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24999 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25001 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25006 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25007 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25009 else
25010 gcc_cv_as_ix86_tlsldmplt=no
25011 if test x$gcc_cv_as != x; then
25012 $as_echo 'tls_ld:
25013 call tls_ld@tlsldmplt' > conftest.s
25014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019 test $ac_status = 0; }; }
25020 then
25021 if test x$gcc_cv_ld != x \
25022 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25023 gcc_cv_as_ix86_tlsldmplt=yes
25025 rm -f conftest
25026 else
25027 echo "configure: failed program was" >&5
25028 cat conftest.s >&5
25030 rm -f conftest.o conftest.s
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25034 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25035 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25037 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25043 ia64*-*-*)
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25045 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25046 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25052 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25054 elif test x$gcc_cv_as != x; then
25055 $as_echo ' .text
25056 addl r15 = @ltoffx(x#), gp
25058 ld8.mov r16 = [r15], x#' > conftest.s
25059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25065 then
25066 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25075 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25076 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25078 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25084 powerpc*-*-*)
25085 case $target in
25086 *-*-aix*) conftest_s=' .machine "pwr5"
25087 .csect .text[PR]
25088 mfcr 3,128';;
25089 *-*-darwin*)
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25091 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25092 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25093 $as_echo_n "(cached) " >&6
25094 else
25095 gcc_cv_as_machine_directive=no
25096 if test x$gcc_cv_as != x; then
25097 $as_echo ' .machine ppc7400' > conftest.s
25098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25100 (eval $ac_try) 2>&5
25101 ac_status=$?
25102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25103 test $ac_status = 0; }; }
25104 then
25105 gcc_cv_as_machine_directive=yes
25106 else
25107 echo "configure: failed program was" >&5
25108 cat conftest.s >&5
25110 rm -f conftest.o conftest.s
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25114 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25116 if test x$gcc_cv_as_machine_directive != xyes; then
25117 echo "*** This target requires an assembler supporting \".machine\"" >&2
25118 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25119 test x$build = x$target && exit 1
25121 conftest_s=' .text
25122 mfcr r3,128';;
25123 *) conftest_s=' .machine power4
25124 .text
25125 mfcr 3,128';;
25126 esac
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25129 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25130 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25131 $as_echo_n "(cached) " >&6
25132 else
25133 gcc_cv_as_powerpc_mfcrf=no
25134 if test $in_tree_gas = yes; then
25135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25136 then gcc_cv_as_powerpc_mfcrf=yes
25138 elif test x$gcc_cv_as != x; then
25139 $as_echo "$conftest_s" > conftest.s
25140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25146 then
25147 gcc_cv_as_powerpc_mfcrf=yes
25148 else
25149 echo "configure: failed program was" >&5
25150 cat conftest.s >&5
25152 rm -f conftest.o conftest.s
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25156 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25157 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25159 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25163 case $target in
25164 *-*-aix*) conftest_s=' .machine "pwr5"
25165 .csect .text[PR]
25166 popcntb 3,3';;
25167 *) conftest_s=' .machine power5
25168 .text
25169 popcntb 3,3';;
25170 esac
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25173 $as_echo_n "checking assembler for popcntb support... " >&6; }
25174 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25175 $as_echo_n "(cached) " >&6
25176 else
25177 gcc_cv_as_powerpc_popcntb=no
25178 if test $in_tree_gas = yes; then
25179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25180 then gcc_cv_as_powerpc_popcntb=yes
25182 elif test x$gcc_cv_as != x; then
25183 $as_echo "$conftest_s" > conftest.s
25184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25189 test $ac_status = 0; }; }
25190 then
25191 gcc_cv_as_powerpc_popcntb=yes
25192 else
25193 echo "configure: failed program was" >&5
25194 cat conftest.s >&5
25196 rm -f conftest.o conftest.s
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25200 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25201 if test $gcc_cv_as_powerpc_popcntb = yes; then
25203 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25207 case $target in
25208 *-*-aix*) conftest_s=' .machine "pwr5x"
25209 .csect .text[PR]
25210 frin 1,1';;
25211 *) conftest_s=' .machine power5
25212 .text
25213 frin 1,1';;
25214 esac
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25217 $as_echo_n "checking assembler for fp round support... " >&6; }
25218 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25219 $as_echo_n "(cached) " >&6
25220 else
25221 gcc_cv_as_powerpc_fprnd=no
25222 if test $in_tree_gas = yes; then
25223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25224 then gcc_cv_as_powerpc_fprnd=yes
25226 elif test x$gcc_cv_as != x; then
25227 $as_echo "$conftest_s" > conftest.s
25228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233 test $ac_status = 0; }; }
25234 then
25235 gcc_cv_as_powerpc_fprnd=yes
25236 else
25237 echo "configure: failed program was" >&5
25238 cat conftest.s >&5
25240 rm -f conftest.o conftest.s
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25244 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25245 if test $gcc_cv_as_powerpc_fprnd = yes; then
25247 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25251 case $target in
25252 *-*-aix*) conftest_s=' .machine "pwr6"
25253 .csect .text[PR]
25254 mffgpr 1,3';;
25255 *) conftest_s=' .machine power6
25256 .text
25257 mffgpr 1,3';;
25258 esac
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25261 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25262 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25264 else
25265 gcc_cv_as_powerpc_mfpgpr=no
25266 if test $in_tree_gas = yes; then
25267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25268 then gcc_cv_as_powerpc_mfpgpr=yes
25270 elif test x$gcc_cv_as != x; then
25271 $as_echo "$conftest_s" > conftest.s
25272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25274 (eval $ac_try) 2>&5
25275 ac_status=$?
25276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25277 test $ac_status = 0; }; }
25278 then
25279 gcc_cv_as_powerpc_mfpgpr=yes
25280 else
25281 echo "configure: failed program was" >&5
25282 cat conftest.s >&5
25284 rm -f conftest.o conftest.s
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25288 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25289 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25291 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25295 case $target in
25296 *-*-aix*) conftest_s=' .csect .text[PR]
25297 LCF..0:
25298 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25299 *-*-darwin*)
25300 conftest_s=' .text
25301 LCF0:
25302 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25303 *) conftest_s=' .text
25304 .LCF0:
25305 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25306 esac
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25309 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25310 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25311 $as_echo_n "(cached) " >&6
25312 else
25313 gcc_cv_as_powerpc_rel16=no
25314 if test $in_tree_gas = yes; then
25315 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25316 then gcc_cv_as_powerpc_rel16=yes
25318 elif test x$gcc_cv_as != x; then
25319 $as_echo "$conftest_s" > conftest.s
25320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325 test $ac_status = 0; }; }
25326 then
25327 gcc_cv_as_powerpc_rel16=yes
25328 else
25329 echo "configure: failed program was" >&5
25330 cat conftest.s >&5
25332 rm -f conftest.o conftest.s
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25336 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25337 if test $gcc_cv_as_powerpc_rel16 = yes; then
25339 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25343 case $target in
25344 *-*-aix*) conftest_s=' .machine "pwr6"
25345 .csect .text[PR]
25346 cmpb 3,4,5';;
25347 *) conftest_s=' .machine power6
25348 .text
25349 cmpb 3,4,5';;
25350 esac
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25353 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25354 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25355 $as_echo_n "(cached) " >&6
25356 else
25357 gcc_cv_as_powerpc_cmpb=no
25358 if test $in_tree_gas = yes; then
25359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25360 then gcc_cv_as_powerpc_cmpb=yes
25362 elif test x$gcc_cv_as != x; then
25363 $as_echo "$conftest_s" > conftest.s
25364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25369 test $ac_status = 0; }; }
25370 then
25371 gcc_cv_as_powerpc_cmpb=yes
25372 else
25373 echo "configure: failed program was" >&5
25374 cat conftest.s >&5
25376 rm -f conftest.o conftest.s
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25380 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25381 if test $gcc_cv_as_powerpc_cmpb = yes; then
25383 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25387 case $target in
25388 *-*-aix*) conftest_s=' .machine "pwr6"
25389 .csect .text[PR]
25390 dadd 1,2,3';;
25391 *) conftest_s=' .machine power6
25392 .text
25393 dadd 1,2,3';;
25394 esac
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25397 $as_echo_n "checking assembler for decimal float support... " >&6; }
25398 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25399 $as_echo_n "(cached) " >&6
25400 else
25401 gcc_cv_as_powerpc_dfp=no
25402 if test $in_tree_gas = yes; then
25403 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25404 then gcc_cv_as_powerpc_dfp=yes
25406 elif test x$gcc_cv_as != x; then
25407 $as_echo "$conftest_s" > conftest.s
25408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25414 then
25415 gcc_cv_as_powerpc_dfp=yes
25416 else
25417 echo "configure: failed program was" >&5
25418 cat conftest.s >&5
25420 rm -f conftest.o conftest.s
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25424 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25425 if test $gcc_cv_as_powerpc_dfp = yes; then
25427 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25431 case $target in
25432 *-*-aix*) conftest_s=' .machine "pwr7"
25433 .csect .text[PR]
25434 lxvd2x 1,2,3';;
25435 *) conftest_s=' .machine power7
25436 .text
25437 lxvd2x 1,2,3';;
25438 esac
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25441 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25442 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25443 $as_echo_n "(cached) " >&6
25444 else
25445 gcc_cv_as_powerpc_vsx=no
25446 if test $in_tree_gas = yes; then
25447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25448 then gcc_cv_as_powerpc_vsx=yes
25450 elif test x$gcc_cv_as != x; then
25451 $as_echo "$conftest_s" > conftest.s
25452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25454 (eval $ac_try) 2>&5
25455 ac_status=$?
25456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25457 test $ac_status = 0; }; }
25458 then
25459 gcc_cv_as_powerpc_vsx=yes
25460 else
25461 echo "configure: failed program was" >&5
25462 cat conftest.s >&5
25464 rm -f conftest.o conftest.s
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25468 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25469 if test $gcc_cv_as_powerpc_vsx = yes; then
25471 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25475 case $target in
25476 *-*-aix*) conftest_s=' .machine "pwr7"
25477 .csect .text[PR]
25478 popcntd 3,3';;
25479 *) conftest_s=' .machine power7
25480 .text
25481 popcntd 3,3';;
25482 esac
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25485 $as_echo_n "checking assembler for popcntd support... " >&6; }
25486 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25488 else
25489 gcc_cv_as_powerpc_popcntd=no
25490 if test $in_tree_gas = yes; then
25491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25492 then gcc_cv_as_powerpc_popcntd=yes
25494 elif test x$gcc_cv_as != x; then
25495 $as_echo "$conftest_s" > conftest.s
25496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501 test $ac_status = 0; }; }
25502 then
25503 gcc_cv_as_powerpc_popcntd=yes
25504 else
25505 echo "configure: failed program was" >&5
25506 cat conftest.s >&5
25508 rm -f conftest.o conftest.s
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25512 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25513 if test $gcc_cv_as_powerpc_popcntd = yes; then
25515 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25519 case $target in
25520 *-*-aix*) conftest_s=' .machine "pwr8"
25521 .csect .text[PR]';;
25522 *) conftest_s=' .machine power8
25523 .text';;
25524 esac
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25527 $as_echo_n "checking assembler for power8 support... " >&6; }
25528 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25529 $as_echo_n "(cached) " >&6
25530 else
25531 gcc_cv_as_powerpc_power8=no
25532 if test $in_tree_gas = yes; then
25533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25534 then gcc_cv_as_powerpc_power8=yes
25536 elif test x$gcc_cv_as != x; then
25537 $as_echo "$conftest_s" > conftest.s
25538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25543 test $ac_status = 0; }; }
25544 then
25545 gcc_cv_as_powerpc_power8=yes
25546 else
25547 echo "configure: failed program was" >&5
25548 cat conftest.s >&5
25550 rm -f conftest.o conftest.s
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25554 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25555 if test $gcc_cv_as_powerpc_power8 = yes; then
25557 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25561 case $target in
25562 *-*-aix*) conftest_s=' .csect .text[PR]
25563 lwsync';;
25564 *) conftest_s=' .text
25565 lwsync';;
25566 esac
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25569 $as_echo_n "checking assembler for lwsync support... " >&6; }
25570 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25571 $as_echo_n "(cached) " >&6
25572 else
25573 gcc_cv_as_powerpc_lwsync=no
25574 if test $in_tree_gas = yes; then
25575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25576 then gcc_cv_as_powerpc_lwsync=yes
25578 elif test x$gcc_cv_as != x; then
25579 $as_echo "$conftest_s" > conftest.s
25580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25585 test $ac_status = 0; }; }
25586 then
25587 gcc_cv_as_powerpc_lwsync=yes
25588 else
25589 echo "configure: failed program was" >&5
25590 cat conftest.s >&5
25592 rm -f conftest.o conftest.s
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25596 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25597 if test $gcc_cv_as_powerpc_lwsync = yes; then
25599 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25603 case $target in
25604 *-*-aix*) conftest_s=' .machine "476"
25605 .csect .text[PR]
25606 dci 0';;
25607 *) conftest_s=' .machine "476"
25608 .text
25609 dci 0';;
25610 esac
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25613 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25614 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25616 else
25617 gcc_cv_as_powerpc_dci=no
25618 if test $in_tree_gas = yes; then
25619 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25620 then gcc_cv_as_powerpc_dci=yes
25622 elif test x$gcc_cv_as != x; then
25623 $as_echo "$conftest_s" > conftest.s
25624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25629 test $ac_status = 0; }; }
25630 then
25631 gcc_cv_as_powerpc_dci=yes
25632 else
25633 echo "configure: failed program was" >&5
25634 cat conftest.s >&5
25636 rm -f conftest.o conftest.s
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25640 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25641 if test $gcc_cv_as_powerpc_dci = yes; then
25643 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25648 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25649 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25651 else
25652 gcc_cv_as_powerpc_gnu_attribute=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25655 then gcc_cv_as_powerpc_gnu_attribute=yes
25657 elif test x$gcc_cv_as != x; then
25658 $as_echo '.gnu_attribute 4,1' > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 gcc_cv_as_powerpc_gnu_attribute=yes
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25675 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25676 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25678 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25683 $as_echo_n "checking assembler for tls marker support... " >&6; }
25684 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25687 gcc_cv_as_powerpc_tls_markers=no
25688 if test $in_tree_gas = yes; then
25689 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25690 then gcc_cv_as_powerpc_tls_markers=yes
25692 elif test x$gcc_cv_as != x; then
25693 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25696 (eval $ac_try) 2>&5
25697 ac_status=$?
25698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25699 test $ac_status = 0; }; }
25700 then
25701 gcc_cv_as_powerpc_tls_markers=yes
25702 else
25703 echo "configure: failed program was" >&5
25704 cat conftest.s >&5
25706 rm -f conftest.o conftest.s
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25710 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25711 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25713 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25717 case $target in
25718 *-*-aix*)
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25720 $as_echo_n "checking assembler for .ref support... " >&6; }
25721 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25722 $as_echo_n "(cached) " >&6
25723 else
25724 gcc_cv_as_aix_ref=no
25725 if test $in_tree_gas = yes; then
25726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25727 then gcc_cv_as_aix_ref=yes
25729 elif test x$gcc_cv_as != x; then
25730 $as_echo ' .csect stuff[rw]
25731 stuff:
25732 .long 1
25733 .extern sym
25734 .ref sym
25735 ' > conftest.s
25736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25742 then
25743 gcc_cv_as_aix_ref=yes
25744 else
25745 echo "configure: failed program was" >&5
25746 cat conftest.s >&5
25748 rm -f conftest.o conftest.s
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25752 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25753 if test $gcc_cv_as_aix_ref = yes; then
25755 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25759 esac
25762 mips*-*-*)
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25764 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25765 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25766 $as_echo_n "(cached) " >&6
25767 else
25768 gcc_cv_as_mips_explicit_relocs=no
25769 if test $in_tree_gas = yes; then
25770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25771 then gcc_cv_as_mips_explicit_relocs=yes
25773 elif test x$gcc_cv_as != x; then
25774 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; }
25781 then
25782 gcc_cv_as_mips_explicit_relocs=yes
25783 else
25784 echo "configure: failed program was" >&5
25785 cat conftest.s >&5
25787 rm -f conftest.o conftest.s
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25791 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25792 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25793 if test x$target_cpu_default = x
25794 then target_cpu_default=MASK_EXPLICIT_RELOCS
25795 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25799 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25800 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25801 $as_echo_n "(cached) " >&6
25802 else
25803 gcc_cv_as_mips_no_shared=no
25804 if test $in_tree_gas = yes; then
25805 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25806 then gcc_cv_as_mips_no_shared=yes
25808 elif test x$gcc_cv_as != x; then
25809 $as_echo 'nop' > conftest.s
25810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25812 (eval $ac_try) 2>&5
25813 ac_status=$?
25814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25815 test $ac_status = 0; }; }
25816 then
25817 gcc_cv_as_mips_no_shared=yes
25818 else
25819 echo "configure: failed program was" >&5
25820 cat conftest.s >&5
25822 rm -f conftest.o conftest.s
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25826 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25827 if test $gcc_cv_as_mips_no_shared = yes; then
25829 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25834 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25835 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25836 $as_echo_n "(cached) " >&6
25837 else
25838 gcc_cv_as_mips_gnu_attribute=no
25839 if test $in_tree_gas = yes; then
25840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25841 then gcc_cv_as_mips_gnu_attribute=yes
25843 elif test x$gcc_cv_as != x; then
25844 $as_echo '.gnu_attribute 4,1' > conftest.s
25845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25850 test $ac_status = 0; }; }
25851 then
25852 gcc_cv_as_mips_gnu_attribute=yes
25853 else
25854 echo "configure: failed program was" >&5
25855 cat conftest.s >&5
25857 rm -f conftest.o conftest.s
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25861 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25862 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25864 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25869 $as_echo_n "checking assembler for .micromips support... " >&6; }
25870 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 gcc_cv_as_micromips_support=no
25874 if test x$gcc_cv_as != x; then
25875 $as_echo '.set micromips' > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_micromips_support=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25892 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25893 if test $gcc_cv_as_micromips_support = yes; then
25895 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25900 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25901 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25904 gcc_cv_as_mips_dtprelword=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25907 then gcc_cv_as_mips_dtprelword=yes
25909 elif test x$gcc_cv_as != x; then
25910 $as_echo '.section .tdata,"awT",@progbits
25912 .word 2
25913 .text
25914 .dtprelword x+0x8000' > conftest.s
25915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25920 test $ac_status = 0; }; }
25921 then
25922 gcc_cv_as_mips_dtprelword=yes
25923 else
25924 echo "configure: failed program was" >&5
25925 cat conftest.s >&5
25927 rm -f conftest.o conftest.s
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25931 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25932 if test $gcc_cv_as_mips_dtprelword = yes; then
25934 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25939 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25940 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25941 $as_echo_n "(cached) " >&6
25942 else
25943 gcc_cv_as_mips_dspr1_mult=no
25944 if test x$gcc_cv_as != x; then
25945 $as_echo ' .set mips32r2
25946 .set nodspr2
25947 .set dsp
25948 madd $ac3,$4,$5
25949 maddu $ac3,$4,$5
25950 msub $ac3,$4,$5
25951 msubu $ac3,$4,$5
25952 mult $ac3,$4,$5
25953 multu $ac3,$4,$5' > conftest.s
25954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25959 test $ac_status = 0; }; }
25960 then
25961 gcc_cv_as_mips_dspr1_mult=yes
25962 else
25963 echo "configure: failed program was" >&5
25964 cat conftest.s >&5
25966 rm -f conftest.o conftest.s
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25970 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25971 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25973 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25978 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25979 gcc_cv_as_ld_jalr_reloc=no
25980 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25981 if test $in_tree_ld = yes ; then
25982 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 \
25983 && test $in_tree_ld_is_elf = yes; then
25984 gcc_cv_as_ld_jalr_reloc=yes
25986 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25987 echo ' .ent x' > conftest.s
25988 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25989 echo ' ld $25,%call16(y)($28)' >> conftest.s
25990 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25991 echo '1: jalr $25' >> conftest.s
25992 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25993 echo '1: jalr $25' >> conftest.s
25994 echo ' .end x' >> conftest.s
25995 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25996 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25997 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25998 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25999 gcc_cv_as_ld_jalr_reloc=yes
26002 rm -f conftest.*
26005 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26006 if test x$target_cpu_default = x; then
26007 target_cpu_default=MASK_RELAX_PIC_CALLS
26008 else
26009 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26013 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26016 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26017 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26019 else
26020 gcc_cv_ld_mips_personality_relaxation=no
26021 if test $in_tree_ld = yes ; then
26022 if test "$gcc_cv_gld_major_version" -eq 2 \
26023 -a "$gcc_cv_gld_minor_version" -ge 21 \
26024 -o "$gcc_cv_gld_major_version" -gt 2; then
26025 gcc_cv_ld_mips_personality_relaxation=yes
26027 elif test x$gcc_cv_as != x \
26028 -a x$gcc_cv_ld != x \
26029 -a x$gcc_cv_readelf != x ; then
26030 cat > conftest.s <<EOF
26031 .cfi_startproc
26032 .cfi_personality 0x80,indirect_ptr
26033 .ent test
26034 test:
26036 .end test
26037 .cfi_endproc
26039 .section .data,"aw",@progbits
26040 indirect_ptr:
26041 .dc.a personality
26043 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26044 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26045 if $gcc_cv_readelf -d conftest 2>&1 \
26046 | grep TEXTREL > /dev/null 2>&1; then
26048 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26049 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26051 else
26052 gcc_cv_ld_mips_personality_relaxation=yes
26056 rm -f conftest.s conftest.o conftest
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26059 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26060 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26062 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26067 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26068 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26069 $as_echo_n "(cached) " >&6
26070 else
26071 gcc_cv_as_mips_nan=no
26072 if test x$gcc_cv_as != x; then
26073 $as_echo '' > conftest.s
26074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; }
26080 then
26081 gcc_cv_as_mips_nan=yes
26082 else
26083 echo "configure: failed program was" >&5
26084 cat conftest.s >&5
26086 rm -f conftest.o conftest.s
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26090 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26091 if test $gcc_cv_as_mips_nan = yes; then
26093 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26096 if test x$gcc_cv_as_mips_nan = xno \
26097 && test x$with_nan != x; then
26098 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26101 esac
26103 # Mips and HP-UX need the GNU assembler.
26104 # Linux on IA64 might be able to use the Intel assembler.
26106 case "$target" in
26107 mips*-*-* | *-*-hpux* )
26108 if test x$gas_flag = xyes \
26109 || test x"$host" != x"$build" \
26110 || test ! -x "$gcc_cv_as" \
26111 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26113 else
26114 echo "*** This configuration requires the GNU assembler" >&2
26115 exit 1
26118 esac
26120 # ??? Not all targets support dwarf2 debug_line, even within a version
26121 # of gas. Moreover, we need to emit a valid instruction to trigger any
26122 # info to the output file. So, as supported targets are added to gas 2.11,
26123 # add some instruction here to (also) show we expect this might work.
26124 # ??? Once 2.11 is released, probably need to add first known working
26125 # version to the per-target configury.
26126 case "$cpu_type" in
26127 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26128 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26129 | xtensa)
26130 insn="nop"
26132 ia64 | s390)
26133 insn="nop 0"
26135 mmix)
26136 insn="swym 0"
26138 esac
26139 if test x"$insn" != x; then
26140 conftest_s="\
26141 .file 1 \"conftest.s\"
26142 .loc 1 3 0
26143 $insn"
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26145 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26146 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26147 $as_echo_n "(cached) " >&6
26148 else
26149 gcc_cv_as_dwarf2_debug_line=no
26150 if test $in_tree_gas = yes; then
26151 if test $in_tree_gas_is_elf = yes \
26152 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26153 then gcc_cv_as_dwarf2_debug_line=yes
26155 elif test x$gcc_cv_as != x; then
26156 $as_echo "$conftest_s" > conftest.s
26157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26159 (eval $ac_try) 2>&5
26160 ac_status=$?
26161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162 test $ac_status = 0; }; }
26163 then
26164 if test x$gcc_cv_objdump != x \
26165 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26166 | grep debug_line > /dev/null 2>&1; then
26167 gcc_cv_as_dwarf2_debug_line=yes
26169 else
26170 echo "configure: failed program was" >&5
26171 cat conftest.s >&5
26173 rm -f conftest.o conftest.s
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26177 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26180 # The .debug_line file table must be in the exact order that
26181 # we specified the files, since these indices are also used
26182 # by DW_AT_decl_file. Approximate this test by testing if
26183 # the assembler bitches if the same index is assigned twice.
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26185 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26186 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26187 $as_echo_n "(cached) " >&6
26188 else
26189 gcc_cv_as_dwarf2_file_buggy=no
26190 if test x$gcc_cv_as != x; then
26191 $as_echo ' .file 1 "foo.s"
26192 .file 1 "bar.s"' > conftest.s
26193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26199 then
26200 gcc_cv_as_dwarf2_file_buggy=yes
26201 else
26202 echo "configure: failed program was" >&5
26203 cat conftest.s >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26209 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26212 if test $gcc_cv_as_dwarf2_debug_line = yes \
26213 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26215 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26220 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26221 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26222 $as_echo_n "(cached) " >&6
26223 else
26224 gcc_cv_as_gdwarf2_flag=no
26225 if test $in_tree_gas = yes; then
26226 if test $in_tree_gas_is_elf = yes \
26227 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26228 then gcc_cv_as_gdwarf2_flag=yes
26230 elif test x$gcc_cv_as != x; then
26231 $as_echo "$insn" > conftest.s
26232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26237 test $ac_status = 0; }; }
26238 then
26239 gcc_cv_as_gdwarf2_flag=yes
26240 else
26241 echo "configure: failed program was" >&5
26242 cat conftest.s >&5
26244 rm -f conftest.o conftest.s
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26248 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26249 if test $gcc_cv_as_gdwarf2_flag = yes; then
26251 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26256 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26257 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26258 $as_echo_n "(cached) " >&6
26259 else
26260 gcc_cv_as_gstabs_flag=no
26261 if test $in_tree_gas = yes; then
26262 if test $in_tree_gas_is_elf = yes \
26263 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26264 then gcc_cv_as_gstabs_flag=yes
26266 elif test x$gcc_cv_as != x; then
26267 $as_echo "$insn" > conftest.s
26268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26270 (eval $ac_try) 2>&5
26271 ac_status=$?
26272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273 test $ac_status = 0; }; }
26274 then
26275 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26276 # and warns about it, but still exits successfully. So check for
26277 # this.
26278 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283 test $ac_status = 0; }; }
26284 then :
26285 else gcc_cv_as_gstabs_flag=yes
26287 else
26288 echo "configure: failed program was" >&5
26289 cat conftest.s >&5
26291 rm -f conftest.o conftest.s
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26295 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26296 if test $gcc_cv_as_gstabs_flag = yes; then
26298 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26303 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26304 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26305 $as_echo_n "(cached) " >&6
26306 else
26307 gcc_cv_as_debug_prefix_map_flag=no
26308 if test $in_tree_gas = yes; then
26309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26310 then gcc_cv_as_debug_prefix_map_flag=yes
26312 elif test x$gcc_cv_as != x; then
26313 $as_echo "$insn" > conftest.s
26314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26319 test $ac_status = 0; }; }
26320 then
26321 gcc_cv_as_debug_prefix_map_flag=yes
26322 else
26323 echo "configure: failed program was" >&5
26324 cat conftest.s >&5
26326 rm -f conftest.o conftest.s
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26330 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26331 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26333 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26339 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26340 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26341 $as_echo_n "(cached) " >&6
26342 else
26343 gcc_cv_as_lcomm_with_alignment=no
26344 if test x$gcc_cv_as != x; then
26345 $as_echo '.lcomm bar,4,16' > conftest.s
26346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26351 test $ac_status = 0; }; }
26352 then
26353 gcc_cv_as_lcomm_with_alignment=yes
26354 else
26355 echo "configure: failed program was" >&5
26356 cat conftest.s >&5
26358 rm -f conftest.o conftest.s
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26362 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26363 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26365 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26369 # Check whether --enable-gnu-unique-object was given.
26370 if test "${enable_gnu_unique_object+set}" = set; then :
26371 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26372 yes | no) ;;
26373 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26374 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26375 esac
26376 else
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26378 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26379 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_gnu_unique_object=no
26383 if test $in_tree_gas = yes; then
26384 if test $in_tree_gas_is_elf = yes \
26385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26386 then gcc_cv_as_gnu_unique_object=yes
26388 elif test x$gcc_cv_as != x; then
26389 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26392 (eval $ac_try) 2>&5
26393 ac_status=$?
26394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26395 test $ac_status = 0; }; }
26396 then
26397 gcc_cv_as_gnu_unique_object=yes
26398 else
26399 echo "configure: failed program was" >&5
26400 cat conftest.s >&5
26402 rm -f conftest.o conftest.s
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26406 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26407 if test $gcc_cv_as_gnu_unique_object = yes; then
26408 # We need to unquote above to to use the definition from config.gcc.
26409 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26410 if test x$host = x$build -a x$host = x$target &&
26411 ldd --version 2>/dev/null &&
26412 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26413 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26414 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26415 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26416 if test "$glibcnum" -ge 2011 ; then
26417 enable_gnu_unique_object=yes
26423 if test x$enable_gnu_unique_object = xyes; then
26425 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26430 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26431 if test "${gcc_cv_as_line_zero+set}" = set; then :
26432 $as_echo_n "(cached) " >&6
26433 else
26434 gcc_cv_as_line_zero=no
26435 if test $in_tree_gas = yes; then
26436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26437 then gcc_cv_as_line_zero=yes
26439 elif test "x$gcc_cv_as" != x; then
26440 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26443 (eval $ac_try) 2>&5
26444 ac_status=$?
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; } &&
26447 test "x`cat conftest.out`" = x
26448 then
26449 gcc_cv_as_line_zero=yes
26450 else
26451 echo "configure: failed program was" >&5
26452 cat conftest.s >&5
26453 echo "configure: error output was" >&5
26454 cat conftest.out >&5
26456 rm -f conftest.o conftest.s conftest.out
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26460 $as_echo "$gcc_cv_as_line_zero" >&6; }
26461 if test "x$gcc_cv_as_line_zero" = xyes; then
26463 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26468 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26469 gcc_cv_ld_eh_frame_hdr=no
26470 if test $in_tree_ld = yes ; then
26471 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 \
26472 && test $in_tree_ld_is_elf = yes; then
26473 gcc_cv_ld_eh_frame_hdr=yes
26475 elif test x$gcc_cv_ld != x; then
26476 if echo "$ld_ver" | grep GNU > /dev/null; then
26477 # Check if linker supports --eh-frame-hdr option
26478 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26479 gcc_cv_ld_eh_frame_hdr=yes
26481 else
26482 case "$target" in
26483 *-*-solaris2*)
26484 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26485 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26486 gcc_cv_ld_eh_frame_hdr=yes
26489 esac
26493 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26495 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26499 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26502 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26503 gcc_cv_ld_eh_frame_ciev3=no
26504 if test $in_tree_ld = yes ; then
26505 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 \
26506 && test $in_tree_ld_is_elf = yes; then
26507 gcc_cv_ld_eh_frame_ciev3=yes
26509 elif test x$gcc_cv_ld != x; then
26510 if echo "$ld_ver" | grep GNU > /dev/null; then
26511 gcc_cv_ld_eh_frame_ciev3=yes
26512 if test 0"$ld_date" -lt 20040513; then
26513 if test -n "$ld_date"; then
26514 # If there was date string, but was earlier than 2004-05-13, fail
26515 gcc_cv_ld_eh_frame_ciev3=no
26516 elif test "$ld_vers_major" -lt 2; then
26517 gcc_cv_ld_eh_frame_ciev3=no
26518 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26519 gcc_cv_ld_eh_frame_ciev3=no
26522 else
26523 case "$target" in
26524 *-*-solaris2*)
26525 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26526 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26527 gcc_cv_ld_eh_frame_ciev3=yes
26530 esac
26534 cat >>confdefs.h <<_ACEOF
26535 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26536 _ACEOF
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26539 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26542 $as_echo_n "checking linker position independent executable support... " >&6; }
26543 gcc_cv_ld_pie=no
26544 if test $in_tree_ld = yes ; then
26545 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 \
26546 && test $in_tree_ld_is_elf = yes; then
26547 gcc_cv_ld_pie=yes
26549 elif test x$gcc_cv_ld != x; then
26550 # Check if linker supports -pie option
26551 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26552 gcc_cv_ld_pie=yes
26555 if test x"$gcc_cv_ld_pie" = xyes; then
26557 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26561 $as_echo "$gcc_cv_ld_pie" >&6; }
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26564 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26565 gcc_cv_ld_eh_gc_sections=no
26566 if test $in_tree_ld = yes ; then
26567 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 \
26568 && test $in_tree_ld_is_elf = yes; then
26569 gcc_cv_ld_eh_gc_sections=yes
26571 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26572 cat > conftest.s <<EOF
26573 .section .text
26574 .globl _start
26575 .type _start, @function
26576 _start:
26577 .long foo
26578 .size _start, .-_start
26579 .section .text.foo,"ax",@progbits
26580 .type foo, @function
26581 foo:
26582 .long 0
26583 .size foo, .-foo
26584 .section .gcc_except_table.foo,"a",@progbits
26585 .L0:
26586 .long 0
26587 .section .eh_frame,"a",@progbits
26588 .long .L0
26590 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26591 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26592 | grep "gc-sections option ignored" > /dev/null; then
26593 gcc_cv_ld_eh_gc_sections=no
26594 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26595 | grep gcc_except_table > /dev/null; then
26596 gcc_cv_ld_eh_gc_sections=yes
26597 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26598 if test x$gcc_cv_as_comdat_group != xyes; then
26599 gcc_cv_ld_eh_gc_sections=no
26600 cat > conftest.s <<EOF
26601 .section .text
26602 .globl _start
26603 .type _start, @function
26604 _start:
26605 .long foo
26606 .size _start, .-_start
26607 .section .gnu.linkonce.t.foo,"ax",@progbits
26608 .type foo, @function
26609 foo:
26610 .long 0
26611 .size foo, .-foo
26612 .section .gcc_except_table.foo,"a",@progbits
26613 .L0:
26614 .long 0
26615 .section .eh_frame,"a",@progbits
26616 .long .L0
26618 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26619 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26620 | grep "gc-sections option ignored" > /dev/null; then
26621 gcc_cv_ld_eh_gc_sections=no
26622 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26623 | grep gcc_except_table > /dev/null; then
26624 gcc_cv_ld_eh_gc_sections=yes
26630 rm -f conftest.s conftest.o conftest
26632 case "$target" in
26633 hppa*-*-linux*)
26634 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26635 gcc_cv_ld_eh_gc_sections=no
26637 esac
26638 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26640 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26644 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26647 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26648 gcc_cv_ld_eh_gc_sections_bug=no
26649 if test $in_tree_ld = yes ; then
26650 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 \
26651 && test $in_tree_ld_is_elf = yes; then
26652 gcc_cv_ld_eh_gc_sections_bug=yes
26654 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
26655 gcc_cv_ld_eh_gc_sections_bug=yes
26656 cat > conftest.s <<EOF
26657 .section .text
26658 .globl _start
26659 .type _start, @function
26660 _start:
26661 .long foo
26662 .size _start, .-_start
26663 .section .text.startup.foo,"ax",@progbits
26664 .type foo, @function
26665 foo:
26666 .long 0
26667 .size foo, .-foo
26668 .section .gcc_except_table.foo,"a",@progbits
26669 .L0:
26670 .long 0
26671 .section .eh_frame,"a",@progbits
26672 .long .L0
26674 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26675 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26676 | grep "gc-sections option ignored" > /dev/null; then
26678 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26679 | grep gcc_except_table > /dev/null; then
26680 gcc_cv_ld_eh_gc_sections_bug=no
26683 rm -f conftest.s conftest.o conftest
26685 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26687 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26691 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26693 # --------
26694 # UNSORTED
26695 # --------
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26698 $as_echo_n "checking linker --as-needed support... " >&6; }
26699 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26700 $as_echo_n "(cached) " >&6
26701 else
26702 gcc_cv_ld_as_needed=no
26703 gcc_cv_ld_as_needed_option='--as-needed'
26704 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26705 if test $in_tree_ld = yes ; then
26706 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 \
26707 && test $in_tree_ld_is_elf = yes; then
26708 gcc_cv_ld_as_needed=yes
26710 elif test x$gcc_cv_ld != x; then
26711 # Check if linker supports --as-needed and --no-as-needed options
26712 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26713 gcc_cv_ld_as_needed=yes
26714 else
26715 case "$target" in
26716 # Solaris 2 ld always supports -z ignore/-z record.
26717 *-*-solaris2*)
26718 gcc_cv_ld_as_needed=yes
26719 gcc_cv_ld_as_needed_option="-z ignore"
26720 gcc_cv_ld_no_as_needed_option="-z record"
26722 esac
26725 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26726 # dl_iterate_phdr, i.e. since Solaris 11.
26727 case "$target" in
26728 *-*-solaris2.1[1-9]*)
26729 case "$target" in
26730 i?86-*-* | x86_64-*-*)
26731 if echo "$ld_ver" | grep GNU > /dev/null; then
26732 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26733 gcc_cv_ld_as_needed=no
26736 esac
26738 *-*-solaris2*)
26739 gcc_cv_ld_as_needed=no
26741 esac
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26745 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26746 if test x"$gcc_cv_ld_as_needed" = xyes; then
26748 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26751 cat >>confdefs.h <<_ACEOF
26752 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26753 _ACEOF
26756 cat >>confdefs.h <<_ACEOF
26757 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26758 _ACEOF
26762 case "$target:$tm_file" in
26763 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26764 case "$target" in
26765 *le-*-linux*)
26766 emul_name="-melf64lppc"
26768 *-*-linux*)
26769 emul_name="-melf64ppc"
26771 *-*-freebsd*)
26772 emul_name="-melf64ppc_fbsd"
26774 esac
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26776 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26777 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26778 $as_echo_n "(cached) " >&6
26779 else
26780 gcc_cv_ld_no_dot_syms=no
26781 if test x"$ld_is_gold" = xyes; then
26782 gcc_cv_ld_no_dot_syms=yes
26783 elif test $in_tree_ld = yes ; then
26784 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
26785 gcc_cv_ld_no_dot_syms=yes
26787 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26788 cat > conftest1.s <<EOF
26789 .text
26790 bl .foo
26792 cat > conftest2.s <<EOF
26793 .section ".opd","aw"
26794 .align 3
26795 .globl foo
26796 .type foo,@function
26797 foo:
26798 .quad .LEfoo,.TOC.@tocbase,0
26799 .text
26800 .LEfoo:
26802 .size foo,.-.LEfoo
26804 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26805 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26806 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26807 gcc_cv_ld_no_dot_syms=yes
26809 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26814 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26815 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26817 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26822 $as_echo_n "checking linker large toc support... " >&6; }
26823 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26824 $as_echo_n "(cached) " >&6
26825 else
26826 gcc_cv_ld_large_toc=no
26827 if test x"$ld_is_gold" = xyes; then
26828 gcc_cv_ld_large_toc=yes
26829 elif test $in_tree_ld = yes ; then
26830 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
26831 gcc_cv_ld_large_toc=yes
26833 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26834 cat > conftest.s <<EOF
26835 .section ".tbss","awT",@nobits
26836 .align 3
26837 ie0: .space 8
26838 .global _start
26839 .text
26840 _start:
26841 addis 9,13,ie0@got@tprel@ha
26842 ld 9,ie0@got@tprel@l(9)
26844 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26845 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26846 gcc_cv_ld_large_toc=yes
26848 rm -f conftest conftest.o conftest.s
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26853 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26854 if test x"$gcc_cv_ld_large_toc" = xyes; then
26856 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26860 esac
26862 case "$target" in
26863 *-*-aix*)
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26865 $as_echo_n "checking linker large toc support... " >&6; }
26866 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_ld_large_toc=no
26870 if test x$gcc_cv_as != x ; then
26871 cat > conftest.s <<EOF
26872 .toc
26873 LC..1:
26874 .tc a[TC],a[RW]
26875 .extern a[RW]
26876 .csect .text[PR]
26877 .largetoctest:
26878 addis 9,LC..1@u(2)
26879 ld 3,LC..1@l(9)
26881 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26882 gcc_cv_ld_large_toc=yes
26884 rm -f conftest conftest.o conftest.s
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26889 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26890 if test x"$gcc_cv_ld_large_toc" = xyes; then
26892 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26896 esac
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26899 $as_echo_n "checking linker --build-id support... " >&6; }
26900 if test "${gcc_cv_ld_buildid+set}" = set; then :
26901 $as_echo_n "(cached) " >&6
26902 else
26903 gcc_cv_ld_buildid=no
26904 if test $in_tree_ld = yes ; then
26905 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26906 "$gcc_cv_gld_minor_version" -ge 18 -o \
26907 "$gcc_cv_gld_major_version" -gt 2 \
26908 && test $in_tree_ld_is_elf = yes; then
26909 gcc_cv_ld_buildid=yes
26911 elif test x$gcc_cv_ld != x; then
26912 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26913 gcc_cv_ld_buildid=yes
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26918 $as_echo "$gcc_cv_ld_buildid" >&6; }
26919 if test x"$gcc_cv_ld_buildid" = xyes; then
26921 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26925 # Check whether --enable-linker-build-id was given.
26926 if test "${enable_linker_build_id+set}" = set; then :
26927 enableval=$enable_linker_build_id;
26928 else
26929 enable_linker_build_id=no
26933 if test x"$enable_linker_build_id" = xyes; then
26934 if test x"$gcc_cv_ld_buildid" = xyes; then
26936 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26938 else
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26940 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26944 # In binutils 2.21, GNU ld gained support for new emulations fully
26945 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26947 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26948 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26949 $as_echo_n "(cached) " >&6
26950 else
26951 gcc_cv_ld_sol2_emulation=no
26952 if test $in_tree_ld = yes ; then
26953 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26954 "$gcc_cv_gld_minor_version" -ge 21 -o \
26955 "$gcc_cv_gld_major_version" -gt 2 \
26956 && test $in_tree_ld_is_elf = yes; then
26957 gcc_cv_ld_sol2_emulation=yes
26959 elif test x$gcc_cv_ld != x; then
26960 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26961 grep _sol2 > /dev/null; then
26962 gcc_cv_ld_sol2_emulation=yes
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26967 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26968 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26970 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26975 $as_echo_n "checking linker --sysroot support... " >&6; }
26976 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26977 $as_echo_n "(cached) " >&6
26978 else
26979 gcc_cv_ld_sysroot=no
26980 if test $in_tree_ld = yes ; then
26981 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
26982 gcc_cv_ld_sysroot=yes
26984 elif test x$gcc_cv_ld != x; then
26985 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26986 gcc_cv_ld_sysroot=yes
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26991 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26992 if test x"$gcc_cv_ld_sysroot" = xyes; then
26994 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26998 if test x$with_sysroot = x && test x$host = x$target \
26999 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27000 && test "$prefix" != "NONE"; then
27002 cat >>confdefs.h <<_ACEOF
27003 #define PREFIX_INCLUDE_DIR "$prefix/include"
27004 _ACEOF
27008 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
27009 if test "x$with_headers" != x; then
27010 target_header_dir=$with_headers
27011 elif test "x$with_sysroot" = x; then
27012 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
27013 elif test "x$with_build_sysroot" != "x"; then
27014 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
27015 elif test "x$with_sysroot" = xyes; then
27016 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27017 else
27018 target_header_dir="${with_sysroot}${native_system_header_dir}"
27020 else
27021 target_header_dir=${native_system_header_dir}
27024 # Test for stack protector support in target C library.
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27026 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27027 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27028 $as_echo_n "(cached) " >&6
27029 else
27030 gcc_cv_libc_provides_ssp=no
27031 case "$target" in
27032 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27033 # glibc 2.4 and later provides __stack_chk_fail and
27034 # either __stack_chk_guard, or TLS access to stack guard canary.
27035 if test -f $target_header_dir/features.h \
27036 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27037 $target_header_dir/features.h > /dev/null; then
27038 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27039 $target_header_dir/features.h > /dev/null; then
27040 gcc_cv_libc_provides_ssp=yes
27041 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27042 $target_header_dir/features.h > /dev/null \
27043 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27044 $target_header_dir/features.h > /dev/null; then
27045 gcc_cv_libc_provides_ssp=yes
27046 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27047 $target_header_dir/features.h > /dev/null && \
27048 test -f $target_header_dir/bits/uClibc_config.h && \
27049 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27050 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27051 gcc_cv_libc_provides_ssp=yes
27053 # all versions of Bionic support stack protector
27054 elif test -f $target_header_dir/sys/cdefs.h \
27055 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27056 $target_header_dir/sys/cdefs.h > /dev/null; then
27057 gcc_cv_libc_provides_ssp=yes
27060 *-*-gnu*)
27061 # Avoid complicated tests (see
27062 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27063 # simply assert that glibc does provide this, which is true for all
27064 # realistically usable GNU/Hurd configurations.
27065 gcc_cv_libc_provides_ssp=yes;;
27066 *-*-darwin* | *-*-freebsd*)
27067 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27068 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27069 gcc_cv_libc_provides_ssp=yes
27070 else
27071 echo "no __stack_chk_fail on this target"
27075 *) gcc_cv_libc_provides_ssp=no ;;
27076 esac
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27079 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27081 if test x$gcc_cv_libc_provides_ssp = xyes; then
27083 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27087 # Test for <sys/sdt.h> on the target.
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27090 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27091 have_sys_sdt_h=no
27092 if test -f $target_header_dir/sys/sdt.h; then
27093 have_sys_sdt_h=yes
27095 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27099 $as_echo "$have_sys_sdt_h" >&6; }
27101 # Check if TFmode long double should be used by default or not.
27102 # Some glibc targets used DFmode long double, but with glibc 2.4
27103 # and later they can use TFmode.
27104 case "$target" in
27105 powerpc*-*-linux* | \
27106 sparc*-*-linux* | \
27107 s390*-*-linux* | \
27108 alpha*-*-linux*)
27110 # Check whether --with-long-double-128 was given.
27111 if test "${with_long_double_128+set}" = set; then :
27112 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27113 else
27114 gcc_cv_target_ldbl128=no
27115 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27116 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27117 && gcc_cv_target_ldbl128=yes
27122 esac
27123 if test x$gcc_cv_target_ldbl128 = xyes; then
27125 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27130 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27131 gcc_cv_target_dl_iterate_phdr=unknown
27132 case "$target" in
27133 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27134 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27135 # libdl there, both complicating its use and breaking compatibility
27136 # between Solaris 10 updates.
27137 *-*-solaris2.1[1-9]*)
27138 # <link.h> needs both a dl_iterate_phdr declaration and support for
27139 # compilation with largefile support.
27140 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27141 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27142 gcc_cv_target_dl_iterate_phdr=yes
27143 else
27144 gcc_cv_target_dl_iterate_phdr=no
27147 esac
27149 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27151 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27155 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27157 # We no longer support different GC mechanisms. Emit an error if
27158 # the user configures with --with-gc.
27160 # Check whether --with-gc was given.
27161 if test "${with_gc+set}" = set; then :
27162 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27166 # Libraries to use on the host. This will normally be set by the top
27167 # level Makefile. Here we simply capture the value for our Makefile.
27168 if test -z "${HOST_LIBS+set}"; then
27169 HOST_LIBS=
27173 # Use the system's zlib library.
27174 zlibdir=-L../zlib
27175 zlibinc="-I\$(srcdir)/../zlib"
27177 # Check whether --with-system-zlib was given.
27178 if test "${with_system_zlib+set}" = set; then :
27179 withval=$with_system_zlib; zlibdir=
27180 zlibinc=
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27189 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27190 # Check whether --enable-maintainer-mode was given.
27191 if test "${enable_maintainer_mode+set}" = set; then :
27192 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27193 else
27194 maintainer_mode=no
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27199 $as_echo "$maintainer_mode" >&6; }
27201 if test "$maintainer_mode" = "yes"; then
27202 MAINT=''
27203 else
27204 MAINT='#'
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27209 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27210 # Check whether --enable-link-mutex was given.
27211 if test "${enable_link_mutex+set}" = set; then :
27212 enableval=$enable_link_mutex; do_link_mutex=$enableval
27213 else
27214 do_link_mutex=no
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27218 $as_echo "$do_link_mutex" >&6; }
27220 if test "$do_link_mutex" = "yes"; then
27221 DO_LINK_MUTEX=true
27222 else
27223 DO_LINK_MUTEX=false
27227 # --------------
27228 # Language hooks
27229 # --------------
27231 # Make empty files to contain the specs and options for each language.
27232 # Then add #include lines to for a compiler that has specs and/or options.
27234 subdirs=
27235 lang_opt_files=
27236 lang_specs_files=
27237 lang_tree_files=
27238 # These (without "all_") are set in each config-lang.in.
27239 # `language' must be a single word so is spelled singularly.
27240 all_languages=
27241 all_compilers=
27242 all_outputs='Makefile'
27243 # List of language makefile fragments.
27244 all_lang_makefrags=
27245 # Additional files for gengtype
27246 all_gtfiles="$target_gtfiles"
27248 # These are the languages that are set in --enable-languages,
27249 # and are available in the GCC tree.
27250 all_selected_languages=
27252 # Add the language fragments.
27253 # Languages are added via two mechanisms. Some information must be
27254 # recorded in makefile variables, these are defined in config-lang.in.
27255 # We accumulate them and plug them into the main Makefile.
27256 # The other mechanism is a set of hooks for each of the main targets
27257 # like `clean', `install', etc.
27259 language_hooks="Make-hooks"
27261 for lang in ${srcdir}/*/config-lang.in
27263 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27265 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27266 if test "x$lang_alias" = x
27267 then
27268 echo "$lang doesn't set \$language." 1>&2
27269 exit 1
27271 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27272 subdirs="$subdirs $subdir"
27274 # $gcc_subdir is where the gcc integration files are to be found
27275 # for a language, both for internal compiler purposes (compiler
27276 # sources implementing front-end to GCC tree converters), and for
27277 # build infrastructure purposes (Make-lang.in, etc.)
27279 # This will be <subdir> (relative to $srcdir) if a line like
27280 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27281 # is found in <langdir>/config-lang.in, and will remain <langdir>
27282 # otherwise.
27284 # Except for the language alias (fetched above), the regular
27285 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27286 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27287 # only this and the language alias.
27289 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27290 if [ "$gcc_subdir" = "" ]; then
27291 gcc_subdir="$subdir"
27294 case ",$enable_languages," in
27295 *,$lang_alias,*)
27296 all_selected_languages="$all_selected_languages $lang_alias"
27297 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27298 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27301 esac
27303 language=
27304 boot_language=
27305 compilers=
27306 outputs=
27307 gtfiles=
27308 subdir_requires=
27309 . ${srcdir}/$gcc_subdir/config-lang.in
27310 if test "x$language" = x
27311 then
27312 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27313 exit 1
27316 ok=:
27317 case ",$enable_languages," in
27318 *,$lang_alias,*) ;;
27320 for i in $subdir_requires; do
27321 test -f "${srcdir}/$i/config-lang.in" && continue
27322 ok=false
27323 break
27324 done
27326 esac
27327 $ok || continue
27329 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27330 if test -f $srcdir/$gcc_subdir/lang.opt; then
27331 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27332 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27334 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27335 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27337 all_languages="$all_languages $language"
27338 all_compilers="$all_compilers $compilers"
27339 all_outputs="$all_outputs $outputs"
27340 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27341 case ",$enable_languages," in
27342 *,lto,*)
27344 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27346 enable_lto=yes
27349 *) ;;
27350 esac
27351 done
27353 check_languages=
27354 for language in $all_selected_languages
27356 check_languages="$check_languages check-$language"
27357 done
27359 # We link each language in with a set of hooks, reached indirectly via
27360 # lang.${target}. Only do so for selected languages.
27362 rm -f Make-hooks
27363 touch Make-hooks
27364 target_list="all.cross start.encap rest.encap tags \
27365 install-common install-man install-info install-pdf install-html dvi \
27366 pdf html uninstall info man srcextra srcman srcinfo \
27367 mostlyclean clean distclean maintainer-clean install-plugin"
27369 for t in $target_list
27372 for lang in $all_selected_languages
27374 x="$x $lang.$t"
27375 done
27376 echo "lang.$t: $x" >> Make-hooks
27377 done
27379 # --------
27380 # Option include files
27381 # --------
27383 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27384 option_includes="option-includes.mk"
27387 # --------
27388 # UNSORTED
27389 # --------
27391 # Create .gdbinit.
27393 echo "dir ." > .gdbinit
27394 echo "dir ${srcdir}" >> .gdbinit
27395 if test x$gdb_needs_out_file_path = xyes
27396 then
27397 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27399 if test "x$subdirs" != x; then
27400 for s in $subdirs
27402 echo "dir ${srcdir}/$s" >> .gdbinit
27403 done
27405 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27406 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27408 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27412 # Find a directory in which to install a shared libgcc.
27414 # Check whether --enable-version-specific-runtime-libs was given.
27415 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27416 enableval=$enable_version_specific_runtime_libs;
27420 # Substitute configuration variables
27483 # Echo link setup.
27484 if test x${build} = x${host} ; then
27485 if test x${host} = x${target} ; then
27486 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27487 else
27488 echo "Links are now set up to build a cross-compiler" 1>&2
27489 echo " from ${host} to ${target}." 1>&2
27491 else
27492 if test x${host} = x${target} ; then
27493 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27494 echo " for ${target}." 1>&2
27495 else
27496 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27497 echo " from ${host} to ${target}." 1>&2
27509 if test "x${CLOOGLIBS}" != "x" ; then
27511 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27515 # Check for plugin support
27516 # Check whether --enable-plugin was given.
27517 if test "${enable_plugin+set}" = set; then :
27518 enableval=$enable_plugin; enable_plugin=$enableval
27519 else
27520 enable_plugin=yes; default_plugin=yes
27524 pluginlibs=
27526 case "${host}" in
27527 *-*-darwin*)
27528 if test x$build = x$host; then
27529 export_sym_check="nm${exeext} -g"
27530 elif test x$host = x$target; then
27531 export_sym_check="$gcc_cv_nm -g"
27532 else
27533 export_sym_check=
27537 if test x$build = x$host; then
27538 export_sym_check="objdump${exeext} -T"
27539 elif test x$host = x$target; then
27540 export_sym_check="$gcc_cv_objdump -T"
27541 else
27542 export_sym_check=
27545 esac
27547 if test x"$enable_plugin" = x"yes"; then
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27550 $as_echo_n "checking for exported symbols... " >&6; }
27551 if test "x$export_sym_check" != x; then
27552 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27553 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27554 if $export_sym_check conftest | grep foobar > /dev/null; then
27555 : # No need to use a flag
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27557 $as_echo "yes" >&6; }
27558 else
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27560 $as_echo "yes" >&6; }
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27562 $as_echo_n "checking for -rdynamic... " >&6; }
27563 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27564 if $export_sym_check conftest | grep foobar > /dev/null; then
27565 plugin_rdynamic=yes
27566 pluginlibs="-rdynamic"
27567 else
27568 plugin_rdynamic=no
27569 enable_plugin=no
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27572 $as_echo "$plugin_rdynamic" >&6; }
27574 else
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27576 $as_echo "unable to check" >&6; }
27579 # Check -ldl
27580 saved_LIBS="$LIBS"
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27582 $as_echo_n "checking for library containing dlopen... " >&6; }
27583 if test "${ac_cv_search_dlopen+set}" = set; then :
27584 $as_echo_n "(cached) " >&6
27585 else
27586 ac_func_search_save_LIBS=$LIBS
27587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27588 /* end confdefs.h. */
27590 /* Override any GCC internal prototype to avoid an error.
27591 Use char because int might match the return type of a GCC
27592 builtin and then its argument prototype would still apply. */
27593 #ifdef __cplusplus
27594 extern "C"
27595 #endif
27596 char dlopen ();
27598 main ()
27600 return dlopen ();
27602 return 0;
27604 _ACEOF
27605 for ac_lib in '' dl; do
27606 if test -z "$ac_lib"; then
27607 ac_res="none required"
27608 else
27609 ac_res=-l$ac_lib
27610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27612 if ac_fn_c_try_link "$LINENO"; then :
27613 ac_cv_search_dlopen=$ac_res
27615 rm -f core conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext
27617 if test "${ac_cv_search_dlopen+set}" = set; then :
27618 break
27620 done
27621 if test "${ac_cv_search_dlopen+set}" = set; then :
27623 else
27624 ac_cv_search_dlopen=no
27626 rm conftest.$ac_ext
27627 LIBS=$ac_func_search_save_LIBS
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27630 $as_echo "$ac_cv_search_dlopen" >&6; }
27631 ac_res=$ac_cv_search_dlopen
27632 if test "$ac_res" != no; then :
27633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27637 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27638 pluginlibs="$pluginlibs -ldl"
27640 LIBS="$saved_LIBS"
27642 # Check that we can build shared objects with -fPIC -shared
27643 saved_LDFLAGS="$LDFLAGS"
27644 saved_CFLAGS="$CFLAGS"
27645 case "${host}" in
27646 *-*-darwin*)
27647 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27648 CFLAGS="$CFLAGS -fPIC"
27649 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27652 CFLAGS="$CFLAGS -fPIC"
27653 LDFLAGS="$LDFLAGS -fPIC -shared"
27655 esac
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27657 $as_echo_n "checking for -fPIC -shared... " >&6; }
27658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h. */
27660 extern int X;
27662 main ()
27664 return X == 0;
27666 return 0;
27668 _ACEOF
27669 if ac_fn_c_try_link "$LINENO"; then :
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27671 $as_echo "yes" >&6; }; have_pic_shared=yes
27672 else
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27674 $as_echo "no" >&6; }; have_pic_shared=no
27676 rm -f core conftest.err conftest.$ac_objext \
27677 conftest$ac_exeext conftest.$ac_ext
27678 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27679 pluginlibs=
27680 enable_plugin=no
27682 LDFLAGS="$saved_LDFLAGS"
27683 CFLAGS="$saved_CFLAGS"
27685 # If plugin support had been requested but not available, fail.
27686 if test x"$enable_plugin" = x"no" ; then
27687 if test x"$default_plugin" != x"yes"; then
27688 as_fn_error "
27689 Building GCC with plugin support requires a host that supports
27690 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27697 if test x"$enable_plugin" = x"yes"; then
27699 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27704 # Check whether --enable-libquadmath-support was given.
27705 if test "${enable_libquadmath_support+set}" = set; then :
27706 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27707 else
27708 ENABLE_LIBQUADMATH_SUPPORT=yes
27711 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27713 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27718 # Specify what hash style to use by default.
27720 # Check whether --with-linker-hash-style was given.
27721 if test "${with_linker_hash_style+set}" = set; then :
27722 withval=$with_linker_hash_style; case x"$withval" in
27723 xsysv)
27724 LINKER_HASH_STYLE=sysv
27726 xgnu)
27727 LINKER_HASH_STYLE=gnu
27729 xboth)
27730 LINKER_HASH_STYLE=both
27733 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27735 esac
27736 else
27737 LINKER_HASH_STYLE=''
27740 if test x"${LINKER_HASH_STYLE}" != x; then
27742 cat >>confdefs.h <<_ACEOF
27743 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27744 _ACEOF
27748 # Configure the subdirectories
27749 # AC_CONFIG_SUBDIRS($subdirs)
27751 # Create the Makefile
27752 # and configure language subdirectories
27753 ac_config_files="$ac_config_files $all_outputs"
27756 ac_config_commands="$ac_config_commands default"
27758 cat >confcache <<\_ACEOF
27759 # This file is a shell script that caches the results of configure
27760 # tests run on this system so they can be shared between configure
27761 # scripts and configure runs, see configure's option --config-cache.
27762 # It is not useful on other systems. If it contains results you don't
27763 # want to keep, you may remove or edit it.
27765 # config.status only pays attention to the cache file if you give it
27766 # the --recheck option to rerun configure.
27768 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27769 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27770 # following values.
27772 _ACEOF
27774 # The following way of writing the cache mishandles newlines in values,
27775 # but we know of no workaround that is simple, portable, and efficient.
27776 # So, we kill variables containing newlines.
27777 # Ultrix sh set writes to stderr and can't be redirected directly,
27778 # and sets the high bit in the cache file unless we assign to the vars.
27780 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27781 eval ac_val=\$$ac_var
27782 case $ac_val in #(
27783 *${as_nl}*)
27784 case $ac_var in #(
27785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27787 esac
27788 case $ac_var in #(
27789 _ | IFS | as_nl) ;; #(
27790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27791 *) { eval $ac_var=; unset $ac_var;} ;;
27792 esac ;;
27793 esac
27794 done
27796 (set) 2>&1 |
27797 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27798 *${as_nl}ac_space=\ *)
27799 # `set' does not quote correctly, so add quotes: double-quote
27800 # substitution turns \\\\ into \\, and sed turns \\ into \.
27801 sed -n \
27802 "s/'/'\\\\''/g;
27803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27804 ;; #(
27806 # `set' quotes correctly as required by POSIX, so do not add quotes.
27807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27809 esac |
27810 sort
27812 sed '
27813 /^ac_cv_env_/b end
27814 t clear
27815 :clear
27816 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27817 t end
27818 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27819 :end' >>confcache
27820 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27821 if test -w "$cache_file"; then
27822 test "x$cache_file" != "x/dev/null" &&
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27824 $as_echo "$as_me: updating cache $cache_file" >&6;}
27825 cat confcache >$cache_file
27826 else
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27828 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27831 rm -f confcache
27833 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27834 # Let make expand exec_prefix.
27835 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27837 DEFS=-DHAVE_CONFIG_H
27839 ac_libobjs=
27840 ac_ltlibobjs=
27841 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27842 # 1. Remove the extension, and $U if already installed.
27843 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27844 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27845 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27846 # will be set to the directory where LIBOBJS objects are built.
27847 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27848 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27849 done
27850 LIBOBJS=$ac_libobjs
27852 LTLIBOBJS=$ac_ltlibobjs
27857 : ${CONFIG_STATUS=./config.status}
27858 ac_write_fail=0
27859 ac_clean_files_save=$ac_clean_files
27860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27862 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27863 as_write_fail=0
27864 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27865 #! $SHELL
27866 # Generated by $as_me.
27867 # Run this file to recreate the current configuration.
27868 # Compiler output produced by configure, useful for debugging
27869 # configure, is in config.log if it exists.
27871 debug=false
27872 ac_cs_recheck=false
27873 ac_cs_silent=false
27875 SHELL=\${CONFIG_SHELL-$SHELL}
27876 export SHELL
27877 _ASEOF
27878 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27879 ## -------------------- ##
27880 ## M4sh Initialization. ##
27881 ## -------------------- ##
27883 # Be more Bourne compatible
27884 DUALCASE=1; export DUALCASE # for MKS sh
27885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27886 emulate sh
27887 NULLCMD=:
27888 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27889 # is contrary to our usage. Disable this feature.
27890 alias -g '${1+"$@"}'='"$@"'
27891 setopt NO_GLOB_SUBST
27892 else
27893 case `(set -o) 2>/dev/null` in #(
27894 *posix*) :
27895 set -o posix ;; #(
27896 *) :
27898 esac
27902 as_nl='
27904 export as_nl
27905 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27906 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27909 # Prefer a ksh shell builtin over an external printf program on Solaris,
27910 # but without wasting forks for bash or zsh.
27911 if test -z "$BASH_VERSION$ZSH_VERSION" \
27912 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27913 as_echo='print -r --'
27914 as_echo_n='print -rn --'
27915 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27916 as_echo='printf %s\n'
27917 as_echo_n='printf %s'
27918 else
27919 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27920 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27921 as_echo_n='/usr/ucb/echo -n'
27922 else
27923 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27924 as_echo_n_body='eval
27925 arg=$1;
27926 case $arg in #(
27927 *"$as_nl"*)
27928 expr "X$arg" : "X\\(.*\\)$as_nl";
27929 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27930 esac;
27931 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27933 export as_echo_n_body
27934 as_echo_n='sh -c $as_echo_n_body as_echo'
27936 export as_echo_body
27937 as_echo='sh -c $as_echo_body as_echo'
27940 # The user is always right.
27941 if test "${PATH_SEPARATOR+set}" != set; then
27942 PATH_SEPARATOR=:
27943 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27944 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27945 PATH_SEPARATOR=';'
27950 # IFS
27951 # We need space, tab and new line, in precisely that order. Quoting is
27952 # there to prevent editors from complaining about space-tab.
27953 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27954 # splitting by setting IFS to empty value.)
27955 IFS=" "" $as_nl"
27957 # Find who we are. Look in the path if we contain no directory separator.
27958 case $0 in #((
27959 *[\\/]* ) as_myself=$0 ;;
27960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27961 for as_dir in $PATH
27963 IFS=$as_save_IFS
27964 test -z "$as_dir" && as_dir=.
27965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27966 done
27967 IFS=$as_save_IFS
27970 esac
27971 # We did not find ourselves, most probably we were run as `sh COMMAND'
27972 # in which case we are not to be found in the path.
27973 if test "x$as_myself" = x; then
27974 as_myself=$0
27976 if test ! -f "$as_myself"; then
27977 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27978 exit 1
27981 # Unset variables that we do not need and which cause bugs (e.g. in
27982 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27983 # suppresses any "Segmentation fault" message there. '((' could
27984 # trigger a bug in pdksh 5.2.14.
27985 for as_var in BASH_ENV ENV MAIL MAILPATH
27986 do eval test x\${$as_var+set} = xset \
27987 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27988 done
27989 PS1='$ '
27990 PS2='> '
27991 PS4='+ '
27993 # NLS nuisances.
27994 LC_ALL=C
27995 export LC_ALL
27996 LANGUAGE=C
27997 export LANGUAGE
27999 # CDPATH.
28000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28003 # as_fn_error ERROR [LINENO LOG_FD]
28004 # ---------------------------------
28005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28007 # script with status $?, using 1 if that was 0.
28008 as_fn_error ()
28010 as_status=$?; test $as_status -eq 0 && as_status=1
28011 if test "$3"; then
28012 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28013 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28015 $as_echo "$as_me: error: $1" >&2
28016 as_fn_exit $as_status
28017 } # as_fn_error
28020 # as_fn_set_status STATUS
28021 # -----------------------
28022 # Set $? to STATUS, without forking.
28023 as_fn_set_status ()
28025 return $1
28026 } # as_fn_set_status
28028 # as_fn_exit STATUS
28029 # -----------------
28030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28031 as_fn_exit ()
28033 set +e
28034 as_fn_set_status $1
28035 exit $1
28036 } # as_fn_exit
28038 # as_fn_unset VAR
28039 # ---------------
28040 # Portably unset VAR.
28041 as_fn_unset ()
28043 { eval $1=; unset $1;}
28045 as_unset=as_fn_unset
28046 # as_fn_append VAR VALUE
28047 # ----------------------
28048 # Append the text in VALUE to the end of the definition contained in VAR. Take
28049 # advantage of any shell optimizations that allow amortized linear growth over
28050 # repeated appends, instead of the typical quadratic growth present in naive
28051 # implementations.
28052 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28053 eval 'as_fn_append ()
28055 eval $1+=\$2
28057 else
28058 as_fn_append ()
28060 eval $1=\$$1\$2
28062 fi # as_fn_append
28064 # as_fn_arith ARG...
28065 # ------------------
28066 # Perform arithmetic evaluation on the ARGs, and store the result in the
28067 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28068 # must be portable across $(()) and expr.
28069 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28070 eval 'as_fn_arith ()
28072 as_val=$(( $* ))
28074 else
28075 as_fn_arith ()
28077 as_val=`expr "$@" || test $? -eq 1`
28079 fi # as_fn_arith
28082 if expr a : '\(a\)' >/dev/null 2>&1 &&
28083 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28084 as_expr=expr
28085 else
28086 as_expr=false
28089 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28090 as_basename=basename
28091 else
28092 as_basename=false
28095 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28096 as_dirname=dirname
28097 else
28098 as_dirname=false
28101 as_me=`$as_basename -- "$0" ||
28102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28103 X"$0" : 'X\(//\)$' \| \
28104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28105 $as_echo X/"$0" |
28106 sed '/^.*\/\([^/][^/]*\)\/*$/{
28107 s//\1/
28110 /^X\/\(\/\/\)$/{
28111 s//\1/
28114 /^X\/\(\/\).*/{
28115 s//\1/
28118 s/.*/./; q'`
28120 # Avoid depending upon Character Ranges.
28121 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28122 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28123 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28124 as_cr_digits='0123456789'
28125 as_cr_alnum=$as_cr_Letters$as_cr_digits
28127 ECHO_C= ECHO_N= ECHO_T=
28128 case `echo -n x` in #(((((
28129 -n*)
28130 case `echo 'xy\c'` in
28131 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28132 xy) ECHO_C='\c';;
28133 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28134 ECHO_T=' ';;
28135 esac;;
28137 ECHO_N='-n';;
28138 esac
28140 rm -f conf$$ conf$$.exe conf$$.file
28141 if test -d conf$$.dir; then
28142 rm -f conf$$.dir/conf$$.file
28143 else
28144 rm -f conf$$.dir
28145 mkdir conf$$.dir 2>/dev/null
28147 if (echo >conf$$.file) 2>/dev/null; then
28148 if ln -s conf$$.file conf$$ 2>/dev/null; then
28149 as_ln_s='ln -s'
28150 # ... but there are two gotchas:
28151 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28152 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28153 # In both cases, we have to default to `cp -p'.
28154 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28155 as_ln_s='cp -p'
28156 elif ln conf$$.file conf$$ 2>/dev/null; then
28157 as_ln_s=ln
28158 else
28159 as_ln_s='cp -p'
28161 else
28162 as_ln_s='cp -p'
28164 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28165 rmdir conf$$.dir 2>/dev/null
28168 # as_fn_mkdir_p
28169 # -------------
28170 # Create "$as_dir" as a directory, including parents if necessary.
28171 as_fn_mkdir_p ()
28174 case $as_dir in #(
28175 -*) as_dir=./$as_dir;;
28176 esac
28177 test -d "$as_dir" || eval $as_mkdir_p || {
28178 as_dirs=
28179 while :; do
28180 case $as_dir in #(
28181 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28182 *) as_qdir=$as_dir;;
28183 esac
28184 as_dirs="'$as_qdir' $as_dirs"
28185 as_dir=`$as_dirname -- "$as_dir" ||
28186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28187 X"$as_dir" : 'X\(//\)[^/]' \| \
28188 X"$as_dir" : 'X\(//\)$' \| \
28189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28190 $as_echo X"$as_dir" |
28191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28192 s//\1/
28195 /^X\(\/\/\)[^/].*/{
28196 s//\1/
28199 /^X\(\/\/\)$/{
28200 s//\1/
28203 /^X\(\/\).*/{
28204 s//\1/
28207 s/.*/./; q'`
28208 test -d "$as_dir" && break
28209 done
28210 test -z "$as_dirs" || eval "mkdir $as_dirs"
28211 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28214 } # as_fn_mkdir_p
28215 if mkdir -p . 2>/dev/null; then
28216 as_mkdir_p='mkdir -p "$as_dir"'
28217 else
28218 test -d ./-p && rmdir ./-p
28219 as_mkdir_p=false
28222 if test -x / >/dev/null 2>&1; then
28223 as_test_x='test -x'
28224 else
28225 if ls -dL / >/dev/null 2>&1; then
28226 as_ls_L_option=L
28227 else
28228 as_ls_L_option=
28230 as_test_x='
28231 eval sh -c '\''
28232 if test -d "$1"; then
28233 test -d "$1/.";
28234 else
28235 case $1 in #(
28236 -*)set "./$1";;
28237 esac;
28238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28239 ???[sx]*):;;*)false;;esac;fi
28240 '\'' sh
28243 as_executable_p=$as_test_x
28245 # Sed expression to map a string onto a valid CPP name.
28246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28248 # Sed expression to map a string onto a valid variable name.
28249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28252 exec 6>&1
28253 ## ----------------------------------- ##
28254 ## Main body of $CONFIG_STATUS script. ##
28255 ## ----------------------------------- ##
28256 _ASEOF
28257 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28260 # Save the log message, to keep $0 and so on meaningful, and to
28261 # report actual input values of CONFIG_FILES etc. instead of their
28262 # values after options handling.
28263 ac_log="
28264 This file was extended by $as_me, which was
28265 generated by GNU Autoconf 2.64. Invocation command line was
28267 CONFIG_FILES = $CONFIG_FILES
28268 CONFIG_HEADERS = $CONFIG_HEADERS
28269 CONFIG_LINKS = $CONFIG_LINKS
28270 CONFIG_COMMANDS = $CONFIG_COMMANDS
28271 $ $0 $@
28273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28276 _ACEOF
28278 case $ac_config_files in *"
28279 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28280 esac
28282 case $ac_config_headers in *"
28283 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28284 esac
28287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28288 # Files that config.status was made for.
28289 config_files="$ac_config_files"
28290 config_headers="$ac_config_headers"
28291 config_commands="$ac_config_commands"
28293 _ACEOF
28295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28296 ac_cs_usage="\
28297 \`$as_me' instantiates files and other configuration actions
28298 from templates according to the current configuration. Unless the files
28299 and actions are specified as TAGs, all are instantiated by default.
28301 Usage: $0 [OPTION]... [TAG]...
28303 -h, --help print this help, then exit
28304 -V, --version print version number and configuration settings, then exit
28305 -q, --quiet, --silent
28306 do not print progress messages
28307 -d, --debug don't remove temporary files
28308 --recheck update $as_me by reconfiguring in the same conditions
28309 --file=FILE[:TEMPLATE]
28310 instantiate the configuration file FILE
28311 --header=FILE[:TEMPLATE]
28312 instantiate the configuration header FILE
28314 Configuration files:
28315 $config_files
28317 Configuration headers:
28318 $config_headers
28320 Configuration commands:
28321 $config_commands
28323 Report bugs to the package provider."
28325 _ACEOF
28326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28327 ac_cs_version="\\
28328 config.status
28329 configured by $0, generated by GNU Autoconf 2.64,
28330 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28332 Copyright (C) 2009 Free Software Foundation, Inc.
28333 This config.status script is free software; the Free Software Foundation
28334 gives unlimited permission to copy, distribute and modify it."
28336 ac_pwd='$ac_pwd'
28337 srcdir='$srcdir'
28338 AWK='$AWK'
28339 test -n "\$AWK" || AWK=awk
28340 _ACEOF
28342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28343 # The default lists apply if the user does not specify any file.
28344 ac_need_defaults=:
28345 while test $# != 0
28347 case $1 in
28348 --*=*)
28349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28351 ac_shift=:
28354 ac_option=$1
28355 ac_optarg=$2
28356 ac_shift=shift
28358 esac
28360 case $ac_option in
28361 # Handling of the options.
28362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28363 ac_cs_recheck=: ;;
28364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28365 $as_echo "$ac_cs_version"; exit ;;
28366 --debug | --debu | --deb | --de | --d | -d )
28367 debug=: ;;
28368 --file | --fil | --fi | --f )
28369 $ac_shift
28370 case $ac_optarg in
28371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28372 esac
28373 as_fn_append CONFIG_FILES " '$ac_optarg'"
28374 ac_need_defaults=false;;
28375 --header | --heade | --head | --hea )
28376 $ac_shift
28377 case $ac_optarg in
28378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28379 esac
28380 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28381 ac_need_defaults=false;;
28382 --he | --h)
28383 # Conflict between --help and --header
28384 as_fn_error "ambiguous option: \`$1'
28385 Try \`$0 --help' for more information.";;
28386 --help | --hel | -h )
28387 $as_echo "$ac_cs_usage"; exit ;;
28388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28389 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28390 ac_cs_silent=: ;;
28392 # This is an error.
28393 -*) as_fn_error "unrecognized option: \`$1'
28394 Try \`$0 --help' for more information." ;;
28396 *) as_fn_append ac_config_targets " $1"
28397 ac_need_defaults=false ;;
28399 esac
28400 shift
28401 done
28403 ac_configure_extra_args=
28405 if $ac_cs_silent; then
28406 exec 6>/dev/null
28407 ac_configure_extra_args="$ac_configure_extra_args --silent"
28410 _ACEOF
28411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28412 if \$ac_cs_recheck; then
28413 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28414 shift
28415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28416 CONFIG_SHELL='$SHELL'
28417 export CONFIG_SHELL
28418 exec "\$@"
28421 _ACEOF
28422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28423 exec 5>>config.log
28425 echo
28426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28427 ## Running $as_me. ##
28428 _ASBOX
28429 $as_echo "$ac_log"
28430 } >&5
28432 _ACEOF
28433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28435 # INIT-COMMANDS
28437 subdirs='$subdirs'
28439 _ACEOF
28441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28443 # Handling of arguments.
28444 for ac_config_target in $ac_config_targets
28446 case $ac_config_target in
28447 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28448 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28449 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28450 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28451 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28452 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28454 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28455 esac
28456 done
28459 # If the user did not use the arguments to specify the items to instantiate,
28460 # then the envvar interface is used. Set only those that are not.
28461 # We use the long form for the default assignment because of an extremely
28462 # bizarre bug on SunOS 4.1.3.
28463 if $ac_need_defaults; then
28464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28469 # Have a temporary directory for convenience. Make it in the build tree
28470 # simply because there is no reason against having it here, and in addition,
28471 # creating and moving files from /tmp can sometimes cause problems.
28472 # Hook for its removal unless debugging.
28473 # Note that there is a small window in which the directory will not be cleaned:
28474 # after its creation but before its name has been assigned to `$tmp'.
28475 $debug ||
28477 tmp=
28478 trap 'exit_status=$?
28479 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28481 trap 'as_fn_exit 1' 1 2 13 15
28483 # Create a (secure) tmp directory for tmp files.
28486 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28487 test -n "$tmp" && test -d "$tmp"
28488 } ||
28490 tmp=./conf$$-$RANDOM
28491 (umask 077 && mkdir "$tmp")
28492 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28494 # Set up the scripts for CONFIG_FILES section.
28495 # No need to generate them if there are no CONFIG_FILES.
28496 # This happens for instance with `./config.status config.h'.
28497 if test -n "$CONFIG_FILES"; then
28499 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28500 ac_cs_awk_getline=:
28501 ac_cs_awk_pipe_init=
28502 ac_cs_awk_read_file='
28503 while ((getline aline < (F[key])) > 0)
28504 print(aline)
28505 close(F[key])'
28506 ac_cs_awk_pipe_fini=
28507 else
28508 ac_cs_awk_getline=false
28509 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28510 ac_cs_awk_read_file='
28511 print "|#_!!_#|"
28512 print "cat " F[key] " &&"
28513 '$ac_cs_awk_pipe_init
28514 # The final `:' finishes the AND list.
28515 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28517 ac_cr=`echo X | tr X '\015'`
28518 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28519 # But we know of no other shell where ac_cr would be empty at this
28520 # point, so we can use a bashism as a fallback.
28521 if test "x$ac_cr" = x; then
28522 eval ac_cr=\$\'\\r\'
28524 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28525 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28526 ac_cs_awk_cr='\r'
28527 else
28528 ac_cs_awk_cr=$ac_cr
28531 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28532 _ACEOF
28534 # Create commands to substitute file output variables.
28536 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28537 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28538 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28539 echo "_ACAWK" &&
28540 echo "_ACEOF"
28541 } >conf$$files.sh &&
28542 . ./conf$$files.sh ||
28543 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28544 rm -f conf$$files.sh
28547 echo "cat >conf$$subs.awk <<_ACEOF" &&
28548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28549 echo "_ACEOF"
28550 } >conf$$subs.sh ||
28551 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28553 ac_delim='%!_!# '
28554 for ac_last_try in false false false false false :; do
28555 . ./conf$$subs.sh ||
28556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28558 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28559 if test $ac_delim_n = $ac_delim_num; then
28560 break
28561 elif $ac_last_try; then
28562 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28563 else
28564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28566 done
28567 rm -f conf$$subs.sh
28569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28570 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28571 _ACEOF
28572 sed -n '
28574 s/^/S["/; s/!.*/"]=/
28577 s/^[^!]*!//
28578 :repl
28579 t repl
28580 s/'"$ac_delim"'$//
28581 t delim
28584 s/\(.\{148\}\).*/\1/
28585 t more1
28586 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28589 b repl
28590 :more1
28591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28594 s/.\{148\}//
28595 t nl
28596 :delim
28598 s/\(.\{148\}\).*/\1/
28599 t more2
28600 s/["\\]/\\&/g; s/^/"/; s/$/"/
28603 :more2
28604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28607 s/.\{148\}//
28608 t delim
28609 ' <conf$$subs.awk | sed '
28610 /^[^""]/{
28612 s/\n//
28614 ' >>$CONFIG_STATUS || ac_write_fail=1
28615 rm -f conf$$subs.awk
28616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28617 _ACAWK
28618 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28619 for (key in S) S_is_set[key] = 1
28620 FS = "\a"
28621 \$ac_cs_awk_pipe_init
28624 line = $ 0
28625 nfields = split(line, field, "@")
28626 substed = 0
28627 len = length(field[1])
28628 for (i = 2; i < nfields; i++) {
28629 key = field[i]
28630 keylen = length(key)
28631 if (S_is_set[key]) {
28632 value = S[key]
28633 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28634 len += length(value) + length(field[++i])
28635 substed = 1
28636 } else
28637 len += 1 + keylen
28639 if (nfields == 3 && !substed) {
28640 key = field[2]
28641 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28642 \$ac_cs_awk_read_file
28643 next
28646 print line
28648 \$ac_cs_awk_pipe_fini
28649 _ACAWK
28650 _ACEOF
28651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28652 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28653 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28654 else
28656 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28657 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28658 _ACEOF
28660 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28661 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28662 # trailing colons and then remove the whole line if VPATH becomes empty
28663 # (actually we leave an empty line to preserve line numbers).
28664 if test "x$srcdir" = x.; then
28665 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28666 s/:*\$(srcdir):*/:/
28667 s/:*\${srcdir}:*/:/
28668 s/:*@srcdir@:*/:/
28669 s/^\([^=]*=[ ]*\):*/\1/
28670 s/:*$//
28671 s/^[^=]*=[ ]*$//
28675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28676 fi # test -n "$CONFIG_FILES"
28678 # Set up the scripts for CONFIG_HEADERS section.
28679 # No need to generate them if there are no CONFIG_HEADERS.
28680 # This happens for instance with `./config.status Makefile'.
28681 if test -n "$CONFIG_HEADERS"; then
28682 cat >"$tmp/defines.awk" <<\_ACAWK ||
28683 BEGIN {
28684 _ACEOF
28686 # Transform confdefs.h into an awk script `defines.awk', embedded as
28687 # here-document in config.status, that substitutes the proper values into
28688 # config.h.in to produce config.h.
28690 # Create a delimiter string that does not exist in confdefs.h, to ease
28691 # handling of long lines.
28692 ac_delim='%!_!# '
28693 for ac_last_try in false false :; do
28694 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28695 if test -z "$ac_t"; then
28696 break
28697 elif $ac_last_try; then
28698 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28699 else
28700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28702 done
28704 # For the awk script, D is an array of macro values keyed by name,
28705 # likewise P contains macro parameters if any. Preserve backslash
28706 # newline sequences.
28708 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28709 sed -n '
28710 s/.\{148\}/&'"$ac_delim"'/g
28711 t rset
28712 :rset
28713 s/^[ ]*#[ ]*define[ ][ ]*/ /
28714 t def
28716 :def
28717 s/\\$//
28718 t bsnl
28719 s/["\\]/\\&/g
28720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28721 D["\1"]=" \3"/p
28722 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28724 :bsnl
28725 s/["\\]/\\&/g
28726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28727 D["\1"]=" \3\\\\\\n"\\/p
28728 t cont
28729 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28730 t cont
28732 :cont
28734 s/.\{148\}/&'"$ac_delim"'/g
28735 t clear
28736 :clear
28737 s/\\$//
28738 t bsnlc
28739 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28741 :bsnlc
28742 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28743 b cont
28744 ' <confdefs.h | sed '
28745 s/'"$ac_delim"'/"\\\
28746 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28749 for (key in D) D_is_set[key] = 1
28750 FS = "\a"
28752 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28753 line = \$ 0
28754 split(line, arg, " ")
28755 if (arg[1] == "#") {
28756 defundef = arg[2]
28757 mac1 = arg[3]
28758 } else {
28759 defundef = substr(arg[1], 2)
28760 mac1 = arg[2]
28762 split(mac1, mac2, "(") #)
28763 macro = mac2[1]
28764 prefix = substr(line, 1, index(line, defundef) - 1)
28765 if (D_is_set[macro]) {
28766 # Preserve the white space surrounding the "#".
28767 print prefix "define", macro P[macro] D[macro]
28768 next
28769 } else {
28770 # Replace #undef with comments. This is necessary, for example,
28771 # in the case of _POSIX_SOURCE, which is predefined and required
28772 # on some systems where configure will not decide to define it.
28773 if (defundef == "undef") {
28774 print "/*", prefix defundef, macro, "*/"
28775 next
28779 { print }
28780 _ACAWK
28781 _ACEOF
28782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28783 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28784 fi # test -n "$CONFIG_HEADERS"
28787 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28788 shift
28789 for ac_tag
28791 case $ac_tag in
28792 :[FHLC]) ac_mode=$ac_tag; continue;;
28793 esac
28794 case $ac_mode$ac_tag in
28795 :[FHL]*:*);;
28796 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28797 :[FH]-) ac_tag=-:-;;
28798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28799 esac
28800 ac_save_IFS=$IFS
28801 IFS=:
28802 set x $ac_tag
28803 IFS=$ac_save_IFS
28804 shift
28805 ac_file=$1
28806 shift
28808 case $ac_mode in
28809 :L) ac_source=$1;;
28810 :[FH])
28811 ac_file_inputs=
28812 for ac_f
28814 case $ac_f in
28815 -) ac_f="$tmp/stdin";;
28816 *) # Look for the file first in the build tree, then in the source tree
28817 # (if the path is not absolute). The absolute path cannot be DOS-style,
28818 # because $ac_f cannot contain `:'.
28819 test -f "$ac_f" ||
28820 case $ac_f in
28821 [\\/$]*) false;;
28822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28823 esac ||
28824 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28825 esac
28826 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28827 as_fn_append ac_file_inputs " '$ac_f'"
28828 done
28830 # Let's still pretend it is `configure' which instantiates (i.e., don't
28831 # use $as_me), people would be surprised to read:
28832 # /* config.h. Generated by config.status. */
28833 configure_input='Generated from '`
28834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28835 `' by configure.'
28836 if test x"$ac_file" != x-; then
28837 configure_input="$ac_file. $configure_input"
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28839 $as_echo "$as_me: creating $ac_file" >&6;}
28841 # Neutralize special characters interpreted by sed in replacement strings.
28842 case $configure_input in #(
28843 *\&* | *\|* | *\\* )
28844 ac_sed_conf_input=`$as_echo "$configure_input" |
28845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28846 *) ac_sed_conf_input=$configure_input;;
28847 esac
28849 case $ac_tag in
28850 *:-:* | *:-) cat >"$tmp/stdin" \
28851 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28852 esac
28854 esac
28856 ac_dir=`$as_dirname -- "$ac_file" ||
28857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28858 X"$ac_file" : 'X\(//\)[^/]' \| \
28859 X"$ac_file" : 'X\(//\)$' \| \
28860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28861 $as_echo X"$ac_file" |
28862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28863 s//\1/
28866 /^X\(\/\/\)[^/].*/{
28867 s//\1/
28870 /^X\(\/\/\)$/{
28871 s//\1/
28874 /^X\(\/\).*/{
28875 s//\1/
28878 s/.*/./; q'`
28879 as_dir="$ac_dir"; as_fn_mkdir_p
28880 ac_builddir=.
28882 case "$ac_dir" in
28883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28885 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28886 # A ".." for each directory in $ac_dir_suffix.
28887 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28888 case $ac_top_builddir_sub in
28889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28891 esac ;;
28892 esac
28893 ac_abs_top_builddir=$ac_pwd
28894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28895 # for backward compatibility:
28896 ac_top_builddir=$ac_top_build_prefix
28898 case $srcdir in
28899 .) # We are building in place.
28900 ac_srcdir=.
28901 ac_top_srcdir=$ac_top_builddir_sub
28902 ac_abs_top_srcdir=$ac_pwd ;;
28903 [\\/]* | ?:[\\/]* ) # Absolute name.
28904 ac_srcdir=$srcdir$ac_dir_suffix;
28905 ac_top_srcdir=$srcdir
28906 ac_abs_top_srcdir=$srcdir ;;
28907 *) # Relative name.
28908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28909 ac_top_srcdir=$ac_top_build_prefix$srcdir
28910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28911 esac
28912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28915 case $ac_mode in
28918 # CONFIG_FILE
28921 _ACEOF
28923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28924 # If the template does not know about datarootdir, expand it.
28925 # FIXME: This hack should be removed a few years after 2.60.
28926 ac_datarootdir_hack=; ac_datarootdir_seen=
28927 ac_sed_dataroot='
28928 /datarootdir/ {
28932 /@datadir@/p
28933 /@docdir@/p
28934 /@infodir@/p
28935 /@localedir@/p
28936 /@mandir@/p'
28937 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28938 *datarootdir*) ac_datarootdir_seen=yes;;
28939 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28942 _ACEOF
28943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28944 ac_datarootdir_hack='
28945 s&@datadir@&$datadir&g
28946 s&@docdir@&$docdir&g
28947 s&@infodir@&$infodir&g
28948 s&@localedir@&$localedir&g
28949 s&@mandir@&$mandir&g
28950 s&\\\${datarootdir}&$datarootdir&g' ;;
28951 esac
28952 _ACEOF
28954 # Neutralize VPATH when `$srcdir' = `.'.
28955 # Shell code in configure.ac might set extrasub.
28956 # FIXME: do we really want to maintain this feature?
28957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28958 ac_sed_extra="$ac_vpsub
28959 $extrasub
28960 _ACEOF
28961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28964 s|@configure_input@|$ac_sed_conf_input|;t t
28965 s&@top_builddir@&$ac_top_builddir_sub&;t t
28966 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28967 s&@srcdir@&$ac_srcdir&;t t
28968 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28969 s&@top_srcdir@&$ac_top_srcdir&;t t
28970 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28971 s&@builddir@&$ac_builddir&;t t
28972 s&@abs_builddir@&$ac_abs_builddir&;t t
28973 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28974 $ac_datarootdir_hack
28976 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28977 if $ac_cs_awk_getline; then
28978 $AWK -f "$tmp/subs.awk"
28979 else
28980 $AWK -f "$tmp/subs.awk" | $SHELL
28981 fi >$tmp/out \
28982 || as_fn_error "could not create $ac_file" "$LINENO" 5
28984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28985 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28988 which seems to be undefined. Please make sure it is defined." >&5
28989 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28990 which seems to be undefined. Please make sure it is defined." >&2;}
28992 rm -f "$tmp/stdin"
28993 case $ac_file in
28994 -) cat "$tmp/out" && rm -f "$tmp/out";;
28995 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28996 esac \
28997 || as_fn_error "could not create $ac_file" "$LINENO" 5
29001 # CONFIG_HEADER
29003 if test x"$ac_file" != x-; then
29005 $as_echo "/* $configure_input */" \
29006 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29007 } >"$tmp/config.h" \
29008 || as_fn_error "could not create $ac_file" "$LINENO" 5
29009 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29011 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29012 else
29013 rm -f "$ac_file"
29014 mv "$tmp/config.h" "$ac_file" \
29015 || as_fn_error "could not create $ac_file" "$LINENO" 5
29017 else
29018 $as_echo "/* $configure_input */" \
29019 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29020 || as_fn_error "could not create -" "$LINENO" 5
29024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29025 $as_echo "$as_me: executing $ac_file commands" >&6;}
29027 esac
29030 case $ac_file$ac_mode in
29031 "as":F) chmod +x as ;;
29032 "collect-ld":F) chmod +x collect-ld ;;
29033 "nm":F) chmod +x nm ;;
29034 "default":C)
29035 case ${CONFIG_HEADERS} in
29036 *auto-host.h:config.in*)
29037 echo > cstamp-h ;;
29038 esac
29039 # Make sure all the subdirs exist.
29040 for d in $subdirs doc build common c-family
29042 test -d $d || mkdir $d
29043 done
29046 esac
29047 done # for ac_tag
29050 as_fn_exit 0
29051 _ACEOF
29052 ac_clean_files=$ac_clean_files_save
29054 test $ac_write_fail = 0 ||
29055 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29058 # configure is writing to config.log, and then calls config.status.
29059 # config.status does its own redirection, appending to config.log.
29060 # Unfortunately, on DOS this fails, as config.log is still kept open
29061 # by configure, so config.status won't be able to write to it; its
29062 # output is simply discarded. So we exec the FD to /dev/null,
29063 # effectively closing config.log, so it can be properly (re)opened and
29064 # appended to by config.status. When coming back to configure, we
29065 # need to make the FD available again.
29066 if test "$no_create" != yes; then
29067 ac_cs_success=:
29068 ac_config_status_args=
29069 test "$silent" = yes &&
29070 ac_config_status_args="$ac_config_status_args --quiet"
29071 exec 5>/dev/null
29072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29073 exec 5>>config.log
29074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29075 # would make configure fail if this is the last instruction.
29076 $ac_cs_success || as_fn_exit $?
29078 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29080 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}