2014-05-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / configure
blob3793681d99c66f4b2e9b16c35b2f31262be41e90
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
699 FGREP
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 with_float
768 with_cpu
769 enable_multiarch
770 enable_multilib
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREECHECKING
776 TREEBROWSER
777 nocommon_flag
778 noexception_flags
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 with_stabs
879 enable_multilib
880 enable_multiarch
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_native_system_header_dir
890 with_build_sysroot
891 with_sysroot
892 with_specs
893 with_pkgversion
894 with_bugurl
895 enable_languages
896 with_multilib_list
897 enable_rpath
898 with_libiconv_prefix
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_initfini_array
912 enable_comdat
913 enable_gnu_unique_object
914 enable_linker_build_id
915 with_long_double_128
916 with_gc
917 with_system_zlib
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
920 enable_plugin
921 enable_libquadmath_support
922 with_linker_hash_style
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
933 CXXFLAGS
936 CXXCPP
937 GMPLIBS
938 GMPINC
939 ISLLIBS
940 ISLINC
941 CLOOGLIBS
942 CLOOGINC'
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
993 ac_prev=
994 ac_dashdash=
995 for ac_option
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1013 ac_dashdash=yes ;;
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1277 -with-* | --with-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337 esac
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 esac
1350 done
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error "missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 esac
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1373 case $ac_val in
1374 */ )
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1377 esac
1378 # Be sure to have absolute directory names.
1379 case $ac_val in
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 esac
1383 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1539 cat <<\_ACEOF
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 --target=TARGET configure for building compilers for TARGET [HOST]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-generated-files-in-srcdir
1562 put copies of generated files in source dir intended
1563 for creating source tarballs for users without
1564 texinfo bison or flex
1565 --disable-largefile omit support for large files
1566 --enable-werror-always enable -Werror despite compiler version
1567 --enable-checking[=LIST]
1568 enable expensive run-time checks. With LIST, enable
1569 only specific categories of checks. Categories are:
1570 yes,no,all,none,release. Flags are:
1571 assert,df,fold,gc,gcac,gimple,misc,
1572 rtlflag,rtl,runtime,tree,valgrind,types
1573 --enable-coverage[=LEVEL]
1574 enable compiler's code coverage collection. Use to
1575 measure compiler performance and locate unused parts
1576 of the compiler. With LEVEL, specify optimization.
1577 Values are opt, noopt, default is noopt
1578 --enable-gather-detailed-mem-stats
1579 enable detailed memory allocation stats gathering
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-multiarch enable support for multiarch paths
1582 --enable-__cxa_atexit enable __cxa_atexit for C++
1583 --enable-decimal-float={no,yes,bid,dpd}
1584 enable decimal float extension to C. Selecting 'bid'
1585 or 'dpd' choses which decimal floating point format
1586 to use
1587 --enable-fixed-point enable fixed-point arithmetic extension to C
1588 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 package
1590 --enable-tls enable or disable generation of tls code overriding
1591 the assembler check for tls support
1592 --enable-objc-gc enable the use of Boehm's garbage collector with the
1593 GNU Objective-C runtime
1594 --disable-shared don't provide a shared libgcc
1595 --enable-languages=LIST specify which front-ends to build
1596 --disable-rpath do not hardcode runtime library paths
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1607 on Windows hosts
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1611 of the registry key
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1619 glibc systems
1620 --enable-initfini-array use .init_array/.fini_array sections
1621 --enable-comdat enable COMDAT group support
1622 --enable-gnu-unique-object
1623 enable the use of the @gnu_unique_object ELF
1624 extension on glibc systems
1625 --enable-linker-build-id
1626 compiler will always pass --build-id to linker
1627 --enable-maintainer-mode
1628 enable make rules and dependencies not useful (and
1629 sometimes confusing) to the casual installer
1630 --enable-version-specific-runtime-libs
1631 specify that runtime libraries should be installed
1632 in a compiler-specific directory
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-build-sysroot=sysroot
1658 use sysroot as the system root during the build
1659 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1660 --with-specs=SPECS add SPECS to driver command-line processing
1661 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1662 --with-bugurl=URL Direct users to URL to report a bug
1663 --with-multilib-list select multilibs (SH and x86-64 only)
1664 --with-gnu-ld assume the C compiler uses GNU ld default=no
1665 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1666 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1667 --with-pic try to use only PIC/non-PIC objects [default=use
1668 both]
1669 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1670 --with-plugin-ld=[ARG] specify the plugin linker
1671 --with-long-double-128 use 128-bit long double by default
1672 --with-gc={page,zone} this option is not supported anymore. It used to
1673 choose the garbage collection mechanism to use with
1674 the compiler
1675 --with-system-zlib use installed libz
1676 --with-linker-hash-style={sysv,gnu,both}
1677 specify the linker hash style
1679 Some influential environment variables:
1680 CC C compiler command
1681 CFLAGS C compiler flags
1682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1683 nonstandard directory <lib dir>
1684 LIBS libraries to pass to the linker, e.g. -l<library>
1685 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686 you have headers in a nonstandard directory <include dir>
1687 CXX C++ compiler command
1688 CXXFLAGS C++ compiler flags
1689 CPP C preprocessor
1690 CXXCPP C++ preprocessor
1691 GMPLIBS How to link GMP
1692 GMPINC How to find GMP include files
1693 ISLLIBS How to link ISL
1694 ISLINC How to find ISL include files
1695 CLOOGLIBS How to link CLOOG
1696 CLOOGINC How to find CLOOG include files
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to the package provider.
1702 _ACEOF
1703 ac_status=$?
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 continue
1712 ac_builddir=.
1714 case "$ac_dir" in
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723 esac ;;
1724 esac
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1730 case $srcdir in
1731 .) # We are building in place.
1732 ac_srcdir=.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1739 *) # Relative name.
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 esac
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1754 else
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756 fi || ac_status=$?
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1758 done
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1763 cat <<\_ACEOF
1764 configure
1765 generated by GNU Autoconf 2.64
1767 Copyright (C) 2009 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1770 _ACEOF
1771 exit
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.$ac_objext; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 return $ac_retval
1814 } # ac_fn_c_try_compile
1816 # ac_fn_cxx_try_compile LINENO
1817 # ----------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1852 } # ac_fn_cxx_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } >/dev/null && {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_c_try_cpp
1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894 # the include files in INCLUDES and setting the cache variable VAR
1895 # accordingly.
1896 ac_fn_c_check_header_mongrel ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 else
1909 # Is the header compilable?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911 $as_echo_n "checking $2 usability... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 ac_header_compiler=yes
1919 else
1920 ac_header_compiler=no
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924 $as_echo "$ac_header_compiler" >&6; }
1926 # Is the header present?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928 $as_echo_n "checking $2 presence... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_cpp "$LINENO"; then :
1934 ac_header_preproc=yes
1935 else
1936 ac_header_preproc=no
1938 rm -f conftest.err conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940 $as_echo "$ac_header_preproc" >&6; }
1942 # So? What about this header?
1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944 yes:no: )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 no:yes:* )
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1954 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1958 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 esac
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 eval "$3=\$ac_header_compiler"
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 } # ac_fn_c_check_header_mongrel
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1982 ac_fn_c_try_run ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>&5
1993 ac_status=$?
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996 { { case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_try") 2>&5
2003 ac_status=$?
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; }; }; then :
2006 ac_retval=0
2007 else
2008 $as_echo "$as_me: program exited with status $ac_status" >&5
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 ac_retval=$ac_status
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 return $ac_retval
2018 } # ac_fn_c_try_run
2020 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2021 # -------------------------------------------------------
2022 # Tests whether HEADER exists and can be compiled using the include files in
2023 # INCLUDES, setting the cache variable VAR accordingly.
2024 ac_fn_c_check_header_compile ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$3=yes"
2039 else
2040 eval "$3=no"
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_check_header_compile
2051 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052 # --------------------------------------------
2053 # Tries to find the compile-time value of EXPR in a program that includes
2054 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 # computed
2056 ac_fn_c_compute_int ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if test "$cross_compiling" = yes; then
2060 # Depending upon the size, compute the lo and hi bounds.
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 main ()
2067 static int test_array [1 - 2 * !(($2) >= 0)];
2068 test_array [0] = 0
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_lo=0 ac_mid=0
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 test_array [0] = 0
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_hi=$ac_mid; break
2092 else
2093 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2094 if test $ac_lo -le $ac_mid; then
2095 ac_lo= ac_hi=
2096 break
2098 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 done
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 static int test_array [1 - 2 * !(($2) < 0)];
2110 test_array [0] = 0
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=-1 ac_mid=-1
2118 while :; do
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=$ac_mid; break
2134 else
2135 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136 if test $ac_mid -le $ac_hi; then
2137 ac_lo= ac_hi=
2138 break
2140 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144 else
2145 ac_lo= ac_hi=
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2157 main ()
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 test_array [0] = 0
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_hi=$ac_mid
2168 else
2169 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 case $ac_lo in #((
2174 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2175 '') ac_retval=1 ;;
2176 esac
2177 else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2181 static long int longval () { return $2; }
2182 static unsigned long int ulongval () { return $2; }
2183 #include <stdio.h>
2184 #include <stdlib.h>
2186 main ()
2189 FILE *f = fopen ("conftest.val", "w");
2190 if (! f)
2191 return 1;
2192 if (($2) < 0)
2194 long int i = longval ();
2195 if (i != ($2))
2196 return 1;
2197 fprintf (f, "%ld", i);
2199 else
2201 unsigned long int i = ulongval ();
2202 if (i != ($2))
2203 return 1;
2204 fprintf (f, "%lu", i);
2206 /* Do not output a trailing newline, as this causes \r\n confusion
2207 on some platforms. */
2208 return ferror (f) || fclose (f) != 0;
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_run "$LINENO"; then :
2215 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2216 else
2217 ac_retval=1
2219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2220 conftest.$ac_objext conftest.beam conftest.$ac_ext
2221 rm -f conftest.val
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225 return $ac_retval
2227 } # ac_fn_c_compute_int
2229 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2230 # -------------------------------------------
2231 # Tests whether TYPE exists after having included INCLUDES, setting cache
2232 # variable VAR accordingly.
2233 ac_fn_c_check_type ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 eval "$3=no"
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 if (sizeof ($2))
2249 return 0;
2251 return 0;
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2259 main ()
2261 if (sizeof (($2)))
2262 return 0;
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2269 else
2270 eval "$3=yes"
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281 } # ac_fn_c_check_type
2283 # ac_fn_c_find_intX_t LINENO BITS VAR
2284 # -----------------------------------
2285 # Finds a signed integer type with width BITS, setting cache variable VAR
2286 # accordingly.
2287 ac_fn_c_find_intX_t ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2291 $as_echo_n "checking for int$2_t... " >&6; }
2292 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 eval "$3=no"
2296 for ac_type in int$2_t 'int' 'long int' \
2297 'long long int' 'short int' 'signed char'; do
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $ac_includes_default
2302 main ()
2304 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 test_array [0] = 0
2308 return 0;
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $ac_includes_default
2316 main ()
2318 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2319 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 test_array [0] = 0
2323 return 0;
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2328 else
2329 case $ac_type in #(
2330 int$2_t) :
2331 eval "$3=yes" ;; #(
2332 *) :
2333 eval "$3=\$ac_type" ;;
2334 esac
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 eval as_val=\$$3
2340 if test "x$as_val" = x""no; then :
2342 else
2343 break
2345 done
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 } # ac_fn_c_find_intX_t
2354 # ac_fn_c_try_link LINENO
2355 # -----------------------
2356 # Try to link conftest.$ac_ext, and return whether this succeeded.
2357 ac_fn_c_try_link ()
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext conftest$ac_exeext
2361 if { { ac_try="$ac_link"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest$ac_exeext && {
2380 test "$cross_compiling" = yes ||
2381 $as_test_x conftest$ac_exeext
2382 }; then :
2383 ac_retval=0
2384 else
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 ac_retval=1
2390 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2391 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2392 # interfere with the next link command; also delete a directory that is
2393 # left behind by Apple's compiler. We do this before executing the actions.
2394 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 return $ac_retval
2398 } # ac_fn_c_try_link
2400 # ac_fn_c_find_uintX_t LINENO BITS VAR
2401 # ------------------------------------
2402 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2403 # accordingly.
2404 ac_fn_c_find_uintX_t ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2408 $as_echo_n "checking for uint$2_t... " >&6; }
2409 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 eval "$3=no"
2413 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2414 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $ac_includes_default
2419 main ()
2421 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 test_array [0] = 0
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 case $ac_type in #(
2430 uint$2_t) :
2431 eval "$3=yes" ;; #(
2432 *) :
2433 eval "$3=\$ac_type" ;;
2434 esac
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval as_val=\$$3
2438 if test "x$as_val" = x""no; then :
2440 else
2441 break
2443 done
2445 eval ac_res=\$$3
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 } # ac_fn_c_find_uintX_t
2452 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2453 # ----------------------------------------------
2454 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2455 ac_fn_c_check_header_preproc ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2465 #include <$2>
2466 _ACEOF
2467 if ac_fn_c_try_cpp "$LINENO"; then :
2468 eval "$3=yes"
2469 else
2470 eval "$3=no"
2472 rm -f conftest.err conftest.$ac_ext
2474 eval ac_res=\$$3
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_c_check_header_preproc
2481 # ac_fn_cxx_try_cpp LINENO
2482 # ------------------------
2483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2484 ac_fn_cxx_try_cpp ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 if { { ac_try="$ac_cpp conftest.$ac_ext"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2495 ac_status=$?
2496 if test -s conftest.err; then
2497 grep -v '^ *+' conftest.err >conftest.er1
2498 cat conftest.er1 >&5
2499 mv -f conftest.er1 conftest.err
2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 test $ac_status = 0; } >/dev/null && {
2503 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2504 test ! -s conftest.err
2505 }; then :
2506 ac_retval=0
2507 else
2508 $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 ac_retval=1
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514 return $ac_retval
2516 } # ac_fn_cxx_try_cpp
2518 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2519 # ------------------------------------------------
2520 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2521 ac_fn_cxx_check_header_preproc ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 #include <$2>
2532 _ACEOF
2533 if ac_fn_cxx_try_cpp "$LINENO"; then :
2534 eval "$3=yes"
2535 else
2536 eval "$3=no"
2538 rm -f conftest.err conftest.$ac_ext
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_cxx_check_header_preproc
2547 # ac_fn_c_check_func LINENO FUNC VAR
2548 # ----------------------------------
2549 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2550 ac_fn_c_check_func ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2562 #define $2 innocuous_$2
2564 /* System header to define __stub macros and hopefully few prototypes,
2565 which can conflict with char $2 (); below.
2566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2567 <limits.h> exists even on freestanding compilers. */
2569 #ifdef __STDC__
2570 # include <limits.h>
2571 #else
2572 # include <assert.h>
2573 #endif
2575 #undef $2
2577 /* Override any GCC internal prototype to avoid an error.
2578 Use char because int might match the return type of a GCC
2579 builtin and then its argument prototype would still apply. */
2580 #ifdef __cplusplus
2581 extern "C"
2582 #endif
2583 char $2 ();
2584 /* The GNU C library defines this for functions which it implements
2585 to always fail with ENOSYS. Some functions are actually named
2586 something starting with __ and the normal name is an alias. */
2587 #if defined __stub_$2 || defined __stub___$2
2588 choke me
2589 #endif
2592 main ()
2594 return $2 ();
2596 return 0;
2598 _ACEOF
2599 if ac_fn_c_try_link "$LINENO"; then :
2600 eval "$3=yes"
2601 else
2602 eval "$3=no"
2604 rm -f core conftest.err conftest.$ac_objext \
2605 conftest$ac_exeext conftest.$ac_ext
2607 eval ac_res=\$$3
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_c_check_func
2614 # ac_fn_cxx_try_link LINENO
2615 # -------------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_cxx_try_link ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { { ac_try="$ac_link"
2622 case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2629 ac_status=$?
2630 if test -s conftest.err; then
2631 grep -v '^ *+' conftest.err >conftest.er1
2632 cat conftest.er1 >&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_cxx_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 $as_test_x conftest$ac_exeext
2642 }; then :
2643 ac_retval=0
2644 else
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 ac_retval=1
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 return $ac_retval
2658 } # ac_fn_cxx_try_link
2659 cat >config.log <<_ACEOF
2660 This file contains any messages produced by compilers while
2661 running configure, to aid debugging if configure makes a mistake.
2663 It was created by $as_me, which was
2664 generated by GNU Autoconf 2.64. Invocation command line was
2666 $ $0 $@
2668 _ACEOF
2669 exec 5>>config.log
2671 cat <<_ASUNAME
2672 ## --------- ##
2673 ## Platform. ##
2674 ## --------- ##
2676 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2677 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2678 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2679 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2680 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2682 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2683 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2685 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2686 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2687 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2688 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2689 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2690 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2691 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2693 _ASUNAME
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 $as_echo "PATH: $as_dir"
2701 done
2702 IFS=$as_save_IFS
2704 } >&5
2706 cat >&5 <<_ACEOF
2709 ## ----------- ##
2710 ## Core tests. ##
2711 ## ----------- ##
2713 _ACEOF
2716 # Keep a trace of the command line.
2717 # Strip out --no-create and --no-recursion so they do not pile up.
2718 # Strip out --silent because we don't want to record it for future runs.
2719 # Also quote any args containing shell meta-characters.
2720 # Make two passes to allow for proper duplicate-argument suppression.
2721 ac_configure_args=
2722 ac_configure_args0=
2723 ac_configure_args1=
2724 ac_must_keep_next=false
2725 for ac_pass in 1 2
2727 for ac_arg
2729 case $ac_arg in
2730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732 | -silent | --silent | --silen | --sile | --sil)
2733 continue ;;
2734 *\'*)
2735 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 esac
2737 case $ac_pass in
2738 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2740 as_fn_append ac_configure_args1 " '$ac_arg'"
2741 if test $ac_must_keep_next = true; then
2742 ac_must_keep_next=false # Got value, back to normal.
2743 else
2744 case $ac_arg in
2745 *=* | --config-cache | -C | -disable-* | --disable-* \
2746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748 | -with-* | --with-* | -without-* | --without-* | --x)
2749 case "$ac_configure_args0 " in
2750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751 esac
2753 -* ) ac_must_keep_next=true ;;
2754 esac
2756 as_fn_append ac_configure_args " '$ac_arg'"
2758 esac
2759 done
2760 done
2761 { ac_configure_args0=; unset ac_configure_args0;}
2762 { ac_configure_args1=; unset ac_configure_args1;}
2764 # When interrupted or exit'd, cleanup temporary files, and complete
2765 # config.log. We remove comments because anyway the quotes in there
2766 # would cause problems or look ugly.
2767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769 trap 'exit_status=$?
2770 # Save into config.log some information that might help in debugging.
2772 echo
2774 cat <<\_ASBOX
2775 ## ---------------- ##
2776 ## Cache variables. ##
2777 ## ---------------- ##
2778 _ASBOX
2779 echo
2780 # The following way of writing the cache mishandles newlines in values,
2782 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2783 eval ac_val=\$$ac_var
2784 case $ac_val in #(
2785 *${as_nl}*)
2786 case $ac_var in #(
2787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789 esac
2790 case $ac_var in #(
2791 _ | IFS | as_nl) ;; #(
2792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2793 *) { eval $ac_var=; unset $ac_var;} ;;
2794 esac ;;
2795 esac
2796 done
2797 (set) 2>&1 |
2798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2799 *${as_nl}ac_space=\ *)
2800 sed -n \
2801 "s/'\''/'\''\\\\'\'''\''/g;
2802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803 ;; #(
2805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807 esac |
2808 sort
2810 echo
2812 cat <<\_ASBOX
2813 ## ----------------- ##
2814 ## Output variables. ##
2815 ## ----------------- ##
2816 _ASBOX
2817 echo
2818 for ac_var in $ac_subst_vars
2820 eval ac_val=\$$ac_var
2821 case $ac_val in
2822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 esac
2824 $as_echo "$ac_var='\''$ac_val'\''"
2825 done | sort
2826 echo
2828 if test -n "$ac_subst_files"; then
2829 cat <<\_ASBOX
2830 ## ------------------- ##
2831 ## File substitutions. ##
2832 ## ------------------- ##
2833 _ASBOX
2834 echo
2835 for ac_var in $ac_subst_files
2837 eval ac_val=\$$ac_var
2838 case $ac_val in
2839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 esac
2841 $as_echo "$ac_var='\''$ac_val'\''"
2842 done | sort
2843 echo
2846 if test -s confdefs.h; then
2847 cat <<\_ASBOX
2848 ## ----------- ##
2849 ## confdefs.h. ##
2850 ## ----------- ##
2851 _ASBOX
2852 echo
2853 cat confdefs.h
2854 echo
2856 test "$ac_signal" != 0 &&
2857 $as_echo "$as_me: caught signal $ac_signal"
2858 $as_echo "$as_me: exit $exit_status"
2859 } >&5
2860 rm -f core *.core core.conftest.* &&
2861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2862 exit $exit_status
2864 for ac_signal in 1 2 13 15; do
2865 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2866 done
2867 ac_signal=0
2869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2870 rm -f -r conftest* confdefs.h
2872 $as_echo "/* confdefs.h */" > confdefs.h
2874 # Predefined preprocessor variables.
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_NAME "$PACKAGE_NAME"
2878 _ACEOF
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_STRING "$PACKAGE_STRING"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_URL "$PACKAGE_URL"
2898 _ACEOF
2901 # Let the site file select an alternate cache file if it wants to.
2902 # Prefer an explicitly selected file to automatically selected ones.
2903 ac_site_file1=NONE
2904 ac_site_file2=NONE
2905 if test -n "$CONFIG_SITE"; then
2906 ac_site_file1=$CONFIG_SITE
2907 elif test "x$prefix" != xNONE; then
2908 ac_site_file1=$prefix/share/config.site
2909 ac_site_file2=$prefix/etc/config.site
2910 else
2911 ac_site_file1=$ac_default_prefix/share/config.site
2912 ac_site_file2=$ac_default_prefix/etc/config.site
2914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2916 test "x$ac_site_file" = xNONE && continue
2917 if test -r "$ac_site_file"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2920 sed 's/^/| /' "$ac_site_file" >&5
2921 . "$ac_site_file"
2923 done
2925 if test -r "$cache_file"; then
2926 # Some versions of bash will fail to source /dev/null (special
2927 # files actually), so we avoid doing that.
2928 if test -f "$cache_file"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2930 $as_echo "$as_me: loading cache $cache_file" >&6;}
2931 case $cache_file in
2932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2933 *) . "./$cache_file";;
2934 esac
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2938 $as_echo "$as_me: creating cache $cache_file" >&6;}
2939 >$cache_file
2942 # Check that the precious variables saved in the cache have kept the same
2943 # value.
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947 eval ac_new_set=\$ac_env_${ac_var}_set
2948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949 eval ac_new_val=\$ac_env_${ac_var}_value
2950 case $ac_old_set,$ac_new_set in
2951 set,)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2955 ,set)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2959 ,);;
2961 if test "x$ac_old_val" != "x$ac_new_val"; then
2962 # differences in whitespace do not lead to failure.
2963 ac_old_val_w=`echo x $ac_old_val`
2964 ac_new_val_w=`echo x $ac_new_val`
2965 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968 ac_cache_corrupted=:
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972 eval $ac_var=\$ac_old_val
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2975 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2977 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2978 fi;;
2979 esac
2980 # Pass precious variables to config.status.
2981 if test "$ac_new_set" = set; then
2982 case $ac_new_val in
2983 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984 *) ac_arg=$ac_var=$ac_new_val ;;
2985 esac
2986 case " $ac_configure_args " in
2987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2988 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989 esac
2991 done
2992 if $ac_cache_corrupted; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2997 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2999 ## -------------------- ##
3000 ## Main body of script. ##
3001 ## -------------------- ##
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3017 gcc_version=`cat $srcdir/BASE-VER`
3019 # Determine the host, build, and target systems
3020 ac_aux_dir=
3021 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3022 for ac_t in install-sh install.sh shtool; do
3023 if test -f "$ac_dir/$ac_t"; then
3024 ac_aux_dir=$ac_dir
3025 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 break 2
3028 done
3029 done
3030 if test -z "$ac_aux_dir"; then
3031 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3034 # These three variables are undocumented and unsupported,
3035 # and are intended to be withdrawn in a future Autoconf release.
3036 # They can cause serious problems if a builder's source tree is in a directory
3037 # whose full name contains unusual characters.
3038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3043 # Make sure we can run config.sub.
3044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3045 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3048 $as_echo_n "checking build system type... " >&6; }
3049 if test "${ac_cv_build+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 ac_build_alias=$build_alias
3053 test "x$ac_build_alias" = x &&
3054 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3055 test "x$ac_build_alias" = x &&
3056 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3058 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3062 $as_echo "$ac_cv_build" >&6; }
3063 case $ac_cv_build in
3064 *-*-*) ;;
3065 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3066 esac
3067 build=$ac_cv_build
3068 ac_save_IFS=$IFS; IFS='-'
3069 set x $ac_cv_build
3070 shift
3071 build_cpu=$1
3072 build_vendor=$2
3073 shift; shift
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3076 build_os=$*
3077 IFS=$ac_save_IFS
3078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3082 $as_echo_n "checking host system type... " >&6; }
3083 if test "${ac_cv_host+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test "x$host_alias" = x; then
3087 ac_cv_host=$ac_cv_build
3088 else
3089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3090 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3095 $as_echo "$ac_cv_host" >&6; }
3096 case $ac_cv_host in
3097 *-*-*) ;;
3098 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3099 esac
3100 host=$ac_cv_host
3101 ac_save_IFS=$IFS; IFS='-'
3102 set x $ac_cv_host
3103 shift
3104 host_cpu=$1
3105 host_vendor=$2
3106 shift; shift
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3109 host_os=$*
3110 IFS=$ac_save_IFS
3111 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3115 $as_echo_n "checking target system type... " >&6; }
3116 if test "${ac_cv_target+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test "x$target_alias" = x; then
3120 ac_cv_target=$ac_cv_host
3121 else
3122 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3128 $as_echo "$ac_cv_target" >&6; }
3129 case $ac_cv_target in
3130 *-*-*) ;;
3131 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3132 esac
3133 target=$ac_cv_target
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_target
3136 shift
3137 target_cpu=$1
3138 target_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 target_os=$*
3143 IFS=$ac_save_IFS
3144 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3147 # The aliases save the names the user supplied, while $host etc.
3148 # will get canonicalized.
3149 test -n "$target_alias" &&
3150 test "$program_prefix$program_suffix$program_transform_name" = \
3151 NONENONEs,x,x, &&
3152 program_prefix=${target_alias}-
3154 # Determine the noncanonical target name, for directory use.
3155 case ${build_alias} in
3156 "") build_noncanonical=${build} ;;
3157 *) build_noncanonical=${build_alias} ;;
3158 esac
3160 case ${host_alias} in
3161 "") host_noncanonical=${build_noncanonical} ;;
3162 *) host_noncanonical=${host_alias} ;;
3163 esac
3165 case ${target_alias} in
3166 "") target_noncanonical=${host_noncanonical} ;;
3167 *) target_noncanonical=${target_alias} ;;
3168 esac
3173 # Determine the target- and build-specific subdirectories
3175 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3176 # have matching libraries, they should use host libraries: Makefile.tpl
3177 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3178 # However, they still use the build modules, because the corresponding
3179 # host modules (e.g. bison) are only built for the host when bootstrap
3180 # finishes. So:
3181 # - build_subdir is where we find build modules, and never changes.
3182 # - build_libsubdir is where we find build libraries, and can be overridden.
3184 # Prefix 'build-' so this never conflicts with target_subdir.
3185 build_subdir="build-${build_noncanonical}"
3187 # Check whether --with-build-libsubdir was given.
3188 if test "${with_build_libsubdir+set}" = set; then :
3189 withval=$with_build_libsubdir; build_libsubdir="$withval"
3190 else
3191 build_libsubdir="$build_subdir"
3194 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3195 if ( test $srcdir = . && test -d gcc ) \
3196 || test -d $srcdir/../host-${host_noncanonical}; then
3197 host_subdir="host-${host_noncanonical}"
3198 else
3199 host_subdir=.
3201 # No prefix.
3202 target_subdir=${target_noncanonical}
3205 # Set program_transform_name
3206 test "$program_prefix" != NONE &&
3207 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE &&
3210 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3211 # Double any \ or $.
3212 # By default was `s,x,x', remove it if useless.
3213 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3214 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3217 # Check for bogus environment variables.
3218 # Test if LIBRARY_PATH contains the notation for the current directory
3219 # since this would lead to problems installing/building glibc.
3220 # LIBRARY_PATH contains the current directory if one of the following
3221 # is true:
3222 # - one of the terminals (":" and ";") is the first or last sign
3223 # - two terminals occur directly after each other
3224 # - the path contains an element with a dot in it
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3226 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3227 case ${LIBRARY_PATH} in
3228 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3229 library_path_setting="contains current directory"
3232 library_path_setting="ok"
3234 esac
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3236 $as_echo "$library_path_setting" >&6; }
3237 if test "$library_path_setting" != "ok"; then
3238 as_fn_error "
3239 *** LIBRARY_PATH shouldn't contain the current directory when
3240 *** building gcc. Please change the environment variable
3241 *** and run configure again." "$LINENO" 5
3244 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3245 # since this would lead to problems installing/building glibc.
3246 # GCC_EXEC_PREFIX contains the current directory if one of the following
3247 # is true:
3248 # - one of the terminals (":" and ";") is the first or last sign
3249 # - two terminals occur directly after each other
3250 # - the path contains an element with a dot in it
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3252 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3253 case ${GCC_EXEC_PREFIX} in
3254 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3255 gcc_exec_prefix_setting="contains current directory"
3258 gcc_exec_prefix_setting="ok"
3260 esac
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3262 $as_echo "$gcc_exec_prefix_setting" >&6; }
3263 if test "$gcc_exec_prefix_setting" != "ok"; then
3264 as_fn_error "
3265 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3266 *** building gcc. Please change the environment variable
3267 *** and run configure again." "$LINENO" 5
3270 # -----------
3271 # Directories
3272 # -----------
3274 # Specify the local prefix
3275 local_prefix=
3277 # Check whether --with-local-prefix was given.
3278 if test "${with_local_prefix+set}" = set; then :
3279 withval=$with_local_prefix; case "${withval}" in
3280 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3281 no) ;;
3282 *) local_prefix=$with_local_prefix ;;
3283 esac
3287 # Default local prefix if it is empty
3288 if test x$local_prefix = x; then
3289 local_prefix=/usr/local
3292 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3293 # passed in by the toplevel make and thus we'd get different behavior
3294 # depending on where we built the sources.
3295 gcc_gxx_include_dir=
3296 # Specify the g++ header file directory
3298 # Check whether --with-gxx-include-dir was given.
3299 if test "${with_gxx_include_dir+set}" = set; then :
3300 withval=$with_gxx_include_dir; case "${withval}" in
3301 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3302 no) ;;
3303 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3304 esac
3308 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3309 if test x${gcc_gxx_include_dir} = x; then
3310 if test x${enable_version_specific_runtime_libs} = xyes; then
3311 gcc_gxx_include_dir='${libsubdir}/include/c++'
3312 else
3313 libstdcxx_incdir='include/c++/$(version)'
3314 if test x$host != x$target; then
3315 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3317 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3321 gcc_gxx_include_dir_add_sysroot=0
3322 if test "${with_sysroot+set}" = set; then
3323 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3324 if test "${gcc_gxx_without_sysroot}"; then
3325 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3326 gcc_gxx_include_dir_add_sysroot=1
3331 # Check whether --with-cpp_install_dir was given.
3332 if test "${with_cpp_install_dir+set}" = set; then :
3333 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3334 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3335 elif test x$withval != xno; then
3336 cpp_install_dir=$withval
3341 # We would like to our source tree to be readonly. However when releases or
3342 # pre-releases are generated, the flex/bison generated files as well as the
3343 # various formats of manuals need to be included along with the rest of the
3344 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3345 # just that.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3348 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3349 # Check whether --enable-generated-files-in-srcdir was given.
3350 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3351 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3352 else
3353 generated_files_in_srcdir=no
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3358 $as_echo "$generated_files_in_srcdir" >&6; }
3360 if test "$generated_files_in_srcdir" = "yes"; then
3361 GENINSRC=''
3362 else
3363 GENINSRC='#'
3367 # -------------------
3368 # Find default linker
3369 # -------------------
3371 # With GNU ld
3373 # Check whether --with-gnu-ld was given.
3374 if test "${with_gnu_ld+set}" = set; then :
3375 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3376 else
3377 gnu_ld_flag=no
3381 # With pre-defined ld
3383 # Check whether --with-ld was given.
3384 if test "${with_ld+set}" = set; then :
3385 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3388 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3389 if test ! -x "$DEFAULT_LINKER"; then
3390 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3391 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3392 gnu_ld_flag=yes
3395 cat >>confdefs.h <<_ACEOF
3396 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3397 _ACEOF
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404 if test x"$gnu_ld_flag" = x"no"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3416 # With demangler in GNU ld
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3421 else
3422 demangler_in_ld=yes
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3430 # With GNU as
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3435 else
3436 gas_flag=no
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447 if test ! -x "$DEFAULT_ASSEMBLER"; then
3448 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3450 gas_flag=yes
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 _ACEOF
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462 if test x"$gas_flag" = x"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3517 IFS=$as_save_IFS
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$ac_cv_prog_CC"; then
3533 ac_ct_CC=$CC
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3570 if test "x$ac_ct_CC" = x; then
3571 CC=""
3572 else
3573 case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579 CC=$ac_ct_CC
3581 else
3582 CC="$ac_cv_prog_CC"
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3610 IFS=$as_save_IFS
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637 ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected=yes
3647 continue
3649 ac_cv_prog_CC="cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy $ac_cv_prog_CC
3660 shift
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3665 shift
3666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog in cl.exe
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$CC" && break
3724 done
3726 if test -z "$CC"; then
3727 ac_ct_CC=$CC
3728 for ac_prog in cl.exe
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3753 IFS=$as_save_IFS
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$ac_ct_CC" && break
3768 done
3770 if test "x$ac_ct_CC" = x; then
3771 CC=""
3772 else
3773 case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779 CC=$ac_ct_CC
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 ac_status=$?
3805 if test -s conftest.err; then
3806 sed '10a\
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 done
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3820 main ()
3824 return 0;
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 esac
3846 done
3847 rm -f $ac_rmfiles
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3867 test -f "$ac_file" || continue
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 [ab].out )
3872 # We found the default executable, but exeext='' is most
3873 # certainly right.
3874 break;;
3875 *.* )
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877 then :; else
3878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3884 # actually working.
3885 break;;
3887 break;;
3888 esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892 else
3893 ac_file=''
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3926 cross_compiling=no
3927 else
3928 if test "$cross_compiling" = maybe; then
3929 cross_compiling=yes
3930 else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 break;;
4024 esac
4025 done
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 main ()
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4057 return 0;
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GCC=yes
4073 else
4074 GCC=
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_g=yes
4100 else
4101 CFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4115 else
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4122 main ()
4126 return 0;
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4145 CFLAGS="-g -O2"
4146 else
4147 CFLAGS="-g"
4149 else
4150 if test "$GCC" = yes; then
4151 CFLAGS="-O2"
4152 else
4153 CFLAGS=
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173 char **p;
4174 int i;
4176 return p[i];
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4180 char *s;
4181 va_list v;
4182 va_start (v,p);
4183 s = g (p, va_arg (v,int));
4184 va_end (v);
4185 return s;
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4209 main ()
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 return 0;
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235 xno)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 main ()
4273 return 0;
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4301 then
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 rm -f conftest2.*
4318 if { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4338 then
4339 # cc works too.
4341 else
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 else
4348 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 rm -f core conftest*
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4389 CXX=$CCC
4390 else
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CXX" && break
4432 done
4434 if test -z "$CXX"; then
4435 ac_ct_CXX=$CXX
4436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CXX" && break
4476 done
4478 if test "x$ac_ct_CXX" = x; then
4479 CXX="g++"
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CXX=$ac_ct_CXX
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498 { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 ac_status=$?
4507 if test -s conftest.err; then
4508 sed '10a\
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 done
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4529 #ifndef __GNUC__
4530 choke me
4531 #endif
4534 return 0;
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 ac_compiler_gnu=yes
4539 else
4540 ac_compiler_gnu=no
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549 GXX=yes
4550 else
4551 GXX=
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4562 ac_cv_prog_cxx_g=no
4563 CXXFLAGS="-g"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4568 main ()
4572 return 0;
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4577 else
4578 CXXFLAGS=""
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 main ()
4587 return 0;
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 else
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 CXXFLAGS="-g"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4599 main ()
4603 return 0;
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4622 CXXFLAGS="-g -O2"
4623 else
4624 CXXFLAGS="-g"
4626 else
4627 if test "$GXX" = yes; then
4628 CXXFLAGS="-O2"
4629 else
4630 CXXFLAGS=
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4719 if test "x$ac_ct_GNATBIND" = x; then
4720 GNATBIND="no"
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728 GNATBIND=$ac_ct_GNATBIND
4730 else
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_GNATMAKE" = x; then
4812 GNATMAKE="no"
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 GNATMAKE=$ac_ct_GNATMAKE
4822 else
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4847 rm -f conftest.*
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853 have_gnat=yes
4854 else
4855 have_gnat=no
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4862 else
4863 OUTPUT_OPTION='-o $@'
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4873 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4874 esac
4878 # Determine PICFLAG for target gnatlib.
4883 case "${target}" in
4884 # PIC is the default on some targets or must not be used.
4885 *-*-darwin*)
4886 # PIC is the default on this platform
4887 # Common symbols not allowed in MH_DYLIB files
4888 PICFLAG_FOR_TARGET=-fno-common
4890 alpha*-dec-osf5*)
4891 # PIC is the default.
4893 hppa*64*-*-hpux*)
4894 # PIC is the default for 64-bit PA HP-UX.
4896 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4898 i[34567]86-*-interix[3-9]*)
4899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4900 # Instead, we relocate shared libraries at runtime.
4902 i[34567]86-*-nto-qnx*)
4903 # QNX uses GNU C++, but need to define -shared option too, otherwise
4904 # it will coredump.
4905 PICFLAG_FOR_TARGET='-fPIC -shared'
4907 i[34567]86-pc-msdosdjgpp*)
4908 # DJGPP does not support shared libraries at all.
4910 ia64*-*-hpux*)
4911 # On IA64 HP-UX, PIC is the default but the pic flag
4912 # sets the default TLS model and affects inlining.
4913 PICFLAG_FOR_TARGET=-fPIC
4915 mips-sgi-irix6*)
4916 # PIC is the default.
4918 rs6000-ibm-aix* | powerpc-ibm-aix*)
4919 # All AIX code is PIC.
4922 # Some targets support both -fPIC and -fpic, but prefer the latter.
4923 # FIXME: Why?
4924 i[34567]86-*-* | x86_64-*-*)
4925 PICFLAG_FOR_TARGET=-fpic
4927 m68k-*-*)
4928 PICFLAG_FOR_TARGET=-fpic
4930 # FIXME: Override -fPIC default in libgcc only?
4931 sh-*-linux* | sh[2346lbe]*-*-linux*)
4932 PICFLAG_FOR_TARGET=-fpic
4934 # FIXME: Simplify to sh*-*-netbsd*?
4935 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4936 sh64-*-netbsd* | sh64l*-*-netbsd*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 # Default to -fPIC unless specified otherwise.
4941 PICFLAG_FOR_TARGET=-fPIC
4943 esac
4945 # If the user explicitly uses -fpic/-fPIC, keep that.
4946 case "${CFLAGS_FOR_TARGET}" in
4947 *-fpic*)
4948 PICFLAG_FOR_TARGET=-fpic
4950 *-fPIC*)
4951 PICFLAG_FOR_TARGET=-fPIC
4953 esac
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4971 CPP=
4973 if test -z "$CPP"; then
4974 if test "${ac_cv_prog_CPP+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 # Double quotes because CPP needs to be expanded
4978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980 ac_preproc_ok=false
4981 for ac_c_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996 Syntax error
4997 _ACEOF
4998 if ac_fn_c_try_cpp "$LINENO"; then :
5000 else
5001 # Broken: fails on valid input.
5002 continue
5004 rm -f conftest.err conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5014 continue
5015 else
5016 # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5020 rm -f conftest.err conftest.$ac_ext
5022 done
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5026 break
5029 done
5030 ac_cv_prog_CPP=$CPP
5033 CPP=$ac_cv_prog_CPP
5034 else
5035 ac_cv_prog_CPP=$CPP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5039 ac_preproc_ok=false
5040 for ac_c_preproc_warn_flag in '' yes
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5055 Syntax error
5056 _ACEOF
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5059 else
5060 # Broken: fails on valid input.
5061 continue
5063 rm -f conftest.err conftest.$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5072 # Broken: success on invalid input.
5073 continue
5074 else
5075 # Passes both tests.
5076 ac_preproc_ok=:
5077 break
5079 rm -f conftest.err conftest.$ac_ext
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then :
5086 else
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in grep ggrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5120 *GNU*)
5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5145 $ac_path_GREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153 else
5154 ac_cv_path_GREP=$GREP
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP="$ac_cv_path_GREP"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169 then ac_cv_path_EGREP="$GREP -E"
5170 else
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in egrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5186 *GNU*)
5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP="$ac_path_EGREP"
5203 ac_path_EGREP_max=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5211 $ac_path_EGREP_found && break 3
5212 done
5213 done
5214 done
5215 IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 else
5220 ac_cv_path_EGREP=$EGREP
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP="$ac_cv_path_EGREP"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 #include <stdlib.h>
5238 #include <stdarg.h>
5239 #include <string.h>
5240 #include <float.h>
5243 main ()
5247 return 0;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_header_stdc=yes
5252 else
5253 ac_cv_header_stdc=no
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #include <string.h>
5263 _ACEOF
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "memchr" >/dev/null 2>&1; then :
5267 else
5268 ac_cv_header_stdc=no
5270 rm -f conftest*
5274 if test $ac_cv_header_stdc = yes; then
5275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <stdlib.h>
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev/null 2>&1; then :
5284 else
5285 ac_cv_header_stdc=no
5287 rm -f conftest*
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then :
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <ctype.h>
5299 #include <stdlib.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313 main ()
5315 int i;
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5319 return 2;
5320 return 0;
5322 _ACEOF
5323 if ac_fn_c_try_run "$LINENO"; then :
5325 else
5326 ac_cv_header_stdc=no
5328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5329 conftest.$ac_objext conftest.beam conftest.$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344 inttypes.h stdint.h unistd.h
5345 do :
5346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 eval as_val=\$$as_ac_Header
5350 if test "x$as_val" = x""yes; then :
5351 cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353 _ACEOF
5357 done
5361 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5363 MINIX=yes
5364 else
5365 MINIX=
5369 if test "$MINIX" = yes; then
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 # define __EXTENSIONS__ 1
5391 $ac_includes_default
5393 main ()
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_safe_to_define___extensions__=yes
5402 else
5403 ac_cv_safe_to_define___extensions__=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409 test $ac_cv_safe_to_define___extensions__ = yes &&
5410 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5430 CPP=
5432 if test -z "$CPP"; then
5433 if test "${ac_cv_prog_CPP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 # Double quotes because CPP needs to be expanded
5437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5439 ac_preproc_ok=false
5440 for ac_c_preproc_warn_flag in '' yes
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455 Syntax error
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5459 else
5460 # Broken: fails on valid input.
5461 continue
5463 rm -f conftest.err conftest.$ac_ext
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472 # Broken: success on invalid input.
5473 continue
5474 else
5475 # Passes both tests.
5476 ac_preproc_ok=:
5477 break
5479 rm -f conftest.err conftest.$ac_ext
5481 done
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5485 break
5488 done
5489 ac_cv_prog_CPP=$CPP
5492 CPP=$ac_cv_prog_CPP
5493 else
5494 ac_cv_prog_CPP=$CPP
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5498 ac_preproc_ok=false
5499 for ac_c_preproc_warn_flag in '' yes
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514 Syntax error
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5518 else
5519 # Broken: fails on valid input.
5520 continue
5522 rm -f conftest.err conftest.$ac_ext
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531 # Broken: success on invalid input.
5532 continue
5533 else
5534 # Passes both tests.
5535 ac_preproc_ok=:
5536 break
5538 rm -f conftest.err conftest.$ac_ext
5540 done
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5545 else
5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 ac_cv_c_inline=no
5564 for ac_kw in inline __inline__ __inline; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #ifndef __cplusplus
5568 typedef int foo_t;
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5571 #endif
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_c_inline=$ac_kw
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 test "$ac_cv_c_inline" != no && break
5579 done
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5585 case $ac_cv_c_inline in
5586 inline | yes) ;;
5588 case $ac_cv_c_inline in
5589 no) ac_val=;;
5590 *) ac_val=$ac_cv_c_inline;;
5591 esac
5592 cat >>confdefs.h <<_ACEOF
5593 #ifndef __cplusplus
5594 #define inline $ac_val
5595 #endif
5596 _ACEOF
5598 esac
5601 # Check whether --enable-largefile was given.
5602 if test "${enable_largefile+set}" = set; then :
5603 enableval=$enable_largefile;
5606 if test "$enable_largefile" != no; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5609 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5610 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 ac_cv_sys_largefile_CC=no
5614 if test "$GCC" != yes; then
5615 ac_save_CC=$CC
5616 while :; do
5617 # IRIX 6.2 and later do not support large files by default,
5618 # so use the C compiler's -n32 option if that helps.
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5631 main ()
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 break
5641 rm -f core conftest.err conftest.$ac_objext
5642 CC="$CC -n32"
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_sys_largefile_CC=' -n32'; break
5646 rm -f core conftest.err conftest.$ac_objext
5647 break
5648 done
5649 CC=$ac_save_CC
5650 rm -f conftest.$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5654 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5655 if test "$ac_cv_sys_largefile_CC" != no; then
5656 CC=$CC$ac_cv_sys_largefile_CC
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5660 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5661 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 while :; do
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5675 ? 1 : -1];
5677 main ()
5681 return 0;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_file_offset_bits=no; break
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #define _FILE_OFFSET_BITS 64
5691 #include <sys/types.h>
5692 /* Check that off_t can represent 2**63 - 1 correctly.
5693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5694 since some C++ compilers masquerading as C compilers
5695 incorrectly reject 9223372036854775807. */
5696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5698 && LARGE_OFF_T % 2147483647 == 1)
5699 ? 1 : -1];
5701 main ()
5705 return 0;
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709 ac_cv_sys_file_offset_bits=64; break
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_sys_file_offset_bits=unknown
5713 break
5714 done
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5717 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5719 no | unknown) ;;
5721 cat >>confdefs.h <<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5723 _ACEOF
5725 esac
5726 rm -rf conftest*
5727 if test $ac_cv_sys_file_offset_bits = unknown; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5729 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 while :; do
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 /* Check that off_t can represent 2**63 - 1 correctly.
5738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5739 since some C++ compilers masquerading as C compilers
5740 incorrectly reject 9223372036854775807. */
5741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5743 && LARGE_OFF_T % 2147483647 == 1)
5744 ? 1 : -1];
5746 main ()
5750 return 0;
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 ac_cv_sys_large_files=no; break
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5768 ? 1 : -1];
5770 main ()
5774 return 0;
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778 ac_cv_sys_large_files=1; break
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cv_sys_large_files=unknown
5782 break
5783 done
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5786 $as_echo "$ac_cv_sys_large_files" >&6; }
5787 case $ac_cv_sys_large_files in #(
5788 no | unknown) ;;
5790 cat >>confdefs.h <<_ACEOF
5791 #define _LARGE_FILES $ac_cv_sys_large_files
5792 _ACEOF
5794 esac
5795 rm -rf conftest*
5800 # sizeof(char) is 1 by definition.
5801 # The cast to long int works around a bug in the HP C Compiler
5802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5804 # This bug is HP SR number 8606223364.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5806 $as_echo_n "checking size of void *... " >&6; }
5807 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5812 else
5813 if test "$ac_cv_type_void_p" = yes; then
5814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { as_fn_set_status 77
5817 as_fn_error "cannot compute sizeof (void *)
5818 See \`config.log' for more details." "$LINENO" 5; }; }
5819 else
5820 ac_cv_sizeof_void_p=0
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5826 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5830 cat >>confdefs.h <<_ACEOF
5831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5832 _ACEOF
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5840 $as_echo_n "checking size of short... " >&6; }
5841 if test "${ac_cv_sizeof_short+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5846 else
5847 if test "$ac_cv_type_short" = yes; then
5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 { as_fn_set_status 77
5851 as_fn_error "cannot compute sizeof (short)
5852 See \`config.log' for more details." "$LINENO" 5; }; }
5853 else
5854 ac_cv_sizeof_short=0
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5860 $as_echo "$ac_cv_sizeof_short" >&6; }
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_SHORT $ac_cv_sizeof_short
5866 _ACEOF
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5874 $as_echo_n "checking size of int... " >&6; }
5875 if test "${ac_cv_sizeof_int+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5880 else
5881 if test "$ac_cv_type_int" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (int)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887 else
5888 ac_cv_sizeof_int=0
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5900 _ACEOF
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if test "${ac_cv_sizeof_long+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5914 else
5915 if test "$ac_cv_type_long" = yes; then
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 { as_fn_set_status 77
5919 as_fn_error "cannot compute sizeof (long)
5920 See \`config.log' for more details." "$LINENO" 5; }; }
5921 else
5922 ac_cv_sizeof_long=0
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5928 $as_echo "$ac_cv_sizeof_long" >&6; }
5932 cat >>confdefs.h <<_ACEOF
5933 #define SIZEOF_LONG $ac_cv_sizeof_long
5934 _ACEOF
5937 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5938 if test "x$ac_cv_type_long_long" = x""yes; then :
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_LONG_LONG 1
5942 _ACEOF
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5949 $as_echo_n "checking size of long long... " >&6; }
5950 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5955 else
5956 if test "$ac_cv_type_long_long" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status 77
5960 as_fn_error "cannot compute sizeof (long long)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5962 else
5963 ac_cv_sizeof_long_long=0
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5969 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5973 cat >>confdefs.h <<_ACEOF
5974 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5975 _ACEOF
5980 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5981 if test "x$ac_cv_type___int64" = x""yes; then :
5983 cat >>confdefs.h <<_ACEOF
5984 #define HAVE___INT64 1
5985 _ACEOF
5987 # The cast to long int works around a bug in the HP C Compiler
5988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5990 # This bug is HP SR number 8606223364.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5992 $as_echo_n "checking size of __int64... " >&6; }
5993 if test "${ac_cv_sizeof___int64+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5998 else
5999 if test "$ac_cv_type___int64" = yes; then
6000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6002 { as_fn_set_status 77
6003 as_fn_error "cannot compute sizeof (__int64)
6004 See \`config.log' for more details." "$LINENO" 5; }; }
6005 else
6006 ac_cv_sizeof___int64=0
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6012 $as_echo "$ac_cv_sizeof___int64" >&6; }
6016 cat >>confdefs.h <<_ACEOF
6017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6018 _ACEOF
6023 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6024 case $ac_cv_c_int8_t in #(
6025 no|yes) ;; #(
6028 cat >>confdefs.h <<_ACEOF
6029 #define int8_t $ac_cv_c_int8_t
6030 _ACEOF
6032 esac
6034 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6035 case $ac_cv_c_int16_t in #(
6036 no|yes) ;; #(
6039 cat >>confdefs.h <<_ACEOF
6040 #define int16_t $ac_cv_c_int16_t
6041 _ACEOF
6043 esac
6045 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6046 case $ac_cv_c_int32_t in #(
6047 no|yes) ;; #(
6050 cat >>confdefs.h <<_ACEOF
6051 #define int32_t $ac_cv_c_int32_t
6052 _ACEOF
6054 esac
6056 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6057 case $ac_cv_c_int64_t in #(
6058 no|yes) ;; #(
6061 cat >>confdefs.h <<_ACEOF
6062 #define int64_t $ac_cv_c_int64_t
6063 _ACEOF
6065 esac
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6069 $as_echo_n "checking for long long int... " >&6; }
6070 if test "${ac_cv_type_long_long_int+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* For now, do not test the preprocessor; as of 2007 there are too many
6077 implementations with broken preprocessors. Perhaps this can
6078 be revisited in 2012. In the meantime, code should not expect
6079 #if to work with literals wider than 32 bits. */
6080 /* Test literals. */
6081 long long int ll = 9223372036854775807ll;
6082 long long int nll = -9223372036854775807LL;
6083 unsigned long long int ull = 18446744073709551615ULL;
6084 /* Test constant expressions. */
6085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6086 ? 1 : -1)];
6087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6088 ? 1 : -1)];
6089 int i = 63;
6091 main ()
6093 /* Test availability of runtime routines for shift and division. */
6094 long long int llmax = 9223372036854775807ll;
6095 unsigned long long int ullmax = 18446744073709551615ull;
6096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097 | (llmax / ll) | (llmax % ll)
6098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099 | (ullmax / ull) | (ullmax % ull));
6101 return 0;
6104 _ACEOF
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 if test "$cross_compiling" = yes; then :
6107 ac_cv_type_long_long_int=yes
6108 else
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <limits.h>
6112 #ifndef LLONG_MAX
6113 # define HALF \
6114 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6115 # define LLONG_MAX (HALF - 1 + HALF)
6116 #endif
6118 main ()
6120 long long int n = 1;
6121 int i;
6122 for (i = 0; ; i++)
6124 long long int m = n << i;
6125 if (m >> i != n)
6126 return 1;
6127 if (LLONG_MAX / 2 < m)
6128 break;
6130 return 0;
6132 return 0;
6134 _ACEOF
6135 if ac_fn_c_try_run "$LINENO"; then :
6136 ac_cv_type_long_long_int=yes
6137 else
6138 ac_cv_type_long_long_int=no
6140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6141 conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 else
6145 ac_cv_type_long_long_int=no
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6151 $as_echo "$ac_cv_type_long_long_int" >&6; }
6152 if test $ac_cv_type_long_long_int = yes; then
6154 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6160 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6161 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6163 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6165 else
6166 test $ac_cv_type_long_long_int = yes \
6167 && ac_type='long long int' \
6168 || ac_type='long int'
6170 cat >>confdefs.h <<_ACEOF
6171 #define intmax_t $ac_type
6172 _ACEOF
6178 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6179 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6181 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6183 else
6184 for ac_type in 'int' 'long int' 'long long int'; do
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 $ac_includes_default
6189 main ()
6191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6192 test_array [0] = 0
6195 return 0;
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6200 cat >>confdefs.h <<_ACEOF
6201 #define intptr_t $ac_type
6202 _ACEOF
6204 ac_type=
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 test -z "$ac_type" && break
6208 done
6212 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6213 case $ac_cv_c_uint8_t in #(
6214 no|yes) ;; #(
6217 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220 cat >>confdefs.h <<_ACEOF
6221 #define uint8_t $ac_cv_c_uint8_t
6222 _ACEOF
6224 esac
6226 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6227 case $ac_cv_c_uint16_t in #(
6228 no|yes) ;; #(
6232 cat >>confdefs.h <<_ACEOF
6233 #define uint16_t $ac_cv_c_uint16_t
6234 _ACEOF
6236 esac
6238 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6239 case $ac_cv_c_uint32_t in #(
6240 no|yes) ;; #(
6243 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246 cat >>confdefs.h <<_ACEOF
6247 #define uint32_t $ac_cv_c_uint32_t
6248 _ACEOF
6250 esac
6252 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6253 case $ac_cv_c_uint64_t in #(
6254 no|yes) ;; #(
6257 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260 cat >>confdefs.h <<_ACEOF
6261 #define uint64_t $ac_cv_c_uint64_t
6262 _ACEOF
6264 esac
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6268 $as_echo_n "checking for unsigned long long int... " >&6; }
6269 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 /* For now, do not test the preprocessor; as of 2007 there are too many
6276 implementations with broken preprocessors. Perhaps this can
6277 be revisited in 2012. In the meantime, code should not expect
6278 #if to work with literals wider than 32 bits. */
6279 /* Test literals. */
6280 long long int ll = 9223372036854775807ll;
6281 long long int nll = -9223372036854775807LL;
6282 unsigned long long int ull = 18446744073709551615ULL;
6283 /* Test constant expressions. */
6284 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6285 ? 1 : -1)];
6286 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6287 ? 1 : -1)];
6288 int i = 63;
6290 main ()
6292 /* Test availability of runtime routines for shift and division. */
6293 long long int llmax = 9223372036854775807ll;
6294 unsigned long long int ullmax = 18446744073709551615ull;
6295 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296 | (llmax / ll) | (llmax % ll)
6297 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298 | (ullmax / ull) | (ullmax % ull));
6300 return 0;
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305 ac_cv_type_unsigned_long_long_int=yes
6306 else
6307 ac_cv_type_unsigned_long_long_int=no
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6322 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6323 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6325 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6327 else
6328 test $ac_cv_type_unsigned_long_long_int = yes \
6329 && ac_type='unsigned long long int' \
6330 || ac_type='unsigned long int'
6332 cat >>confdefs.h <<_ACEOF
6333 #define uintmax_t $ac_type
6334 _ACEOF
6340 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6341 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6343 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6345 else
6346 for ac_type in 'unsigned int' 'unsigned long int' \
6347 'unsigned long long int'; do
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 $ac_includes_default
6352 main ()
6354 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6355 test_array [0] = 0
6358 return 0;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6363 cat >>confdefs.h <<_ACEOF
6364 #define uintptr_t $ac_type
6365 _ACEOF
6367 ac_type=
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 test -z "$ac_type" && break
6371 done
6388 # ---------------------
6389 # Warnings and checking
6390 # ---------------------
6392 # Check $CC warning features (if it's GCC).
6393 # We want to use -pedantic, but we don't want warnings about
6394 # * 'long long'
6395 # * variadic macros
6396 # * overlong strings
6397 # * C++11 narrowing conversions in { }
6398 # So, we only use -pedantic if we can disable those warnings.
6400 loose_warn=
6401 save_CFLAGS="$CFLAGS"
6402 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6403 # Do the check with the no- prefix removed since gcc silently
6404 # accepts any -Wno-* option on purpose
6405 case $real_option in
6406 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6407 *) option=$real_option ;;
6408 esac
6409 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6412 $as_echo_n "checking whether $CC supports $option... " >&6; }
6413 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 CFLAGS="$option"
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6421 main ()
6425 return 0;
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429 eval "$as_acx_Woption=yes"
6430 else
6431 eval "$as_acx_Woption=no"
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 eval ac_res=\$$as_acx_Woption
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6438 $as_echo "$ac_res" >&6; }
6439 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6440 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6442 done
6443 CFLAGS="$save_CFLAGS"
6445 c_loose_warn=
6446 save_CFLAGS="$CFLAGS"
6447 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6448 # Do the check with the no- prefix removed since gcc silently
6449 # accepts any -Wno-* option on purpose
6450 case $real_option in
6451 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6452 *) option=$real_option ;;
6453 esac
6454 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6457 $as_echo_n "checking whether $CC supports $option... " >&6; }
6458 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 CFLAGS="$option"
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6466 main ()
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 eval "$as_acx_Woption=yes"
6475 else
6476 eval "$as_acx_Woption=no"
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 eval ac_res=\$$as_acx_Woption
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6483 $as_echo "$ac_res" >&6; }
6484 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6485 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6487 done
6488 CFLAGS="$save_CFLAGS"
6490 strict_warn=
6491 save_CFLAGS="$CFLAGS"
6492 for real_option in -Wmissing-format-attribute; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option=$real_option ;;
6498 esac
6499 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 CFLAGS="$option"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6511 main ()
6515 return 0;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6520 else
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 eval ac_res=\$$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6532 done
6533 CFLAGS="$save_CFLAGS"
6535 c_strict_warn=
6536 save_CFLAGS="$CFLAGS"
6537 for real_option in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option=$real_option ;;
6543 esac
6544 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 CFLAGS="$option"
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6556 main ()
6560 return 0;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6565 else
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 eval ac_res=\$$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 done
6578 CFLAGS="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 save_CFLAGS="$CFLAGS"
6589 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6594 main ()
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6603 else
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CFLAGS="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval=$enable_werror_always;
6620 else
6621 enable_werror_always=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6633 warn_cflags=
6634 warn_cxxflags=
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6643 noexception_flags=
6644 save_CFLAGS="$CFLAGS"
6645 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option=$real_option ;;
6651 esac
6652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 CFLAGS="$option"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6673 else
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 eval ac_res=\$$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6685 done
6686 CFLAGS="$save_CFLAGS"
6689 # Enable expensive internal checks
6690 is_release=
6691 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6692 is_release=yes
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval=$enable_checking; ac_checking_flags="${enableval}"
6698 else
6700 # Determine the default checks.
6701 if test x$is_release = x ; then
6702 ac_checking_flags=yes
6703 else
6704 ac_checking_flags=release
6708 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6709 for check in release $ac_checking_flags
6711 case $check in
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6714 ac_fold_checking= ; ac_gc_checking=1 ;
6715 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6716 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6717 ac_tree_checking=1 ; ac_valgrind_checking= ;
6718 ac_types_checking=1 ;;
6719 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking= ;
6721 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6722 ac_rtlflag_checking= ; ac_runtime_checking= ;
6723 ac_tree_checking= ; ac_valgrind_checking= ;
6724 ac_types_checking= ;;
6725 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6726 ac_fold_checking=1 ; ac_gc_checking=1 ;
6727 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6728 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729 ac_tree_checking=1 ; ac_valgrind_checking= ;
6730 ac_types_checking=1 ;;
6731 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6732 ac_fold_checking= ; ac_gc_checking= ;
6733 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6735 ac_tree_checking= ; ac_valgrind_checking= ;
6736 ac_types_checking= ;;
6737 # these enable particular checks
6738 assert) ac_assert_checking=1 ;;
6739 df) ac_df_checking=1 ;;
6740 fold) ac_fold_checking=1 ;;
6741 gc) ac_gc_checking=1 ;;
6742 gcac) ac_gc_always_collect=1 ;;
6743 gimple) ac_gimple_checking=1 ;;
6744 misc) ac_checking=1 ;;
6745 rtl) ac_rtl_checking=1 ;;
6746 rtlflag) ac_rtlflag_checking=1 ;;
6747 runtime) ac_runtime_checking=1 ;;
6748 tree) ac_tree_checking=1 ;;
6749 types) ac_types_checking=1 ;;
6750 valgrind) ac_valgrind_checking=1 ;;
6751 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6752 esac
6753 done
6754 IFS="$ac_save_IFS"
6756 nocommon_flag=""
6757 if test x$ac_checking != x ; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag=-fno-common
6764 if test x$ac_df_checking != x ; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x$ac_assert_checking != x ; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x$ac_gimple_checking != x ; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x$ac_runtime_checking != x ; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x$ac_tree_checking != x ; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER=tree-browser.o
6790 TREECHECKING=yes
6792 if test x$ac_types_checking != x ; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x$ac_rtl_checking != x ; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x$ac_rtlflag_checking != x ; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x$ac_gc_checking != x ; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x$ac_gc_always_collect != x ; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x$ac_fold_checking != x ; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines=
6825 valgrind_command=
6827 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6829 have_valgrind_h=yes
6830 else
6831 have_valgrind_h=no
6836 if test x$ac_valgrind_checking != x ; then
6837 # It is certainly possible that there's valgrind but no valgrind.h.
6838 # GCC relies on making annotations so we must have both.
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6840 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 #include <valgrind/memcheck.h>
6844 #ifndef VALGRIND_DISCARD
6845 #error VALGRIND_DISCARD not defined
6846 #endif
6847 _ACEOF
6848 if ac_fn_c_try_cpp "$LINENO"; then :
6849 gcc_cv_header_valgrind_memcheck_h=yes
6850 else
6851 gcc_cv_header_valgrind_memcheck_h=no
6853 rm -f conftest.err conftest.$ac_ext
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6855 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6857 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #include <memcheck.h>
6861 #ifndef VALGRIND_DISCARD
6862 #error VALGRIND_DISCARD not defined
6863 #endif
6864 _ACEOF
6865 if ac_fn_c_try_cpp "$LINENO"; then :
6866 gcc_cv_header_memcheck_h=yes
6867 else
6868 gcc_cv_header_memcheck_h=no
6870 rm -f conftest.err conftest.$ac_ext
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6872 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6874 # Prepare PATH_SEPARATOR.
6875 # The user is always right.
6876 if test "${PATH_SEPARATOR+set}" != set; then
6877 echo "#! /bin/sh" >conf$$.sh
6878 echo "exit 0" >>conf$$.sh
6879 chmod +x conf$$.sh
6880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6881 PATH_SEPARATOR=';'
6882 else
6883 PATH_SEPARATOR=:
6885 rm -f conf$$.sh
6888 # Find out how to test for executable files. Don't use a zero-byte file,
6889 # as systems may use methods other than mode bits to determine executability.
6890 cat >conf$$.file <<_ASEOF
6891 #! /bin/sh
6892 exit 0
6893 _ASEOF
6894 chmod +x conf$$.file
6895 if test -x conf$$.file >/dev/null 2>&1; then
6896 ac_executable_p="test -x"
6897 else
6898 ac_executable_p="test -f"
6900 rm -f conf$$.file
6902 # Extract the first word of "valgrind", so it can be a program name with args.
6903 set dummy valgrind; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 case "$valgrind_path" in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6915 for ac_dir in $PATH; do
6916 IFS="$ac_save_IFS"
6917 test -z "$ac_dir" && ac_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6920 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6921 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6922 break 2
6925 done
6926 done
6927 IFS="$ac_save_IFS"
6929 esac
6931 valgrind_path="$ac_cv_path_valgrind_path"
6932 if test -n "$valgrind_path"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6934 $as_echo "$valgrind_path" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6940 if test "x$valgrind_path" = "x" \
6941 || (test $have_valgrind_h = no \
6942 && test $gcc_cv_header_memcheck_h = no \
6943 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6944 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6946 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6947 valgrind_command="$valgrind_path -q"
6949 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6951 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6953 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6956 if test $gcc_cv_header_memcheck_h = yes; then
6958 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6965 # Enable code coverage collection
6966 # Check whether --enable-coverage was given.
6967 if test "${enable_coverage+set}" = set; then :
6968 enableval=$enable_coverage; case "${enableval}" in
6969 yes|noopt)
6970 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6972 opt)
6973 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6976 # a.k.a. --disable-coverage
6977 coverage_flags=""
6980 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6982 esac
6983 else
6984 coverage_flags=""
6989 # Check whether --enable-gather-detailed-mem-stats was given.
6990 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6991 enableval=$enable_gather_detailed_mem_stats;
6992 else
6993 enable_gather_detailed_mem_stats=no
6996 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6998 cat >>confdefs.h <<_ACEOF
6999 #define GATHER_STATISTICS $gather_stats
7000 _ACEOF
7003 # -------------------------------
7004 # Miscenalleous configure options
7005 # -------------------------------
7007 # With stabs
7009 # Check whether --with-stabs was given.
7010 if test "${with_stabs+set}" = set; then :
7011 withval=$with_stabs; stabs="$with_stabs"
7012 else
7013 stabs=no
7017 # Determine whether or not multilibs are enabled.
7018 # Check whether --enable-multilib was given.
7019 if test "${enable_multilib+set}" = set; then :
7020 enableval=$enable_multilib;
7021 else
7022 enable_multilib=yes
7027 # Determine whether or not multiarch is enabled.
7028 # Check whether --enable-multiarch was given.
7029 if test "${enable_multiarch+set}" = set; then :
7030 enableval=$enable_multiarch; case "${enableval}" in
7031 yes|no|auto) enable_multiarch=$enableval;;
7032 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7033 esac
7034 else
7035 enable_multiarch=auto
7038 if test x${enable_multiarch} = xauto; then
7039 if test x${with_native_system_header_dir} != x; then
7040 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7041 enable_multiarch=no
7043 if test x$host != x$target && test "x$with_sysroot" = x; then
7044 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7045 enable_multiarch=no
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7049 $as_echo_n "checking for multiarch configuration... " >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7052 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7054 # needed for setting the multiarch name for soft-float/hard-float ABIs
7058 # Enable __cxa_atexit for C++.
7059 # Check whether --enable-__cxa_atexit was given.
7060 if test "${enable___cxa_atexit+set}" = set; then :
7061 enableval=$enable___cxa_atexit;
7065 # Enable C extension for decimal float if target supports it.
7067 # Check whether --enable-decimal-float was given.
7068 if test "${enable_decimal_float+set}" = set; then :
7069 enableval=$enable_decimal_float;
7070 case $enable_decimal_float in
7071 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7072 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7073 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7074 esac
7076 else
7078 case $target in
7079 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7080 i?86*-*-gnu* | \
7081 i?86*-*-mingw* | x86_64*-*-mingw* | \
7082 i?86*-*-cygwin*)
7083 enable_decimal_float=yes
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7087 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7088 enable_decimal_float=no
7090 esac
7095 # x86's use BID format instead of DPD
7096 case x$enable_decimal_float in
7097 xyes)
7098 case $target in
7099 i?86*-*-* | x86_64*-*-*)
7100 enable_decimal_float=bid
7103 enable_decimal_float=dpd
7105 esac
7106 default_decimal_float=$enable_decimal_float
7108 xno)
7109 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7110 # dependency on libdecnumber.
7111 default_decimal_float=dpd
7113 esac
7118 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7120 cat >>confdefs.h <<_ACEOF
7121 #define ENABLE_DECIMAL_FLOAT $dfp
7122 _ACEOF
7125 # Use default_decimal_float for dependency.
7126 enable_decimal_float=$default_decimal_float
7128 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7130 cat >>confdefs.h <<_ACEOF
7131 #define ENABLE_DECIMAL_BID_FORMAT $bid
7132 _ACEOF
7135 # Enable C extension for fixed-point arithmetic.
7136 # Check whether --enable-fixed-point was given.
7137 if test "${enable_fixed_point+set}" = set; then :
7138 enableval=$enable_fixed_point;
7139 else
7141 case $target in
7142 arm*)
7143 enable_fixed_point=yes
7146 mips*-*-*)
7147 enable_fixed_point=yes
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7151 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7152 enable_fixed_point=no
7154 esac
7160 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7162 cat >>confdefs.h <<_ACEOF
7163 #define ENABLE_FIXED_POINT $fixedpoint
7164 _ACEOF
7167 # Enable threads
7168 # Pass with no value to take the default
7169 # Pass with a value to specify a thread package
7170 # Check whether --enable-threads was given.
7171 if test "${enable_threads+set}" = set; then :
7172 enableval=$enable_threads;
7173 else
7174 enable_threads=''
7178 # Check whether --enable-tls was given.
7179 if test "${enable_tls+set}" = set; then :
7180 enableval=$enable_tls;
7181 case $enable_tls in
7182 yes | no) ;;
7183 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7184 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7185 esac
7187 else
7188 enable_tls=''
7192 # Check whether --enable-objc-gc was given.
7193 if test "${enable_objc_gc+set}" = set; then :
7194 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7195 objc_boehm_gc=''
7196 else
7197 objc_boehm_gc=1
7199 else
7200 objc_boehm_gc=''
7205 # Check whether --with-dwarf2 was given.
7206 if test "${with_dwarf2+set}" = set; then :
7207 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7208 else
7209 dwarf2=no
7213 # Check whether --enable-shared was given.
7214 if test "${enable_shared+set}" = set; then :
7215 enableval=$enable_shared;
7216 case $enable_shared in
7217 yes | no) ;;
7219 enable_shared=no
7220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7221 for pkg in $enableval; do
7222 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7223 enable_shared=yes
7225 done
7226 IFS="$ac_save_ifs"
7228 esac
7230 else
7231 enable_shared=yes
7237 # Check whether --with-native-system-header-dir was given.
7238 if test "${with_native_system_header_dir+set}" = set; then :
7239 withval=$with_native_system_header_dir;
7240 case ${with_native_system_header_dir} in
7241 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7242 /* | [A-Za-z]:[\\/]*) ;;
7243 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7244 esac
7245 configured_native_system_header_dir="${withval}"
7247 else
7248 configured_native_system_header_dir=
7253 # Check whether --with-build-sysroot was given.
7254 if test "${with_build_sysroot+set}" = set; then :
7255 withval=$with_build_sysroot; if test x"$withval" != x ; then
7256 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7258 else
7259 SYSROOT_CFLAGS_FOR_TARGET=
7264 if test "x$prefix" = xNONE; then
7265 test_prefix=/usr/local
7266 else
7267 test_prefix=$prefix
7269 if test "x$exec_prefix" = xNONE; then
7270 test_exec_prefix=$test_prefix
7271 else
7272 test_exec_prefix=$exec_prefix
7276 # Check whether --with-sysroot was given.
7277 if test "${with_sysroot+set}" = set; then :
7278 withval=$with_sysroot;
7279 case ${with_sysroot} in
7280 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7281 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7282 esac
7284 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7285 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7287 case ${TARGET_SYSTEM_ROOT} in
7288 "${test_prefix}"|"${test_prefix}/"*|\
7289 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7290 '${prefix}'|'${prefix}/'*|\
7291 '${exec_prefix}'|'${exec_prefix}/'*)
7292 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7293 TARGET_SYSTEM_ROOT_DEFINE="$t"
7295 esac
7297 else
7299 TARGET_SYSTEM_ROOT=
7300 TARGET_SYSTEM_ROOT_DEFINE=
7301 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7310 # Check whether --with-specs was given.
7311 if test "${with_specs+set}" = set; then :
7312 withval=$with_specs; CONFIGURE_SPECS=$withval
7313 else
7314 CONFIGURE_SPECS=
7322 # Check whether --with-pkgversion was given.
7323 if test "${with_pkgversion+set}" = set; then :
7324 withval=$with_pkgversion; case "$withval" in
7325 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7326 no) PKGVERSION= ;;
7327 *) PKGVERSION="($withval) " ;;
7328 esac
7329 else
7330 PKGVERSION="(GCC) "
7338 # Check whether --with-bugurl was given.
7339 if test "${with_bugurl+set}" = set; then :
7340 withval=$with_bugurl; case "$withval" in
7341 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7342 no) BUGURL=
7344 *) BUGURL="$withval"
7346 esac
7347 else
7348 BUGURL="http://gcc.gnu.org/bugs.html"
7352 case ${BUGURL} in
7354 REPORT_BUGS_TO=
7355 REPORT_BUGS_TEXI=
7358 REPORT_BUGS_TO="<$BUGURL>"
7359 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7361 esac;
7366 # Sanity check enable_languages in case someone does not run the toplevel
7367 # configure # script.
7368 # Check whether --enable-languages was given.
7369 if test "${enable_languages+set}" = set; then :
7370 enableval=$enable_languages; case ,${enable_languages}, in
7371 ,,|,yes,)
7372 # go safe -- we cannot be much sure without the toplevel
7373 # configure's
7374 # analysis of which target libs are present and usable
7375 enable_languages=c
7377 *,all,*)
7378 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7380 *,c,*)
7383 enable_languages=c,${enable_languages}
7385 esac
7386 else
7387 enable_languages=c
7392 # Check whether --with-multilib-list was given.
7393 if test "${with_multilib_list+set}" = set; then :
7394 withval=$with_multilib_list; :
7395 else
7396 with_multilib_list=default
7400 # -------------------------
7401 # Checks for other programs
7402 # -------------------------
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7405 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7406 set x ${MAKE-make}
7407 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7408 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat >conftest.make <<\_ACEOF
7412 SHELL = /bin/sh
7413 all:
7414 @echo '@@@%%%=$(MAKE)=@@@%%%'
7415 _ACEOF
7416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7418 *@@@%%%=?*=@@@%%%*)
7419 eval ac_cv_prog_make_${ac_make}_set=yes;;
7421 eval ac_cv_prog_make_${ac_make}_set=no;;
7422 esac
7423 rm -f conftest.make
7425 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427 $as_echo "yes" >&6; }
7428 SET_MAKE=
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 SET_MAKE="MAKE=${MAKE-make}"
7436 # Find some useful tools
7437 for ac_prog in gawk mawk nawk awk
7439 # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy $ac_prog; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_AWK+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -n "$AWK"; then
7447 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_AWK="$ac_prog"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7460 done
7461 done
7462 IFS=$as_save_IFS
7466 AWK=$ac_cv_prog_AWK
7467 if test -n "$AWK"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7469 $as_echo "$AWK" >&6; }
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7476 test -n "$AWK" && break
7477 done
7479 # We need awk to create options.c and options.h.
7480 # Bail out if it's missing.
7481 case ${AWK} in
7482 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7483 esac
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7486 $as_echo_n "checking whether ln -s works... " >&6; }
7487 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 rm -f conftestdata_t
7491 echo >conftestdata_f
7492 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7493 then
7494 gcc_cv_prog_LN_S="ln -s"
7495 else
7496 if ln conftestdata_f conftestdata_t 2>/dev/null
7497 then
7498 gcc_cv_prog_LN_S=ln
7499 else
7500 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7501 then
7502 gcc_cv_prog_LN_S="cp -p"
7503 else
7504 gcc_cv_prog_LN_S=cp
7508 rm -f conftestdata_f conftestdata_t
7511 LN_S="$gcc_cv_prog_LN_S"
7512 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7514 $as_echo "yes" >&6; }
7515 else
7516 if test "$gcc_cv_prog_LN_S" = "ln"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7518 $as_echo "no, using ln" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7521 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7526 $as_echo_n "checking whether ln works... " >&6; }
7527 if test "${acx_cv_prog_LN+set}" = set; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 rm -f conftestdata_t
7531 echo >conftestdata_f
7532 if ln conftestdata_f conftestdata_t 2>/dev/null
7533 then
7534 acx_cv_prog_LN=ln
7535 else
7536 acx_cv_prog_LN=no
7538 rm -f conftestdata_f conftestdata_t
7541 if test $acx_cv_prog_LN = no; then
7542 LN="$LN_S"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7544 $as_echo "no, using $LN" >&6; }
7545 else
7546 LN="$acx_cv_prog_LN"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; }
7551 if test -n "$ac_tool_prefix"; then
7552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 if test -n "$RANLIB"; then
7560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7573 done
7574 done
7575 IFS=$as_save_IFS
7579 RANLIB=$ac_cv_prog_RANLIB
7580 if test -n "$RANLIB"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7582 $as_echo "$RANLIB" >&6; }
7583 else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7590 if test -z "$ac_cv_prog_RANLIB"; then
7591 ac_ct_RANLIB=$RANLIB
7592 # Extract the first word of "ranlib", so it can be a program name with args.
7593 set dummy ranlib; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 if test -n "$ac_ct_RANLIB"; then
7600 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_prog_ac_ct_RANLIB="ranlib"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7613 done
7614 done
7615 IFS=$as_save_IFS
7619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7620 if test -n "$ac_ct_RANLIB"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7622 $as_echo "$ac_ct_RANLIB" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7628 if test "x$ac_ct_RANLIB" = x; then
7629 RANLIB=":"
7630 else
7631 case $cross_compiling:$ac_tool_warned in
7632 yes:)
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637 RANLIB=$ac_ct_RANLIB
7639 else
7640 RANLIB="$ac_cv_prog_RANLIB"
7643 ranlib_flags=""
7646 # Find a good install program. We prefer a C program (faster),
7647 # so one script is as good as another. But avoid the broken or
7648 # incompatible versions:
7649 # SysV /etc/install, /usr/sbin/install
7650 # SunOS /usr/etc/install
7651 # IRIX /sbin/install
7652 # AIX /bin/install
7653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7655 # ./install, which can be erroneously created by make from ./install.sh.
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7657 $as_echo_n "checking for a BSD compatible install... " >&6; }
7658 if test -z "$INSTALL"; then
7659 if test "${ac_cv_path_install+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7663 for ac_dir in $PATH; do
7664 # Account for people who put trailing slashes in PATH elements.
7665 case "$ac_dir/" in
7666 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7668 # OSF1 and SCO ODT 3.0 have their own names for install.
7669 for ac_prog in ginstall scoinst install; do
7670 if test -f $ac_dir/$ac_prog; then
7671 if test $ac_prog = install &&
7672 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7673 # AIX install. It has an incompatible calling convention.
7674 # OSF/1 installbsd also uses dspmsg, but is usable.
7676 else
7677 ac_cv_path_install="$ac_dir/$ac_prog -c"
7678 break 2
7681 done
7683 esac
7684 done
7685 IFS="$ac_save_IFS"
7688 if test "${ac_cv_path_install+set}" = set; then
7689 INSTALL="$ac_cv_path_install"
7690 else
7691 # As a last resort, use the slow shell script. We don't cache a
7692 # path for INSTALL within a source directory, because that will
7693 # break other packages using the cache if that directory is
7694 # removed, or if the path is relative.
7695 INSTALL="$ac_install_sh"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7699 $as_echo "$INSTALL" >&6; }
7701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7702 # It thinks the first close brace ends the variable substitution.
7703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7708 # See if cmp has --ignore-initial.
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7710 $as_echo_n "checking for cmp's capabilities... " >&6; }
7711 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 echo abfoo >t1
7715 echo cdfoo >t2
7716 gcc_cv_prog_cmp_skip=slowcompare
7717 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7718 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7720 else
7721 gcc_cv_prog_cmp_skip=gnucompare
7724 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7725 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7726 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7728 else
7729 gcc_cv_prog_cmp_skip=fastcompare
7733 rm t1 t2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7737 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7738 make_compare_target=$gcc_cv_prog_cmp_skip
7742 # See if we have the mktemp command.
7743 # Extract the first word of "mktemp", so it can be a program name with args.
7744 set dummy mktemp; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$have_mktemp_command"; then
7751 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_have_mktemp_command="yes"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7768 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7771 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7772 if test -n "$have_mktemp_command"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7774 $as_echo "$have_mktemp_command" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7782 # See if makeinfo has been installed and is modern enough
7783 # that we can use it.
7785 # Extract the first word of "makeinfo", so it can be a program name with args.
7786 set dummy makeinfo; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$MAKEINFO"; then
7793 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_MAKEINFO="makeinfo"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7806 done
7807 done
7808 IFS=$as_save_IFS
7812 MAKEINFO=$ac_cv_prog_MAKEINFO
7813 if test -n "$MAKEINFO"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7815 $as_echo "$MAKEINFO" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7822 if test -n "$MAKEINFO"; then
7823 # Found it, now check the version.
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7825 $as_echo_n "checking for modern makeinfo... " >&6; }
7826 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7830 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7832 case $ac_prog_version in
7833 '') gcc_cv_prog_makeinfo_modern=no;;
7834 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7835 *) gcc_cv_prog_makeinfo_modern=no;;
7836 esac
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7840 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7841 else
7842 gcc_cv_prog_makeinfo_modern=no
7844 if test $gcc_cv_prog_makeinfo_modern = no; then
7845 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7848 if test $gcc_cv_prog_makeinfo_modern = no; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7850 *** Makeinfo is missing or too old.
7851 *** Info documentation will not be built." >&5
7852 $as_echo "$as_me: WARNING:
7853 *** Makeinfo is missing or too old.
7854 *** Info documentation will not be built." >&2;}
7855 BUILD_INFO=
7856 else
7857 BUILD_INFO=info
7861 # Is pod2man recent enough to regenerate manpages?
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7863 $as_echo_n "checking for recent Pod::Man... " >&6; }
7864 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866 $as_echo "yes" >&6; }
7867 GENERATED_MANPAGES=generated-manpages
7868 else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 GENERATED_MANPAGES=
7875 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7877 # How about lex?
7878 for ac_prog in flex
7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_FLEX+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 if test -n "$FLEX"; then
7888 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_prog_FLEX="$ac_prog"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7901 done
7902 done
7903 IFS=$as_save_IFS
7907 FLEX=$ac_cv_prog_FLEX
7908 if test -n "$FLEX"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7910 $as_echo "$FLEX" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7917 test -n "$FLEX" && break
7918 done
7919 test -n "$FLEX" || FLEX="$MISSING flex"
7922 # Bison?
7923 for ac_prog in bison
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_BISON+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$BISON"; then
7933 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_BISON="$ac_prog"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7952 BISON=$ac_cv_prog_BISON
7953 if test -n "$BISON"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7955 $as_echo "$BISON" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7962 test -n "$BISON" && break
7963 done
7964 test -n "$BISON" || BISON="$MISSING bison"
7967 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7968 # check for build == host before using them.
7970 # NM
7971 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7972 && test -d ../binutils ; then
7973 NM='${objdir}/../binutils/nm-new'
7974 else
7975 # Extract the first word of "nm", so it can be a program name with args.
7976 set dummy nm; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if test "${ac_cv_prog_NM+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$NM"; then
7983 ac_cv_prog_NM="$NM" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_prog_NM="nm"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
7998 IFS=$as_save_IFS
8000 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8003 NM=$ac_cv_prog_NM
8004 if test -n "$NM"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8006 $as_echo "$NM" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8015 # AR
8016 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8017 && test -d ../binutils ; then
8018 AR='${objdir}/../binutils/ar'
8019 else
8020 # Extract the first word of "ar", so it can be a program name with args.
8021 set dummy ar; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_AR+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 if test -n "$AR"; then
8028 ac_cv_prog_AR="$AR" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_AR="ar"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8041 done
8042 done
8043 IFS=$as_save_IFS
8045 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8048 AR=$ac_cv_prog_AR
8049 if test -n "$AR"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8051 $as_echo "$AR" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8061 # --------------------
8062 # Checks for C headers
8063 # --------------------
8065 # Need to reject headers which give warnings, so that the -Werror bootstrap
8066 # works later. *sigh* This needs to come before all header checks.
8068 ac_c_preproc_warn_flag=yes
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8071 $as_echo_n "checking for ANSI C header files... " >&6; }
8072 if test "${ac_cv_header_stdc+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <stdlib.h>
8078 #include <stdarg.h>
8079 #include <string.h>
8080 #include <float.h>
8083 main ()
8087 return 0;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 ac_cv_header_stdc=yes
8092 else
8093 ac_cv_header_stdc=no
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 if test $ac_cv_header_stdc = yes; then
8098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8101 #include <string.h>
8103 _ACEOF
8104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105 $EGREP "memchr" >/dev/null 2>&1; then :
8107 else
8108 ac_cv_header_stdc=no
8110 rm -f conftest*
8114 if test $ac_cv_header_stdc = yes; then
8115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 #include <stdlib.h>
8120 _ACEOF
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122 $EGREP "free" >/dev/null 2>&1; then :
8124 else
8125 ac_cv_header_stdc=no
8127 rm -f conftest*
8131 if test $ac_cv_header_stdc = yes; then
8132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133 if test "$cross_compiling" = yes; then :
8135 else
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8138 #include <ctype.h>
8139 #include <stdlib.h>
8140 #if ((' ' & 0x0FF) == 0x020)
8141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8143 #else
8144 # define ISLOWER(c) \
8145 (('a' <= (c) && (c) <= 'i') \
8146 || ('j' <= (c) && (c) <= 'r') \
8147 || ('s' <= (c) && (c) <= 'z'))
8148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8149 #endif
8151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 main ()
8155 int i;
8156 for (i = 0; i < 256; i++)
8157 if (XOR (islower (i), ISLOWER (i))
8158 || toupper (i) != TOUPPER (i))
8159 return 2;
8160 return 0;
8162 _ACEOF
8163 if ac_fn_c_try_run "$LINENO"; then :
8165 else
8166 ac_cv_header_stdc=no
8168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8169 conftest.$ac_objext conftest.beam conftest.$ac_ext
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8175 $as_echo "$ac_cv_header_stdc" >&6; }
8176 if test $ac_cv_header_stdc = yes; then
8178 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8183 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8184 if test "${ac_cv_header_time+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <sys/time.h>
8191 #include <time.h>
8194 main ()
8196 if ((struct tm *) 0)
8197 return 0;
8199 return 0;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 ac_cv_header_time=yes
8204 else
8205 ac_cv_header_time=no
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8210 $as_echo "$ac_cv_header_time" >&6; }
8211 if test $ac_cv_header_time = yes; then
8213 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8218 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8219 if test "${gcc_cv_header_string+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <string.h>
8225 #include <strings.h>
8227 main ()
8231 return 0;
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 gcc_cv_header_string=yes
8236 else
8237 gcc_cv_header_string=no
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8242 $as_echo "$gcc_cv_header_string" >&6; }
8243 if test $gcc_cv_header_string = yes; then
8245 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8250 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8251 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 #include <sys/types.h>
8257 #include <sys/wait.h>
8258 #ifndef WEXITSTATUS
8259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8260 #endif
8261 #ifndef WIFEXITED
8262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8263 #endif
8266 main ()
8268 int s;
8269 wait (&s);
8270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8272 return 0;
8274 _ACEOF
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276 ac_cv_header_sys_wait_h=yes
8277 else
8278 ac_cv_header_sys_wait_h=no
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8283 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8284 if test $ac_cv_header_sys_wait_h = yes; then
8286 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8290 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8291 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8292 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8293 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8294 do :
8295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8296 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8297 eval as_val=\$$as_ac_Header
8298 if test "x$as_val" = x""yes; then :
8299 cat >>confdefs.h <<_ACEOF
8300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301 _ACEOF
8304 done
8307 # Check for thread headers.
8308 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8309 if test "x$ac_cv_header_thread_h" = x""yes; then :
8310 have_thread_h=yes
8311 else
8312 have_thread_h=
8315 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8316 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8317 have_pthread_h=yes
8318 else
8319 have_pthread_h=
8323 # These tests can't be done till we know if we have limits.h.
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8325 $as_echo_n "checking for CHAR_BIT... " >&6; }
8326 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #ifdef HAVE_LIMITS_H
8332 #include <limits.h>
8333 #endif
8334 #ifdef CHAR_BIT
8335 found
8336 #endif
8337 _ACEOF
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339 $EGREP "found" >/dev/null 2>&1; then :
8340 gcc_cv_decl_char_bit=yes
8341 else
8342 gcc_cv_decl_char_bit=no
8344 rm -f conftest*
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8349 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8350 if test $gcc_cv_decl_char_bit = no; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8352 $as_echo_n "checking number of bits in a byte... " >&6; }
8353 if test "${gcc_cv_c_nbby+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8357 gcc_cv_c_nbby=
8358 while test $i -lt 65; do
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8363 main ()
8365 switch(0) {
8366 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8367 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8370 return 0;
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 gcc_cv_c_nbby=$i; break
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 i=`expr $i + 1`
8378 done
8379 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8383 $as_echo "$gcc_cv_c_nbby" >&6; }
8384 if test $gcc_cv_c_nbby = failed; then
8385 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8386 else
8388 cat >>confdefs.h <<_ACEOF
8389 #define CHAR_BIT $gcc_cv_c_nbby
8390 _ACEOF
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8396 if test "${ac_cv_c_bigendian+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 ac_cv_c_bigendian=unknown
8400 # See if we're dealing with a universal compiler.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifndef __APPLE_CC__
8404 not a universal capable compiler
8405 #endif
8406 typedef int dummy;
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8411 # Check for potential -arch flags. It is not universal unless
8412 # there are at least two -arch flags with different values.
8413 ac_arch=
8414 ac_prev=
8415 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8416 if test -n "$ac_prev"; then
8417 case $ac_word in
8418 i?86 | x86_64 | ppc | ppc64)
8419 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8420 ac_arch=$ac_word
8421 else
8422 ac_cv_c_bigendian=universal
8423 break
8426 esac
8427 ac_prev=
8428 elif test "x$ac_word" = "x-arch"; then
8429 ac_prev=arch
8431 done
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 if test $ac_cv_c_bigendian = unknown; then
8435 # See if sys/param.h defines the BYTE_ORDER macro.
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 #include <sys/types.h>
8439 #include <sys/param.h>
8442 main ()
8444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8446 && LITTLE_ENDIAN)
8447 bogus endian macros
8448 #endif
8451 return 0;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455 # It does; now see whether it defined to BIG_ENDIAN or not.
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 #include <sys/types.h>
8459 #include <sys/param.h>
8462 main ()
8464 #if BYTE_ORDER != BIG_ENDIAN
8465 not big endian
8466 #endif
8469 return 0;
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 ac_cv_c_bigendian=yes
8474 else
8475 ac_cv_c_bigendian=no
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 if test $ac_cv_c_bigendian = unknown; then
8482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 #include <limits.h>
8488 main ()
8490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8491 bogus endian macros
8492 #endif
8495 return 0;
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499 # It does; now see whether it defined to _BIG_ENDIAN or not.
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 #include <limits.h>
8505 main ()
8507 #ifndef _BIG_ENDIAN
8508 not big endian
8509 #endif
8512 return 0;
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 ac_cv_c_bigendian=yes
8517 else
8518 ac_cv_c_bigendian=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 if test $ac_cv_c_bigendian = unknown; then
8525 # Compile a test program.
8526 if test "$cross_compiling" = yes; then :
8527 # Try to guess by grepping values from an object file.
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 short int ascii_mm[] =
8531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8532 short int ascii_ii[] =
8533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8534 int use_ascii (int i) {
8535 return ascii_mm[i] + ascii_ii[i];
8537 short int ebcdic_ii[] =
8538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8539 short int ebcdic_mm[] =
8540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8541 int use_ebcdic (int i) {
8542 return ebcdic_mm[i] + ebcdic_ii[i];
8544 extern int foo;
8547 main ()
8549 return use_ascii (foo) == use_ebcdic (foo);
8551 return 0;
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8556 ac_cv_c_bigendian=yes
8558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8559 if test "$ac_cv_c_bigendian" = unknown; then
8560 ac_cv_c_bigendian=no
8561 else
8562 # finding both strings is unlikely to happen, but who knows?
8563 ac_cv_c_bigendian=unknown
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 $ac_includes_default
8573 main ()
8576 /* Are we little or big endian? From Harbison&Steele. */
8577 union
8579 long int l;
8580 char c[sizeof (long int)];
8581 } u;
8582 u.l = 1;
8583 return u.c[sizeof (long int) - 1] == 1;
8586 return 0;
8588 _ACEOF
8589 if ac_fn_c_try_run "$LINENO"; then :
8590 ac_cv_c_bigendian=no
8591 else
8592 ac_cv_c_bigendian=yes
8594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8595 conftest.$ac_objext conftest.beam conftest.$ac_ext
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8601 $as_echo "$ac_cv_c_bigendian" >&6; }
8602 case $ac_cv_c_bigendian in #(
8603 yes)
8604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8605 ;; #(
8607 ;; #(
8608 universal)
8610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8612 ;; #(
8614 as_fn_error "unknown endianness
8615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8616 esac
8619 # ----------------------
8620 # Checks for C++ headers
8621 # ----------------------
8623 ac_ext=cpp
8624 ac_cpp='$CXXCPP $CPPFLAGS'
8625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8629 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8630 if test -z "$CXXCPP"; then
8631 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 # Double quotes because CXXCPP needs to be expanded
8635 for CXXCPP in "$CXX -E" "/lib/cpp"
8637 ac_preproc_ok=false
8638 for ac_cxx_preproc_warn_flag in '' yes
8640 # Use a header file that comes with gcc, so configuring glibc
8641 # with a fresh cross-compiler works.
8642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643 # <limits.h> exists even on freestanding compilers.
8644 # On the NeXT, cc -E runs the code through the compiler's parser,
8645 # not just through cpp. "Syntax error" is here to catch this case.
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 #ifdef __STDC__
8649 # include <limits.h>
8650 #else
8651 # include <assert.h>
8652 #endif
8653 Syntax error
8654 _ACEOF
8655 if ac_fn_cxx_try_cpp "$LINENO"; then :
8657 else
8658 # Broken: fails on valid input.
8659 continue
8661 rm -f conftest.err conftest.$ac_ext
8663 # OK, works on sane cases. Now check whether nonexistent headers
8664 # can be detected and how.
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <ac_nonexistent.h>
8668 _ACEOF
8669 if ac_fn_cxx_try_cpp "$LINENO"; then :
8670 # Broken: success on invalid input.
8671 continue
8672 else
8673 # Passes both tests.
8674 ac_preproc_ok=:
8675 break
8677 rm -f conftest.err conftest.$ac_ext
8679 done
8680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8681 rm -f conftest.err conftest.$ac_ext
8682 if $ac_preproc_ok; then :
8683 break
8686 done
8687 ac_cv_prog_CXXCPP=$CXXCPP
8690 CXXCPP=$ac_cv_prog_CXXCPP
8691 else
8692 ac_cv_prog_CXXCPP=$CXXCPP
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8695 $as_echo "$CXXCPP" >&6; }
8696 ac_preproc_ok=false
8697 for ac_cxx_preproc_warn_flag in '' yes
8699 # Use a header file that comes with gcc, so configuring glibc
8700 # with a fresh cross-compiler works.
8701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8702 # <limits.h> exists even on freestanding compilers.
8703 # On the NeXT, cc -E runs the code through the compiler's parser,
8704 # not just through cpp. "Syntax error" is here to catch this case.
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707 #ifdef __STDC__
8708 # include <limits.h>
8709 #else
8710 # include <assert.h>
8711 #endif
8712 Syntax error
8713 _ACEOF
8714 if ac_fn_cxx_try_cpp "$LINENO"; then :
8716 else
8717 # Broken: fails on valid input.
8718 continue
8720 rm -f conftest.err conftest.$ac_ext
8722 # OK, works on sane cases. Now check whether nonexistent headers
8723 # can be detected and how.
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <ac_nonexistent.h>
8727 _ACEOF
8728 if ac_fn_cxx_try_cpp "$LINENO"; then :
8729 # Broken: success on invalid input.
8730 continue
8731 else
8732 # Passes both tests.
8733 ac_preproc_ok=:
8734 break
8736 rm -f conftest.err conftest.$ac_ext
8738 done
8739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8740 rm -f conftest.err conftest.$ac_ext
8741 if $ac_preproc_ok; then :
8743 else
8744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8747 See \`config.log' for more details." >&5
8748 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8749 See \`config.log' for more details." >&2;}; }
8752 ac_ext=c
8753 ac_cpp='$CPP $CPPFLAGS'
8754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759 ac_ext=cpp
8760 ac_cpp='$CXXCPP $CPPFLAGS'
8761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8768 for ac_header in unordered_map
8769 do :
8770 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8771 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8772 cat >>confdefs.h <<_ACEOF
8773 #define HAVE_UNORDERED_MAP 1
8774 _ACEOF
8777 done
8779 for ac_header in tr1/unordered_map
8780 do :
8781 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8782 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_TR1_UNORDERED_MAP 1
8785 _ACEOF
8788 done
8790 for ac_header in ext/hash_map
8791 do :
8792 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8793 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_EXT_HASH_MAP 1
8796 _ACEOF
8799 done
8802 ac_ext=c
8803 ac_cpp='$CPP $CPPFLAGS'
8804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809 # --------
8810 # UNSORTED
8811 # --------
8814 # These libraries may be used by collect2.
8815 # We may need a special search path to get them linked.
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8817 $as_echo_n "checking for collect2 libraries... " >&6; }
8818 if test "${gcc_cv_collect2_libs+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 save_LIBS="$LIBS"
8822 for libs in '' -lld -lmld \
8823 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8824 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8826 LIBS="$libs"
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char ldopen ();
8838 main ()
8840 return ldopen ();
8842 return 0;
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"; then :
8846 gcc_cv_collect2_libs="$libs"; break
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 done
8851 LIBS="$save_LIBS"
8852 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8855 $as_echo "$gcc_cv_collect2_libs" >&6; }
8856 case $gcc_cv_collect2_libs in
8857 "none required") ;;
8858 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8859 esac
8862 # When building Ada code on Alpha, we need exc_resume which is usually in
8863 # -lexc. So test for it.
8864 save_LIBS="$LIBS"
8865 LIBS=
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8867 $as_echo_n "checking for library containing exc_resume... " >&6; }
8868 if test "${ac_cv_search_exc_resume+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 ac_func_search_save_LIBS=$LIBS
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 char exc_resume ();
8883 main ()
8885 return exc_resume ();
8887 return 0;
8889 _ACEOF
8890 for ac_lib in '' exc; do
8891 if test -z "$ac_lib"; then
8892 ac_res="none required"
8893 else
8894 ac_res=-l$ac_lib
8895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 ac_cv_search_exc_resume=$ac_res
8900 rm -f core conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext
8902 if test "${ac_cv_search_exc_resume+set}" = set; then :
8903 break
8905 done
8906 if test "${ac_cv_search_exc_resume+set}" = set; then :
8908 else
8909 ac_cv_search_exc_resume=no
8911 rm conftest.$ac_ext
8912 LIBS=$ac_func_search_save_LIBS
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8915 $as_echo "$ac_cv_search_exc_resume" >&6; }
8916 ac_res=$ac_cv_search_exc_resume
8917 if test "$ac_res" != no; then :
8918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8922 GNAT_LIBEXC="$LIBS"
8923 LIBS="$save_LIBS"
8926 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8927 save_LIBS="$LIBS"
8928 LIBS=
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8930 $as_echo_n "checking for library containing kstat_open... " >&6; }
8931 if test "${ac_cv_search_kstat_open+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 ac_func_search_save_LIBS=$LIBS
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 /* Override any GCC internal prototype to avoid an error.
8939 Use char because int might match the return type of a GCC
8940 builtin and then its argument prototype would still apply. */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 char kstat_open ();
8946 main ()
8948 return kstat_open ();
8950 return 0;
8952 _ACEOF
8953 for ac_lib in '' kstat; do
8954 if test -z "$ac_lib"; then
8955 ac_res="none required"
8956 else
8957 ac_res=-l$ac_lib
8958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8960 if ac_fn_c_try_link "$LINENO"; then :
8961 ac_cv_search_kstat_open=$ac_res
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext
8965 if test "${ac_cv_search_kstat_open+set}" = set; then :
8966 break
8968 done
8969 if test "${ac_cv_search_kstat_open+set}" = set; then :
8971 else
8972 ac_cv_search_kstat_open=no
8974 rm conftest.$ac_ext
8975 LIBS=$ac_func_search_save_LIBS
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8978 $as_echo "$ac_cv_search_kstat_open" >&6; }
8979 ac_res=$ac_cv_search_kstat_open
8980 if test "$ac_res" != no; then :
8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 EXTRA_GCC_LIBS="$LIBS"
8986 LIBS="$save_LIBS"
8989 # Some systems put ldexp and frexp in libm instead of libc; assume
8990 # they're both in the same place. jcf-dump needs them.
8991 save_LIBS="$LIBS"
8992 LIBS=
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8994 $as_echo_n "checking for library containing ldexp... " >&6; }
8995 if test "${ac_cv_search_ldexp+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 ac_func_search_save_LIBS=$LIBS
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9002 /* Override any GCC internal prototype to avoid an error.
9003 Use char because int might match the return type of a GCC
9004 builtin and then its argument prototype would still apply. */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 char ldexp ();
9010 main ()
9012 return ldexp ();
9014 return 0;
9016 _ACEOF
9017 for ac_lib in '' m; do
9018 if test -z "$ac_lib"; then
9019 ac_res="none required"
9020 else
9021 ac_res=-l$ac_lib
9022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9024 if ac_fn_c_try_link "$LINENO"; then :
9025 ac_cv_search_ldexp=$ac_res
9027 rm -f core conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext
9029 if test "${ac_cv_search_ldexp+set}" = set; then :
9030 break
9032 done
9033 if test "${ac_cv_search_ldexp+set}" = set; then :
9035 else
9036 ac_cv_search_ldexp=no
9038 rm conftest.$ac_ext
9039 LIBS=$ac_func_search_save_LIBS
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9042 $as_echo "$ac_cv_search_ldexp" >&6; }
9043 ac_res=$ac_cv_search_ldexp
9044 if test "$ac_res" != no; then :
9045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9049 LDEXP_LIB="$LIBS"
9050 LIBS="$save_LIBS"
9053 # Use <inttypes.h> only if it exists,
9054 # doesn't clash with <sys/types.h>, and declares intmax_t.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9056 $as_echo_n "checking for inttypes.h... " >&6; }
9057 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 #include <sys/types.h>
9063 #include <inttypes.h>
9065 main ()
9067 intmax_t i = -1;
9069 return 0;
9071 _ACEOF
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073 gcc_cv_header_inttypes_h=yes
9074 else
9075 gcc_cv_header_inttypes_h=no
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9081 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9082 if test $gcc_cv_header_inttypes_h = yes; then
9084 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9090 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9091 sysconf strsignal getrusage nl_langinfo \
9092 gettimeofday mbstowcs wcswidth mmap setlocale \
9093 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
9094 do :
9095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9097 eval as_val=\$$as_ac_var
9098 if test "x$as_val" = x""yes; then :
9099 cat >>confdefs.h <<_ACEOF
9100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9101 _ACEOF
9104 done
9107 if test x$ac_cv_func_mbstowcs = xyes; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9109 $as_echo_n "checking whether mbstowcs works... " >&6; }
9110 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 if test "$cross_compiling" = yes; then :
9114 gcc_cv_func_mbstowcs_works=yes
9115 else
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <stdlib.h>
9119 int main()
9121 mbstowcs(0, "", 0);
9122 return 0;
9124 _ACEOF
9125 if ac_fn_c_try_run "$LINENO"; then :
9126 gcc_cv_func_mbstowcs_works=yes
9127 else
9128 gcc_cv_func_mbstowcs_works=no
9130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9131 conftest.$ac_objext conftest.beam conftest.$ac_ext
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9136 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9137 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9139 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9144 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9145 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9147 else
9149 cat >>confdefs.h <<_ACEOF
9150 #define ssize_t int
9151 _ACEOF
9155 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9156 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9158 else
9160 cat >>confdefs.h <<_ACEOF
9161 #define caddr_t char *
9162 _ACEOF
9168 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9169 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9170 gcc_header_sys_mman_h=yes
9171 else
9172 gcc_header_sys_mman_h=no
9175 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9176 if test "x$ac_cv_func_mmap" = x""yes; then :
9177 gcc_func_mmap=yes
9178 else
9179 gcc_func_mmap=no
9182 if test "$gcc_header_sys_mman_h" != yes \
9183 || test "$gcc_func_mmap" != yes; then
9184 gcc_cv_func_mmap_file=no
9185 gcc_cv_func_mmap_dev_zero=no
9186 gcc_cv_func_mmap_anon=no
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9189 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9190 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 # Add a system to this blacklist if
9194 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9195 # memory area containing the same data that you'd get if you applied
9196 # read() to the same fd. The only system known to have a problem here
9197 # is VMS, where text files have record structure.
9198 case "$host_os" in
9199 *vms* | ultrix*)
9200 gcc_cv_func_mmap_file=no ;;
9202 gcc_cv_func_mmap_file=yes;;
9203 esac
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9206 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9208 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9209 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 # Add a system to this blacklist if it has mmap() but /dev/zero
9213 # does not exist, or if mmapping /dev/zero does not give anonymous
9214 # zeroed pages with both the following properties:
9215 # 1. If you map N consecutive pages in with one call, and then
9216 # unmap any subset of those pages, the pages that were not
9217 # explicitly unmapped remain accessible.
9218 # 2. If you map two adjacent blocks of memory and then unmap them
9219 # both at once, they must both go away.
9220 # Systems known to be in this category are Windows (all variants),
9221 # VMS, and Darwin.
9222 case "$host_os" in
9223 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9224 gcc_cv_func_mmap_dev_zero=no ;;
9226 gcc_cv_func_mmap_dev_zero=yes;;
9227 esac
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9230 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9232 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9234 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9235 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include <sys/types.h>
9241 #include <sys/mman.h>
9242 #include <unistd.h>
9244 #ifndef MAP_ANONYMOUS
9245 #define MAP_ANONYMOUS MAP_ANON
9246 #endif
9249 main ()
9251 int n = MAP_ANONYMOUS;
9253 return 0;
9255 _ACEOF
9256 if ac_fn_c_try_compile "$LINENO"; then :
9257 gcc_cv_decl_map_anon=yes
9258 else
9259 gcc_cv_decl_map_anon=no
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9264 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9266 if test $gcc_cv_decl_map_anon = no; then
9267 gcc_cv_func_mmap_anon=no
9268 else
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9270 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9271 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9275 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9276 # doesn't give anonymous zeroed pages with the same properties listed
9277 # above for use of /dev/zero.
9278 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9279 case "$host_os" in
9280 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9281 gcc_cv_func_mmap_anon=no ;;
9283 gcc_cv_func_mmap_anon=yes;;
9284 esac
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9287 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9291 if test $gcc_cv_func_mmap_file = yes; then
9293 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9296 if test $gcc_cv_func_mmap_dev_zero = yes; then
9298 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9301 if test $gcc_cv_func_mmap_anon = yes; then
9303 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9308 case "${host}" in
9309 *-*-*vms*)
9310 # Under VMS, vfork works very differently than on Unix. The standard test
9311 # won't work, and it isn't easily adaptable. It makes more sense to
9312 # just force it.
9313 ac_cv_func_vfork_works=yes
9315 esac
9316 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9317 if test "x$ac_cv_type_pid_t" = x""yes; then :
9319 else
9321 cat >>confdefs.h <<_ACEOF
9322 #define pid_t int
9323 _ACEOF
9327 for ac_header in vfork.h
9328 do :
9329 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9330 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9331 cat >>confdefs.h <<_ACEOF
9332 #define HAVE_VFORK_H 1
9333 _ACEOF
9336 done
9338 for ac_func in fork vfork
9339 do :
9340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9342 eval as_val=\$$as_ac_var
9343 if test "x$as_val" = x""yes; then :
9344 cat >>confdefs.h <<_ACEOF
9345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9346 _ACEOF
9349 done
9351 if test "x$ac_cv_func_fork" = xyes; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9353 $as_echo_n "checking for working fork... " >&6; }
9354 if test "${ac_cv_func_fork_works+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 if test "$cross_compiling" = yes; then :
9358 ac_cv_func_fork_works=cross
9359 else
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 $ac_includes_default
9364 main ()
9367 /* By Ruediger Kuhlmann. */
9368 return fork () < 0;
9371 return 0;
9373 _ACEOF
9374 if ac_fn_c_try_run "$LINENO"; then :
9375 ac_cv_func_fork_works=yes
9376 else
9377 ac_cv_func_fork_works=no
9379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9380 conftest.$ac_objext conftest.beam conftest.$ac_ext
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9385 $as_echo "$ac_cv_func_fork_works" >&6; }
9387 else
9388 ac_cv_func_fork_works=$ac_cv_func_fork
9390 if test "x$ac_cv_func_fork_works" = xcross; then
9391 case $host in
9392 *-*-amigaos* | *-*-msdosdjgpp*)
9393 # Override, as these systems have only a dummy fork() stub
9394 ac_cv_func_fork_works=no
9397 ac_cv_func_fork_works=yes
9399 esac
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9401 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9403 ac_cv_func_vfork_works=$ac_cv_func_vfork
9404 if test "x$ac_cv_func_vfork" = xyes; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9406 $as_echo_n "checking for working vfork... " >&6; }
9407 if test "${ac_cv_func_vfork_works+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 if test "$cross_compiling" = yes; then :
9411 ac_cv_func_vfork_works=cross
9412 else
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 /* Thanks to Paul Eggert for this test. */
9416 $ac_includes_default
9417 #include <sys/wait.h>
9418 #ifdef HAVE_VFORK_H
9419 # include <vfork.h>
9420 #endif
9421 /* On some sparc systems, changes by the child to local and incoming
9422 argument registers are propagated back to the parent. The compiler
9423 is told about this with #include <vfork.h>, but some compilers
9424 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9425 static variable whose address is put into a register that is
9426 clobbered by the vfork. */
9427 static void
9428 #ifdef __cplusplus
9429 sparc_address_test (int arg)
9430 # else
9431 sparc_address_test (arg) int arg;
9432 #endif
9434 static pid_t child;
9435 if (!child) {
9436 child = vfork ();
9437 if (child < 0) {
9438 perror ("vfork");
9439 _exit(2);
9441 if (!child) {
9442 arg = getpid();
9443 write(-1, "", 0);
9444 _exit (arg);
9450 main ()
9452 pid_t parent = getpid ();
9453 pid_t child;
9455 sparc_address_test (0);
9457 child = vfork ();
9459 if (child == 0) {
9460 /* Here is another test for sparc vfork register problems. This
9461 test uses lots of local variables, at least as many local
9462 variables as main has allocated so far including compiler
9463 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9464 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9465 reuse the register of parent for one of the local variables,
9466 since it will think that parent can't possibly be used any more
9467 in this routine. Assigning to the local variable will thus
9468 munge parent in the parent process. */
9469 pid_t
9470 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9471 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9472 /* Convince the compiler that p..p7 are live; otherwise, it might
9473 use the same hardware register for all 8 local variables. */
9474 if (p != p1 || p != p2 || p != p3 || p != p4
9475 || p != p5 || p != p6 || p != p7)
9476 _exit(1);
9478 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9479 from child file descriptors. If the child closes a descriptor
9480 before it execs or exits, this munges the parent's descriptor
9481 as well. Test for this by closing stdout in the child. */
9482 _exit(close(fileno(stdout)) != 0);
9483 } else {
9484 int status;
9485 struct stat st;
9487 while (wait(&status) != child)
9489 return (
9490 /* Was there some problem with vforking? */
9491 child < 0
9493 /* Did the child fail? (This shouldn't happen.) */
9494 || status
9496 /* Did the vfork/compiler bug occur? */
9497 || parent != getpid()
9499 /* Did the file descriptor bug occur? */
9500 || fstat(fileno(stdout), &st) != 0
9504 _ACEOF
9505 if ac_fn_c_try_run "$LINENO"; then :
9506 ac_cv_func_vfork_works=yes
9507 else
9508 ac_cv_func_vfork_works=no
9510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9511 conftest.$ac_objext conftest.beam conftest.$ac_ext
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9516 $as_echo "$ac_cv_func_vfork_works" >&6; }
9519 if test "x$ac_cv_func_fork_works" = xcross; then
9520 ac_cv_func_vfork_works=$ac_cv_func_vfork
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9522 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9525 if test "x$ac_cv_func_vfork_works" = xyes; then
9527 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9529 else
9531 $as_echo "#define vfork fork" >>confdefs.h
9534 if test "x$ac_cv_func_fork_works" = xyes; then
9536 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9541 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9542 # iconv() prototype.
9543 ac_ext=cpp
9544 ac_cpp='$CXXCPP $CPPFLAGS'
9545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9550 if test "X$prefix" = "XNONE"; then
9551 acl_final_prefix="$ac_default_prefix"
9552 else
9553 acl_final_prefix="$prefix"
9555 if test "X$exec_prefix" = "XNONE"; then
9556 acl_final_exec_prefix='${prefix}'
9557 else
9558 acl_final_exec_prefix="$exec_prefix"
9560 acl_save_prefix="$prefix"
9561 prefix="$acl_final_prefix"
9562 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9563 prefix="$acl_save_prefix"
9566 # Check whether --with-gnu-ld was given.
9567 if test "${with_gnu_ld+set}" = set; then :
9568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9569 else
9570 with_gnu_ld=no
9573 # Prepare PATH_SEPARATOR.
9574 # The user is always right.
9575 if test "${PATH_SEPARATOR+set}" != set; then
9576 echo "#! /bin/sh" >conf$$.sh
9577 echo "exit 0" >>conf$$.sh
9578 chmod +x conf$$.sh
9579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9580 PATH_SEPARATOR=';'
9581 else
9582 PATH_SEPARATOR=:
9584 rm -f conf$$.sh
9586 ac_prog=ld
9587 if test "$GCC" = yes; then
9588 # Check if gcc -print-prog-name=ld gives a path.
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9590 $as_echo_n "checking for ld used by GCC... " >&6; }
9591 case $host in
9592 *-*-mingw*)
9593 # gcc leaves a trailing carriage return which upsets mingw
9594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9597 esac
9598 case $ac_prog in
9599 # Accept absolute paths.
9600 [\\/]* | [A-Za-z]:[\\/]*)
9601 re_direlt='/[^/][^/]*/\.\./'
9602 # Canonicalize the path of ld
9603 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9604 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9605 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9606 done
9607 test -z "$LD" && LD="$ac_prog"
9610 # If it fails, then pretend we aren't using GCC.
9611 ac_prog=ld
9614 # If it is relative, then search for the first ld in PATH.
9615 with_gnu_ld=unknown
9617 esac
9618 elif test "$with_gnu_ld" = yes; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9620 $as_echo_n "checking for GNU ld... " >&6; }
9621 else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9623 $as_echo_n "checking for non-GNU ld... " >&6; }
9625 if test "${acl_cv_path_LD+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 if test -z "$LD"; then
9629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9630 for ac_dir in $PATH; do
9631 test -z "$ac_dir" && ac_dir=.
9632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9633 acl_cv_path_LD="$ac_dir/$ac_prog"
9634 # Check to see if the program is GNU ld. I'd rather use --version,
9635 # but apparently some GNU ld's only accept -v.
9636 # Break only if it was the GNU/non-GNU ld that we prefer.
9637 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9638 test "$with_gnu_ld" != no && break
9639 else
9640 test "$with_gnu_ld" != yes && break
9643 done
9644 IFS="$ac_save_ifs"
9645 else
9646 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9650 LD="$acl_cv_path_LD"
9651 if test -n "$LD"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9653 $as_echo "$LD" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9658 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9660 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9661 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9665 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9666 acl_cv_prog_gnu_ld=yes
9667 else
9668 acl_cv_prog_gnu_ld=no
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9672 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9673 with_gnu_ld=$acl_cv_prog_gnu_ld
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9678 $as_echo_n "checking for shared library run path origin... " >&6; }
9679 if test "${acl_cv_rpath+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9683 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9684 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9685 . ./conftest.sh
9686 rm -f ./conftest.sh
9687 acl_cv_rpath=done
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9691 $as_echo "$acl_cv_rpath" >&6; }
9692 wl="$acl_cv_wl"
9693 libext="$acl_cv_libext"
9694 shlibext="$acl_cv_shlibext"
9695 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9696 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9697 hardcode_direct="$acl_cv_hardcode_direct"
9698 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9699 # Check whether --enable-rpath was given.
9700 if test "${enable_rpath+set}" = set; then :
9701 enableval=$enable_rpath; :
9702 else
9703 enable_rpath=yes
9713 use_additional=yes
9715 acl_save_prefix="$prefix"
9716 prefix="$acl_final_prefix"
9717 acl_save_exec_prefix="$exec_prefix"
9718 exec_prefix="$acl_final_exec_prefix"
9720 eval additional_includedir=\"$includedir\"
9721 eval additional_libdir=\"$libdir\"
9723 exec_prefix="$acl_save_exec_prefix"
9724 prefix="$acl_save_prefix"
9727 # Check whether --with-libiconv-prefix was given.
9728 if test "${with_libiconv_prefix+set}" = set; then :
9729 withval=$with_libiconv_prefix;
9730 if test "X$withval" = "Xno"; then
9731 use_additional=no
9732 else
9733 if test "X$withval" = "X"; then
9735 acl_save_prefix="$prefix"
9736 prefix="$acl_final_prefix"
9737 acl_save_exec_prefix="$exec_prefix"
9738 exec_prefix="$acl_final_exec_prefix"
9740 eval additional_includedir=\"$includedir\"
9741 eval additional_libdir=\"$libdir\"
9743 exec_prefix="$acl_save_exec_prefix"
9744 prefix="$acl_save_prefix"
9746 else
9747 additional_includedir="$withval/include"
9748 additional_libdir="$withval/lib"
9754 LIBICONV=
9755 LTLIBICONV=
9756 INCICONV=
9757 rpathdirs=
9758 ltrpathdirs=
9759 names_already_handled=
9760 names_next_round='iconv '
9761 while test -n "$names_next_round"; do
9762 names_this_round="$names_next_round"
9763 names_next_round=
9764 for name in $names_this_round; do
9765 already_handled=
9766 for n in $names_already_handled; do
9767 if test "$n" = "$name"; then
9768 already_handled=yes
9769 break
9771 done
9772 if test -z "$already_handled"; then
9773 names_already_handled="$names_already_handled $name"
9774 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9775 eval value=\"\$HAVE_LIB$uppername\"
9776 if test -n "$value"; then
9777 if test "$value" = yes; then
9778 eval value=\"\$LIB$uppername\"
9779 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9780 eval value=\"\$LTLIB$uppername\"
9781 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9782 else
9785 else
9786 found_dir=
9787 found_la=
9788 found_so=
9789 found_a=
9790 if test $use_additional = yes; then
9791 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9792 found_dir="$additional_libdir"
9793 found_so="$additional_libdir/lib$name.$shlibext"
9794 if test -f "$additional_libdir/lib$name.la"; then
9795 found_la="$additional_libdir/lib$name.la"
9797 else
9798 if test -f "$additional_libdir/lib$name.$libext"; then
9799 found_dir="$additional_libdir"
9800 found_a="$additional_libdir/lib$name.$libext"
9801 if test -f "$additional_libdir/lib$name.la"; then
9802 found_la="$additional_libdir/lib$name.la"
9807 if test "X$found_dir" = "X"; then
9808 for x in $LDFLAGS $LTLIBICONV; do
9810 acl_save_prefix="$prefix"
9811 prefix="$acl_final_prefix"
9812 acl_save_exec_prefix="$exec_prefix"
9813 exec_prefix="$acl_final_exec_prefix"
9814 eval x=\"$x\"
9815 exec_prefix="$acl_save_exec_prefix"
9816 prefix="$acl_save_prefix"
9818 case "$x" in
9819 -L*)
9820 dir=`echo "X$x" | sed -e 's/^X-L//'`
9821 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9822 found_dir="$dir"
9823 found_so="$dir/lib$name.$shlibext"
9824 if test -f "$dir/lib$name.la"; then
9825 found_la="$dir/lib$name.la"
9827 else
9828 if test -f "$dir/lib$name.$libext"; then
9829 found_dir="$dir"
9830 found_a="$dir/lib$name.$libext"
9831 if test -f "$dir/lib$name.la"; then
9832 found_la="$dir/lib$name.la"
9837 esac
9838 if test "X$found_dir" != "X"; then
9839 break
9841 done
9843 if test "X$found_dir" != "X"; then
9844 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9845 if test "X$found_so" != "X"; then
9846 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9848 else
9849 haveit=
9850 for x in $ltrpathdirs; do
9851 if test "X$x" = "X$found_dir"; then
9852 haveit=yes
9853 break
9855 done
9856 if test -z "$haveit"; then
9857 ltrpathdirs="$ltrpathdirs $found_dir"
9859 if test "$hardcode_direct" = yes; then
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9861 else
9862 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9864 haveit=
9865 for x in $rpathdirs; do
9866 if test "X$x" = "X$found_dir"; then
9867 haveit=yes
9868 break
9870 done
9871 if test -z "$haveit"; then
9872 rpathdirs="$rpathdirs $found_dir"
9874 else
9875 haveit=
9876 for x in $LDFLAGS $LIBICONV; do
9878 acl_save_prefix="$prefix"
9879 prefix="$acl_final_prefix"
9880 acl_save_exec_prefix="$exec_prefix"
9881 exec_prefix="$acl_final_exec_prefix"
9882 eval x=\"$x\"
9883 exec_prefix="$acl_save_exec_prefix"
9884 prefix="$acl_save_prefix"
9886 if test "X$x" = "X-L$found_dir"; then
9887 haveit=yes
9888 break
9890 done
9891 if test -z "$haveit"; then
9892 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9894 if test "$hardcode_minus_L" != no; then
9895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9896 else
9897 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9902 else
9903 if test "X$found_a" != "X"; then
9904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9905 else
9906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9909 additional_includedir=
9910 case "$found_dir" in
9911 */lib | */lib/)
9912 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9913 additional_includedir="$basedir/include"
9915 esac
9916 if test "X$additional_includedir" != "X"; then
9917 if test "X$additional_includedir" != "X/usr/include"; then
9918 haveit=
9919 if test "X$additional_includedir" = "X/usr/local/include"; then
9920 if test -n "$GCC"; then
9921 case $host_os in
9922 linux*) haveit=yes;;
9923 esac
9926 if test -z "$haveit"; then
9927 for x in $CPPFLAGS $INCICONV; do
9929 acl_save_prefix="$prefix"
9930 prefix="$acl_final_prefix"
9931 acl_save_exec_prefix="$exec_prefix"
9932 exec_prefix="$acl_final_exec_prefix"
9933 eval x=\"$x\"
9934 exec_prefix="$acl_save_exec_prefix"
9935 prefix="$acl_save_prefix"
9937 if test "X$x" = "X-I$additional_includedir"; then
9938 haveit=yes
9939 break
9941 done
9942 if test -z "$haveit"; then
9943 if test -d "$additional_includedir"; then
9944 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9950 if test -n "$found_la"; then
9951 save_libdir="$libdir"
9952 case "$found_la" in
9953 */* | *\\*) . "$found_la" ;;
9954 *) . "./$found_la" ;;
9955 esac
9956 libdir="$save_libdir"
9957 for dep in $dependency_libs; do
9958 case "$dep" in
9959 -L*)
9960 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9961 if test "X$additional_libdir" != "X/usr/lib"; then
9962 haveit=
9963 if test "X$additional_libdir" = "X/usr/local/lib"; then
9964 if test -n "$GCC"; then
9965 case $host_os in
9966 linux*) haveit=yes;;
9967 esac
9970 if test -z "$haveit"; then
9971 haveit=
9972 for x in $LDFLAGS $LIBICONV; do
9974 acl_save_prefix="$prefix"
9975 prefix="$acl_final_prefix"
9976 acl_save_exec_prefix="$exec_prefix"
9977 exec_prefix="$acl_final_exec_prefix"
9978 eval x=\"$x\"
9979 exec_prefix="$acl_save_exec_prefix"
9980 prefix="$acl_save_prefix"
9982 if test "X$x" = "X-L$additional_libdir"; then
9983 haveit=yes
9984 break
9986 done
9987 if test -z "$haveit"; then
9988 if test -d "$additional_libdir"; then
9989 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9992 haveit=
9993 for x in $LDFLAGS $LTLIBICONV; 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-L$additional_libdir"; then
10004 haveit=yes
10005 break
10007 done
10008 if test -z "$haveit"; then
10009 if test -d "$additional_libdir"; then
10010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10016 -R*)
10017 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10018 if test "$enable_rpath" != no; then
10019 haveit=
10020 for x in $rpathdirs; do
10021 if test "X$x" = "X$dir"; then
10022 haveit=yes
10023 break
10025 done
10026 if test -z "$haveit"; then
10027 rpathdirs="$rpathdirs $dir"
10029 haveit=
10030 for x in $ltrpathdirs; do
10031 if test "X$x" = "X$dir"; then
10032 haveit=yes
10033 break
10035 done
10036 if test -z "$haveit"; then
10037 ltrpathdirs="$ltrpathdirs $dir"
10041 -l*)
10042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10044 *.la)
10045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10048 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10049 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10051 esac
10052 done
10054 else
10055 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10056 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10060 done
10061 done
10062 if test "X$rpathdirs" != "X"; then
10063 if test -n "$hardcode_libdir_separator"; then
10064 alldirs=
10065 for found_dir in $rpathdirs; do
10066 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10067 done
10068 acl_save_libdir="$libdir"
10069 libdir="$alldirs"
10070 eval flag=\"$hardcode_libdir_flag_spec\"
10071 libdir="$acl_save_libdir"
10072 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10073 else
10074 for found_dir in $rpathdirs; do
10075 acl_save_libdir="$libdir"
10076 libdir="$found_dir"
10077 eval flag=\"$hardcode_libdir_flag_spec\"
10078 libdir="$acl_save_libdir"
10079 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10080 done
10083 if test "X$ltrpathdirs" != "X"; then
10084 for found_dir in $ltrpathdirs; do
10085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10086 done
10095 am_save_CPPFLAGS="$CPPFLAGS"
10097 for element in $INCICONV; do
10098 haveit=
10099 for x in $CPPFLAGS; do
10101 acl_save_prefix="$prefix"
10102 prefix="$acl_final_prefix"
10103 acl_save_exec_prefix="$exec_prefix"
10104 exec_prefix="$acl_final_exec_prefix"
10105 eval x=\"$x\"
10106 exec_prefix="$acl_save_exec_prefix"
10107 prefix="$acl_save_prefix"
10109 if test "X$x" = "X$element"; then
10110 haveit=yes
10111 break
10113 done
10114 if test -z "$haveit"; then
10115 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10117 done
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10121 $as_echo_n "checking for iconv... " >&6; }
10122 if test "${am_cv_func_iconv+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10126 am_cv_func_iconv="no, consider installing GNU libiconv"
10127 am_cv_lib_iconv=no
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 #include <stdlib.h>
10131 #include <iconv.h>
10133 main ()
10135 iconv_t cd = iconv_open("","");
10136 iconv(cd,NULL,NULL,NULL,NULL);
10137 iconv_close(cd);
10139 return 0;
10141 _ACEOF
10142 if ac_fn_cxx_try_link "$LINENO"; then :
10143 am_cv_func_iconv=yes
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 if test "$am_cv_func_iconv" != yes; then
10148 am_save_LIBS="$LIBS"
10149 LIBS="$LIBS $LIBICONV"
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 #include <stdlib.h>
10153 #include <iconv.h>
10155 main ()
10157 iconv_t cd = iconv_open("","");
10158 iconv(cd,NULL,NULL,NULL,NULL);
10159 iconv_close(cd);
10161 return 0;
10163 _ACEOF
10164 if ac_fn_cxx_try_link "$LINENO"; then :
10165 am_cv_lib_iconv=yes
10166 am_cv_func_iconv=yes
10168 rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LIBS="$am_save_LIBS"
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10175 $as_echo "$am_cv_func_iconv" >&6; }
10176 if test "$am_cv_func_iconv" = yes; then
10178 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10181 if test "$am_cv_lib_iconv" = yes; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10183 $as_echo_n "checking how to link with libiconv... " >&6; }
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10185 $as_echo "$LIBICONV" >&6; }
10186 else
10187 CPPFLAGS="$am_save_CPPFLAGS"
10188 LIBICONV=
10189 LTLIBICONV=
10194 if test "$am_cv_func_iconv" = yes; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10196 $as_echo_n "checking for iconv declaration... " >&6; }
10197 if test "${am_cv_proto_iconv+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 #include <stdlib.h>
10205 #include <iconv.h>
10206 extern
10207 #ifdef __cplusplus
10209 #endif
10210 #if defined(__STDC__) || defined(__cplusplus)
10211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10212 #else
10213 size_t iconv();
10214 #endif
10217 main ()
10221 return 0;
10223 _ACEOF
10224 if ac_fn_cxx_try_compile "$LINENO"; then :
10225 am_cv_proto_iconv_arg1=""
10226 else
10227 am_cv_proto_iconv_arg1="const"
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 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);"
10233 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10235 }$am_cv_proto_iconv" >&5
10236 $as_echo "${ac_t:-
10237 }$am_cv_proto_iconv" >&6; }
10239 cat >>confdefs.h <<_ACEOF
10240 #define ICONV_CONST $am_cv_proto_iconv_arg1
10241 _ACEOF
10245 ac_ext=c
10246 ac_cpp='$CPP $CPPFLAGS'
10247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10252 # Until we have in-tree GNU iconv:
10253 LIBICONV_DEP=
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10258 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10259 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #include <locale.h>
10266 main ()
10268 return LC_MESSAGES
10270 return 0;
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274 am_cv_val_LC_MESSAGES=yes
10275 else
10276 am_cv_val_LC_MESSAGES=no
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10282 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10283 if test $am_cv_val_LC_MESSAGES = yes; then
10285 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10292 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10293 if test "${am_cv_langinfo_codeset+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <langinfo.h>
10300 main ()
10302 char* cs = nl_langinfo(CODESET);
10304 return 0;
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308 am_cv_langinfo_codeset=yes
10309 else
10310 am_cv_langinfo_codeset=no
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10317 $as_echo "$am_cv_langinfo_codeset" >&6; }
10318 if test $am_cv_langinfo_codeset = yes; then
10320 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10325 # We will need to find libiberty.h and ansidecl.h
10326 saved_CFLAGS="$CFLAGS"
10327 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10328 saved_CXXFLAGS="$CXXFLAGS"
10329 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10330 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10331 strsignal strstr stpcpy strverscmp \
10332 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10333 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
10335 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10337 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10338 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 #undef $ac_tr_decl
10344 #define $ac_tr_decl 1
10346 #include "ansidecl.h"
10347 #include "system.h"
10350 main ()
10352 #ifndef $ac_func
10353 char *(*pfn) = (char *(*)) $ac_func ;
10354 #endif
10356 return 0;
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"; then :
10360 eval "gcc_cv_have_decl_$ac_func=yes"
10361 else
10362 eval "gcc_cv_have_decl_$ac_func=no"
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10370 #define $ac_tr_decl 1
10371 _ACEOF
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10376 #define $ac_tr_decl 0
10377 _ACEOF
10381 done
10384 for ac_func in getrlimit setrlimit getrusage
10386 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10388 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10389 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 #undef $ac_tr_decl
10395 #define $ac_tr_decl 1
10397 #include "ansidecl.h"
10398 #include "system.h"
10399 #ifdef HAVE_SYS_RESOURCE_H
10400 #include <sys/resource.h>
10401 #endif
10405 main ()
10407 #ifndef $ac_func
10408 char *(*pfn) = (char *(*)) $ac_func ;
10409 #endif
10411 return 0;
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"; then :
10415 eval "gcc_cv_have_decl_$ac_func=yes"
10416 else
10417 eval "gcc_cv_have_decl_$ac_func=no"
10419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10425 #define $ac_tr_decl 1
10426 _ACEOF
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10431 #define $ac_tr_decl 0
10432 _ACEOF
10436 done
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10442 #include "ansidecl.h"
10443 #include "system.h"
10444 #ifdef HAVE_SYS_RESOURCE_H
10445 #include <sys/resource.h>
10446 #endif
10449 main ()
10451 rlim_t l = 0;
10453 return 0;
10455 _ACEOF
10456 if ac_fn_c_try_compile "$LINENO"; then :
10458 else
10460 $as_echo "#define rlim_t long" >>confdefs.h
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10466 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10467 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10468 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10469 for ac_func in ldgetname
10471 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10474 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 #undef $ac_tr_decl
10480 #define $ac_tr_decl 1
10482 #include "ansidecl.h"
10483 #include "system.h"
10484 #ifdef HAVE_LDFCN_H
10485 #undef FREAD
10486 #undef FWRITE
10487 #include <ldfcn.h>
10488 #endif
10492 main ()
10494 #ifndef $ac_func
10495 char *(*pfn) = (char *(*)) $ac_func ;
10496 #endif
10498 return 0;
10500 _ACEOF
10501 if ac_fn_c_try_compile "$LINENO"; then :
10502 eval "gcc_cv_have_decl_$ac_func=yes"
10503 else
10504 eval "gcc_cv_have_decl_$ac_func=no"
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10512 #define $ac_tr_decl 1
10513 _ACEOF
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10518 #define $ac_tr_decl 0
10519 _ACEOF
10523 done
10526 for ac_func in times
10528 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10530 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10531 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536 #undef $ac_tr_decl
10537 #define $ac_tr_decl 1
10539 #include "ansidecl.h"
10540 #include "system.h"
10541 #ifdef HAVE_SYS_TIMES_H
10542 #include <sys/times.h>
10543 #endif
10547 main ()
10549 #ifndef $ac_func
10550 char *(*pfn) = (char *(*)) $ac_func ;
10551 #endif
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"; then :
10557 eval "gcc_cv_have_decl_$ac_func=yes"
10558 else
10559 eval "gcc_cv_have_decl_$ac_func=no"
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10566 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10567 #define $ac_tr_decl 1
10568 _ACEOF
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 0
10574 _ACEOF
10578 done
10581 for ac_func in sigaltstack
10583 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #undef $ac_tr_decl
10592 #define $ac_tr_decl 1
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #include <signal.h>
10600 main ()
10602 #ifndef $ac_func
10603 char *(*pfn) = (char *(*)) $ac_func ;
10604 #endif
10606 return 0;
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610 eval "gcc_cv_have_decl_$ac_func=yes"
10611 else
10612 eval "gcc_cv_have_decl_$ac_func=no"
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10620 #define $ac_tr_decl 1
10621 _ACEOF
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10626 #define $ac_tr_decl 0
10627 _ACEOF
10631 done
10634 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10635 # prototype.
10636 ac_ext=cpp
10637 ac_cpp='$CXXCPP $CPPFLAGS'
10638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10642 for ac_func in madvise
10644 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #undef $ac_tr_decl
10653 #define $ac_tr_decl 1
10655 #include "ansidecl.h"
10656 #include "system.h"
10660 main ()
10662 #ifndef $ac_func
10663 char *(*pfn) = (char *(*)) $ac_func ;
10664 #endif
10666 return 0;
10668 _ACEOF
10669 if ac_fn_cxx_try_compile "$LINENO"; then :
10670 eval "gcc_cv_have_decl_$ac_func=yes"
10671 else
10672 eval "gcc_cv_have_decl_$ac_func=no"
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10680 #define $ac_tr_decl 1
10681 _ACEOF
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 0
10687 _ACEOF
10691 done
10693 ac_ext=c
10694 ac_cpp='$CPP $CPPFLAGS'
10695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10700 # More time-related stuff.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10702 $as_echo_n "checking for struct tms... " >&6; }
10703 if test "${ac_cv_struct_tms+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 #include "ansidecl.h"
10711 #include "system.h"
10712 #ifdef HAVE_SYS_TIMES_H
10713 #include <sys/times.h>
10714 #endif
10717 main ()
10719 struct tms tms;
10721 return 0;
10723 _ACEOF
10724 if ac_fn_c_try_compile "$LINENO"; then :
10725 ac_cv_struct_tms=yes
10726 else
10727 ac_cv_struct_tms=no
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10732 $as_echo "$ac_cv_struct_tms" >&6; }
10733 if test $ac_cv_struct_tms = yes; then
10735 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10739 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10740 # revisit after autoconf 2.50.
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10742 $as_echo_n "checking for clock_t... " >&6; }
10743 if test "${gcc_cv_type_clock_t+set}" = set; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 #include "ansidecl.h"
10751 #include "system.h"
10754 main ()
10756 clock_t x;
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762 gcc_cv_type_clock_t=yes
10763 else
10764 gcc_cv_type_clock_t=no
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10769 $as_echo "$gcc_cv_type_clock_t" >&6; }
10770 if test $gcc_cv_type_clock_t = yes; then
10772 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10776 # Check if F_SETLKW is supported by fcntl.
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10778 $as_echo_n "checking for F_SETLKW... " >&6; }
10779 if test "${ac_cv_f_setlkw+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10786 #include <fcntl.h>
10788 main ()
10791 struct flock fl;
10792 fl.l_whence = 0;
10793 fl.l_start = 0;
10794 fl.l_len = 0;
10795 fl.l_pid = 0;
10796 return fcntl (1, F_SETLKW, &fl);
10798 return 0;
10800 _ACEOF
10801 if ac_fn_c_try_compile "$LINENO"; then :
10802 ac_cv_f_setlkw=yes
10803 else
10804 ac_cv_f_setlkw=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10809 $as_echo "$ac_cv_f_setlkw" >&6; }
10810 if test $ac_cv_f_setlkw = yes; then
10812 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10816 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10817 CFLAGS="$saved_CFLAGS"
10818 CXXFLAGS="$saved_CXXFLAGS"
10820 # mkdir takes a single argument on some systems.
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10822 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10823 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 #include <sys/types.h>
10830 #ifdef HAVE_SYS_STAT_H
10831 # include <sys/stat.h>
10832 #endif
10833 #ifdef HAVE_UNISTD_H
10834 # include <unistd.h>
10835 #endif
10836 #ifdef HAVE_DIRECT_H
10837 # include <direct.h>
10838 #endif
10840 main ()
10842 mkdir ("foo", 0);
10844 return 0;
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"; then :
10848 gcc_cv_mkdir_takes_one_arg=no
10849 else
10850 gcc_cv_mkdir_takes_one_arg=yes
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10855 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10856 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10858 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10863 # File extensions
10864 manext='.1'
10865 objext='.o'
10869 # With Setjmp/Longjmp based exception handling.
10870 # Check whether --enable-sjlj-exceptions was given.
10871 if test "${enable_sjlj_exceptions+set}" = set; then :
10872 enableval=$enable_sjlj_exceptions; case $target in
10873 *-*-hpux10*)
10874 if test $enableval != yes; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10876 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10877 enableval=yes
10880 esac
10881 force_sjlj_exceptions=yes
10882 else
10883 case $target in
10884 *-*-hpux10*)
10885 force_sjlj_exceptions=yes
10886 enableval=yes
10889 force_sjlj_exceptions=no
10891 esac
10894 if test $force_sjlj_exceptions = yes; then
10895 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10897 cat >>confdefs.h <<_ACEOF
10898 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10899 _ACEOF
10903 # --------------------------------------------------------
10904 # Build, host, and target specific configuration fragments
10905 # --------------------------------------------------------
10907 # Collect build-machine-specific information.
10908 . ${srcdir}/config.build
10910 # Collect host-machine-specific information.
10911 . ${srcdir}/config.host
10913 target_gtfiles=
10915 # Collect target-machine-specific information.
10916 . ${srcdir}/config.gcc
10918 extra_objs="${host_extra_objs} ${extra_objs}"
10919 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10921 # Default the target-machine variables that were not explicitly set.
10922 if test x"$tm_file" = x
10923 then tm_file=$cpu_type/$cpu_type.h; fi
10925 if test x"$extra_headers" = x
10926 then extra_headers=; fi
10928 if test x$md_file = x
10929 then md_file=$cpu_type/$cpu_type.md; fi
10931 if test x$out_file = x
10932 then out_file=$cpu_type/$cpu_type.c; fi
10934 if test x"$tmake_file" = x
10935 then tmake_file=$cpu_type/t-$cpu_type
10938 # Support --enable-initfini-array.
10939 if test x$enable_initfini_array != xno; then
10940 tm_file="${tm_file} initfini-array.h"
10943 if test x"$dwarf2" = xyes
10944 then tm_file="$tm_file tm-dwarf2.h"
10947 # Say what files are being used for the output code and MD file.
10948 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10949 echo "Using \`$srcdir/config/$md_file' as machine description file."
10951 # If any of the xm_file variables contain nonexistent files, warn
10952 # about them and drop them.
10955 for x in $build_xm_file; do
10956 if test -f $srcdir/config/$x
10957 then bx="$bx $x"
10958 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10959 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10961 done
10962 build_xm_file="$bx"
10965 for x in $host_xm_file; do
10966 if test -f $srcdir/config/$x
10967 then hx="$hx $x"
10968 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10969 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10971 done
10972 host_xm_file="$hx"
10975 for x in $xm_file; do
10976 if test -f $srcdir/config/$x
10977 then tx="$tx $x"
10978 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10979 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10981 done
10982 xm_file="$tx"
10984 count=a
10985 for f in $tm_file; do
10986 count=${count}x
10987 done
10988 if test $count = ax; then
10989 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10990 else
10991 echo "Using the following target machine macro files:"
10992 for f in $tm_file; do
10993 echo " $srcdir/config/$f"
10994 done
10997 if test x$need_64bit_hwint = xyes; then
10999 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11003 if test x$use_long_long_for_widest_fast_int = xyes; then
11005 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11009 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_GNU_LD $gnu_ld_bool
11013 _ACEOF
11016 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_GNU_AS $gnu_as_bool
11020 _ACEOF
11023 count=a
11024 for f in $host_xm_file; do
11025 count=${count}x
11026 done
11027 if test $count = a; then
11029 elif test $count = ax; then
11030 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11031 else
11032 echo "Using the following host machine macro files:"
11033 for f in $host_xm_file; do
11034 echo " $srcdir/config/$f"
11035 done
11037 echo "Using ${out_host_hook_obj} for host machine hooks."
11039 if test "$host_xm_file" != "$build_xm_file"; then
11040 count=a
11041 for f in $build_xm_file; do
11042 count=${count}x
11043 done
11044 if test $count = a; then
11046 elif test $count = ax; then
11047 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11048 else
11049 echo "Using the following build machine macro files:"
11050 for f in $build_xm_file; do
11051 echo " $srcdir/config/$f"
11052 done
11056 if test -n "$configured_native_system_header_dir"; then
11057 native_system_header_dir=$configured_native_system_header_dir
11059 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11062 case ${host} in
11063 powerpc*-*-darwin*)
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11065 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11066 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 #include <sys/cdefs.h>
11073 #include <sys/signal.h>
11074 #include <ucontext.h>
11075 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11077 _ACEOF
11078 if ac_fn_c_try_compile "$LINENO"; then :
11079 gcc_cv_mcontext_underscores=no
11080 else
11081 gcc_cv_mcontext_underscores=yes
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11086 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11087 if test $gcc_cv_mcontext_underscores = yes; then
11089 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11093 esac
11095 # ---------
11096 # Threading
11097 # ---------
11099 # Check if a valid thread package
11100 case ${enable_threads} in
11101 "" | no)
11102 # No threads
11103 target_thread_file='single'
11105 yes)
11106 # default
11107 target_thread_file='single'
11109 aix | dce | lynx | mipssde | posix | rtems | \
11110 single | tpf | vxworks | win32)
11111 target_thread_file=${enable_threads}
11114 echo "${enable_threads} is an unknown thread package" 1>&2
11115 exit 1
11117 esac
11119 if test x${thread_file} = x; then
11120 # No thread file set by target-specific clauses in config.gcc,
11121 # so use file chosen by default logic above
11122 thread_file=${target_thread_file}
11125 # --------
11126 # UNSORTED
11127 # --------
11129 use_cxa_atexit=no
11130 if test x$enable___cxa_atexit = xyes || \
11131 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11132 if test x$host = x$target; then
11133 case $host in
11134 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11135 # keyed to flag_use_cxa_atexit
11136 *-*-mingw32*)
11137 use_cxa_atexit=yes
11139 powerpc-ibm-aix*)
11140 use_cxa_atexit=yes
11143 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11144 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11145 use_cxa_atexit=yes
11146 else
11147 echo "__cxa_atexit can't be enabled on this target"
11151 esac
11152 else
11153 # We can't check for __cxa_atexit when building a cross, so assume
11154 # it is available
11155 use_cxa_atexit=yes
11157 if test x$use_cxa_atexit = xyes; then
11159 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11164 # Look for a file containing extra machine modes.
11165 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11166 extra_modes_file='$(srcdir)'/config/${extra_modes}
11169 cat >>confdefs.h <<_ACEOF
11170 #define EXTRA_MODES_FILE "config/$extra_modes"
11171 _ACEOF
11175 # Convert extra_options into a form suitable for Makefile use.
11176 extra_opt_files=
11177 all_opt_files=
11178 for f in $extra_options; do
11179 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11180 all_opt_files="$all_opt_files $srcdir/config/$f"
11181 done
11184 # auto-host.h is the file containing items generated by autoconf and is
11185 # the first file included by config.h.
11186 # If host=build, it is correct to have bconfig include auto-host.h
11187 # as well. If host!=build, we are in error and need to do more
11188 # work to find out the build config parameters.
11189 if test x$host = x$build
11190 then
11191 build_auto=auto-host.h
11192 else
11193 # We create a subdir, then run autoconf in the subdir.
11194 # To prevent recursion we set host and build for the new
11195 # invocation of configure to the build for this invocation
11196 # of configure.
11197 tempdir=build.$$
11198 rm -rf $tempdir
11199 mkdir $tempdir
11200 cd $tempdir
11201 case ${srcdir} in
11202 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11203 *) realsrcdir=../${srcdir};;
11204 esac
11205 # Clearing GMPINC is necessary to prevent host headers being
11206 # used by the build compiler. Defining GENERATOR_FILE stops
11207 # system.h from including gmp.h.
11208 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11209 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11210 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11211 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11212 ${realsrcdir}/configure \
11213 --enable-languages=${enable_languages-all} \
11214 --target=$target_alias --host=$build_alias --build=$build_alias
11216 # We just finished tests for the build machine, so rename
11217 # the file auto-build.h in the gcc directory.
11218 mv auto-host.h ../auto-build.h
11219 cd ..
11220 rm -rf $tempdir
11221 build_auto=auto-build.h
11225 tm_file="${tm_file} defaults.h"
11226 tm_p_file="${tm_p_file} tm-preds.h"
11227 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11228 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11229 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11230 # put this back in temporarily.
11231 xm_file="auto-host.h ansidecl.h ${xm_file}"
11233 # --------
11234 # UNSORTED
11235 # --------
11237 # Compile in configure arguments.
11238 if test -f configargs.h ; then
11239 # Being re-configured.
11240 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11241 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11242 else
11243 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11246 # Double all backslashes and backslash all quotes to turn
11247 # gcc_config_arguments into a C string.
11248 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11249 $gcc_config_arguments
11251 gcc_config_arguments_str=`cat conftest.out`
11252 rm -f conftest.out
11254 cat > configargs.h <<EOF
11255 /* Generated automatically. */
11256 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11257 static const char thread_model[] = "$thread_file";
11259 static const struct {
11260 const char *name, *value;
11261 } configure_default_options[] = $configure_default_options;
11264 gcc_BASEVER=`cat $srcdir/BASE-VER`
11265 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11266 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11267 if test -f $srcdir/REVISION ; then
11268 gcc_REVISION=`cat $srcdir/REVISION`
11269 else
11270 gcc_REVISION=""
11272 cat > plugin-version.h <<EOF
11273 #include "configargs.h"
11275 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11276 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11277 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11278 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11280 static char basever[] = "$gcc_BASEVER";
11281 static char datestamp[] = "$gcc_DATESTAMP";
11282 static char devphase[] = "$gcc_DEVPHASE";
11283 static char revision[] = "$gcc_REVISION";
11285 /* FIXME plugins: We should make the version information more precise.
11286 One way to do is to add a checksum. */
11288 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11289 devphase, revision,
11290 configuration_arguments};
11293 # Internationalization
11294 # If we haven't got the data from the intl directory,
11295 # assume NLS is disabled.
11296 USE_NLS=no
11297 LIBINTL=
11298 LIBINTL_DEP=
11299 INCINTL=
11300 XGETTEXT=
11301 GMSGFMT=
11302 POSUB=
11304 if test -f ../intl/config.intl; then
11305 . ../intl/config.intl
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11308 $as_echo_n "checking whether NLS is requested... " >&6; }
11309 if test x"$USE_NLS" != xyes; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11314 $as_echo "yes" >&6; }
11316 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11320 $as_echo_n "checking for catalogs to be installed... " >&6; }
11321 # Look for .po and .gmo files in the source directory.
11322 CATALOGS=
11323 XLINGUAS=
11324 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11325 # If there aren't any .gmo files the shell will give us the
11326 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11327 # weeded out.
11328 case "$cat" in *\**)
11329 continue;;
11330 esac
11331 # The quadruple backslash is collapsed to a double backslash
11332 # by the backticks, then collapsed again by the double quotes,
11333 # leaving us with one backslash in the sed expression (right
11334 # before the dot that mustn't act as a wildcard).
11335 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11336 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11337 # The user is allowed to set LINGUAS to a list of languages to
11338 # install catalogs for. If it's empty that means "all of them."
11339 if test "x$LINGUAS" = x; then
11340 CATALOGS="$CATALOGS $cat"
11341 XLINGUAS="$XLINGUAS $lang"
11342 else
11343 case "$LINGUAS" in *$lang*)
11344 CATALOGS="$CATALOGS $cat"
11345 XLINGUAS="$XLINGUAS $lang"
11347 esac
11349 done
11350 LINGUAS="$XLINGUAS"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11352 $as_echo "$LINGUAS" >&6; }
11355 DATADIRNAME=share
11357 INSTOBJEXT=.mo
11359 GENCAT=gencat
11361 CATOBJEXT=.gmo
11365 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11366 # -liconv on the link line twice.
11367 case "$LIBINTL" in *$LIBICONV*)
11368 LIBICONV= ;;
11369 esac
11371 # Check whether --enable-secureplt was given.
11372 if test "${enable_secureplt+set}" = set; then :
11373 enableval=$enable_secureplt;
11377 # Check whether --enable-leading-mingw64-underscores was given.
11378 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11379 enableval=$enable_leading_mingw64_underscores;
11382 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11384 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11388 # Check whether --enable-cld was given.
11389 if test "${enable_cld+set}" = set; then :
11390 enableval=$enable_cld;
11391 else
11392 enable_cld=no
11396 # Check whether --enable-frame-pointer was given.
11397 if test "${enable_frame_pointer+set}" = set; then :
11398 enableval=$enable_frame_pointer;
11399 else
11401 case $target_os in
11402 linux* | darwin[8912]*)
11403 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11404 # DWARF2.
11405 enable_frame_pointer=no
11408 enable_frame_pointer=yes
11410 esac
11415 # Windows32 Registry support for specifying GCC installation paths.
11416 # Check whether --enable-win32-registry was given.
11417 if test "${enable_win32_registry+set}" = set; then :
11418 enableval=$enable_win32_registry;
11422 case $host_os in
11423 win32 | pe | cygwin* | mingw32* | uwin*)
11424 if test "x$enable_win32_registry" != xno; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11426 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11427 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 ac_func_search_save_LIBS=$LIBS
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 char RegOpenKeyExA ();
11442 main ()
11444 return RegOpenKeyExA ();
11446 return 0;
11448 _ACEOF
11449 for ac_lib in '' advapi32; do
11450 if test -z "$ac_lib"; then
11451 ac_res="none required"
11452 else
11453 ac_res=-l$ac_lib
11454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_search_RegOpenKeyExA=$ac_res
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext
11461 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11462 break
11464 done
11465 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11467 else
11468 ac_cv_search_RegOpenKeyExA=no
11470 rm conftest.$ac_ext
11471 LIBS=$ac_func_search_save_LIBS
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11474 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11475 ac_res=$ac_cv_search_RegOpenKeyExA
11476 if test "$ac_res" != no; then :
11477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11479 else
11480 enable_win32_registry=no
11485 if test "x$enable_win32_registry" != xno; then
11487 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11490 if test "x$enable_win32_registry" != xyes \
11491 && test "x$enable_win32_registry" != x; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11495 _ACEOF
11500 esac
11502 # Get an absolute path to the GCC top-level source directory
11503 holddir=`${PWDCMD-pwd}`
11504 cd $srcdir
11505 topdir=`${PWDCMD-pwd}`
11506 cd $holddir
11508 # Conditionalize the makefile for this host machine.
11509 xmake_file=
11510 for f in ${host_xmake_file}
11512 if test -f ${srcdir}/config/$f
11513 then
11514 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11516 done
11518 # Conditionalize the makefile for this target machine.
11519 tmake_file_=
11520 for f in ${tmake_file}
11522 if test -f ${srcdir}/config/$f
11523 then
11524 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11526 done
11527 tmake_file="${tmake_file_}"
11529 out_object_file=`basename $out_file .c`.o
11530 common_out_object_file=`basename $common_out_file .c`.o
11532 tm_file_list="options.h"
11533 tm_include_list="options.h insn-constants.h"
11534 for f in $tm_file; do
11535 case $f in
11536 ./* )
11537 f=`echo $f | sed 's/^..//'`
11538 tm_file_list="${tm_file_list} $f"
11539 tm_include_list="${tm_include_list} $f"
11541 defaults.h )
11542 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11543 tm_include_list="${tm_include_list} $f"
11546 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11547 tm_include_list="${tm_include_list} config/$f"
11549 esac
11550 done
11552 tm_p_file_list=
11553 tm_p_include_list=
11554 for f in $tm_p_file; do
11555 case $f in
11556 tm-preds.h )
11557 tm_p_file_list="${tm_p_file_list} $f"
11558 tm_p_include_list="${tm_p_include_list} $f"
11561 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11562 tm_p_include_list="${tm_p_include_list} config/$f"
11563 esac
11564 done
11566 xm_file_list=
11567 xm_include_list=
11568 for f in $xm_file; do
11569 case $f in
11570 ansidecl.h )
11571 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11572 xm_include_list="${xm_include_list} $f"
11574 auto-host.h )
11575 xm_file_list="${xm_file_list} $f"
11576 xm_include_list="${xm_include_list} $f"
11579 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11580 xm_include_list="${xm_include_list} config/$f"
11582 esac
11583 done
11585 host_xm_file_list=
11586 host_xm_include_list=
11587 for f in $host_xm_file; do
11588 case $f in
11589 ansidecl.h )
11590 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11591 host_xm_include_list="${host_xm_include_list} $f"
11593 auto-host.h )
11594 host_xm_file_list="${host_xm_file_list} $f"
11595 host_xm_include_list="${host_xm_include_list} $f"
11598 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11599 host_xm_include_list="${host_xm_include_list} config/$f"
11601 esac
11602 done
11604 build_xm_file_list=
11605 for f in $build_xm_file; do
11606 case $f in
11607 ansidecl.h )
11608 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11609 build_xm_include_list="${build_xm_include_list} $f"
11611 auto-build.h | auto-host.h )
11612 build_xm_file_list="${build_xm_file_list} $f"
11613 build_xm_include_list="${build_xm_include_list} $f"
11616 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11617 build_xm_include_list="${build_xm_include_list} config/$f"
11619 esac
11620 done
11622 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11623 # cross-compiler which does not use the native headers and libraries.
11624 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11625 CROSS=
11626 ALL=all.internal
11627 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11629 if test "x$with_build_sysroot" != x; then
11630 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11631 else
11632 # This value is used, even on a native system, because
11633 # CROSS_SYSTEM_HEADER_DIR is just
11634 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11635 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11638 if test x$host != x$target
11639 then
11640 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11641 ALL=all.cross
11642 SYSTEM_HEADER_DIR=$build_system_header_dir
11643 case "$host","$target" in
11644 # Darwin crosses can use the host system's libraries and headers,
11645 # because of the fat library support. Of course, it must be the
11646 # same version of Darwin on both sides. Allow the user to
11647 # just say --target=foo-darwin without a version number to mean
11648 # "the version on this system".
11649 *-*-darwin*,*-*-darwin*)
11650 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11651 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11652 if test $hostos = $targetos -o $targetos = darwin ; then
11653 CROSS=
11654 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11655 with_headers=yes
11659 i?86-*-*,x86_64-*-* \
11660 | powerpc*-*-*,powerpc64*-*-*)
11661 CROSS="$CROSS -DNATIVE_CROSS" ;;
11662 esac
11664 case $target in
11665 *-*-mingw*)
11666 if test "x$with_headers" = x; then
11667 with_headers=yes
11672 esac
11673 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11674 SYSTEM_HEADER_DIR=$build_system_header_dir
11677 # If this is a cross-compiler that does not
11678 # have its own set of headers then define
11679 # inhibit_libc
11681 # If this is using newlib, without having the headers available now,
11682 # then define inhibit_libc in LIBGCC2_CFLAGS.
11683 # This prevents libgcc2 from containing any code which requires libc
11684 # support.
11685 : ${inhibit_libc=false}
11686 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11687 test x$with_newlib = xyes ; } &&
11688 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11689 inhibit_libc=true
11693 # When building gcc with a cross-compiler, we need to adjust things so
11694 # that the generator programs are still built with the native compiler.
11695 # Also, we cannot run fixincludes.
11697 # These are the normal (build=host) settings:
11698 CC_FOR_BUILD='$(CC)'
11699 CXX_FOR_BUILD='$(CXX)'
11700 BUILD_CFLAGS='$(ALL_CFLAGS)'
11701 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11702 BUILD_LDFLAGS='$(LDFLAGS)'
11703 STMP_FIXINC=stmp-fixinc
11705 # And these apply if build != host, or we are generating coverage data
11706 if test x$build != x$host || test "x$coverage_flags" != x
11707 then
11708 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11709 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11710 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11713 # Expand extra_headers to include complete path.
11714 # This substitutes for lots of t-* files.
11715 extra_headers_list=
11716 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11717 for file in ${extra_headers} ; do
11718 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11719 done
11721 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11722 if test x"$use_gcc_tgmath" = xyes
11723 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11726 # Define collect2 in Makefile.
11727 case $host_can_use_collect2 in
11728 no) collect2= ;;
11729 *) collect2='collect2$(exeext)' ;;
11730 esac
11733 # Add a definition of USE_COLLECT2 if system wants one.
11734 case $use_collect2 in
11735 no) use_collect2= ;;
11736 "") ;;
11738 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11739 xm_defines="${xm_defines} USE_COLLECT2"
11740 case $host_can_use_collect2 in
11742 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11744 esac
11746 esac
11749 cat >>confdefs.h <<_ACEOF
11750 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11751 _ACEOF
11754 # ---------------------------
11755 # Assembler & linker features
11756 # ---------------------------
11758 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11759 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11760 # However when ld-new is first executed from the build tree, libtool will
11761 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11762 # to the build tree. While doing this we need to use the previous-stage
11763 # linker, or we have an infinite loop. The presence of a shell script as
11764 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11765 # the gcc/collect-ld script. So we need to know how libtool works, or
11766 # exec-tool will fail.
11769 case `pwd` in
11770 *\ * | *\ *)
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11772 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11773 esac
11777 macro_version='2.2.7a'
11778 macro_revision='1.3134'
11792 ltmain="$ac_aux_dir/ltmain.sh"
11794 # Backslashify metacharacters that are still active within
11795 # double-quoted strings.
11796 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11798 # Same as above, but do not quote variable references.
11799 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11801 # Sed substitution to delay expansion of an escaped shell variable in a
11802 # double_quote_subst'ed string.
11803 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11805 # Sed substitution to delay expansion of an escaped single quote.
11806 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11808 # Sed substitution to avoid accidental globbing in evaled expressions
11809 no_glob_subst='s/\*/\\\*/g'
11811 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11812 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11813 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11816 $as_echo_n "checking how to print strings... " >&6; }
11817 # Test print first, because it will be a builtin if present.
11818 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11819 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11820 ECHO='print -r --'
11821 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11822 ECHO='printf %s\n'
11823 else
11824 # Use this function as a fallback that always works.
11825 func_fallback_echo ()
11827 eval 'cat <<_LTECHO_EOF
11829 _LTECHO_EOF'
11831 ECHO='func_fallback_echo'
11834 # func_echo_all arg...
11835 # Invoke $ECHO with all args, space-separated.
11836 func_echo_all ()
11838 $ECHO ""
11841 case "$ECHO" in
11842 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11843 $as_echo "printf" >&6; } ;;
11844 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11845 $as_echo "print -r" >&6; } ;;
11846 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11847 $as_echo "cat" >&6; } ;;
11848 esac
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11864 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11865 if test "${ac_cv_path_SED+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11869 for ac_i in 1 2 3 4 5 6 7; do
11870 ac_script="$ac_script$as_nl$ac_script"
11871 done
11872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11873 { ac_script=; unset ac_script;}
11874 if test -z "$SED"; then
11875 ac_path_SED_found=false
11876 # Loop through the user's path and test for each of PROGNAME-LIST
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_prog in sed gsed; do
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11885 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11886 # Check for GNU ac_path_SED and select it if it is found.
11887 # Check for GNU $ac_path_SED
11888 case `"$ac_path_SED" --version 2>&1` in
11889 *GNU*)
11890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11892 ac_count=0
11893 $as_echo_n 0123456789 >"conftest.in"
11894 while :
11896 cat "conftest.in" "conftest.in" >"conftest.tmp"
11897 mv "conftest.tmp" "conftest.in"
11898 cp "conftest.in" "conftest.nl"
11899 $as_echo '' >> "conftest.nl"
11900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11902 as_fn_arith $ac_count + 1 && ac_count=$as_val
11903 if test $ac_count -gt ${ac_path_SED_max-0}; then
11904 # Best one so far, save it but keep looking for a better one
11905 ac_cv_path_SED="$ac_path_SED"
11906 ac_path_SED_max=$ac_count
11908 # 10*(2^10) chars as input seems more than enough
11909 test $ac_count -gt 10 && break
11910 done
11911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11912 esac
11914 $ac_path_SED_found && break 3
11915 done
11916 done
11917 done
11918 IFS=$as_save_IFS
11919 if test -z "$ac_cv_path_SED"; then
11920 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11922 else
11923 ac_cv_path_SED=$SED
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11928 $as_echo "$ac_cv_path_SED" >&6; }
11929 SED="$ac_cv_path_SED"
11930 rm -f conftest.sed
11932 test -z "$SED" && SED=sed
11933 Xsed="$SED -e 1s/^X//"
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11946 $as_echo_n "checking for fgrep... " >&6; }
11947 if test "${ac_cv_path_FGREP+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11951 then ac_cv_path_FGREP="$GREP -F"
11952 else
11953 if test -z "$FGREP"; then
11954 ac_path_FGREP_found=false
11955 # Loop through the user's path and test for each of PROGNAME-LIST
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_prog in fgrep; do
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11964 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11965 # Check for GNU ac_path_FGREP and select it if it is found.
11966 # Check for GNU $ac_path_FGREP
11967 case `"$ac_path_FGREP" --version 2>&1` in
11968 *GNU*)
11969 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11971 ac_count=0
11972 $as_echo_n 0123456789 >"conftest.in"
11973 while :
11975 cat "conftest.in" "conftest.in" >"conftest.tmp"
11976 mv "conftest.tmp" "conftest.in"
11977 cp "conftest.in" "conftest.nl"
11978 $as_echo 'FGREP' >> "conftest.nl"
11979 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11981 as_fn_arith $ac_count + 1 && ac_count=$as_val
11982 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11983 # Best one so far, save it but keep looking for a better one
11984 ac_cv_path_FGREP="$ac_path_FGREP"
11985 ac_path_FGREP_max=$ac_count
11987 # 10*(2^10) chars as input seems more than enough
11988 test $ac_count -gt 10 && break
11989 done
11990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11991 esac
11993 $ac_path_FGREP_found && break 3
11994 done
11995 done
11996 done
11997 IFS=$as_save_IFS
11998 if test -z "$ac_cv_path_FGREP"; then
11999 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12001 else
12002 ac_cv_path_FGREP=$FGREP
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12008 $as_echo "$ac_cv_path_FGREP" >&6; }
12009 FGREP="$ac_cv_path_FGREP"
12012 test -z "$GREP" && GREP=grep
12032 # Check whether --with-gnu-ld was given.
12033 if test "${with_gnu_ld+set}" = set; then :
12034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12035 else
12036 with_gnu_ld=no
12039 ac_prog=ld
12040 if test "$GCC" = yes; then
12041 # Check if gcc -print-prog-name=ld gives a path.
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12043 $as_echo_n "checking for ld used by $CC... " >&6; }
12044 case $host in
12045 *-*-mingw*)
12046 # gcc leaves a trailing carriage return which upsets mingw
12047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12050 esac
12051 case $ac_prog in
12052 # Accept absolute paths.
12053 [\\/]* | ?:[\\/]*)
12054 re_direlt='/[^/][^/]*/\.\./'
12055 # Canonicalize the pathname of ld
12056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12059 done
12060 test -z "$LD" && LD="$ac_prog"
12063 # If it fails, then pretend we aren't using GCC.
12064 ac_prog=ld
12067 # If it is relative, then search for the first ld in PATH.
12068 with_gnu_ld=unknown
12070 esac
12071 elif test "$with_gnu_ld" = yes; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12073 $as_echo_n "checking for GNU ld... " >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12076 $as_echo_n "checking for non-GNU ld... " >&6; }
12078 if test "${lt_cv_path_LD+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test -z "$LD"; then
12082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12083 for ac_dir in $PATH; do
12084 IFS="$lt_save_ifs"
12085 test -z "$ac_dir" && ac_dir=.
12086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12087 lt_cv_path_LD="$ac_dir/$ac_prog"
12088 # Check to see if the program is GNU ld. I'd rather use --version,
12089 # but apparently some variants of GNU ld only accept -v.
12090 # Break only if it was the GNU/non-GNU ld that we prefer.
12091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12092 *GNU* | *'with BFD'*)
12093 test "$with_gnu_ld" != no && break
12096 test "$with_gnu_ld" != yes && break
12098 esac
12100 done
12101 IFS="$lt_save_ifs"
12102 else
12103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12107 LD="$lt_cv_path_LD"
12108 if test -n "$LD"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12110 $as_echo "$LD" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12115 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12118 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12122 case `$LD -v 2>&1 </dev/null` in
12123 *GNU* | *'with BFD'*)
12124 lt_cv_prog_gnu_ld=yes
12127 lt_cv_prog_gnu_ld=no
12129 esac
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12132 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12133 with_gnu_ld=$lt_cv_prog_gnu_ld
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12144 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12145 if test "${lt_cv_path_NM+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$NM"; then
12149 # Let the user override the test.
12150 lt_cv_path_NM="$NM"
12151 else
12152 lt_nm_to_check="${ac_tool_prefix}nm"
12153 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12154 lt_nm_to_check="$lt_nm_to_check nm"
12156 for lt_tmp_nm in $lt_nm_to_check; do
12157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12158 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12159 IFS="$lt_save_ifs"
12160 test -z "$ac_dir" && ac_dir=.
12161 tmp_nm="$ac_dir/$lt_tmp_nm"
12162 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12163 # Check to see if the nm accepts a BSD-compat flag.
12164 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12165 # nm: unknown option "B" ignored
12166 # Tru64's nm complains that /dev/null is an invalid object file
12167 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12168 */dev/null* | *'Invalid file or object type'*)
12169 lt_cv_path_NM="$tmp_nm -B"
12170 break
12173 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12174 */dev/null*)
12175 lt_cv_path_NM="$tmp_nm -p"
12176 break
12179 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12180 continue # so that we can try to find one that supports BSD flags
12182 esac
12184 esac
12186 done
12187 IFS="$lt_save_ifs"
12188 done
12189 : ${lt_cv_path_NM=no}
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12193 $as_echo "$lt_cv_path_NM" >&6; }
12194 if test "$lt_cv_path_NM" != "no"; then
12195 NM="$lt_cv_path_NM"
12196 else
12197 # Didn't find any BSD compatible name lister, look for dumpbin.
12198 if test -n "$DUMPBIN"; then :
12199 # Let the user override the test.
12200 else
12201 if test -n "$ac_tool_prefix"; then
12202 for ac_prog in dumpbin "link -dump"
12204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 if test -n "$DUMPBIN"; then
12212 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12213 else
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12221 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 break 2
12225 done
12226 done
12227 IFS=$as_save_IFS
12231 DUMPBIN=$ac_cv_prog_DUMPBIN
12232 if test -n "$DUMPBIN"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12234 $as_echo "$DUMPBIN" >&6; }
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12241 test -n "$DUMPBIN" && break
12242 done
12244 if test -z "$DUMPBIN"; then
12245 ac_ct_DUMPBIN=$DUMPBIN
12246 for ac_prog in dumpbin "link -dump"
12248 # Extract the first word of "$ac_prog", so it can be a program name with args.
12249 set dummy $ac_prog; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 if test -n "$ac_ct_DUMPBIN"; then
12256 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12257 else
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12265 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12275 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12276 if test -n "$ac_ct_DUMPBIN"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12278 $as_echo "$ac_ct_DUMPBIN" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12285 test -n "$ac_ct_DUMPBIN" && break
12286 done
12288 if test "x$ac_ct_DUMPBIN" = x; then
12289 DUMPBIN=":"
12290 else
12291 case $cross_compiling:$ac_tool_warned in
12292 yes:)
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295 ac_tool_warned=yes ;;
12296 esac
12297 DUMPBIN=$ac_ct_DUMPBIN
12301 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12302 *COFF*)
12303 DUMPBIN="$DUMPBIN -symbols"
12306 DUMPBIN=:
12308 esac
12311 if test "$DUMPBIN" != ":"; then
12312 NM="$DUMPBIN"
12315 test -z "$NM" && NM=nm
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12323 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12324 if test "${lt_cv_nm_interface+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 lt_cv_nm_interface="BSD nm"
12328 echo "int some_variable = 0;" > conftest.$ac_ext
12329 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12330 (eval "$ac_compile" 2>conftest.err)
12331 cat conftest.err >&5
12332 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12333 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12334 cat conftest.err >&5
12335 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12336 cat conftest.out >&5
12337 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12338 lt_cv_nm_interface="MS dumpbin"
12340 rm -f conftest*
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12343 $as_echo "$lt_cv_nm_interface" >&6; }
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12346 $as_echo_n "checking whether ln -s works... " >&6; }
12347 LN_S=$as_ln_s
12348 if test "$LN_S" = "ln -s"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350 $as_echo "yes" >&6; }
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12353 $as_echo "no, using $LN_S" >&6; }
12356 # find the maximum length of command line arguments
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12358 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12359 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12363 teststring="ABCD"
12365 case $build_os in
12366 msdosdjgpp*)
12367 # On DJGPP, this test can blow up pretty badly due to problems in libc
12368 # (any single argument exceeding 2000 bytes causes a buffer overrun
12369 # during glob expansion). Even if it were fixed, the result of this
12370 # check would be larger than it should be.
12371 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12374 gnu*)
12375 # Under GNU Hurd, this test is not required because there is
12376 # no limit to the length of command line arguments.
12377 # Libtool will interpret -1 as no limit whatsoever
12378 lt_cv_sys_max_cmd_len=-1;
12381 cygwin* | mingw* | cegcc*)
12382 # On Win9x/ME, this test blows up -- it succeeds, but takes
12383 # about 5 minutes as the teststring grows exponentially.
12384 # Worse, since 9x/ME are not pre-emptively multitasking,
12385 # you end up with a "frozen" computer, even though with patience
12386 # the test eventually succeeds (with a max line length of 256k).
12387 # Instead, let's just punt: use the minimum linelength reported by
12388 # all of the supported platforms: 8192 (on NT/2K/XP).
12389 lt_cv_sys_max_cmd_len=8192;
12392 mint*)
12393 # On MiNT this can take a long time and run out of memory.
12394 lt_cv_sys_max_cmd_len=8192;
12397 amigaos*)
12398 # On AmigaOS with pdksh, this test takes hours, literally.
12399 # So we just punt and use a minimum line length of 8192.
12400 lt_cv_sys_max_cmd_len=8192;
12403 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12404 # This has been around since 386BSD, at least. Likely further.
12405 if test -x /sbin/sysctl; then
12406 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12407 elif test -x /usr/sbin/sysctl; then
12408 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12409 else
12410 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12412 # And add a safety zone
12413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12417 interix*)
12418 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12419 lt_cv_sys_max_cmd_len=196608
12422 osf*)
12423 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12424 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12425 # nice to cause kernel panics so lets avoid the loop below.
12426 # First set a reasonable default.
12427 lt_cv_sys_max_cmd_len=16384
12429 if test -x /sbin/sysconfig; then
12430 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12431 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12432 esac
12435 sco3.2v5*)
12436 lt_cv_sys_max_cmd_len=102400
12438 sysv5* | sco5v6* | sysv4.2uw2*)
12439 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12440 if test -n "$kargmax"; then
12441 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12442 else
12443 lt_cv_sys_max_cmd_len=32768
12447 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12448 if test -n "$lt_cv_sys_max_cmd_len"; then
12449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12451 else
12452 # Make teststring a little bigger before we do anything with it.
12453 # a 1K string should be a reasonable start.
12454 for i in 1 2 3 4 5 6 7 8 ; do
12455 teststring=$teststring$teststring
12456 done
12457 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12458 # If test is not a shell built-in, we'll probably end up computing a
12459 # maximum length that is only half of the actual maximum length, but
12460 # we can't tell.
12461 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12462 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12463 test $i != 17 # 1/2 MB should be enough
12465 i=`expr $i + 1`
12466 teststring=$teststring$teststring
12467 done
12468 # Only check the string length outside the loop.
12469 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12470 teststring=
12471 # Add a significant safety factor because C++ compilers can tack on
12472 # massive amounts of additional arguments before passing them to the
12473 # linker. It appears as though 1/2 is a usable value.
12474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12477 esac
12481 if test -n $lt_cv_sys_max_cmd_len ; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12483 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12486 $as_echo "none" >&6; }
12488 max_cmd_len=$lt_cv_sys_max_cmd_len
12495 : ${CP="cp -f"}
12496 : ${MV="mv -f"}
12497 : ${RM="rm -f"}
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12500 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12501 # Try some XSI features
12502 xsi_shell=no
12503 ( _lt_dummy="a/b/c"
12504 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12505 = c,a/b,, \
12506 && eval 'test $(( 1 + 1 )) -eq 2 \
12507 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12508 && xsi_shell=yes
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12510 $as_echo "$xsi_shell" >&6; }
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12514 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12515 lt_shell_append=no
12516 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12517 >/dev/null 2>&1 \
12518 && lt_shell_append=yes
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12520 $as_echo "$lt_shell_append" >&6; }
12523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12524 lt_unset=unset
12525 else
12526 lt_unset=false
12533 # test EBCDIC or ASCII
12534 case `echo X|tr X '\101'` in
12535 A) # ASCII based system
12536 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12537 lt_SP2NL='tr \040 \012'
12538 lt_NL2SP='tr \015\012 \040\040'
12540 *) # EBCDIC based system
12541 lt_SP2NL='tr \100 \n'
12542 lt_NL2SP='tr \r\n \100\100'
12544 esac
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12555 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12556 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 lt_cv_ld_reload_flag='-r'
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12562 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12563 reload_flag=$lt_cv_ld_reload_flag
12564 case $reload_flag in
12565 "" | " "*) ;;
12566 *) reload_flag=" $reload_flag" ;;
12567 esac
12568 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12569 case $host_os in
12570 darwin*)
12571 if test "$GCC" = yes; then
12572 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12573 else
12574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12577 esac
12587 if test -n "$ac_tool_prefix"; then
12588 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12589 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 if test -n "$OBJDUMP"; then
12596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12597 else
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12615 OBJDUMP=$ac_cv_prog_OBJDUMP
12616 if test -n "$OBJDUMP"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12618 $as_echo "$OBJDUMP" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12626 if test -z "$ac_cv_prog_OBJDUMP"; then
12627 ac_ct_OBJDUMP=$OBJDUMP
12628 # Extract the first word of "objdump", so it can be a program name with args.
12629 set dummy objdump; ac_word=$2
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631 $as_echo_n "checking for $ac_word... " >&6; }
12632 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 if test -n "$ac_ct_OBJDUMP"; then
12636 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12637 else
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639 for as_dir in $PATH
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12645 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 break 2
12649 done
12650 done
12651 IFS=$as_save_IFS
12655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12656 if test -n "$ac_ct_OBJDUMP"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12658 $as_echo "$ac_ct_OBJDUMP" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12664 if test "x$ac_ct_OBJDUMP" = x; then
12665 OBJDUMP="false"
12666 else
12667 case $cross_compiling:$ac_tool_warned in
12668 yes:)
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12671 ac_tool_warned=yes ;;
12672 esac
12673 OBJDUMP=$ac_ct_OBJDUMP
12675 else
12676 OBJDUMP="$ac_cv_prog_OBJDUMP"
12679 test -z "$OBJDUMP" && OBJDUMP=objdump
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12690 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12691 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 lt_cv_file_magic_cmd='$MAGIC_CMD'
12695 lt_cv_file_magic_test_file=
12696 lt_cv_deplibs_check_method='unknown'
12697 # Need to set the preceding variable on all platforms that support
12698 # interlibrary dependencies.
12699 # 'none' -- dependencies not supported.
12700 # `unknown' -- same as none, but documents that we really don't know.
12701 # 'pass_all' -- all dependencies passed with no checks.
12702 # 'test_compile' -- check by making test program.
12703 # 'file_magic [[regex]]' -- check by looking for files in library path
12704 # which responds to the $file_magic_cmd with a given extended regex.
12705 # If you have `file' or equivalent on your system and you're not sure
12706 # whether `pass_all' will *always* work, you probably want this one.
12708 case $host_os in
12709 aix[4-9]*)
12710 lt_cv_deplibs_check_method=pass_all
12713 beos*)
12714 lt_cv_deplibs_check_method=pass_all
12717 bsdi[45]*)
12718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12719 lt_cv_file_magic_cmd='/usr/bin/file -L'
12720 lt_cv_file_magic_test_file=/shlib/libc.so
12723 cygwin*)
12724 # func_win32_libid is a shell function defined in ltmain.sh
12725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12726 lt_cv_file_magic_cmd='func_win32_libid'
12729 mingw* | pw32*)
12730 # Base MSYS/MinGW do not provide the 'file' command needed by
12731 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12732 # unless we find 'file', for example because we are cross-compiling.
12733 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12734 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12735 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12736 lt_cv_file_magic_cmd='func_win32_libid'
12737 else
12738 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12739 lt_cv_file_magic_cmd='$OBJDUMP -f'
12743 cegcc*)
12744 # use the weaker test based on 'objdump'. See mingw*.
12745 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12746 lt_cv_file_magic_cmd='$OBJDUMP -f'
12749 darwin* | rhapsody*)
12750 lt_cv_deplibs_check_method=pass_all
12753 freebsd* | dragonfly*)
12754 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12755 case $host_cpu in
12756 i*86 )
12757 # Not sure whether the presence of OpenBSD here was a mistake.
12758 # Let's accept both of them until this is cleared up.
12759 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12760 lt_cv_file_magic_cmd=/usr/bin/file
12761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12763 esac
12764 else
12765 lt_cv_deplibs_check_method=pass_all
12769 gnu*)
12770 lt_cv_deplibs_check_method=pass_all
12773 haiku*)
12774 lt_cv_deplibs_check_method=pass_all
12777 hpux10.20* | hpux11*)
12778 lt_cv_file_magic_cmd=/usr/bin/file
12779 case $host_cpu in
12780 ia64*)
12781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12782 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12784 hppa*64*)
12785 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]'
12786 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12790 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12792 esac
12795 interix[3-9]*)
12796 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12800 irix5* | irix6* | nonstopux*)
12801 case $LD in
12802 *-32|*"-32 ") libmagic=32-bit;;
12803 *-n32|*"-n32 ") libmagic=N32;;
12804 *-64|*"-64 ") libmagic=64-bit;;
12805 *) libmagic=never-match;;
12806 esac
12807 lt_cv_deplibs_check_method=pass_all
12810 # This must be Linux ELF.
12811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12812 lt_cv_deplibs_check_method=pass_all
12815 netbsd*)
12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12818 else
12819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12823 newos6*)
12824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12825 lt_cv_file_magic_cmd=/usr/bin/file
12826 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12829 *nto* | *qnx*)
12830 lt_cv_deplibs_check_method=pass_all
12833 openbsd*)
12834 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12836 else
12837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12841 osf3* | osf4* | osf5*)
12842 lt_cv_deplibs_check_method=pass_all
12845 rdos*)
12846 lt_cv_deplibs_check_method=pass_all
12849 solaris*)
12850 lt_cv_deplibs_check_method=pass_all
12853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12854 lt_cv_deplibs_check_method=pass_all
12857 sysv4 | sysv4.3*)
12858 case $host_vendor in
12859 motorola)
12860 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]'
12861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12863 ncr)
12864 lt_cv_deplibs_check_method=pass_all
12866 sequent)
12867 lt_cv_file_magic_cmd='/bin/file'
12868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12870 sni)
12871 lt_cv_file_magic_cmd='/bin/file'
12872 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12873 lt_cv_file_magic_test_file=/lib/libc.so
12875 siemens)
12876 lt_cv_deplibs_check_method=pass_all
12879 lt_cv_deplibs_check_method=pass_all
12881 esac
12884 tpf*)
12885 lt_cv_deplibs_check_method=pass_all
12887 esac
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12891 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12892 file_magic_cmd=$lt_cv_file_magic_cmd
12893 deplibs_check_method=$lt_cv_deplibs_check_method
12894 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12907 if test -n "$ac_tool_prefix"; then
12908 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12909 set dummy ${ac_tool_prefix}ar; ac_word=$2
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12911 $as_echo_n "checking for $ac_word... " >&6; }
12912 if test "${ac_cv_prog_AR+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 if test -n "$AR"; then
12916 ac_cv_prog_AR="$AR" # Let the user override the test.
12917 else
12918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12921 IFS=$as_save_IFS
12922 test -z "$as_dir" && as_dir=.
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12925 ac_cv_prog_AR="${ac_tool_prefix}ar"
12926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 break 2
12929 done
12930 done
12931 IFS=$as_save_IFS
12935 AR=$ac_cv_prog_AR
12936 if test -n "$AR"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12938 $as_echo "$AR" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12946 if test -z "$ac_cv_prog_AR"; then
12947 ac_ct_AR=$AR
12948 # Extract the first word of "ar", so it can be a program name with args.
12949 set dummy ar; ac_word=$2
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951 $as_echo_n "checking for $ac_word... " >&6; }
12952 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 if test -n "$ac_ct_AR"; then
12956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12957 else
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12965 ac_cv_prog_ac_ct_AR="ar"
12966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12969 done
12970 done
12971 IFS=$as_save_IFS
12975 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12976 if test -n "$ac_ct_AR"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12978 $as_echo "$ac_ct_AR" >&6; }
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12984 if test "x$ac_ct_AR" = x; then
12985 AR="false"
12986 else
12987 case $cross_compiling:$ac_tool_warned in
12988 yes:)
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12991 ac_tool_warned=yes ;;
12992 esac
12993 AR=$ac_ct_AR
12995 else
12996 AR="$ac_cv_prog_AR"
12999 test -z "$AR" && AR=ar
13000 test -z "$AR_FLAGS" && AR_FLAGS=cru
13012 if test -n "$ac_tool_prefix"; then
13013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13014 set dummy ${ac_tool_prefix}strip; ac_word=$2
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016 $as_echo_n "checking for $ac_word... " >&6; }
13017 if test "${ac_cv_prog_STRIP+set}" = set; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 if test -n "$STRIP"; then
13021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13022 else
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 break 2
13034 done
13035 done
13036 IFS=$as_save_IFS
13040 STRIP=$ac_cv_prog_STRIP
13041 if test -n "$STRIP"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13043 $as_echo "$STRIP" >&6; }
13044 else
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13051 if test -z "$ac_cv_prog_STRIP"; then
13052 ac_ct_STRIP=$STRIP
13053 # Extract the first word of "strip", so it can be a program name with args.
13054 set dummy strip; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 if test -n "$ac_ct_STRIP"; then
13061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13062 else
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13070 ac_cv_prog_ac_ct_STRIP="strip"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13074 done
13075 done
13076 IFS=$as_save_IFS
13080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13081 if test -n "$ac_ct_STRIP"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13083 $as_echo "$ac_ct_STRIP" >&6; }
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13089 if test "x$ac_ct_STRIP" = x; then
13090 STRIP=":"
13091 else
13092 case $cross_compiling:$ac_tool_warned in
13093 yes:)
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13096 ac_tool_warned=yes ;;
13097 esac
13098 STRIP=$ac_ct_STRIP
13100 else
13101 STRIP="$ac_cv_prog_STRIP"
13104 test -z "$STRIP" && STRIP=:
13111 if test -n "$ac_tool_prefix"; then
13112 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13113 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 if test -n "$RANLIB"; then
13120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13133 done
13134 done
13135 IFS=$as_save_IFS
13139 RANLIB=$ac_cv_prog_RANLIB
13140 if test -n "$RANLIB"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13142 $as_echo "$RANLIB" >&6; }
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13150 if test -z "$ac_cv_prog_RANLIB"; then
13151 ac_ct_RANLIB=$RANLIB
13152 # Extract the first word of "ranlib", so it can be a program name with args.
13153 set dummy ranlib; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 $as_echo_n "checking for $ac_word... " >&6; }
13156 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 if test -n "$ac_ct_RANLIB"; then
13160 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13161 else
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13169 ac_cv_prog_ac_ct_RANLIB="ranlib"
13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13173 done
13174 done
13175 IFS=$as_save_IFS
13179 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13180 if test -n "$ac_ct_RANLIB"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13182 $as_echo "$ac_ct_RANLIB" >&6; }
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13188 if test "x$ac_ct_RANLIB" = x; then
13189 RANLIB=":"
13190 else
13191 case $cross_compiling:$ac_tool_warned in
13192 yes:)
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13195 ac_tool_warned=yes ;;
13196 esac
13197 RANLIB=$ac_ct_RANLIB
13199 else
13200 RANLIB="$ac_cv_prog_RANLIB"
13203 test -z "$RANLIB" && RANLIB=:
13210 # Determine commands to create old-style static archives.
13211 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13212 old_postinstall_cmds='chmod 644 $oldlib'
13213 old_postuninstall_cmds=
13215 if test -n "$RANLIB"; then
13216 case $host_os in
13217 openbsd*)
13218 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13221 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13223 esac
13224 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13227 case $host_os in
13228 darwin*)
13229 lock_old_archive_extraction=yes ;;
13231 lock_old_archive_extraction=no ;;
13232 esac
13272 # If no C compiler was specified, use CC.
13273 LTCC=${LTCC-"$CC"}
13275 # If no C compiler flags were specified, use CFLAGS.
13276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13278 # Allow CC to be a program name with arguments.
13279 compiler=$CC
13282 # Check for command to grab the raw symbol name followed by C symbol from nm.
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13284 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13285 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13289 # These are sane defaults that work on at least a few old systems.
13290 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13292 # Character class describing NM global symbol codes.
13293 symcode='[BCDEGRST]'
13295 # Regexp to match symbols that can be accessed directly from C.
13296 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13298 # Define system-specific variables.
13299 case $host_os in
13300 aix*)
13301 symcode='[BCDT]'
13303 cygwin* | mingw* | pw32* | cegcc*)
13304 symcode='[ABCDGISTW]'
13306 hpux*)
13307 if test "$host_cpu" = ia64; then
13308 symcode='[ABCDEGRST]'
13311 irix* | nonstopux*)
13312 symcode='[BCDEGRST]'
13314 osf*)
13315 symcode='[BCDEGQRST]'
13317 solaris*)
13318 symcode='[BDRT]'
13320 sco3.2v5*)
13321 symcode='[DT]'
13323 sysv4.2uw2*)
13324 symcode='[DT]'
13326 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13327 symcode='[ABDT]'
13329 sysv4)
13330 symcode='[DFNSTU]'
13332 esac
13334 # If we're using GNU nm, then use its standard symbol codes.
13335 case `$NM -V 2>&1` in
13336 *GNU* | *'with BFD'*)
13337 symcode='[ABCDGIRSTW]' ;;
13338 esac
13340 # Transform an extracted symbol line into a proper C declaration.
13341 # Some systems (esp. on ia64) link data and code symbols differently,
13342 # so use this general approach.
13343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13345 # Transform an extracted symbol line into symbol name and symbol address
13346 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13347 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'"
13349 # Handle CRLF in mingw tool chain
13350 opt_cr=
13351 case $build_os in
13352 mingw*)
13353 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13355 esac
13357 # Try without a prefix underscore, then with it.
13358 for ac_symprfx in "" "_"; do
13360 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13361 symxfrm="\\1 $ac_symprfx\\2 \\2"
13363 # Write the raw and C identifiers.
13364 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13365 # Fake it for dumpbin and say T for any non-static function
13366 # and D for any global variable.
13367 # Also find C++ and __fastcall symbols from MSVC++,
13368 # which start with @ or ?.
13369 lt_cv_sys_global_symbol_pipe="$AWK '"\
13370 " {last_section=section; section=\$ 3};"\
13371 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13372 " \$ 0!~/External *\|/{next};"\
13373 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13374 " {if(hide[section]) next};"\
13375 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13376 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13377 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13378 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13379 " ' prfx=^$ac_symprfx"
13380 else
13381 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13384 # Check to see that the pipe works correctly.
13385 pipe_works=no
13387 rm -f conftest*
13388 cat > conftest.$ac_ext <<_LT_EOF
13389 #ifdef __cplusplus
13390 extern "C" {
13391 #endif
13392 char nm_test_var;
13393 void nm_test_func(void);
13394 void nm_test_func(void){}
13395 #ifdef __cplusplus
13397 #endif
13398 int main(){nm_test_var='a';nm_test_func();return(0);}
13399 _LT_EOF
13401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13402 (eval $ac_compile) 2>&5
13403 ac_status=$?
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405 test $ac_status = 0; }; then
13406 # Now try to grab the symbols.
13407 nlist=conftest.nm
13408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13409 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13410 ac_status=$?
13411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13412 test $ac_status = 0; } && test -s "$nlist"; then
13413 # Try sorting and uniquifying the output.
13414 if sort "$nlist" | uniq > "$nlist"T; then
13415 mv -f "$nlist"T "$nlist"
13416 else
13417 rm -f "$nlist"T
13420 # Make sure that we snagged all the symbols we need.
13421 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13422 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13423 cat <<_LT_EOF > conftest.$ac_ext
13424 #ifdef __cplusplus
13425 extern "C" {
13426 #endif
13428 _LT_EOF
13429 # Now generate the symbol file.
13430 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13432 cat <<_LT_EOF >> conftest.$ac_ext
13434 /* The mapping between symbol names and symbols. */
13435 const struct {
13436 const char *name;
13437 void *address;
13439 lt__PROGRAM__LTX_preloaded_symbols[] =
13441 { "@PROGRAM@", (void *) 0 },
13442 _LT_EOF
13443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13444 cat <<\_LT_EOF >> conftest.$ac_ext
13445 {0, (void *) 0}
13448 /* This works around a problem in FreeBSD linker */
13449 #ifdef FREEBSD_WORKAROUND
13450 static const void *lt_preloaded_setup() {
13451 return lt__PROGRAM__LTX_preloaded_symbols;
13453 #endif
13455 #ifdef __cplusplus
13457 #endif
13458 _LT_EOF
13459 # Now try linking the two files.
13460 mv conftest.$ac_objext conftstm.$ac_objext
13461 lt_save_LIBS="$LIBS"
13462 lt_save_CFLAGS="$CFLAGS"
13463 LIBS="conftstm.$ac_objext"
13464 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13466 (eval $ac_link) 2>&5
13467 ac_status=$?
13468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13469 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13470 pipe_works=yes
13472 LIBS="$lt_save_LIBS"
13473 CFLAGS="$lt_save_CFLAGS"
13474 else
13475 echo "cannot find nm_test_func in $nlist" >&5
13477 else
13478 echo "cannot find nm_test_var in $nlist" >&5
13480 else
13481 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13483 else
13484 echo "$progname: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13487 rm -rf conftest* conftst*
13489 # Do not use the global_symbol_pipe unless it works.
13490 if test "$pipe_works" = yes; then
13491 break
13492 else
13493 lt_cv_sys_global_symbol_pipe=
13495 done
13499 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13500 lt_cv_sys_global_symbol_to_cdecl=
13502 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13504 $as_echo "failed" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13507 $as_echo "ok" >&6; }
13531 # Check whether --enable-libtool-lock was given.
13532 if test "${enable_libtool_lock+set}" = set; then :
13533 enableval=$enable_libtool_lock;
13536 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13538 # Some flags need to be propagated to the compiler or linker for good
13539 # libtool support.
13540 case $host in
13541 ia64-*-hpux*)
13542 # Find out which ABI we are using.
13543 echo 'int i;' > conftest.$ac_ext
13544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13545 (eval $ac_compile) 2>&5
13546 ac_status=$?
13547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548 test $ac_status = 0; }; then
13549 case `/usr/bin/file conftest.$ac_objext` in
13550 *ELF-32*)
13551 HPUX_IA64_MODE="32"
13553 *ELF-64*)
13554 HPUX_IA64_MODE="64"
13556 esac
13558 rm -rf conftest*
13560 *-*-irix6*)
13561 # Find out which ABI we are using.
13562 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13564 (eval $ac_compile) 2>&5
13565 ac_status=$?
13566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567 test $ac_status = 0; }; then
13568 if test "$lt_cv_prog_gnu_ld" = yes; then
13569 case `/usr/bin/file conftest.$ac_objext` in
13570 *32-bit*)
13571 LD="${LD-ld} -melf32bsmip"
13573 *N32*)
13574 LD="${LD-ld} -melf32bmipn32"
13576 *64-bit*)
13577 LD="${LD-ld} -melf64bmip"
13579 esac
13580 else
13581 case `/usr/bin/file conftest.$ac_objext` in
13582 *32-bit*)
13583 LD="${LD-ld} -32"
13585 *N32*)
13586 LD="${LD-ld} -n32"
13588 *64-bit*)
13589 LD="${LD-ld} -64"
13591 esac
13594 rm -rf conftest*
13597 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13598 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13599 # Find out which ABI we are using.
13600 echo 'int i;' > conftest.$ac_ext
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13602 (eval $ac_compile) 2>&5
13603 ac_status=$?
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }; then
13606 case `/usr/bin/file conftest.o` in
13607 *32-bit*)
13608 case $host in
13609 x86_64-*kfreebsd*-gnu)
13610 LD="${LD-ld} -m elf_i386_fbsd"
13612 x86_64-*linux*)
13613 case `/usr/bin/file conftest.o` in
13614 *x86-64*)
13615 LD="${LD-ld} -m elf32_x86_64"
13618 LD="${LD-ld} -m elf_i386"
13620 esac
13622 powerpc64le-*linux*)
13623 LD="${LD-ld} -m elf32lppclinux"
13625 powerpc64-*linux*)
13626 LD="${LD-ld} -m elf32ppclinux"
13628 s390x-*linux*)
13629 LD="${LD-ld} -m elf_s390"
13631 sparc64-*linux*)
13632 LD="${LD-ld} -m elf32_sparc"
13634 esac
13636 *64-bit*)
13637 case $host in
13638 x86_64-*kfreebsd*-gnu)
13639 LD="${LD-ld} -m elf_x86_64_fbsd"
13641 x86_64-*linux*)
13642 LD="${LD-ld} -m elf_x86_64"
13644 powerpcle-*linux*)
13645 LD="${LD-ld} -m elf64lppc"
13647 powerpc-*linux*)
13648 LD="${LD-ld} -m elf64ppc"
13650 s390*-*linux*|s390*-*tpf*)
13651 LD="${LD-ld} -m elf64_s390"
13653 sparc*-*linux*)
13654 LD="${LD-ld} -m elf64_sparc"
13656 esac
13658 esac
13660 rm -rf conftest*
13663 *-*-sco3.2v5*)
13664 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13665 SAVE_CFLAGS="$CFLAGS"
13666 CFLAGS="$CFLAGS -belf"
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13668 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13669 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 ac_ext=c
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13682 main ()
13686 return 0;
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 lt_cv_cc_needs_belf=yes
13691 else
13692 lt_cv_cc_needs_belf=no
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 ac_ext=c
13697 ac_cpp='$CPP $CPPFLAGS'
13698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13704 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13705 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13706 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13707 CFLAGS="$SAVE_CFLAGS"
13710 sparc*-*solaris*)
13711 # Find out which ABI we are using.
13712 echo 'int i;' > conftest.$ac_ext
13713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13714 (eval $ac_compile) 2>&5
13715 ac_status=$?
13716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717 test $ac_status = 0; }; then
13718 case `/usr/bin/file conftest.o` in
13719 *64-bit*)
13720 case $lt_cv_prog_gnu_ld in
13721 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13723 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13724 LD="${LD-ld} -64"
13727 esac
13729 esac
13731 rm -rf conftest*
13733 esac
13735 need_locks="$enable_libtool_lock"
13738 case $host_os in
13739 rhapsody* | darwin*)
13740 if test -n "$ac_tool_prefix"; then
13741 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13742 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 if test -n "$DSYMUTIL"; then
13749 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13750 else
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13758 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13762 done
13763 done
13764 IFS=$as_save_IFS
13768 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13769 if test -n "$DSYMUTIL"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13771 $as_echo "$DSYMUTIL" >&6; }
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13779 if test -z "$ac_cv_prog_DSYMUTIL"; then
13780 ac_ct_DSYMUTIL=$DSYMUTIL
13781 # Extract the first word of "dsymutil", so it can be a program name with args.
13782 set dummy dsymutil; ac_word=$2
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784 $as_echo_n "checking for $ac_word... " >&6; }
13785 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 if test -n "$ac_ct_DSYMUTIL"; then
13789 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13790 else
13791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792 for as_dir in $PATH
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
13797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13798 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13802 done
13803 done
13804 IFS=$as_save_IFS
13808 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13809 if test -n "$ac_ct_DSYMUTIL"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13811 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13812 else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13817 if test "x$ac_ct_DSYMUTIL" = x; then
13818 DSYMUTIL=":"
13819 else
13820 case $cross_compiling:$ac_tool_warned in
13821 yes:)
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13824 ac_tool_warned=yes ;;
13825 esac
13826 DSYMUTIL=$ac_ct_DSYMUTIL
13828 else
13829 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13832 if test -n "$ac_tool_prefix"; then
13833 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13834 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 if test -n "$NMEDIT"; then
13841 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13854 done
13855 done
13856 IFS=$as_save_IFS
13860 NMEDIT=$ac_cv_prog_NMEDIT
13861 if test -n "$NMEDIT"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13863 $as_echo "$NMEDIT" >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13871 if test -z "$ac_cv_prog_NMEDIT"; then
13872 ac_ct_NMEDIT=$NMEDIT
13873 # Extract the first word of "nmedit", so it can be a program name with args.
13874 set dummy nmedit; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 if test -n "$ac_ct_NMEDIT"; then
13881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13890 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13894 done
13895 done
13896 IFS=$as_save_IFS
13900 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13901 if test -n "$ac_ct_NMEDIT"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13903 $as_echo "$ac_ct_NMEDIT" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13909 if test "x$ac_ct_NMEDIT" = x; then
13910 NMEDIT=":"
13911 else
13912 case $cross_compiling:$ac_tool_warned in
13913 yes:)
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13916 ac_tool_warned=yes ;;
13917 esac
13918 NMEDIT=$ac_ct_NMEDIT
13920 else
13921 NMEDIT="$ac_cv_prog_NMEDIT"
13924 if test -n "$ac_tool_prefix"; then
13925 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13926 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if test "${ac_cv_prog_LIPO+set}" = set; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 if test -n "$LIPO"; then
13933 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13942 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13946 done
13947 done
13948 IFS=$as_save_IFS
13952 LIPO=$ac_cv_prog_LIPO
13953 if test -n "$LIPO"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13955 $as_echo "$LIPO" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13963 if test -z "$ac_cv_prog_LIPO"; then
13964 ac_ct_LIPO=$LIPO
13965 # Extract the first word of "lipo", so it can be a program name with args.
13966 set dummy lipo; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 if test -n "$ac_ct_LIPO"; then
13973 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982 ac_cv_prog_ac_ct_LIPO="lipo"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13986 done
13987 done
13988 IFS=$as_save_IFS
13992 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13993 if test -n "$ac_ct_LIPO"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13995 $as_echo "$ac_ct_LIPO" >&6; }
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
14001 if test "x$ac_ct_LIPO" = x; then
14002 LIPO=":"
14003 else
14004 case $cross_compiling:$ac_tool_warned in
14005 yes:)
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14008 ac_tool_warned=yes ;;
14009 esac
14010 LIPO=$ac_ct_LIPO
14012 else
14013 LIPO="$ac_cv_prog_LIPO"
14016 if test -n "$ac_tool_prefix"; then
14017 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14018 set dummy ${ac_tool_prefix}otool; ac_word=$2
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 if test -n "$OTOOL"; then
14025 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14026 else
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
14033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14034 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14038 done
14039 done
14040 IFS=$as_save_IFS
14044 OTOOL=$ac_cv_prog_OTOOL
14045 if test -n "$OTOOL"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14047 $as_echo "$OTOOL" >&6; }
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14055 if test -z "$ac_cv_prog_OTOOL"; then
14056 ac_ct_OTOOL=$OTOOL
14057 # Extract the first word of "otool", so it can be a program name with args.
14058 set dummy otool; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 if test -n "$ac_ct_OTOOL"; then
14065 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14066 else
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14074 ac_cv_prog_ac_ct_OTOOL="otool"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14084 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14085 if test -n "$ac_ct_OTOOL"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14087 $as_echo "$ac_ct_OTOOL" >&6; }
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14093 if test "x$ac_ct_OTOOL" = x; then
14094 OTOOL=":"
14095 else
14096 case $cross_compiling:$ac_tool_warned in
14097 yes:)
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14100 ac_tool_warned=yes ;;
14101 esac
14102 OTOOL=$ac_ct_OTOOL
14104 else
14105 OTOOL="$ac_cv_prog_OTOOL"
14108 if test -n "$ac_tool_prefix"; then
14109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14110 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14112 $as_echo_n "checking for $ac_word... " >&6; }
14113 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 if test -n "$OTOOL64"; then
14117 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14118 else
14119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120 for as_dir in $PATH
14122 IFS=$as_save_IFS
14123 test -z "$as_dir" && as_dir=.
14124 for ac_exec_ext in '' $ac_executable_extensions; do
14125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14126 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 break 2
14130 done
14131 done
14132 IFS=$as_save_IFS
14136 OTOOL64=$ac_cv_prog_OTOOL64
14137 if test -n "$OTOOL64"; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14139 $as_echo "$OTOOL64" >&6; }
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14147 if test -z "$ac_cv_prog_OTOOL64"; then
14148 ac_ct_OTOOL64=$OTOOL64
14149 # Extract the first word of "otool64", so it can be a program name with args.
14150 set dummy otool64; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 if test -n "$ac_ct_OTOOL64"; then
14157 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14158 else
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14162 IFS=$as_save_IFS
14163 test -z "$as_dir" && as_dir=.
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14166 ac_cv_prog_ac_ct_OTOOL64="otool64"
14167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14168 break 2
14170 done
14171 done
14172 IFS=$as_save_IFS
14176 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14177 if test -n "$ac_ct_OTOOL64"; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14179 $as_echo "$ac_ct_OTOOL64" >&6; }
14180 else
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 $as_echo "no" >&6; }
14185 if test "x$ac_ct_OTOOL64" = x; then
14186 OTOOL64=":"
14187 else
14188 case $cross_compiling:$ac_tool_warned in
14189 yes:)
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14192 ac_tool_warned=yes ;;
14193 esac
14194 OTOOL64=$ac_ct_OTOOL64
14196 else
14197 OTOOL64="$ac_cv_prog_OTOOL64"
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14227 $as_echo_n "checking for -single_module linker flag... " >&6; }
14228 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 lt_cv_apple_cc_single_mod=no
14232 if test -z "${LT_MULTI_MODULE}"; then
14233 # By default we will add the -single_module flag. You can override
14234 # by either setting the environment variable LT_MULTI_MODULE
14235 # non-empty at configure time, or by adding -multi_module to the
14236 # link flags.
14237 rm -rf libconftest.dylib*
14238 echo "int foo(void){return 1;}" > conftest.c
14239 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14240 -dynamiclib -Wl,-single_module conftest.c" >&5
14241 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14242 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14243 _lt_result=$?
14244 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14245 lt_cv_apple_cc_single_mod=yes
14246 else
14247 cat conftest.err >&5
14249 rm -rf libconftest.dylib*
14250 rm -f conftest.*
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14254 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14256 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14257 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 lt_cv_ld_exported_symbols_list=no
14261 save_LDFLAGS=$LDFLAGS
14262 echo "_main" > conftest.sym
14263 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14268 main ()
14272 return 0;
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 lt_cv_ld_exported_symbols_list=yes
14277 else
14278 lt_cv_ld_exported_symbols_list=no
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LDFLAGS="$save_LDFLAGS"
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14286 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14288 $as_echo_n "checking for -force_load linker flag... " >&6; }
14289 if test "${lt_cv_ld_force_load+set}" = set; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 lt_cv_ld_force_load=no
14293 cat > conftest.c << _LT_EOF
14294 int forced_loaded() { return 2;}
14295 _LT_EOF
14296 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14297 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14298 echo "$AR cru libconftest.a conftest.o" >&5
14299 $AR cru libconftest.a conftest.o 2>&5
14300 cat > conftest.c << _LT_EOF
14301 int main() { return 0;}
14302 _LT_EOF
14303 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14304 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14305 _lt_result=$?
14306 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14307 lt_cv_ld_force_load=yes
14308 else
14309 cat conftest.err >&5
14311 rm -f conftest.err libconftest.a conftest conftest.c
14312 rm -rf conftest.dSYM
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14316 $as_echo "$lt_cv_ld_force_load" >&6; }
14317 case $host_os in
14318 rhapsody* | darwin1.[012])
14319 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14320 darwin1.*)
14321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14322 darwin*) # darwin 5.x on
14323 # if running on 10.5 or later, the deployment target defaults
14324 # to the OS version, if on x86, and 10.4, the deployment
14325 # target defaults to 10.4. Don't you love it?
14326 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14327 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14329 10.[012]*)
14330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14331 10.*)
14332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14333 esac
14335 esac
14336 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14337 _lt_dar_single_mod='$single_module'
14339 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14340 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14341 else
14342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14344 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14345 _lt_dsymutil='~$DSYMUTIL $lib || :'
14346 else
14347 _lt_dsymutil=
14350 esac
14352 for ac_header in dlfcn.h
14353 do :
14354 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14355 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_DLFCN_H 1
14358 _ACEOF
14361 done
14367 # Set options
14371 enable_dlopen=no
14374 enable_win32_dll=no
14377 # Check whether --enable-shared was given.
14378 if test "${enable_shared+set}" = set; then :
14379 enableval=$enable_shared; p=${PACKAGE-default}
14380 case $enableval in
14381 yes) enable_shared=yes ;;
14382 no) enable_shared=no ;;
14384 enable_shared=no
14385 # Look at the argument we got. We use all the common list separators.
14386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14387 for pkg in $enableval; do
14388 IFS="$lt_save_ifs"
14389 if test "X$pkg" = "X$p"; then
14390 enable_shared=yes
14392 done
14393 IFS="$lt_save_ifs"
14395 esac
14396 else
14397 enable_shared=yes
14408 # Check whether --enable-static was given.
14409 if test "${enable_static+set}" = set; then :
14410 enableval=$enable_static; p=${PACKAGE-default}
14411 case $enableval in
14412 yes) enable_static=yes ;;
14413 no) enable_static=no ;;
14415 enable_static=no
14416 # Look at the argument we got. We use all the common list separators.
14417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14418 for pkg in $enableval; do
14419 IFS="$lt_save_ifs"
14420 if test "X$pkg" = "X$p"; then
14421 enable_static=yes
14423 done
14424 IFS="$lt_save_ifs"
14426 esac
14427 else
14428 enable_static=yes
14440 # Check whether --with-pic was given.
14441 if test "${with_pic+set}" = set; then :
14442 withval=$with_pic; pic_mode="$withval"
14443 else
14444 pic_mode=default
14448 test -z "$pic_mode" && pic_mode=default
14456 # Check whether --enable-fast-install was given.
14457 if test "${enable_fast_install+set}" = set; then :
14458 enableval=$enable_fast_install; p=${PACKAGE-default}
14459 case $enableval in
14460 yes) enable_fast_install=yes ;;
14461 no) enable_fast_install=no ;;
14463 enable_fast_install=no
14464 # Look at the argument we got. We use all the common list separators.
14465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14466 for pkg in $enableval; do
14467 IFS="$lt_save_ifs"
14468 if test "X$pkg" = "X$p"; then
14469 enable_fast_install=yes
14471 done
14472 IFS="$lt_save_ifs"
14474 esac
14475 else
14476 enable_fast_install=yes
14489 # This can be used to rebuild libtool when needed
14490 LIBTOOL_DEPS="$ltmain"
14492 # Always use our own libtool.
14493 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14520 test -z "$LN_S" && LN_S="ln -s"
14535 if test -n "${ZSH_VERSION+set}" ; then
14536 setopt NO_GLOB_SUBST
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14540 $as_echo_n "checking for objdir... " >&6; }
14541 if test "${lt_cv_objdir+set}" = set; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 rm -f .libs 2>/dev/null
14545 mkdir .libs 2>/dev/null
14546 if test -d .libs; then
14547 lt_cv_objdir=.libs
14548 else
14549 # MS-DOS does not allow filenames that begin with a dot.
14550 lt_cv_objdir=_libs
14552 rmdir .libs 2>/dev/null
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14555 $as_echo "$lt_cv_objdir" >&6; }
14556 objdir=$lt_cv_objdir
14562 cat >>confdefs.h <<_ACEOF
14563 #define LT_OBJDIR "$lt_cv_objdir/"
14564 _ACEOF
14569 case $host_os in
14570 aix3*)
14571 # AIX sometimes has problems with the GCC collect2 program. For some
14572 # reason, if we set the COLLECT_NAMES environment variable, the problems
14573 # vanish in a puff of smoke.
14574 if test "X${COLLECT_NAMES+set}" != Xset; then
14575 COLLECT_NAMES=
14576 export COLLECT_NAMES
14579 esac
14581 # Global variables:
14582 ofile=libtool
14583 can_build_shared=yes
14585 # All known linkers require a `.a' archive for static linking (except MSVC,
14586 # which needs '.lib').
14587 libext=a
14589 with_gnu_ld="$lt_cv_prog_gnu_ld"
14591 old_CC="$CC"
14592 old_CFLAGS="$CFLAGS"
14594 # Set sane defaults for various variables
14595 test -z "$CC" && CC=cc
14596 test -z "$LTCC" && LTCC=$CC
14597 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14598 test -z "$LD" && LD=ld
14599 test -z "$ac_objext" && ac_objext=o
14601 for cc_temp in $compiler""; do
14602 case $cc_temp in
14603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14605 \-*) ;;
14606 *) break;;
14607 esac
14608 done
14609 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14612 # Only perform the check for file, if the check method requires it
14613 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14614 case $deplibs_check_method in
14615 file_magic*)
14616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14618 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 case $MAGIC_CMD in
14623 [\\/*] | ?:[\\/]*)
14624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14627 lt_save_MAGIC_CMD="$MAGIC_CMD"
14628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14630 for ac_dir in $ac_dummy; do
14631 IFS="$lt_save_ifs"
14632 test -z "$ac_dir" && ac_dir=.
14633 if test -f $ac_dir/${ac_tool_prefix}file; then
14634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14635 if test -n "$file_magic_test_file"; then
14636 case $deplibs_check_method in
14637 "file_magic "*)
14638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14641 $EGREP "$file_magic_regex" > /dev/null; then
14643 else
14644 cat <<_LT_EOF 1>&2
14646 *** Warning: the command libtool uses to detect shared libraries,
14647 *** $file_magic_cmd, produces output that libtool cannot recognize.
14648 *** The result is that libtool may fail to recognize shared libraries
14649 *** as such. This will affect the creation of libtool libraries that
14650 *** depend on shared libraries, but programs linked with such libtool
14651 *** libraries will work regardless of this problem. Nevertheless, you
14652 *** may want to report the problem to your system manager and/or to
14653 *** bug-libtool@gnu.org
14655 _LT_EOF
14656 fi ;;
14657 esac
14659 break
14661 done
14662 IFS="$lt_save_ifs"
14663 MAGIC_CMD="$lt_save_MAGIC_CMD"
14665 esac
14668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14669 if test -n "$MAGIC_CMD"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14671 $as_echo "$MAGIC_CMD" >&6; }
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14681 if test -z "$lt_cv_path_MAGIC_CMD"; then
14682 if test -n "$ac_tool_prefix"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14684 $as_echo_n "checking for file... " >&6; }
14685 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 case $MAGIC_CMD in
14689 [\\/*] | ?:[\\/]*)
14690 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14693 lt_save_MAGIC_CMD="$MAGIC_CMD"
14694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14696 for ac_dir in $ac_dummy; do
14697 IFS="$lt_save_ifs"
14698 test -z "$ac_dir" && ac_dir=.
14699 if test -f $ac_dir/file; then
14700 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14701 if test -n "$file_magic_test_file"; then
14702 case $deplibs_check_method in
14703 "file_magic "*)
14704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14707 $EGREP "$file_magic_regex" > /dev/null; then
14709 else
14710 cat <<_LT_EOF 1>&2
14712 *** Warning: the command libtool uses to detect shared libraries,
14713 *** $file_magic_cmd, produces output that libtool cannot recognize.
14714 *** The result is that libtool may fail to recognize shared libraries
14715 *** as such. This will affect the creation of libtool libraries that
14716 *** depend on shared libraries, but programs linked with such libtool
14717 *** libraries will work regardless of this problem. Nevertheless, you
14718 *** may want to report the problem to your system manager and/or to
14719 *** bug-libtool@gnu.org
14721 _LT_EOF
14722 fi ;;
14723 esac
14725 break
14727 done
14728 IFS="$lt_save_ifs"
14729 MAGIC_CMD="$lt_save_MAGIC_CMD"
14731 esac
14734 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14735 if test -n "$MAGIC_CMD"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14737 $as_echo "$MAGIC_CMD" >&6; }
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14744 else
14745 MAGIC_CMD=:
14751 esac
14753 # Use C for the default configuration in the libtool script
14755 lt_save_CC="$CC"
14756 ac_ext=c
14757 ac_cpp='$CPP $CPPFLAGS'
14758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14763 # Source file extension for C test sources.
14764 ac_ext=c
14766 # Object file extension for compiled C test sources.
14767 objext=o
14768 objext=$objext
14770 # Code to be used in simple compile tests
14771 lt_simple_compile_test_code="int some_variable = 0;"
14773 # Code to be used in simple link tests
14774 lt_simple_link_test_code='int main(){return(0);}'
14782 # If no C compiler was specified, use CC.
14783 LTCC=${LTCC-"$CC"}
14785 # If no C compiler flags were specified, use CFLAGS.
14786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14788 # Allow CC to be a program name with arguments.
14789 compiler=$CC
14791 # Save the default compiler, since it gets overwritten when the other
14792 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14793 compiler_DEFAULT=$CC
14795 # save warnings/boilerplate of simple test code
14796 ac_outfile=conftest.$ac_objext
14797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14799 _lt_compiler_boilerplate=`cat conftest.err`
14800 $RM conftest*
14802 ac_outfile=conftest.$ac_objext
14803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14805 _lt_linker_boilerplate=`cat conftest.err`
14806 $RM -r conftest*
14809 ## CAVEAT EMPTOR:
14810 ## There is no encapsulation within the following macros, do not change
14811 ## the running order or otherwise move them around unless you know exactly
14812 ## what you are doing...
14813 if test -n "$compiler"; then
14815 lt_prog_compiler_no_builtin_flag=
14817 if test "$GCC" = yes; then
14818 case $cc_basename in
14819 nvcc*)
14820 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14822 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14823 esac
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14826 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14827 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 lt_cv_prog_compiler_rtti_exceptions=no
14831 ac_outfile=conftest.$ac_objext
14832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14833 lt_compiler_flag="-fno-rtti -fno-exceptions"
14834 # Insert the option either (1) after the last *FLAGS variable, or
14835 # (2) before a word containing "conftest.", or (3) at the end.
14836 # Note that $ac_compile itself does not contain backslashes and begins
14837 # with a dollar sign (not a hyphen), so the echo should work correctly.
14838 # The option is referenced via a variable to avoid confusing sed.
14839 lt_compile=`echo "$ac_compile" | $SED \
14840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14842 -e 's:$: $lt_compiler_flag:'`
14843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14844 (eval "$lt_compile" 2>conftest.err)
14845 ac_status=$?
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 if (exit $ac_status) && test -s "$ac_outfile"; then
14849 # The compiler can only warn and ignore the option if not recognized
14850 # So say no if there are warnings other than the usual output.
14851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14854 lt_cv_prog_compiler_rtti_exceptions=yes
14857 $RM conftest*
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14861 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14863 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14864 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14865 else
14876 lt_prog_compiler_wl=
14877 lt_prog_compiler_pic=
14878 lt_prog_compiler_static=
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14881 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14883 if test "$GCC" = yes; then
14884 lt_prog_compiler_wl='-Wl,'
14885 lt_prog_compiler_static='-static'
14887 case $host_os in
14888 aix*)
14889 # All AIX code is PIC.
14890 if test "$host_cpu" = ia64; then
14891 # AIX 5 now supports IA64 processor
14892 lt_prog_compiler_static='-Bstatic'
14894 lt_prog_compiler_pic='-fPIC'
14897 amigaos*)
14898 case $host_cpu in
14899 powerpc)
14900 # see comment about AmigaOS4 .so support
14901 lt_prog_compiler_pic='-fPIC'
14903 m68k)
14904 # FIXME: we need at least 68020 code to build shared libraries, but
14905 # adding the `-m68020' flag to GCC prevents building anything better,
14906 # like `-m68040'.
14907 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14909 esac
14912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14913 # PIC is the default for these OSes.
14916 mingw* | cygwin* | pw32* | os2* | cegcc*)
14917 # This hack is so that the source file can tell whether it is being
14918 # built for inclusion in a dll (and should export symbols for example).
14919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14920 # (--disable-auto-import) libraries
14921 lt_prog_compiler_pic='-DDLL_EXPORT'
14924 darwin* | rhapsody*)
14925 # PIC is the default on this platform
14926 # Common symbols not allowed in MH_DYLIB files
14927 lt_prog_compiler_pic='-fno-common'
14930 haiku*)
14931 # PIC is the default for Haiku.
14932 # The "-static" flag exists, but is broken.
14933 lt_prog_compiler_static=
14936 hpux*)
14937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14939 # sets the default TLS model and affects inlining.
14940 case $host_cpu in
14941 hppa*64*)
14942 # +Z the default
14945 lt_prog_compiler_pic='-fPIC'
14947 esac
14950 interix[3-9]*)
14951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14952 # Instead, we relocate shared libraries at runtime.
14955 msdosdjgpp*)
14956 # Just because we use GCC doesn't mean we suddenly get shared libraries
14957 # on systems that don't support them.
14958 lt_prog_compiler_can_build_shared=no
14959 enable_shared=no
14962 *nto* | *qnx*)
14963 # QNX uses GNU C++, but need to define -shared option too, otherwise
14964 # it will coredump.
14965 lt_prog_compiler_pic='-fPIC -shared'
14968 sysv4*MP*)
14969 if test -d /usr/nec; then
14970 lt_prog_compiler_pic=-Kconform_pic
14975 lt_prog_compiler_pic='-fPIC'
14977 esac
14979 case $cc_basename in
14980 nvcc*) # Cuda Compiler Driver 2.2
14981 lt_prog_compiler_wl='-Xlinker '
14982 lt_prog_compiler_pic='-Xcompiler -fPIC'
14984 esac
14985 else
14986 # PORTME Check for flag to pass linker flags through the system compiler.
14987 case $host_os in
14988 aix*)
14989 lt_prog_compiler_wl='-Wl,'
14990 if test "$host_cpu" = ia64; then
14991 # AIX 5 now supports IA64 processor
14992 lt_prog_compiler_static='-Bstatic'
14993 else
14994 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14998 mingw* | cygwin* | pw32* | os2* | cegcc*)
14999 # This hack is so that the source file can tell whether it is being
15000 # built for inclusion in a dll (and should export symbols for example).
15001 lt_prog_compiler_pic='-DDLL_EXPORT'
15004 hpux9* | hpux10* | hpux11*)
15005 lt_prog_compiler_wl='-Wl,'
15006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15007 # not for PA HP-UX.
15008 case $host_cpu in
15009 hppa*64*|ia64*)
15010 # +Z the default
15013 lt_prog_compiler_pic='+Z'
15015 esac
15016 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15017 lt_prog_compiler_static='${wl}-a ${wl}archive'
15020 irix5* | irix6* | nonstopux*)
15021 lt_prog_compiler_wl='-Wl,'
15022 # PIC (with -KPIC) is the default.
15023 lt_prog_compiler_static='-non_shared'
15026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15027 case $cc_basename in
15028 # old Intel for x86_64 which still supported -KPIC.
15029 ecc*)
15030 lt_prog_compiler_wl='-Wl,'
15031 lt_prog_compiler_pic='-KPIC'
15032 lt_prog_compiler_static='-static'
15034 # icc used to be incompatible with GCC.
15035 # ICC 10 doesn't accept -KPIC any more.
15036 icc* | ifort*)
15037 lt_prog_compiler_wl='-Wl,'
15038 lt_prog_compiler_pic='-fPIC'
15039 lt_prog_compiler_static='-static'
15041 # Lahey Fortran 8.1.
15042 lf95*)
15043 lt_prog_compiler_wl='-Wl,'
15044 lt_prog_compiler_pic='--shared'
15045 lt_prog_compiler_static='--static'
15047 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15048 # Portland Group compilers (*not* the Pentium gcc compiler,
15049 # which looks to be a dead project)
15050 lt_prog_compiler_wl='-Wl,'
15051 lt_prog_compiler_pic='-fpic'
15052 lt_prog_compiler_static='-Bstatic'
15054 ccc*)
15055 lt_prog_compiler_wl='-Wl,'
15056 # All Alpha code is PIC.
15057 lt_prog_compiler_static='-non_shared'
15059 xl* | bgxl* | bgf* | mpixl*)
15060 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15061 lt_prog_compiler_wl='-Wl,'
15062 lt_prog_compiler_pic='-qpic'
15063 lt_prog_compiler_static='-qstaticlink'
15066 case `$CC -V 2>&1 | sed 5q` in
15067 *Sun\ F* | *Sun*Fortran*)
15068 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15069 lt_prog_compiler_pic='-KPIC'
15070 lt_prog_compiler_static='-Bstatic'
15071 lt_prog_compiler_wl=''
15073 *Sun\ C*)
15074 # Sun C 5.9
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15077 lt_prog_compiler_wl='-Wl,'
15079 esac
15081 esac
15084 newsos6)
15085 lt_prog_compiler_pic='-KPIC'
15086 lt_prog_compiler_static='-Bstatic'
15089 *nto* | *qnx*)
15090 # QNX uses GNU C++, but need to define -shared option too, otherwise
15091 # it will coredump.
15092 lt_prog_compiler_pic='-fPIC -shared'
15095 osf3* | osf4* | osf5*)
15096 lt_prog_compiler_wl='-Wl,'
15097 # All OSF/1 code is PIC.
15098 lt_prog_compiler_static='-non_shared'
15101 rdos*)
15102 lt_prog_compiler_static='-non_shared'
15105 solaris*)
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-Bstatic'
15108 case $cc_basename in
15109 f77* | f90* | f95*)
15110 lt_prog_compiler_wl='-Qoption ld ';;
15112 lt_prog_compiler_wl='-Wl,';;
15113 esac
15116 sunos4*)
15117 lt_prog_compiler_wl='-Qoption ld '
15118 lt_prog_compiler_pic='-PIC'
15119 lt_prog_compiler_static='-Bstatic'
15122 sysv4 | sysv4.2uw2* | sysv4.3*)
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_pic='-KPIC'
15125 lt_prog_compiler_static='-Bstatic'
15128 sysv4*MP*)
15129 if test -d /usr/nec ;then
15130 lt_prog_compiler_pic='-Kconform_pic'
15131 lt_prog_compiler_static='-Bstatic'
15135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-KPIC'
15138 lt_prog_compiler_static='-Bstatic'
15141 unicos*)
15142 lt_prog_compiler_wl='-Wl,'
15143 lt_prog_compiler_can_build_shared=no
15146 uts4*)
15147 lt_prog_compiler_pic='-pic'
15148 lt_prog_compiler_static='-Bstatic'
15152 lt_prog_compiler_can_build_shared=no
15154 esac
15157 case $host_os in
15158 # For platforms which do not support PIC, -DPIC is meaningless:
15159 *djgpp*)
15160 lt_prog_compiler_pic=
15163 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15165 esac
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15167 $as_echo "$lt_prog_compiler_pic" >&6; }
15175 # Check to make sure the PIC flag actually works.
15177 if test -n "$lt_prog_compiler_pic"; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15179 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15180 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 lt_cv_prog_compiler_pic_works=no
15184 ac_outfile=conftest.$ac_objext
15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15187 # Insert the option either (1) after the last *FLAGS variable, or
15188 # (2) before a word containing "conftest.", or (3) at the end.
15189 # Note that $ac_compile itself does not contain backslashes and begins
15190 # with a dollar sign (not a hyphen), so the echo should work correctly.
15191 # The option is referenced via a variable to avoid confusing sed.
15192 lt_compile=`echo "$ac_compile" | $SED \
15193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15195 -e 's:$: $lt_compiler_flag:'`
15196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15197 (eval "$lt_compile" 2>conftest.err)
15198 ac_status=$?
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 if (exit $ac_status) && test -s "$ac_outfile"; then
15202 # The compiler can only warn and ignore the option if not recognized
15203 # So say no if there are warnings other than the usual output.
15204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15207 lt_cv_prog_compiler_pic_works=yes
15210 $RM conftest*
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15214 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15216 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15217 case $lt_prog_compiler_pic in
15218 "" | " "*) ;;
15219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15220 esac
15221 else
15222 lt_prog_compiler_pic=
15223 lt_prog_compiler_can_build_shared=no
15234 # Check to make sure the static flag actually works.
15236 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15238 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15239 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 lt_cv_prog_compiler_static_works=no
15243 save_LDFLAGS="$LDFLAGS"
15244 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15245 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15247 # The linker can only warn and ignore the option if not recognized
15248 # So say no if there are warnings
15249 if test -s conftest.err; then
15250 # Append any errors to the config.log.
15251 cat conftest.err 1>&5
15252 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15254 if diff conftest.exp conftest.er2 >/dev/null; then
15255 lt_cv_prog_compiler_static_works=yes
15257 else
15258 lt_cv_prog_compiler_static_works=yes
15261 $RM -r conftest*
15262 LDFLAGS="$save_LDFLAGS"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15266 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15268 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15270 else
15271 lt_prog_compiler_static=
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15282 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15283 $as_echo_n "(cached) " >&6
15284 else
15285 lt_cv_prog_compiler_c_o=no
15286 $RM -r conftest 2>/dev/null
15287 mkdir conftest
15288 cd conftest
15289 mkdir out
15290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15292 lt_compiler_flag="-o out/conftest2.$ac_objext"
15293 # Insert the option either (1) after the last *FLAGS variable, or
15294 # (2) before a word containing "conftest.", or (3) at the end.
15295 # Note that $ac_compile itself does not contain backslashes and begins
15296 # with a dollar sign (not a hyphen), so the echo should work correctly.
15297 lt_compile=`echo "$ac_compile" | $SED \
15298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300 -e 's:$: $lt_compiler_flag:'`
15301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15302 (eval "$lt_compile" 2>out/conftest.err)
15303 ac_status=$?
15304 cat out/conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15307 then
15308 # The compiler can only warn and ignore the option if not recognized
15309 # So say no if there are warnings
15310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15313 lt_cv_prog_compiler_c_o=yes
15316 chmod u+w . 2>&5
15317 $RM conftest*
15318 # SGI C++ compiler will create directory out/ii_files/ for
15319 # template instantiation
15320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15321 $RM out/* && rmdir out
15322 cd ..
15323 $RM -r conftest
15324 $RM conftest*
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15328 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 lt_cv_prog_compiler_c_o=no
15341 $RM -r conftest 2>/dev/null
15342 mkdir conftest
15343 cd conftest
15344 mkdir out
15345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15347 lt_compiler_flag="-o out/conftest2.$ac_objext"
15348 # Insert the option either (1) after the last *FLAGS variable, or
15349 # (2) before a word containing "conftest.", or (3) at the end.
15350 # Note that $ac_compile itself does not contain backslashes and begins
15351 # with a dollar sign (not a hyphen), so the echo should work correctly.
15352 lt_compile=`echo "$ac_compile" | $SED \
15353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15355 -e 's:$: $lt_compiler_flag:'`
15356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15357 (eval "$lt_compile" 2>out/conftest.err)
15358 ac_status=$?
15359 cat out/conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15362 then
15363 # The compiler can only warn and ignore the option if not recognized
15364 # So say no if there are warnings
15365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15368 lt_cv_prog_compiler_c_o=yes
15371 chmod u+w . 2>&5
15372 $RM conftest*
15373 # SGI C++ compiler will create directory out/ii_files/ for
15374 # template instantiation
15375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15376 $RM out/* && rmdir out
15377 cd ..
15378 $RM -r conftest
15379 $RM conftest*
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15388 hard_links="nottested"
15389 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15390 # do not overwrite the value of need_locks provided by the user
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15392 $as_echo_n "checking if we can lock with hard links... " >&6; }
15393 hard_links=yes
15394 $RM conftest*
15395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396 touch conftest.a
15397 ln conftest.a conftest.b 2>&5 || hard_links=no
15398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15400 $as_echo "$hard_links" >&6; }
15401 if test "$hard_links" = no; then
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15403 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15404 need_locks=warn
15406 else
15407 need_locks=no
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15418 runpath_var=
15419 allow_undefined_flag=
15420 always_export_symbols=no
15421 archive_cmds=
15422 archive_expsym_cmds=
15423 compiler_needs_object=no
15424 enable_shared_with_static_runtimes=no
15425 export_dynamic_flag_spec=
15426 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15427 hardcode_automatic=no
15428 hardcode_direct=no
15429 hardcode_direct_absolute=no
15430 hardcode_libdir_flag_spec=
15431 hardcode_libdir_flag_spec_ld=
15432 hardcode_libdir_separator=
15433 hardcode_minus_L=no
15434 hardcode_shlibpath_var=unsupported
15435 inherit_rpath=no
15436 link_all_deplibs=unknown
15437 module_cmds=
15438 module_expsym_cmds=
15439 old_archive_from_new_cmds=
15440 old_archive_from_expsyms_cmds=
15441 thread_safe_flag_spec=
15442 whole_archive_flag_spec=
15443 # include_expsyms should be a list of space-separated symbols to be *always*
15444 # included in the symbol list
15445 include_expsyms=
15446 # exclude_expsyms can be an extended regexp of symbols to exclude
15447 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15448 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15449 # as well as any symbol that contains `d'.
15450 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15451 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15452 # platforms (ab)use it in PIC code, but their linkers get confused if
15453 # the symbol is explicitly referenced. Since portable code cannot
15454 # rely on this symbol name, it's probably fine to never include it in
15455 # preloaded symbol tables.
15456 # Exclude shared library initialization/finalization symbols.
15457 extract_expsyms_cmds=
15459 case $host_os in
15460 cygwin* | mingw* | pw32* | cegcc*)
15461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15462 # When not using gcc, we currently assume that we are using
15463 # Microsoft Visual C++.
15464 if test "$GCC" != yes; then
15465 with_gnu_ld=no
15468 interix*)
15469 # we just hope/assume this is gcc and not c89 (= MSVC++)
15470 with_gnu_ld=yes
15472 openbsd*)
15473 with_gnu_ld=no
15475 esac
15477 ld_shlibs=yes
15479 # On some targets, GNU ld is compatible enough with the native linker
15480 # that we're better off using the native interface for both.
15481 lt_use_gnu_ld_interface=no
15482 if test "$with_gnu_ld" = yes; then
15483 case $host_os in
15484 aix*)
15485 # The AIX port of GNU ld has always aspired to compatibility
15486 # with the native linker. However, as the warning in the GNU ld
15487 # block says, versions before 2.19.5* couldn't really create working
15488 # shared libraries, regardless of the interface used.
15489 case `$LD -v 2>&1` in
15490 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15491 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15492 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15494 lt_use_gnu_ld_interface=yes
15496 esac
15499 lt_use_gnu_ld_interface=yes
15501 esac
15504 if test "$lt_use_gnu_ld_interface" = yes; then
15505 # If archive_cmds runs LD, not CC, wlarc should be empty
15506 wlarc='${wl}'
15508 # Set some defaults for GNU ld with shared library support. These
15509 # are reset later if shared libraries are not supported. Putting them
15510 # here allows them to be overridden if necessary.
15511 runpath_var=LD_RUN_PATH
15512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15513 export_dynamic_flag_spec='${wl}--export-dynamic'
15514 # ancient GNU ld didn't support --whole-archive et. al.
15515 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15516 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15517 else
15518 whole_archive_flag_spec=
15520 supports_anon_versioning=no
15521 case `$LD -v 2>&1` in
15522 *GNU\ gold*) supports_anon_versioning=yes ;;
15523 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15526 *\ 2.11.*) ;; # other 2.11 versions
15527 *) supports_anon_versioning=yes ;;
15528 esac
15530 # See if GNU ld supports shared libraries.
15531 case $host_os in
15532 aix[3-9]*)
15533 # On AIX/PPC, the GNU linker is very broken
15534 if test "$host_cpu" != ia64; then
15535 ld_shlibs=no
15536 cat <<_LT_EOF 1>&2
15538 *** Warning: the GNU linker, at least up to release 2.19, is reported
15539 *** to be unable to reliably create shared libraries on AIX.
15540 *** Therefore, libtool is disabling shared libraries support. If you
15541 *** really care for shared libraries, you may want to install binutils
15542 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15543 *** You will then need to restart the configuration process.
15545 _LT_EOF
15549 amigaos*)
15550 case $host_cpu in
15551 powerpc)
15552 # see comment about AmigaOS4 .so support
15553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15554 archive_expsym_cmds=''
15556 m68k)
15557 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)'
15558 hardcode_libdir_flag_spec='-L$libdir'
15559 hardcode_minus_L=yes
15561 esac
15564 beos*)
15565 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15566 allow_undefined_flag=unsupported
15567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15568 # support --undefined. This deserves some investigation. FIXME
15569 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15570 else
15571 ld_shlibs=no
15575 cygwin* | mingw* | pw32* | cegcc*)
15576 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15577 # as there is no search path for DLLs.
15578 hardcode_libdir_flag_spec='-L$libdir'
15579 export_dynamic_flag_spec='${wl}--export-all-symbols'
15580 allow_undefined_flag=unsupported
15581 always_export_symbols=no
15582 enable_shared_with_static_runtimes=yes
15583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15585 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15587 # If the export-symbols file already is a .def file (1st line
15588 # is EXPORTS), use it as is; otherwise, prepend...
15589 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15590 cp $export_symbols $output_objdir/$soname.def;
15591 else
15592 echo EXPORTS > $output_objdir/$soname.def;
15593 cat $export_symbols >> $output_objdir/$soname.def;
15595 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15596 else
15597 ld_shlibs=no
15601 haiku*)
15602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15603 link_all_deplibs=yes
15606 interix[3-9]*)
15607 hardcode_direct=no
15608 hardcode_shlibpath_var=no
15609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15610 export_dynamic_flag_spec='${wl}-E'
15611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15612 # Instead, shared libraries are loaded at an image base (0x10000000 by
15613 # default) and relocated if they conflict, which is a slow very memory
15614 # consuming and fragmenting process. To avoid this, we pick a random,
15615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15618 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'
15621 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15622 tmp_diet=no
15623 if test "$host_os" = linux-dietlibc; then
15624 case $cc_basename in
15625 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15626 esac
15628 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15629 && test "$tmp_diet" = no
15630 then
15631 tmp_addflag=
15632 tmp_sharedflag='-shared'
15633 case $cc_basename,$host_cpu in
15634 pgcc*) # Portland Group C compiler
15635 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'
15636 tmp_addflag=' $pic_flag'
15638 pgf77* | pgf90* | pgf95* | pgfortran*)
15639 # Portland Group f77 and f90 compilers
15640 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'
15641 tmp_addflag=' $pic_flag -Mnomain' ;;
15642 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15643 tmp_addflag=' -i_dynamic' ;;
15644 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15645 tmp_addflag=' -i_dynamic -nofor_main' ;;
15646 ifc* | ifort*) # Intel Fortran compiler
15647 tmp_addflag=' -nofor_main' ;;
15648 lf95*) # Lahey Fortran 8.1
15649 whole_archive_flag_spec=
15650 tmp_sharedflag='--shared' ;;
15651 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15652 tmp_sharedflag='-qmkshrobj'
15653 tmp_addflag= ;;
15654 nvcc*) # Cuda Compiler Driver 2.2
15655 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'
15656 compiler_needs_object=yes
15658 esac
15659 case `$CC -V 2>&1 | sed 5q` in
15660 *Sun\ C*) # Sun C 5.9
15661 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'
15662 compiler_needs_object=yes
15663 tmp_sharedflag='-G' ;;
15664 *Sun\ F*) # Sun Fortran 8.3
15665 tmp_sharedflag='-G' ;;
15666 esac
15667 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15669 if test "x$supports_anon_versioning" = xyes; then
15670 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15672 echo "local: *; };" >> $output_objdir/$libname.ver~
15673 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15676 case $cc_basename in
15677 xlf* | bgf* | bgxlf* | mpixlf*)
15678 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15679 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15680 hardcode_libdir_flag_spec=
15681 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15682 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15683 if test "x$supports_anon_versioning" = xyes; then
15684 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15686 echo "local: *; };" >> $output_objdir/$libname.ver~
15687 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15690 esac
15691 else
15692 ld_shlibs=no
15696 netbsd*)
15697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15699 wlarc=
15700 else
15701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15706 solaris*)
15707 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15708 ld_shlibs=no
15709 cat <<_LT_EOF 1>&2
15711 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15712 *** create shared libraries on Solaris systems. Therefore, libtool
15713 *** is disabling shared libraries support. We urge you to upgrade GNU
15714 *** binutils to release 2.9.1 or newer. Another option is to modify
15715 *** your PATH or compiler configuration so that the native linker is
15716 *** used, and then restart.
15718 _LT_EOF
15719 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15722 else
15723 ld_shlibs=no
15727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15728 case `$LD -v 2>&1` in
15729 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15730 ld_shlibs=no
15731 cat <<_LT_EOF 1>&2
15733 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15734 *** reliably create shared libraries on SCO systems. Therefore, libtool
15735 *** is disabling shared libraries support. We urge you to upgrade GNU
15736 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15737 *** your PATH or compiler configuration so that the native linker is
15738 *** used, and then restart.
15740 _LT_EOF
15743 # For security reasons, it is highly recommended that you always
15744 # use absolute paths for naming shared libraries, and exclude the
15745 # DT_RUNPATH tag from executables and libraries. But doing so
15746 # requires that you compile everything twice, which is a pain.
15747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15751 else
15752 ld_shlibs=no
15755 esac
15758 sunos4*)
15759 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15760 wlarc=
15761 hardcode_direct=yes
15762 hardcode_shlibpath_var=no
15766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15769 else
15770 ld_shlibs=no
15773 esac
15775 if test "$ld_shlibs" = no; then
15776 runpath_var=
15777 hardcode_libdir_flag_spec=
15778 export_dynamic_flag_spec=
15779 whole_archive_flag_spec=
15781 else
15782 # PORTME fill in a description of your system's linker (not GNU ld)
15783 case $host_os in
15784 aix3*)
15785 allow_undefined_flag=unsupported
15786 always_export_symbols=yes
15787 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'
15788 # Note: this linker hardcodes the directories in LIBPATH if there
15789 # are no directories specified by -L.
15790 hardcode_minus_L=yes
15791 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15792 # Neither direct hardcoding nor static linking is supported with a
15793 # broken collect2.
15794 hardcode_direct=unsupported
15798 aix[4-9]*)
15799 if test "$host_cpu" = ia64; then
15800 # On IA64, the linker does run time linking by default, so we don't
15801 # have to do anything special.
15802 aix_use_runtimelinking=no
15803 exp_sym_flag='-Bexport'
15804 no_entry_flag=""
15805 else
15806 # If we're using GNU nm, then we don't want the "-C" option.
15807 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15808 # Also, AIX nm treats weak defined symbols like other global
15809 # defined symbols, whereas GNU nm marks them as "W".
15810 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15811 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'
15812 else
15813 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'
15815 aix_use_runtimelinking=no
15817 # Test if we are trying to use run time linking or normal
15818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15819 # need to do runtime linking.
15820 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15821 for ld_flag in $LDFLAGS; do
15822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15823 aix_use_runtimelinking=yes
15824 break
15826 done
15828 esac
15830 exp_sym_flag='-bexport'
15831 no_entry_flag='-bnoentry'
15834 # When large executables or shared objects are built, AIX ld can
15835 # have problems creating the table of contents. If linking a library
15836 # or program results in "error TOC overflow" add -mminimal-toc to
15837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15840 archive_cmds=''
15841 hardcode_direct=yes
15842 hardcode_direct_absolute=yes
15843 hardcode_libdir_separator=':'
15844 link_all_deplibs=yes
15845 file_list_spec='${wl}-f,'
15847 if test "$GCC" = yes; then
15848 case $host_os in aix4.[012]|aix4.[012].*)
15849 # We only want to do this on AIX 4.2 and lower, the check
15850 # below for broken collect2 doesn't work under 4.3+
15851 collect2name=`${CC} -print-prog-name=collect2`
15852 if test -f "$collect2name" &&
15853 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15854 then
15855 # We have reworked collect2
15857 else
15858 # We have old collect2
15859 hardcode_direct=unsupported
15860 # It fails to find uninstalled libraries when the uninstalled
15861 # path is not listed in the libpath. Setting hardcode_minus_L
15862 # to unsupported forces relinking
15863 hardcode_minus_L=yes
15864 hardcode_libdir_flag_spec='-L$libdir'
15865 hardcode_libdir_separator=
15868 esac
15869 shared_flag='-shared'
15870 if test "$aix_use_runtimelinking" = yes; then
15871 shared_flag="$shared_flag "'${wl}-G'
15873 else
15874 # not using gcc
15875 if test "$host_cpu" = ia64; then
15876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15877 # chokes on -Wl,-G. The following line is correct:
15878 shared_flag='-G'
15879 else
15880 if test "$aix_use_runtimelinking" = yes; then
15881 shared_flag='${wl}-G'
15882 else
15883 shared_flag='${wl}-bM:SRE'
15888 export_dynamic_flag_spec='${wl}-bexpall'
15889 # It seems that -bexpall does not export symbols beginning with
15890 # underscore (_), so it is better to generate a list of symbols to export.
15891 always_export_symbols=yes
15892 if test "$aix_use_runtimelinking" = yes; then
15893 # Warning - without using the other runtime loading flags (-brtl),
15894 # -berok will link without error, but may produce a broken library.
15895 allow_undefined_flag='-berok'
15896 # Determine the default libpath from the value encoded in an
15897 # empty executable.
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15902 main ()
15906 return 0;
15908 _ACEOF
15909 if ac_fn_c_try_link "$LINENO"; then :
15911 lt_aix_libpath_sed='
15912 /Import File Strings/,/^$/ {
15913 /^0/ {
15914 s/^0 *\(.*\)$/\1/
15918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15919 # Check for a 64-bit object if we didn't find anything.
15920 if test -z "$aix_libpath"; then
15921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15929 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"
15930 else
15931 if test "$host_cpu" = ia64; then
15932 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15933 allow_undefined_flag="-z nodefs"
15934 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"
15935 else
15936 # Determine the default libpath from the value encoded in an
15937 # empty executable.
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15942 main ()
15946 return 0;
15948 _ACEOF
15949 if ac_fn_c_try_link "$LINENO"; then :
15951 lt_aix_libpath_sed='
15952 /Import File Strings/,/^$/ {
15953 /^0/ {
15954 s/^0 *\(.*\)$/\1/
15958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15959 # Check for a 64-bit object if we didn't find anything.
15960 if test -z "$aix_libpath"; then
15961 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15964 rm -f core conftest.err conftest.$ac_objext \
15965 conftest$ac_exeext conftest.$ac_ext
15966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15969 # Warning - without using the other run time loading flags,
15970 # -berok will link without error, but may produce a broken library.
15971 no_undefined_flag=' ${wl}-bernotok'
15972 allow_undefined_flag=' ${wl}-berok'
15973 if test "$with_gnu_ld" = yes; then
15974 # We only use this code for GNU lds that support --whole-archive.
15975 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15976 else
15977 # Exported symbols can be pulled into shared objects from archives
15978 whole_archive_flag_spec='$convenience'
15980 archive_cmds_need_lc=yes
15981 # This is similar to how AIX traditionally builds its shared libraries.
15982 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'
15987 amigaos*)
15988 case $host_cpu in
15989 powerpc)
15990 # see comment about AmigaOS4 .so support
15991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992 archive_expsym_cmds=''
15994 m68k)
15995 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)'
15996 hardcode_libdir_flag_spec='-L$libdir'
15997 hardcode_minus_L=yes
15999 esac
16002 bsdi[45]*)
16003 export_dynamic_flag_spec=-rdynamic
16006 cygwin* | mingw* | pw32* | cegcc*)
16007 # When not using gcc, we currently assume that we are using
16008 # Microsoft Visual C++.
16009 # hardcode_libdir_flag_spec is actually meaningless, as there is
16010 # no search path for DLLs.
16011 hardcode_libdir_flag_spec=' '
16012 allow_undefined_flag=unsupported
16013 # Tell ltmain to make .lib files, not .a files.
16014 libext=lib
16015 # Tell ltmain to make .dll files, not .so files.
16016 shrext_cmds=".dll"
16017 # FIXME: Setting linknames here is a bad hack.
16018 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16019 # The linker will automatically build a .lib file if we build a DLL.
16020 old_archive_from_new_cmds='true'
16021 # FIXME: Should let the user specify the lib program.
16022 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16023 fix_srcfile_path='`cygpath -w "$srcfile"`'
16024 enable_shared_with_static_runtimes=yes
16027 darwin* | rhapsody*)
16030 archive_cmds_need_lc=no
16031 hardcode_direct=no
16032 hardcode_automatic=yes
16033 hardcode_shlibpath_var=unsupported
16034 if test "$lt_cv_ld_force_load" = "yes"; then
16035 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\"`'
16036 else
16037 whole_archive_flag_spec=''
16039 link_all_deplibs=yes
16040 allow_undefined_flag="$_lt_dar_allow_undefined"
16041 case $cc_basename in
16042 ifort*) _lt_dar_can_shared=yes ;;
16043 *) _lt_dar_can_shared=$GCC ;;
16044 esac
16045 if test "$_lt_dar_can_shared" = "yes"; then
16046 output_verbose_link_cmd=func_echo_all
16047 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16048 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16049 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}"
16050 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}"
16052 else
16053 ld_shlibs=no
16058 dgux*)
16059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_libdir_flag_spec='-L$libdir'
16061 hardcode_shlibpath_var=no
16064 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16065 # support. Future versions do this automatically, but an explicit c++rt0.o
16066 # does not break anything, and helps significantly (at the cost of a little
16067 # extra space).
16068 freebsd2.2*)
16069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16070 hardcode_libdir_flag_spec='-R$libdir'
16071 hardcode_direct=yes
16072 hardcode_shlibpath_var=no
16075 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16076 freebsd2.*)
16077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_direct=yes
16079 hardcode_minus_L=yes
16080 hardcode_shlibpath_var=no
16083 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16084 freebsd* | dragonfly*)
16085 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16086 hardcode_libdir_flag_spec='-R$libdir'
16087 hardcode_direct=yes
16088 hardcode_shlibpath_var=no
16091 hpux9*)
16092 if test "$GCC" = yes; then
16093 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'
16094 else
16095 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'
16097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16098 hardcode_libdir_separator=:
16099 hardcode_direct=yes
16101 # hardcode_minus_L: Not really in the search PATH,
16102 # but as the default location of the library.
16103 hardcode_minus_L=yes
16104 export_dynamic_flag_spec='${wl}-E'
16107 hpux10*)
16108 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16109 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16110 else
16111 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16113 if test "$with_gnu_ld" = no; then
16114 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16115 hardcode_libdir_flag_spec_ld='+b $libdir'
16116 hardcode_libdir_separator=:
16117 hardcode_direct=yes
16118 hardcode_direct_absolute=yes
16119 export_dynamic_flag_spec='${wl}-E'
16120 # hardcode_minus_L: Not really in the search PATH,
16121 # but as the default location of the library.
16122 hardcode_minus_L=yes
16126 hpux11*)
16127 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16128 case $host_cpu in
16129 hppa*64*)
16130 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 ia64*)
16133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16136 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16138 esac
16139 else
16140 case $host_cpu in
16141 hppa*64*)
16142 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 ia64*)
16145 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16149 # Older versions of the 11.00 compiler do not understand -b yet
16150 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16152 $as_echo_n "checking if $CC understands -b... " >&6; }
16153 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16154 $as_echo_n "(cached) " >&6
16155 else
16156 lt_cv_prog_compiler__b=no
16157 save_LDFLAGS="$LDFLAGS"
16158 LDFLAGS="$LDFLAGS -b"
16159 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16161 # The linker can only warn and ignore the option if not recognized
16162 # So say no if there are warnings
16163 if test -s conftest.err; then
16164 # Append any errors to the config.log.
16165 cat conftest.err 1>&5
16166 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16168 if diff conftest.exp conftest.er2 >/dev/null; then
16169 lt_cv_prog_compiler__b=yes
16171 else
16172 lt_cv_prog_compiler__b=yes
16175 $RM -r conftest*
16176 LDFLAGS="$save_LDFLAGS"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16180 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16182 if test x"$lt_cv_prog_compiler__b" = xyes; then
16183 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16184 else
16185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16189 esac
16191 if test "$with_gnu_ld" = no; then
16192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16193 hardcode_libdir_separator=:
16195 case $host_cpu in
16196 hppa*64*|ia64*)
16197 hardcode_direct=no
16198 hardcode_shlibpath_var=no
16201 hardcode_direct=yes
16202 hardcode_direct_absolute=yes
16203 export_dynamic_flag_spec='${wl}-E'
16205 # hardcode_minus_L: Not really in the search PATH,
16206 # but as the default location of the library.
16207 hardcode_minus_L=yes
16209 esac
16213 irix5* | irix6* | nonstopux*)
16214 if test "$GCC" = yes; then
16215 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'
16216 # Try to use the -exported_symbol ld option, if it does not
16217 # work, assume that -exports_file does not work either and
16218 # implicitly export all symbols.
16219 save_LDFLAGS="$LDFLAGS"
16220 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 int foo(void) {}
16224 _ACEOF
16225 if ac_fn_c_try_link "$LINENO"; then :
16226 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'
16229 rm -f core conftest.err conftest.$ac_objext \
16230 conftest$ac_exeext conftest.$ac_ext
16231 LDFLAGS="$save_LDFLAGS"
16232 else
16233 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'
16234 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'
16236 archive_cmds_need_lc='no'
16237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16238 hardcode_libdir_separator=:
16239 inherit_rpath=yes
16240 link_all_deplibs=yes
16243 netbsd*)
16244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16246 else
16247 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16249 hardcode_libdir_flag_spec='-R$libdir'
16250 hardcode_direct=yes
16251 hardcode_shlibpath_var=no
16254 newsos6)
16255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_direct=yes
16257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16258 hardcode_libdir_separator=:
16259 hardcode_shlibpath_var=no
16262 *nto* | *qnx*)
16265 openbsd*)
16266 if test -f /usr/libexec/ld.so; then
16267 hardcode_direct=yes
16268 hardcode_shlibpath_var=no
16269 hardcode_direct_absolute=yes
16270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16272 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16274 export_dynamic_flag_spec='${wl}-E'
16275 else
16276 case $host_os in
16277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16279 hardcode_libdir_flag_spec='-R$libdir'
16282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16285 esac
16287 else
16288 ld_shlibs=no
16292 os2*)
16293 hardcode_libdir_flag_spec='-L$libdir'
16294 hardcode_minus_L=yes
16295 allow_undefined_flag=unsupported
16296 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'
16297 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16300 osf3*)
16301 if test "$GCC" = yes; then
16302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16303 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'
16304 else
16305 allow_undefined_flag=' -expect_unresolved \*'
16306 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'
16308 archive_cmds_need_lc='no'
16309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16310 hardcode_libdir_separator=:
16313 osf4* | osf5*) # as osf3* with the addition of -msym flag
16314 if test "$GCC" = yes; then
16315 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16316 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'
16317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16318 else
16319 allow_undefined_flag=' -expect_unresolved \*'
16320 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'
16321 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~
16322 $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'
16324 # Both c and cxx compiler support -rpath directly
16325 hardcode_libdir_flag_spec='-rpath $libdir'
16327 archive_cmds_need_lc='no'
16328 hardcode_libdir_separator=:
16331 solaris*)
16332 no_undefined_flag=' -z defs'
16333 if test "$GCC" = yes; then
16334 wlarc='${wl}'
16335 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16337 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16338 else
16339 case `$CC -V 2>&1` in
16340 *"Compilers 5.0"*)
16341 wlarc=''
16342 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16344 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16347 wlarc='${wl}'
16348 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16350 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16352 esac
16354 hardcode_libdir_flag_spec='-R$libdir'
16355 hardcode_shlibpath_var=no
16356 case $host_os in
16357 solaris2.[0-5] | solaris2.[0-5].*) ;;
16359 # The compiler driver will combine and reorder linker options,
16360 # but understands `-z linker_flag'. GCC discards it without `$wl',
16361 # but is careful enough not to reorder.
16362 # Supported since Solaris 2.6 (maybe 2.5.1?)
16363 if test "$GCC" = yes; then
16364 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16365 else
16366 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16369 esac
16370 link_all_deplibs=yes
16373 sunos4*)
16374 if test "x$host_vendor" = xsequent; then
16375 # Use $CC to link under sequent, because it throws in some extra .o
16376 # files that make .init and .fini sections work.
16377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16378 else
16379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_libdir_flag_spec='-L$libdir'
16382 hardcode_direct=yes
16383 hardcode_minus_L=yes
16384 hardcode_shlibpath_var=no
16387 sysv4)
16388 case $host_vendor in
16389 sni)
16390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16391 hardcode_direct=yes # is this really true???
16393 siemens)
16394 ## LD is ld it makes a PLAMLIB
16395 ## CC just makes a GrossModule.
16396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16397 reload_cmds='$CC -r -o $output$reload_objs'
16398 hardcode_direct=no
16400 motorola)
16401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16404 esac
16405 runpath_var='LD_RUN_PATH'
16406 hardcode_shlibpath_var=no
16409 sysv4.3*)
16410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_shlibpath_var=no
16412 export_dynamic_flag_spec='-Bexport'
16415 sysv4*MP*)
16416 if test -d /usr/nec; then
16417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418 hardcode_shlibpath_var=no
16419 runpath_var=LD_RUN_PATH
16420 hardcode_runpath_var=yes
16421 ld_shlibs=yes
16425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16426 no_undefined_flag='${wl}-z,text'
16427 archive_cmds_need_lc=no
16428 hardcode_shlibpath_var=no
16429 runpath_var='LD_RUN_PATH'
16431 if test "$GCC" = yes; then
16432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16434 else
16435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 sysv5* | sco3.2v5* | sco5v6*)
16441 # Note: We can NOT use -z defs as we might desire, because we do not
16442 # link with -lc, and that would cause any symbols used from libc to
16443 # always be unresolved, which means just about no library would
16444 # ever link correctly. If we're not using GNU ld we use -z text
16445 # though, which does catch some bad symbols but isn't as heavy-handed
16446 # as -z defs.
16447 no_undefined_flag='${wl}-z,text'
16448 allow_undefined_flag='${wl}-z,nodefs'
16449 archive_cmds_need_lc=no
16450 hardcode_shlibpath_var=no
16451 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16452 hardcode_libdir_separator=':'
16453 link_all_deplibs=yes
16454 export_dynamic_flag_spec='${wl}-Bexport'
16455 runpath_var='LD_RUN_PATH'
16457 if test "$GCC" = yes; then
16458 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16460 else
16461 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16466 uts4*)
16467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_libdir_flag_spec='-L$libdir'
16469 hardcode_shlibpath_var=no
16473 ld_shlibs=no
16475 esac
16477 if test x$host_vendor = xsni; then
16478 case $host in
16479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16480 export_dynamic_flag_spec='${wl}-Blargedynsym'
16482 esac
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16487 $as_echo "$ld_shlibs" >&6; }
16488 test "$ld_shlibs" = no && can_build_shared=no
16490 with_gnu_ld=$with_gnu_ld
16507 # Do we need to explicitly link libc?
16509 case "x$archive_cmds_need_lc" in
16510 x|xyes)
16511 # Assume -lc should be added
16512 archive_cmds_need_lc=yes
16514 if test "$enable_shared" = yes && test "$GCC" = yes; then
16515 case $archive_cmds in
16516 *'~'*)
16517 # FIXME: we may have to deal with multi-command sequences.
16519 '$CC '*)
16520 # Test whether the compiler implicitly links with -lc since on some
16521 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16522 # to ld, don't add -lc before -lgcc.
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16524 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16525 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16526 $as_echo_n "(cached) " >&6
16527 else
16528 $RM conftest*
16529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16532 (eval $ac_compile) 2>&5
16533 ac_status=$?
16534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16535 test $ac_status = 0; } 2>conftest.err; then
16536 soname=conftest
16537 lib=conftest
16538 libobjs=conftest.$ac_objext
16539 deplibs=
16540 wl=$lt_prog_compiler_wl
16541 pic_flag=$lt_prog_compiler_pic
16542 compiler_flags=-v
16543 linker_flags=-v
16544 verstring=
16545 output_objdir=.
16546 libname=conftest
16547 lt_save_allow_undefined_flag=$allow_undefined_flag
16548 allow_undefined_flag=
16549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16550 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16551 ac_status=$?
16552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16553 test $ac_status = 0; }
16554 then
16555 lt_cv_archive_cmds_need_lc=no
16556 else
16557 lt_cv_archive_cmds_need_lc=yes
16559 allow_undefined_flag=$lt_save_allow_undefined_flag
16560 else
16561 cat conftest.err 1>&5
16563 $RM conftest*
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16567 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16568 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16570 esac
16573 esac
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16732 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16734 if test "$GCC" = yes; then
16735 case $host_os in
16736 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16737 *) lt_awk_arg="/^libraries:/" ;;
16738 esac
16739 case $host_os in
16740 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16741 *) lt_sed_strip_eq="s,=/,/,g" ;;
16742 esac
16743 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16744 case $lt_search_path_spec in
16745 *\;*)
16746 # if the path contains ";" then we assume it to be the separator
16747 # otherwise default to the standard path separator (i.e. ":") - it is
16748 # assumed that no part of a normal pathname contains ";" but that should
16749 # okay in the real world where ";" in dirpaths is itself problematic.
16750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16753 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16755 esac
16756 # Ok, now we have the path, separated by spaces, we can step through it
16757 # and add multilib dir if necessary.
16758 lt_tmp_lt_search_path_spec=
16759 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16760 for lt_sys_path in $lt_search_path_spec; do
16761 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16762 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16763 else
16764 test -d "$lt_sys_path" && \
16765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16767 done
16768 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16769 BEGIN {RS=" "; FS="/|\n";} {
16770 lt_foo="";
16771 lt_count=0;
16772 for (lt_i = NF; lt_i > 0; lt_i--) {
16773 if ($lt_i != "" && $lt_i != ".") {
16774 if ($lt_i == "..") {
16775 lt_count++;
16776 } else {
16777 if (lt_count == 0) {
16778 lt_foo="/" $lt_i lt_foo;
16779 } else {
16780 lt_count--;
16785 if (lt_foo != "") { lt_freq[lt_foo]++; }
16786 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16788 # AWK program above erroneously prepends '/' to C:/dos/paths
16789 # for these hosts.
16790 case $host_os in
16791 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16792 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16793 esac
16794 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16795 else
16796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16798 library_names_spec=
16799 libname_spec='lib$name'
16800 soname_spec=
16801 shrext_cmds=".so"
16802 postinstall_cmds=
16803 postuninstall_cmds=
16804 finish_cmds=
16805 finish_eval=
16806 shlibpath_var=
16807 shlibpath_overrides_runpath=unknown
16808 version_type=none
16809 dynamic_linker="$host_os ld.so"
16810 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16811 need_lib_prefix=unknown
16812 hardcode_into_libs=no
16814 # when you set need_version to no, make sure it does not cause -set_version
16815 # flags to be left without arguments
16816 need_version=unknown
16818 case $host_os in
16819 aix3*)
16820 version_type=linux
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16822 shlibpath_var=LIBPATH
16824 # AIX 3 has no versioning support, so we append a major version to the name.
16825 soname_spec='${libname}${release}${shared_ext}$major'
16828 aix[4-9]*)
16829 version_type=linux
16830 need_lib_prefix=no
16831 need_version=no
16832 hardcode_into_libs=yes
16833 if test "$host_cpu" = ia64; then
16834 # AIX 5 supports IA64
16835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 else
16838 # With GCC up to 2.95.x, collect2 would create an import file
16839 # for dependence libraries. The import file would start with
16840 # the line `#! .'. This would cause the generated library to
16841 # depend on `.', always an invalid library. This was fixed in
16842 # development snapshots of GCC prior to 3.0.
16843 case $host_os in
16844 aix4 | aix4.[01] | aix4.[01].*)
16845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16846 echo ' yes '
16847 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16849 else
16850 can_build_shared=no
16853 esac
16854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16855 # soname into executable. Probably we can add versioning support to
16856 # collect2, so additional links can be useful in future.
16857 if test "$aix_use_runtimelinking" = yes; then
16858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16859 # instead of lib<name>.a to let people know that these are not
16860 # typical AIX shared libraries.
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 else
16863 # We preserve .a as extension for shared libraries through AIX4.2
16864 # and later when we are not doing run time linking.
16865 library_names_spec='${libname}${release}.a $libname.a'
16866 soname_spec='${libname}${release}${shared_ext}$major'
16868 shlibpath_var=LIBPATH
16872 amigaos*)
16873 case $host_cpu in
16874 powerpc)
16875 # Since July 2007 AmigaOS4 officially supports .so libraries.
16876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 m68k)
16880 library_names_spec='$libname.ixlibrary $libname.a'
16881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16882 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'
16884 esac
16887 beos*)
16888 library_names_spec='${libname}${shared_ext}'
16889 dynamic_linker="$host_os ld.so"
16890 shlibpath_var=LIBRARY_PATH
16893 bsdi[45]*)
16894 version_type=linux
16895 need_version=no
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16902 # the default ld.so.conf also contains /usr/contrib/lib and
16903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16904 # libtool to hard-code these into programs
16907 cygwin* | mingw* | pw32* | cegcc*)
16908 version_type=windows
16909 shrext_cmds=".dll"
16910 need_version=no
16911 need_lib_prefix=no
16913 case $GCC,$host_os in
16914 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16915 library_names_spec='$libname.dll.a'
16916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16917 postinstall_cmds='base_file=`basename \${file}`~
16918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16919 dldir=$destdir/`dirname \$dlpath`~
16920 test -d \$dldir || mkdir -p \$dldir~
16921 $install_prog $dir/$dlname \$dldir/$dlname~
16922 chmod a+x \$dldir/$dlname~
16923 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16924 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16927 dlpath=$dir/\$dldll~
16928 $RM \$dlpath'
16929 shlibpath_overrides_runpath=yes
16931 case $host_os in
16932 cygwin*)
16933 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16934 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16938 mingw* | cegcc*)
16939 # MinGW DLLs use traditional 'lib' prefix
16940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942 pw32*)
16943 # pw32 DLLs use 'pw' prefix rather than 'lib'
16944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946 esac
16950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16952 esac
16953 dynamic_linker='Win32 ld.exe'
16954 # FIXME: first we should search . and the directory the executable is in
16955 shlibpath_var=PATH
16958 darwin* | rhapsody*)
16959 dynamic_linker="$host_os dyld"
16960 version_type=darwin
16961 need_lib_prefix=no
16962 need_version=no
16963 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16964 soname_spec='${libname}${release}${major}$shared_ext'
16965 shlibpath_overrides_runpath=yes
16966 shlibpath_var=DYLD_LIBRARY_PATH
16967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16973 dgux*)
16974 version_type=linux
16975 need_lib_prefix=no
16976 need_version=no
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16982 freebsd* | dragonfly*)
16983 # DragonFly does not have aout. When/if they implement a new
16984 # versioning mechanism, adjust this.
16985 if test -x /usr/bin/objformat; then
16986 objformat=`/usr/bin/objformat`
16987 else
16988 case $host_os in
16989 freebsd[23].*) objformat=aout ;;
16990 *) objformat=elf ;;
16991 esac
16993 version_type=freebsd-$objformat
16994 case $version_type in
16995 freebsd-elf*)
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16997 need_version=no
16998 need_lib_prefix=no
17000 freebsd-*)
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17002 need_version=yes
17004 esac
17005 shlibpath_var=LD_LIBRARY_PATH
17006 case $host_os in
17007 freebsd2.*)
17008 shlibpath_overrides_runpath=yes
17010 freebsd3.[01]* | freebsdelf3.[01]*)
17011 shlibpath_overrides_runpath=yes
17012 hardcode_into_libs=yes
17014 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17015 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17016 shlibpath_overrides_runpath=no
17017 hardcode_into_libs=yes
17019 *) # from 4.6 on, and DragonFly
17020 shlibpath_overrides_runpath=yes
17021 hardcode_into_libs=yes
17023 esac
17026 gnu*)
17027 version_type=linux
17028 need_lib_prefix=no
17029 need_version=no
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 hardcode_into_libs=yes
17036 haiku*)
17037 version_type=linux
17038 need_lib_prefix=no
17039 need_version=no
17040 dynamic_linker="$host_os runtime_loader"
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LIBRARY_PATH
17044 shlibpath_overrides_runpath=yes
17045 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17046 hardcode_into_libs=yes
17049 hpux9* | hpux10* | hpux11*)
17050 # Give a soname corresponding to the major version so that dld.sl refuses to
17051 # link against other versions.
17052 version_type=sunos
17053 need_lib_prefix=no
17054 need_version=no
17055 case $host_cpu in
17056 ia64*)
17057 shrext_cmds='.so'
17058 hardcode_into_libs=yes
17059 dynamic_linker="$host_os dld.so"
17060 shlibpath_var=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 if test "X$HPUX_IA64_MODE" = X32; then
17065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17066 else
17067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17071 hppa*64*)
17072 shrext_cmds='.sl'
17073 hardcode_into_libs=yes
17074 dynamic_linker="$host_os dld.sl"
17075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17083 shrext_cmds='.sl'
17084 dynamic_linker="$host_os dld.sl"
17085 shlibpath_var=SHLIB_PATH
17086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17090 esac
17091 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17092 postinstall_cmds='chmod 555 $lib'
17093 # or fails outright, so override atomically:
17094 install_override_mode=555
17097 interix[3-9]*)
17098 version_type=linux
17099 need_lib_prefix=no
17100 need_version=no
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17104 shlibpath_var=LD_LIBRARY_PATH
17105 shlibpath_overrides_runpath=no
17106 hardcode_into_libs=yes
17109 irix5* | irix6* | nonstopux*)
17110 case $host_os in
17111 nonstopux*) version_type=nonstopux ;;
17113 if test "$lt_cv_prog_gnu_ld" = yes; then
17114 version_type=linux
17115 else
17116 version_type=irix
17117 fi ;;
17118 esac
17119 need_lib_prefix=no
17120 need_version=no
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17123 case $host_os in
17124 irix5* | nonstopux*)
17125 libsuff= shlibsuff=
17128 case $LD in # libtool.m4 will add one of these switches to LD
17129 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17130 libsuff= shlibsuff= libmagic=32-bit;;
17131 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17132 libsuff=32 shlibsuff=N32 libmagic=N32;;
17133 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17134 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17135 *) libsuff= shlibsuff= libmagic=never-match;;
17136 esac
17138 esac
17139 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17140 shlibpath_overrides_runpath=no
17141 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17142 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17143 hardcode_into_libs=yes
17146 # No shared lib support for Linux oldld, aout, or coff.
17147 linux*oldld* | linux*aout* | linux*coff*)
17148 dynamic_linker=no
17151 # This must be Linux ELF.
17152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17153 version_type=linux
17154 need_lib_prefix=no
17155 need_version=no
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=no
17162 # Some binutils ld are patched to set DT_RUNPATH
17163 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17164 $as_echo_n "(cached) " >&6
17165 else
17166 lt_cv_shlibpath_overrides_runpath=no
17167 save_LDFLAGS=$LDFLAGS
17168 save_libdir=$libdir
17169 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17170 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17175 main ()
17179 return 0;
17181 _ACEOF
17182 if ac_fn_c_try_link "$LINENO"; then :
17183 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17184 lt_cv_shlibpath_overrides_runpath=yes
17187 rm -f core conftest.err conftest.$ac_objext \
17188 conftest$ac_exeext conftest.$ac_ext
17189 LDFLAGS=$save_LDFLAGS
17190 libdir=$save_libdir
17194 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17196 # This implies no fast_install, which is unacceptable.
17197 # Some rework will be needed to allow for fast_install
17198 # before this can be enabled.
17199 hardcode_into_libs=yes
17201 # Append ld.so.conf contents to the search path
17202 if test -f /etc/ld.so.conf; then
17203 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' ' '`
17204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17207 # We used to test for /lib/ld.so.1 and disable shared libraries on
17208 # powerpc, because MkLinux only supported shared libraries with the
17209 # GNU dynamic linker. Since this was broken with cross compilers,
17210 # most powerpc-linux boxes support dynamic linking these days and
17211 # people can always --disable-shared, the test was removed, and we
17212 # assume the GNU/Linux dynamic linker is in use.
17213 dynamic_linker='GNU/Linux ld.so'
17216 netbsd*)
17217 version_type=sunos
17218 need_lib_prefix=no
17219 need_version=no
17220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17223 dynamic_linker='NetBSD (a.out) ld.so'
17224 else
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 dynamic_linker='NetBSD ld.elf_so'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17231 hardcode_into_libs=yes
17234 newsos6)
17235 version_type=linux
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=yes
17241 *nto* | *qnx*)
17242 version_type=qnx
17243 need_lib_prefix=no
17244 need_version=no
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 shlibpath_var=LD_LIBRARY_PATH
17248 shlibpath_overrides_runpath=no
17249 hardcode_into_libs=yes
17250 dynamic_linker='ldqnx.so'
17253 openbsd*)
17254 version_type=sunos
17255 sys_lib_dlsearch_path_spec="/usr/lib"
17256 need_lib_prefix=no
17257 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17258 case $host_os in
17259 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17260 *) need_version=no ;;
17261 esac
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17266 case $host_os in
17267 openbsd2.[89] | openbsd2.[89].*)
17268 shlibpath_overrides_runpath=no
17271 shlibpath_overrides_runpath=yes
17273 esac
17274 else
17275 shlibpath_overrides_runpath=yes
17279 os2*)
17280 libname_spec='$name'
17281 shrext_cmds=".dll"
17282 need_lib_prefix=no
17283 library_names_spec='$libname${shared_ext} $libname.a'
17284 dynamic_linker='OS/2 ld.exe'
17285 shlibpath_var=LIBPATH
17288 osf3* | osf4* | osf5*)
17289 version_type=osf
17290 need_lib_prefix=no
17291 need_version=no
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17296 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17299 rdos*)
17300 dynamic_linker=no
17303 solaris*)
17304 version_type=linux
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=yes
17311 hardcode_into_libs=yes
17312 # ldd complains unless libraries are executable
17313 postinstall_cmds='chmod +x $lib'
17316 sunos4*)
17317 version_type=sunos
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17319 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 shlibpath_overrides_runpath=yes
17322 if test "$with_gnu_ld" = yes; then
17323 need_lib_prefix=no
17325 need_version=yes
17328 sysv4 | sysv4.3*)
17329 version_type=linux
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 case $host_vendor in
17334 sni)
17335 shlibpath_overrides_runpath=no
17336 need_lib_prefix=no
17337 runpath_var=LD_RUN_PATH
17339 siemens)
17340 need_lib_prefix=no
17342 motorola)
17343 need_lib_prefix=no
17344 need_version=no
17345 shlibpath_overrides_runpath=no
17346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17348 esac
17351 sysv4*MP*)
17352 if test -d /usr/nec ;then
17353 version_type=linux
17354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17355 soname_spec='$libname${shared_ext}.$major'
17356 shlibpath_var=LD_LIBRARY_PATH
17360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17361 version_type=freebsd-elf
17362 need_lib_prefix=no
17363 need_version=no
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=yes
17368 hardcode_into_libs=yes
17369 if test "$with_gnu_ld" = yes; then
17370 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17371 else
17372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17373 case $host_os in
17374 sco3.2v5*)
17375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17377 esac
17379 sys_lib_dlsearch_path_spec='/usr/lib'
17382 tpf*)
17383 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17384 version_type=linux
17385 need_lib_prefix=no
17386 need_version=no
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=no
17390 hardcode_into_libs=yes
17393 uts4*)
17394 version_type=linux
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17401 dynamic_linker=no
17403 esac
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17405 $as_echo "$dynamic_linker" >&6; }
17406 test "$dynamic_linker" = no && can_build_shared=no
17408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17409 if test "$GCC" = yes; then
17410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17413 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17414 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17416 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17417 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17512 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17513 hardcode_action=
17514 if test -n "$hardcode_libdir_flag_spec" ||
17515 test -n "$runpath_var" ||
17516 test "X$hardcode_automatic" = "Xyes" ; then
17518 # We can hardcode non-existent directories.
17519 if test "$hardcode_direct" != no &&
17520 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17521 # have to relink, otherwise we might link with an installed library
17522 # when we should be linking with a yet-to-be-installed one
17523 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17524 test "$hardcode_minus_L" != no; then
17525 # Linking always hardcodes the temporary library directory.
17526 hardcode_action=relink
17527 else
17528 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17529 hardcode_action=immediate
17531 else
17532 # We cannot hardcode anything, or else we can only hardcode existing
17533 # directories.
17534 hardcode_action=unsupported
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17537 $as_echo "$hardcode_action" >&6; }
17539 if test "$hardcode_action" = relink ||
17540 test "$inherit_rpath" = yes; then
17541 # Fast installation is not supported
17542 enable_fast_install=no
17543 elif test "$shlibpath_overrides_runpath" = yes ||
17544 test "$enable_shared" = no; then
17545 # Fast installation is not necessary
17546 enable_fast_install=needless
17554 if test "x$enable_dlopen" != xyes; then
17555 enable_dlopen=unknown
17556 enable_dlopen_self=unknown
17557 enable_dlopen_self_static=unknown
17558 else
17559 lt_cv_dlopen=no
17560 lt_cv_dlopen_libs=
17562 case $host_os in
17563 beos*)
17564 lt_cv_dlopen="load_add_on"
17565 lt_cv_dlopen_libs=
17566 lt_cv_dlopen_self=yes
17569 mingw* | pw32* | cegcc*)
17570 lt_cv_dlopen="LoadLibrary"
17571 lt_cv_dlopen_libs=
17574 cygwin*)
17575 lt_cv_dlopen="dlopen"
17576 lt_cv_dlopen_libs=
17579 darwin*)
17580 # if libdl is installed we need to link against it
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17584 $as_echo_n "(cached) " >&6
17585 else
17586 ac_check_lib_save_LIBS=$LIBS
17587 LIBS="-ldl $LIBS"
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char dlopen ();
17599 main ()
17601 return dlopen ();
17603 return 0;
17605 _ACEOF
17606 if ac_fn_c_try_link "$LINENO"; then :
17607 ac_cv_lib_dl_dlopen=yes
17608 else
17609 ac_cv_lib_dl_dlopen=no
17611 rm -f core conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17616 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17617 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17619 else
17621 lt_cv_dlopen="dyld"
17622 lt_cv_dlopen_libs=
17623 lt_cv_dlopen_self=yes
17630 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17631 if test "x$ac_cv_func_shl_load" = x""yes; then :
17632 lt_cv_dlopen="shl_load"
17633 else
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17635 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17636 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17637 $as_echo_n "(cached) " >&6
17638 else
17639 ac_check_lib_save_LIBS=$LIBS
17640 LIBS="-ldld $LIBS"
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17644 /* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char shl_load ();
17652 main ()
17654 return shl_load ();
17656 return 0;
17658 _ACEOF
17659 if ac_fn_c_try_link "$LINENO"; then :
17660 ac_cv_lib_dld_shl_load=yes
17661 else
17662 ac_cv_lib_dld_shl_load=no
17664 rm -f core conftest.err conftest.$ac_objext \
17665 conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17669 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17670 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17671 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17672 else
17673 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17674 if test "x$ac_cv_func_dlopen" = x""yes; then :
17675 lt_cv_dlopen="dlopen"
17676 else
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17680 $as_echo_n "(cached) " >&6
17681 else
17682 ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-ldl $LIBS"
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17687 /* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17690 #ifdef __cplusplus
17691 extern "C"
17692 #endif
17693 char dlopen ();
17695 main ()
17697 return dlopen ();
17699 return 0;
17701 _ACEOF
17702 if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_lib_dl_dlopen=yes
17704 else
17705 ac_cv_lib_dl_dlopen=no
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709 LIBS=$ac_check_lib_save_LIBS
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17712 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17713 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17715 else
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17717 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17718 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17720 else
17721 ac_check_lib_save_LIBS=$LIBS
17722 LIBS="-lsvld $LIBS"
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17726 /* Override any GCC internal prototype to avoid an error.
17727 Use char because int might match the return type of a GCC
17728 builtin and then its argument prototype would still apply. */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 char dlopen ();
17734 main ()
17736 return dlopen ();
17738 return 0;
17740 _ACEOF
17741 if ac_fn_c_try_link "$LINENO"; then :
17742 ac_cv_lib_svld_dlopen=yes
17743 else
17744 ac_cv_lib_svld_dlopen=no
17746 rm -f core conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17751 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17752 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17754 else
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17756 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17757 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 ac_check_lib_save_LIBS=$LIBS
17761 LIBS="-ldld $LIBS"
17762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17765 /* Override any GCC internal prototype to avoid an error.
17766 Use char because int might match the return type of a GCC
17767 builtin and then its argument prototype would still apply. */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 char dld_link ();
17773 main ()
17775 return dld_link ();
17777 return 0;
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781 ac_cv_lib_dld_dld_link=yes
17782 else
17783 ac_cv_lib_dld_dld_link=no
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 LIBS=$ac_check_lib_save_LIBS
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17790 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17791 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17792 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17811 esac
17813 if test "x$lt_cv_dlopen" != xno; then
17814 enable_dlopen=yes
17815 else
17816 enable_dlopen=no
17819 case $lt_cv_dlopen in
17820 dlopen)
17821 save_CPPFLAGS="$CPPFLAGS"
17822 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17824 save_LDFLAGS="$LDFLAGS"
17825 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17827 save_LIBS="$LIBS"
17828 LIBS="$lt_cv_dlopen_libs $LIBS"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17831 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17832 if test "${lt_cv_dlopen_self+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 if test "$cross_compiling" = yes; then :
17836 lt_cv_dlopen_self=cross
17837 else
17838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17839 lt_status=$lt_dlunknown
17840 cat > conftest.$ac_ext <<_LT_EOF
17841 #line 17841 "configure"
17842 #include "confdefs.h"
17844 #if HAVE_DLFCN_H
17845 #include <dlfcn.h>
17846 #endif
17848 #include <stdio.h>
17850 #ifdef RTLD_GLOBAL
17851 # define LT_DLGLOBAL RTLD_GLOBAL
17852 #else
17853 # ifdef DL_GLOBAL
17854 # define LT_DLGLOBAL DL_GLOBAL
17855 # else
17856 # define LT_DLGLOBAL 0
17857 # endif
17858 #endif
17860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17861 find out it does not work in some platform. */
17862 #ifndef LT_DLLAZY_OR_NOW
17863 # ifdef RTLD_LAZY
17864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17865 # else
17866 # ifdef DL_LAZY
17867 # define LT_DLLAZY_OR_NOW DL_LAZY
17868 # else
17869 # ifdef RTLD_NOW
17870 # define LT_DLLAZY_OR_NOW RTLD_NOW
17871 # else
17872 # ifdef DL_NOW
17873 # define LT_DLLAZY_OR_NOW DL_NOW
17874 # else
17875 # define LT_DLLAZY_OR_NOW 0
17876 # endif
17877 # endif
17878 # endif
17879 # endif
17880 #endif
17882 /* When -fvisbility=hidden is used, assume the code has been annotated
17883 correspondingly for the symbols needed. */
17884 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17885 void fnord () __attribute__((visibility("default")));
17886 #endif
17888 void fnord () { int i=42; }
17889 int main ()
17891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17892 int status = $lt_dlunknown;
17894 if (self)
17896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17897 else
17899 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17900 else puts (dlerror ());
17902 /* dlclose (self); */
17904 else
17905 puts (dlerror ());
17907 return status;
17909 _LT_EOF
17910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17911 (eval $ac_link) 2>&5
17912 ac_status=$?
17913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17914 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17915 (./conftest; exit; ) >&5 2>/dev/null
17916 lt_status=$?
17917 case x$lt_status in
17918 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17919 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17920 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17921 esac
17922 else :
17923 # compilation failed
17924 lt_cv_dlopen_self=no
17927 rm -fr conftest*
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17932 $as_echo "$lt_cv_dlopen_self" >&6; }
17934 if test "x$lt_cv_dlopen_self" = xyes; then
17935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17937 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17938 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 if test "$cross_compiling" = yes; then :
17942 lt_cv_dlopen_self_static=cross
17943 else
17944 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17945 lt_status=$lt_dlunknown
17946 cat > conftest.$ac_ext <<_LT_EOF
17947 #line 17947 "configure"
17948 #include "confdefs.h"
17950 #if HAVE_DLFCN_H
17951 #include <dlfcn.h>
17952 #endif
17954 #include <stdio.h>
17956 #ifdef RTLD_GLOBAL
17957 # define LT_DLGLOBAL RTLD_GLOBAL
17958 #else
17959 # ifdef DL_GLOBAL
17960 # define LT_DLGLOBAL DL_GLOBAL
17961 # else
17962 # define LT_DLGLOBAL 0
17963 # endif
17964 #endif
17966 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17967 find out it does not work in some platform. */
17968 #ifndef LT_DLLAZY_OR_NOW
17969 # ifdef RTLD_LAZY
17970 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17971 # else
17972 # ifdef DL_LAZY
17973 # define LT_DLLAZY_OR_NOW DL_LAZY
17974 # else
17975 # ifdef RTLD_NOW
17976 # define LT_DLLAZY_OR_NOW RTLD_NOW
17977 # else
17978 # ifdef DL_NOW
17979 # define LT_DLLAZY_OR_NOW DL_NOW
17980 # else
17981 # define LT_DLLAZY_OR_NOW 0
17982 # endif
17983 # endif
17984 # endif
17985 # endif
17986 #endif
17988 /* When -fvisbility=hidden is used, assume the code has been annotated
17989 correspondingly for the symbols needed. */
17990 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17991 void fnord () __attribute__((visibility("default")));
17992 #endif
17994 void fnord () { int i=42; }
17995 int main ()
17997 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17998 int status = $lt_dlunknown;
18000 if (self)
18002 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18003 else
18005 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18006 else puts (dlerror ());
18008 /* dlclose (self); */
18010 else
18011 puts (dlerror ());
18013 return status;
18015 _LT_EOF
18016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18017 (eval $ac_link) 2>&5
18018 ac_status=$?
18019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18020 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18021 (./conftest; exit; ) >&5 2>/dev/null
18022 lt_status=$?
18023 case x$lt_status in
18024 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18025 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18026 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18027 esac
18028 else :
18029 # compilation failed
18030 lt_cv_dlopen_self_static=no
18033 rm -fr conftest*
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18038 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18041 CPPFLAGS="$save_CPPFLAGS"
18042 LDFLAGS="$save_LDFLAGS"
18043 LIBS="$save_LIBS"
18045 esac
18047 case $lt_cv_dlopen_self in
18048 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18049 *) enable_dlopen_self=unknown ;;
18050 esac
18052 case $lt_cv_dlopen_self_static in
18053 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18054 *) enable_dlopen_self_static=unknown ;;
18055 esac
18074 striplib=
18075 old_striplib=
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18077 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18078 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18082 $as_echo "yes" >&6; }
18083 else
18084 # FIXME - insert some real tests, host_os isn't really good enough
18085 case $host_os in
18086 darwin*)
18087 if test -n "$STRIP" ; then
18088 striplib="$STRIP -x"
18089 old_striplib="$STRIP -S"
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18091 $as_echo "yes" >&6; }
18092 else
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18094 $as_echo "no" >&6; }
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18099 $as_echo "no" >&6; }
18101 esac
18115 # Report which library types will actually be built
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18117 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18119 $as_echo "$can_build_shared" >&6; }
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18122 $as_echo_n "checking whether to build shared libraries... " >&6; }
18123 test "$can_build_shared" = "no" && enable_shared=no
18125 # On AIX, shared libraries and static libraries use the same namespace, and
18126 # are all built from PIC.
18127 case $host_os in
18128 aix3*)
18129 test "$enable_shared" = yes && enable_static=no
18130 if test -n "$RANLIB"; then
18131 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18132 postinstall_cmds='$RANLIB $lib'
18136 aix[4-9]*)
18137 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18138 test "$enable_shared" = yes && enable_static=no
18141 esac
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18143 $as_echo "$enable_shared" >&6; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18146 $as_echo_n "checking whether to build static libraries... " >&6; }
18147 # Make sure either enable_shared or enable_static is yes.
18148 test "$enable_shared" = yes || enable_static=yes
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18150 $as_echo "$enable_static" >&6; }
18156 ac_ext=c
18157 ac_cpp='$CPP $CPPFLAGS'
18158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18162 CC="$lt_save_CC"
18164 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18165 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18166 (test "X$CXX" != "Xg++"))) ; then
18167 ac_ext=cpp
18168 ac_cpp='$CXXCPP $CPPFLAGS'
18169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18173 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18174 if test -z "$CXXCPP"; then
18175 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18176 $as_echo_n "(cached) " >&6
18177 else
18178 # Double quotes because CXXCPP needs to be expanded
18179 for CXXCPP in "$CXX -E" "/lib/cpp"
18181 ac_preproc_ok=false
18182 for ac_cxx_preproc_warn_flag in '' yes
18184 # Use a header file that comes with gcc, so configuring glibc
18185 # with a fresh cross-compiler works.
18186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18187 # <limits.h> exists even on freestanding compilers.
18188 # On the NeXT, cc -E runs the code through the compiler's parser,
18189 # not just through cpp. "Syntax error" is here to catch this case.
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192 #ifdef __STDC__
18193 # include <limits.h>
18194 #else
18195 # include <assert.h>
18196 #endif
18197 Syntax error
18198 _ACEOF
18199 if ac_fn_cxx_try_cpp "$LINENO"; then :
18201 else
18202 # Broken: fails on valid input.
18203 continue
18205 rm -f conftest.err conftest.$ac_ext
18207 # OK, works on sane cases. Now check whether nonexistent headers
18208 # can be detected and how.
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18211 #include <ac_nonexistent.h>
18212 _ACEOF
18213 if ac_fn_cxx_try_cpp "$LINENO"; then :
18214 # Broken: success on invalid input.
18215 continue
18216 else
18217 # Passes both tests.
18218 ac_preproc_ok=:
18219 break
18221 rm -f conftest.err conftest.$ac_ext
18223 done
18224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18225 rm -f conftest.err conftest.$ac_ext
18226 if $ac_preproc_ok; then :
18227 break
18230 done
18231 ac_cv_prog_CXXCPP=$CXXCPP
18234 CXXCPP=$ac_cv_prog_CXXCPP
18235 else
18236 ac_cv_prog_CXXCPP=$CXXCPP
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18239 $as_echo "$CXXCPP" >&6; }
18240 ac_preproc_ok=false
18241 for ac_cxx_preproc_warn_flag in '' yes
18243 # Use a header file that comes with gcc, so configuring glibc
18244 # with a fresh cross-compiler works.
18245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18246 # <limits.h> exists even on freestanding compilers.
18247 # On the NeXT, cc -E runs the code through the compiler's parser,
18248 # not just through cpp. "Syntax error" is here to catch this case.
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #ifdef __STDC__
18252 # include <limits.h>
18253 #else
18254 # include <assert.h>
18255 #endif
18256 Syntax error
18257 _ACEOF
18258 if ac_fn_cxx_try_cpp "$LINENO"; then :
18260 else
18261 # Broken: fails on valid input.
18262 continue
18264 rm -f conftest.err conftest.$ac_ext
18266 # OK, works on sane cases. Now check whether nonexistent headers
18267 # can be detected and how.
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #include <ac_nonexistent.h>
18271 _ACEOF
18272 if ac_fn_cxx_try_cpp "$LINENO"; then :
18273 # Broken: success on invalid input.
18274 continue
18275 else
18276 # Passes both tests.
18277 ac_preproc_ok=:
18278 break
18280 rm -f conftest.err conftest.$ac_ext
18282 done
18283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18284 rm -f conftest.err conftest.$ac_ext
18285 if $ac_preproc_ok; then :
18287 else
18288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18290 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18291 See \`config.log' for more details." "$LINENO" 5; }
18294 ac_ext=c
18295 ac_cpp='$CPP $CPPFLAGS'
18296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18300 else
18301 _lt_caught_CXX_error=yes
18304 ac_ext=cpp
18305 ac_cpp='$CXXCPP $CPPFLAGS'
18306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18310 archive_cmds_need_lc_CXX=no
18311 allow_undefined_flag_CXX=
18312 always_export_symbols_CXX=no
18313 archive_expsym_cmds_CXX=
18314 compiler_needs_object_CXX=no
18315 export_dynamic_flag_spec_CXX=
18316 hardcode_direct_CXX=no
18317 hardcode_direct_absolute_CXX=no
18318 hardcode_libdir_flag_spec_CXX=
18319 hardcode_libdir_flag_spec_ld_CXX=
18320 hardcode_libdir_separator_CXX=
18321 hardcode_minus_L_CXX=no
18322 hardcode_shlibpath_var_CXX=unsupported
18323 hardcode_automatic_CXX=no
18324 inherit_rpath_CXX=no
18325 module_cmds_CXX=
18326 module_expsym_cmds_CXX=
18327 link_all_deplibs_CXX=unknown
18328 old_archive_cmds_CXX=$old_archive_cmds
18329 reload_flag_CXX=$reload_flag
18330 reload_cmds_CXX=$reload_cmds
18331 no_undefined_flag_CXX=
18332 whole_archive_flag_spec_CXX=
18333 enable_shared_with_static_runtimes_CXX=no
18335 # Source file extension for C++ test sources.
18336 ac_ext=cpp
18338 # Object file extension for compiled C++ test sources.
18339 objext=o
18340 objext_CXX=$objext
18342 # No sense in running all these tests if we already determined that
18343 # the CXX compiler isn't working. Some variables (like enable_shared)
18344 # are currently assumed to apply to all compilers on this platform,
18345 # and will be corrupted by setting them based on a non-working compiler.
18346 if test "$_lt_caught_CXX_error" != yes; then
18347 # Code to be used in simple compile tests
18348 lt_simple_compile_test_code="int some_variable = 0;"
18350 # Code to be used in simple link tests
18351 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18360 # If no C compiler was specified, use CC.
18361 LTCC=${LTCC-"$CC"}
18363 # If no C compiler flags were specified, use CFLAGS.
18364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18366 # Allow CC to be a program name with arguments.
18367 compiler=$CC
18370 # save warnings/boilerplate of simple test code
18371 ac_outfile=conftest.$ac_objext
18372 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18374 _lt_compiler_boilerplate=`cat conftest.err`
18375 $RM conftest*
18377 ac_outfile=conftest.$ac_objext
18378 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18380 _lt_linker_boilerplate=`cat conftest.err`
18381 $RM -r conftest*
18384 # Allow CC to be a program name with arguments.
18385 lt_save_CC=$CC
18386 lt_save_LD=$LD
18387 lt_save_GCC=$GCC
18388 GCC=$GXX
18389 lt_save_with_gnu_ld=$with_gnu_ld
18390 lt_save_path_LD=$lt_cv_path_LD
18391 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18392 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18393 else
18394 $as_unset lt_cv_prog_gnu_ld
18396 if test -n "${lt_cv_path_LDCXX+set}"; then
18397 lt_cv_path_LD=$lt_cv_path_LDCXX
18398 else
18399 $as_unset lt_cv_path_LD
18401 test -z "${LDCXX+set}" || LD=$LDCXX
18402 CC=${CXX-"c++"}
18403 compiler=$CC
18404 compiler_CXX=$CC
18405 for cc_temp in $compiler""; do
18406 case $cc_temp in
18407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18409 \-*) ;;
18410 *) break;;
18411 esac
18412 done
18413 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18416 if test -n "$compiler"; then
18417 # We don't want -fno-exception when compiling C++ code, so set the
18418 # no_builtin_flag separately
18419 if test "$GXX" = yes; then
18420 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18421 else
18422 lt_prog_compiler_no_builtin_flag_CXX=
18425 if test "$GXX" = yes; then
18426 # Set up default GNU C++ configuration
18430 # Check whether --with-gnu-ld was given.
18431 if test "${with_gnu_ld+set}" = set; then :
18432 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18433 else
18434 with_gnu_ld=no
18437 ac_prog=ld
18438 if test "$GCC" = yes; then
18439 # Check if gcc -print-prog-name=ld gives a path.
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18441 $as_echo_n "checking for ld used by $CC... " >&6; }
18442 case $host in
18443 *-*-mingw*)
18444 # gcc leaves a trailing carriage return which upsets mingw
18445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18448 esac
18449 case $ac_prog in
18450 # Accept absolute paths.
18451 [\\/]* | ?:[\\/]*)
18452 re_direlt='/[^/][^/]*/\.\./'
18453 # Canonicalize the pathname of ld
18454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18457 done
18458 test -z "$LD" && LD="$ac_prog"
18461 # If it fails, then pretend we aren't using GCC.
18462 ac_prog=ld
18465 # If it is relative, then search for the first ld in PATH.
18466 with_gnu_ld=unknown
18468 esac
18469 elif test "$with_gnu_ld" = yes; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18471 $as_echo_n "checking for GNU ld... " >&6; }
18472 else
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18474 $as_echo_n "checking for non-GNU ld... " >&6; }
18476 if test "${lt_cv_path_LD+set}" = set; then :
18477 $as_echo_n "(cached) " >&6
18478 else
18479 if test -z "$LD"; then
18480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18481 for ac_dir in $PATH; do
18482 IFS="$lt_save_ifs"
18483 test -z "$ac_dir" && ac_dir=.
18484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18485 lt_cv_path_LD="$ac_dir/$ac_prog"
18486 # Check to see if the program is GNU ld. I'd rather use --version,
18487 # but apparently some variants of GNU ld only accept -v.
18488 # Break only if it was the GNU/non-GNU ld that we prefer.
18489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18490 *GNU* | *'with BFD'*)
18491 test "$with_gnu_ld" != no && break
18494 test "$with_gnu_ld" != yes && break
18496 esac
18498 done
18499 IFS="$lt_save_ifs"
18500 else
18501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18505 LD="$lt_cv_path_LD"
18506 if test -n "$LD"; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18508 $as_echo "$LD" >&6; }
18509 else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511 $as_echo "no" >&6; }
18513 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18515 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18516 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18517 $as_echo_n "(cached) " >&6
18518 else
18519 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18520 case `$LD -v 2>&1 </dev/null` in
18521 *GNU* | *'with BFD'*)
18522 lt_cv_prog_gnu_ld=yes
18525 lt_cv_prog_gnu_ld=no
18527 esac
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18530 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18531 with_gnu_ld=$lt_cv_prog_gnu_ld
18539 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18540 # archiving commands below assume that GNU ld is being used.
18541 if test "$with_gnu_ld" = yes; then
18542 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18543 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'
18545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18546 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18548 # If archive_cmds runs LD, not CC, wlarc should be empty
18549 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18550 # investigate it a little bit more. (MM)
18551 wlarc='${wl}'
18553 # ancient GNU ld didn't support --whole-archive et. al.
18554 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18555 $GREP 'no-whole-archive' > /dev/null; then
18556 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18557 else
18558 whole_archive_flag_spec_CXX=
18560 else
18561 with_gnu_ld=no
18562 wlarc=
18564 # A generic and very simple default shared library creation
18565 # command for GNU C++ for the case where it uses the native
18566 # linker, instead of GNU ld. If possible, this setting should
18567 # overridden to take advantage of the native linker features on
18568 # the platform it is being used on.
18569 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18572 # Commands to make compiler produce verbose output that lists
18573 # what "hidden" libraries, object files and flags are used when
18574 # linking a shared library.
18575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18577 else
18578 GXX=no
18579 with_gnu_ld=no
18580 wlarc=
18583 # PORTME: fill in a description of your system's C++ link characteristics
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18586 ld_shlibs_CXX=yes
18587 case $host_os in
18588 aix3*)
18589 # FIXME: insert proper C++ library support
18590 ld_shlibs_CXX=no
18592 aix[4-9]*)
18593 if test "$host_cpu" = ia64; then
18594 # On IA64, the linker does run time linking by default, so we don't
18595 # have to do anything special.
18596 aix_use_runtimelinking=no
18597 exp_sym_flag='-Bexport'
18598 no_entry_flag=""
18599 else
18600 aix_use_runtimelinking=no
18602 # Test if we are trying to use run time linking or normal
18603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18604 # need to do runtime linking.
18605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18606 for ld_flag in $LDFLAGS; do
18607 case $ld_flag in
18608 *-brtl*)
18609 aix_use_runtimelinking=yes
18610 break
18612 esac
18613 done
18615 esac
18617 exp_sym_flag='-bexport'
18618 no_entry_flag='-bnoentry'
18621 # When large executables or shared objects are built, AIX ld can
18622 # have problems creating the table of contents. If linking a library
18623 # or program results in "error TOC overflow" add -mminimal-toc to
18624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18627 archive_cmds_CXX=''
18628 hardcode_direct_CXX=yes
18629 hardcode_direct_absolute_CXX=yes
18630 hardcode_libdir_separator_CXX=':'
18631 link_all_deplibs_CXX=yes
18632 file_list_spec_CXX='${wl}-f,'
18634 if test "$GXX" = yes; then
18635 case $host_os in aix4.[012]|aix4.[012].*)
18636 # We only want to do this on AIX 4.2 and lower, the check
18637 # below for broken collect2 doesn't work under 4.3+
18638 collect2name=`${CC} -print-prog-name=collect2`
18639 if test -f "$collect2name" &&
18640 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18641 then
18642 # We have reworked collect2
18644 else
18645 # We have old collect2
18646 hardcode_direct_CXX=unsupported
18647 # It fails to find uninstalled libraries when the uninstalled
18648 # path is not listed in the libpath. Setting hardcode_minus_L
18649 # to unsupported forces relinking
18650 hardcode_minus_L_CXX=yes
18651 hardcode_libdir_flag_spec_CXX='-L$libdir'
18652 hardcode_libdir_separator_CXX=
18654 esac
18655 shared_flag='-shared'
18656 if test "$aix_use_runtimelinking" = yes; then
18657 shared_flag="$shared_flag "'${wl}-G'
18659 else
18660 # not using gcc
18661 if test "$host_cpu" = ia64; then
18662 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18663 # chokes on -Wl,-G. The following line is correct:
18664 shared_flag='-G'
18665 else
18666 if test "$aix_use_runtimelinking" = yes; then
18667 shared_flag='${wl}-G'
18668 else
18669 shared_flag='${wl}-bM:SRE'
18674 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18675 # It seems that -bexpall does not export symbols beginning with
18676 # underscore (_), so it is better to generate a list of symbols to
18677 # export.
18678 always_export_symbols_CXX=yes
18679 if test "$aix_use_runtimelinking" = yes; then
18680 # Warning - without using the other runtime loading flags (-brtl),
18681 # -berok will link without error, but may produce a broken library.
18682 allow_undefined_flag_CXX='-berok'
18683 # Determine the default libpath from the value encoded in an empty
18684 # executable.
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18689 main ()
18693 return 0;
18695 _ACEOF
18696 if ac_fn_cxx_try_link "$LINENO"; then :
18698 lt_aix_libpath_sed='
18699 /Import File Strings/,/^$/ {
18700 /^0/ {
18701 s/^0 *\(.*\)$/\1/
18705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18706 # Check for a 64-bit object if we didn't find anything.
18707 if test -z "$aix_libpath"; then
18708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18715 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18717 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"
18718 else
18719 if test "$host_cpu" = ia64; then
18720 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18721 allow_undefined_flag_CXX="-z nodefs"
18722 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"
18723 else
18724 # Determine the default libpath from the value encoded in an
18725 # empty executable.
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18730 main ()
18734 return 0;
18736 _ACEOF
18737 if ac_fn_cxx_try_link "$LINENO"; then :
18739 lt_aix_libpath_sed='
18740 /Import File Strings/,/^$/ {
18741 /^0/ {
18742 s/^0 *\(.*\)$/\1/
18746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18747 # Check for a 64-bit object if we didn't find anything.
18748 if test -z "$aix_libpath"; then
18749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18752 rm -f core conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18756 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18757 # Warning - without using the other run time loading flags,
18758 # -berok will link without error, but may produce a broken library.
18759 no_undefined_flag_CXX=' ${wl}-bernotok'
18760 allow_undefined_flag_CXX=' ${wl}-berok'
18761 if test "$with_gnu_ld" = yes; then
18762 # We only use this code for GNU lds that support --whole-archive.
18763 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18764 else
18765 # Exported symbols can be pulled into shared objects from archives
18766 whole_archive_flag_spec_CXX='$convenience'
18768 archive_cmds_need_lc_CXX=yes
18769 # This is similar to how AIX traditionally builds its shared
18770 # libraries.
18771 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'
18776 beos*)
18777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18778 allow_undefined_flag_CXX=unsupported
18779 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18780 # support --undefined. This deserves some investigation. FIXME
18781 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18782 else
18783 ld_shlibs_CXX=no
18787 chorus*)
18788 case $cc_basename in
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18793 esac
18796 cygwin* | mingw* | pw32* | cegcc*)
18797 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18798 # as there is no search path for DLLs.
18799 hardcode_libdir_flag_spec_CXX='-L$libdir'
18800 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18801 allow_undefined_flag_CXX=unsupported
18802 always_export_symbols_CXX=no
18803 enable_shared_with_static_runtimes_CXX=yes
18805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18806 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'
18807 # If the export-symbols file already is a .def file (1st line
18808 # is EXPORTS), use it as is; otherwise, prepend...
18809 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18810 cp $export_symbols $output_objdir/$soname.def;
18811 else
18812 echo EXPORTS > $output_objdir/$soname.def;
18813 cat $export_symbols >> $output_objdir/$soname.def;
18815 $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'
18816 else
18817 ld_shlibs_CXX=no
18820 darwin* | rhapsody*)
18823 archive_cmds_need_lc_CXX=no
18824 hardcode_direct_CXX=no
18825 hardcode_automatic_CXX=yes
18826 hardcode_shlibpath_var_CXX=unsupported
18827 if test "$lt_cv_ld_force_load" = "yes"; then
18828 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\"`'
18829 else
18830 whole_archive_flag_spec_CXX=''
18832 link_all_deplibs_CXX=yes
18833 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18834 case $cc_basename in
18835 ifort*) _lt_dar_can_shared=yes ;;
18836 *) _lt_dar_can_shared=$GCC ;;
18837 esac
18838 if test "$_lt_dar_can_shared" = "yes"; then
18839 output_verbose_link_cmd=func_echo_all
18840 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}"
18841 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18842 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}"
18843 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}"
18844 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18845 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}"
18846 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}"
18849 else
18850 ld_shlibs_CXX=no
18855 dgux*)
18856 case $cc_basename in
18857 ec++*)
18858 # FIXME: insert proper C++ library support
18859 ld_shlibs_CXX=no
18861 ghcx*)
18862 # Green Hills C++ Compiler
18863 # FIXME: insert proper C++ library support
18864 ld_shlibs_CXX=no
18867 # FIXME: insert proper C++ library support
18868 ld_shlibs_CXX=no
18870 esac
18873 freebsd2.*)
18874 # C++ shared libraries reported to be fairly broken before
18875 # switch to ELF
18876 ld_shlibs_CXX=no
18879 freebsd-elf*)
18880 archive_cmds_need_lc_CXX=no
18883 freebsd* | dragonfly*)
18884 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18885 # conventions
18886 ld_shlibs_CXX=yes
18889 gnu*)
18892 haiku*)
18893 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18894 link_all_deplibs_CXX=yes
18897 hpux9*)
18898 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18899 hardcode_libdir_separator_CXX=:
18900 export_dynamic_flag_spec_CXX='${wl}-E'
18901 hardcode_direct_CXX=yes
18902 hardcode_minus_L_CXX=yes # Not in the search PATH,
18903 # but as the default
18904 # location of the library.
18906 case $cc_basename in
18907 CC*)
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18911 aCC*)
18912 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'
18913 # Commands to make compiler produce verbose output that lists
18914 # what "hidden" libraries, object files and flags are used when
18915 # linking a shared library.
18917 # There doesn't appear to be a way to prevent this compiler from
18918 # explicitly linking system object files so we need to strip them
18919 # from the output so that they don't get included in the library
18920 # dependencies.
18921 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"'
18924 if test "$GXX" = yes; then
18925 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'
18926 else
18927 # FIXME: insert proper C++ library support
18928 ld_shlibs_CXX=no
18931 esac
18934 hpux10*|hpux11*)
18935 if test $with_gnu_ld = no; then
18936 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18937 hardcode_libdir_separator_CXX=:
18939 case $host_cpu in
18940 hppa*64*|ia64*)
18943 export_dynamic_flag_spec_CXX='${wl}-E'
18945 esac
18947 case $host_cpu in
18948 hppa*64*|ia64*)
18949 hardcode_direct_CXX=no
18950 hardcode_shlibpath_var_CXX=no
18953 hardcode_direct_CXX=yes
18954 hardcode_direct_absolute_CXX=yes
18955 hardcode_minus_L_CXX=yes # Not in the search PATH,
18956 # but as the default
18957 # location of the library.
18959 esac
18961 case $cc_basename in
18962 CC*)
18963 # FIXME: insert proper C++ library support
18964 ld_shlibs_CXX=no
18966 aCC*)
18967 case $host_cpu in
18968 hppa*64*)
18969 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18971 ia64*)
18972 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18975 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18977 esac
18978 # Commands to make compiler produce verbose output that lists
18979 # what "hidden" libraries, object files and flags are used when
18980 # linking a shared library.
18982 # There doesn't appear to be a way to prevent this compiler from
18983 # explicitly linking system object files so we need to strip them
18984 # from the output so that they don't get included in the library
18985 # dependencies.
18986 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"'
18989 if test "$GXX" = yes; then
18990 if test $with_gnu_ld = no; then
18991 case $host_cpu in
18992 hppa*64*)
18993 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18995 ia64*)
18996 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18999 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'
19001 esac
19003 else
19004 # FIXME: insert proper C++ library support
19005 ld_shlibs_CXX=no
19008 esac
19011 interix[3-9]*)
19012 hardcode_direct_CXX=no
19013 hardcode_shlibpath_var_CXX=no
19014 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19015 export_dynamic_flag_spec_CXX='${wl}-E'
19016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19017 # Instead, shared libraries are loaded at an image base (0x10000000 by
19018 # default) and relocated if they conflict, which is a slow very memory
19019 # consuming and fragmenting process. To avoid this, we pick a random,
19020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19022 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'
19023 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'
19025 irix5* | irix6*)
19026 case $cc_basename in
19027 CC*)
19028 # SGI C++
19029 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'
19031 # Archives containing C++ object files must be created using
19032 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19033 # necessary to make sure instantiated templates are included
19034 # in the archive.
19035 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19038 if test "$GXX" = yes; then
19039 if test "$with_gnu_ld" = no; then
19040 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'
19041 else
19042 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'
19045 link_all_deplibs_CXX=yes
19047 esac
19048 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19049 hardcode_libdir_separator_CXX=:
19050 inherit_rpath_CXX=yes
19053 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19054 case $cc_basename in
19055 KCC*)
19056 # Kuck and Associates, Inc. (KAI) C++ Compiler
19058 # KCC will only create a shared library if the output file
19059 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19060 # to its proper name (with version) after linking.
19061 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'
19062 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'
19063 # Commands to make compiler produce verbose output that lists
19064 # what "hidden" libraries, object files and flags are used when
19065 # linking a shared library.
19067 # There doesn't appear to be a way to prevent this compiler from
19068 # explicitly linking system object files so we need to strip them
19069 # from the output so that they don't get included in the library
19070 # dependencies.
19071 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"'
19073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19074 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19076 # Archives containing C++ object files must be created using
19077 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19078 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19080 icpc* | ecpc* )
19081 # Intel C++
19082 with_gnu_ld=yes
19083 # version 8.0 and above of icpc choke on multiply defined symbols
19084 # if we add $predep_objects and $postdep_objects, however 7.1 and
19085 # earlier do not add the objects themselves.
19086 case `$CC -V 2>&1` in
19087 *"Version 7."*)
19088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19089 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'
19091 *) # Version 8.0 or newer
19092 tmp_idyn=
19093 case $host_cpu in
19094 ia64*) tmp_idyn=' -i_dynamic';;
19095 esac
19096 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19097 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'
19099 esac
19100 archive_cmds_need_lc_CXX=no
19101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19102 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19103 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19105 pgCC* | pgcpp*)
19106 # Portland Group C++ compiler
19107 case `$CC -V` in
19108 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19109 prelink_cmds_CXX='tpldir=Template.dir~
19110 rm -rf $tpldir~
19111 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19112 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19113 old_archive_cmds_CXX='tpldir=Template.dir~
19114 rm -rf $tpldir~
19115 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19116 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19117 $RANLIB $oldlib'
19118 archive_cmds_CXX='tpldir=Template.dir~
19119 rm -rf $tpldir~
19120 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19121 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19122 archive_expsym_cmds_CXX='tpldir=Template.dir~
19123 rm -rf $tpldir~
19124 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19125 $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'
19127 *) # Version 6 and above use weak symbols
19128 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19129 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'
19131 esac
19133 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19134 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19135 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'
19137 cxx*)
19138 # Compaq C++
19139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19140 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'
19142 runpath_var=LD_RUN_PATH
19143 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19144 hardcode_libdir_separator_CXX=:
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19153 # dependencies.
19154 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'
19156 xl* | mpixl* | bgxl*)
19157 # IBM XL 8.0 on PPC, with GNU ld
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19160 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 if test "x$supports_anon_versioning" = xyes; then
19162 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19164 echo "local: *; };" >> $output_objdir/$libname.ver~
19165 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19169 case `$CC -V 2>&1 | sed 5q` in
19170 *Sun\ C*)
19171 # Sun C++ 5.9
19172 no_undefined_flag_CXX=' -zdefs'
19173 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19174 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'
19175 hardcode_libdir_flag_spec_CXX='-R$libdir'
19176 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'
19177 compiler_needs_object_CXX=yes
19179 # Not sure whether something based on
19180 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19181 # would be better.
19182 output_verbose_link_cmd='func_echo_all'
19184 # Archives containing C++ object files must be created using
19185 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19186 # necessary to make sure instantiated templates are included
19187 # in the archive.
19188 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19190 esac
19192 esac
19195 lynxos*)
19196 # FIXME: insert proper C++ library support
19197 ld_shlibs_CXX=no
19200 m88k*)
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19205 mvs*)
19206 case $cc_basename in
19207 cxx*)
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19212 # FIXME: insert proper C++ library support
19213 ld_shlibs_CXX=no
19215 esac
19218 netbsd*)
19219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19220 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19221 wlarc=
19222 hardcode_libdir_flag_spec_CXX='-R$libdir'
19223 hardcode_direct_CXX=yes
19224 hardcode_shlibpath_var_CXX=no
19226 # Workaround some broken pre-1.5 toolchains
19227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19230 *nto* | *qnx*)
19231 ld_shlibs_CXX=yes
19234 openbsd2*)
19235 # C++ shared libraries are fairly broken
19236 ld_shlibs_CXX=no
19239 openbsd*)
19240 if test -f /usr/libexec/ld.so; then
19241 hardcode_direct_CXX=yes
19242 hardcode_shlibpath_var_CXX=no
19243 hardcode_direct_absolute_CXX=yes
19244 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19247 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19248 export_dynamic_flag_spec_CXX='${wl}-E'
19249 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19251 output_verbose_link_cmd=func_echo_all
19252 else
19253 ld_shlibs_CXX=no
19257 osf3* | osf4* | osf5*)
19258 case $cc_basename in
19259 KCC*)
19260 # Kuck and Associates, Inc. (KAI) C++ Compiler
19262 # KCC will only create a shared library if the output file
19263 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19264 # to its proper name (with version) after linking.
19265 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'
19267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19268 hardcode_libdir_separator_CXX=:
19270 # Archives containing C++ object files must be created using
19271 # the KAI C++ compiler.
19272 case $host in
19273 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19274 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19275 esac
19277 RCC*)
19278 # Rational C++ 2.4.1
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19282 cxx*)
19283 case $host in
19284 osf3*)
19285 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19286 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'
19287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19290 allow_undefined_flag_CXX=' -expect_unresolved \*'
19291 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'
19292 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19293 echo "-hidden">> $lib.exp~
19294 $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~
19295 $RM $lib.exp'
19296 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19298 esac
19300 hardcode_libdir_separator_CXX=:
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19306 # There doesn't appear to be a way to prevent this compiler from
19307 # explicitly linking system object files so we need to strip them
19308 # from the output so that they don't get included in the library
19309 # dependencies.
19310 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"'
19313 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19314 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19315 case $host in
19316 osf3*)
19317 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'
19320 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'
19322 esac
19324 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19325 hardcode_libdir_separator_CXX=:
19327 # Commands to make compiler produce verbose output that lists
19328 # what "hidden" libraries, object files and flags are used when
19329 # linking a shared library.
19330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19332 else
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19337 esac
19340 psos*)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19345 sunos4*)
19346 case $cc_basename in
19347 CC*)
19348 # Sun C++ 4.x
19349 # FIXME: insert proper C++ library support
19350 ld_shlibs_CXX=no
19352 lcc*)
19353 # Lucid
19354 # FIXME: insert proper C++ library support
19355 ld_shlibs_CXX=no
19358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19361 esac
19364 solaris*)
19365 case $cc_basename in
19366 CC*)
19367 # Sun C++ 4.2, 5.x and Centerline C++
19368 archive_cmds_need_lc_CXX=yes
19369 no_undefined_flag_CXX=' -zdefs'
19370 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19371 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19372 $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'
19374 hardcode_libdir_flag_spec_CXX='-R$libdir'
19375 hardcode_shlibpath_var_CXX=no
19376 case $host_os in
19377 solaris2.[0-5] | solaris2.[0-5].*) ;;
19379 # The compiler driver will combine and reorder linker options,
19380 # but understands `-z linker_flag'.
19381 # Supported since Solaris 2.6 (maybe 2.5.1?)
19382 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19384 esac
19385 link_all_deplibs_CXX=yes
19387 output_verbose_link_cmd='func_echo_all'
19389 # Archives containing C++ object files must be created using
19390 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19391 # necessary to make sure instantiated templates are included
19392 # in the archive.
19393 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19395 gcx*)
19396 # Green Hills C++ Compiler
19397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19399 # The C++ compiler must be used to create the archive.
19400 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19403 # GNU C++ compiler with Solaris linker
19404 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19405 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19406 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19407 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19409 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19411 # Commands to make compiler produce verbose output that lists
19412 # what "hidden" libraries, object files and flags are used when
19413 # linking a shared library.
19414 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19415 else
19416 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19417 # platform.
19418 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19419 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19420 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19422 # Commands to make compiler produce verbose output that lists
19423 # what "hidden" libraries, object files and flags are used when
19424 # linking a shared library.
19425 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19428 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19429 case $host_os in
19430 solaris2.[0-5] | solaris2.[0-5].*) ;;
19432 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19434 esac
19437 esac
19440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19441 no_undefined_flag_CXX='${wl}-z,text'
19442 archive_cmds_need_lc_CXX=no
19443 hardcode_shlibpath_var_CXX=no
19444 runpath_var='LD_RUN_PATH'
19446 case $cc_basename in
19447 CC*)
19448 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19449 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19452 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19453 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19455 esac
19458 sysv5* | sco3.2v5* | sco5v6*)
19459 # Note: We can NOT use -z defs as we might desire, because we do not
19460 # link with -lc, and that would cause any symbols used from libc to
19461 # always be unresolved, which means just about no library would
19462 # ever link correctly. If we're not using GNU ld we use -z text
19463 # though, which does catch some bad symbols but isn't as heavy-handed
19464 # as -z defs.
19465 no_undefined_flag_CXX='${wl}-z,text'
19466 allow_undefined_flag_CXX='${wl}-z,nodefs'
19467 archive_cmds_need_lc_CXX=no
19468 hardcode_shlibpath_var_CXX=no
19469 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19470 hardcode_libdir_separator_CXX=':'
19471 link_all_deplibs_CXX=yes
19472 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19473 runpath_var='LD_RUN_PATH'
19475 case $cc_basename in
19476 CC*)
19477 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19479 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19480 '"$old_archive_cmds_CXX"
19481 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19482 '"$reload_cmds_CXX"
19485 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19486 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19488 esac
19491 tandem*)
19492 case $cc_basename in
19493 NCC*)
19494 # NonStop-UX NCC 3.20
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19499 # FIXME: insert proper C++ library support
19500 ld_shlibs_CXX=no
19502 esac
19505 vxworks*)
19506 # FIXME: insert proper C++ library support
19507 ld_shlibs_CXX=no
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19514 esac
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19517 $as_echo "$ld_shlibs_CXX" >&6; }
19518 test "$ld_shlibs_CXX" = no && can_build_shared=no
19520 GCC_CXX="$GXX"
19521 LD_CXX="$LD"
19523 ## CAVEAT EMPTOR:
19524 ## There is no encapsulation within the following macros, do not change
19525 ## the running order or otherwise move them around unless you know exactly
19526 ## what you are doing...
19527 # Dependencies to place before and after the object being linked:
19528 predep_objects_CXX=
19529 postdep_objects_CXX=
19530 predeps_CXX=
19531 postdeps_CXX=
19532 compiler_lib_search_path_CXX=
19534 cat > conftest.$ac_ext <<_LT_EOF
19535 class Foo
19537 public:
19538 Foo (void) { a = 0; }
19539 private:
19540 int a;
19542 _LT_EOF
19544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19545 (eval $ac_compile) 2>&5
19546 ac_status=$?
19547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19548 test $ac_status = 0; }; then
19549 # Parse the compiler output and extract the necessary
19550 # objects, libraries and library flags.
19552 # Sentinel used to keep track of whether or not we are before
19553 # the conftest object file.
19554 pre_test_object_deps_done=no
19556 for p in `eval "$output_verbose_link_cmd"`; do
19557 case $p in
19559 -L* | -R* | -l*)
19560 # Some compilers place space between "-{L,R}" and the path.
19561 # Remove the space.
19562 if test $p = "-L" ||
19563 test $p = "-R"; then
19564 prev=$p
19565 continue
19566 else
19567 prev=
19570 if test "$pre_test_object_deps_done" = no; then
19571 case $p in
19572 -L* | -R*)
19573 # Internal compiler library paths should come after those
19574 # provided the user. The postdeps already come after the
19575 # user supplied libs so there is no need to process them.
19576 if test -z "$compiler_lib_search_path_CXX"; then
19577 compiler_lib_search_path_CXX="${prev}${p}"
19578 else
19579 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19582 # The "-l" case would never come before the object being
19583 # linked, so don't bother handling this case.
19584 esac
19585 else
19586 if test -z "$postdeps_CXX"; then
19587 postdeps_CXX="${prev}${p}"
19588 else
19589 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19594 *.$objext)
19595 # This assumes that the test object file only shows up
19596 # once in the compiler output.
19597 if test "$p" = "conftest.$objext"; then
19598 pre_test_object_deps_done=yes
19599 continue
19602 if test "$pre_test_object_deps_done" = no; then
19603 if test -z "$predep_objects_CXX"; then
19604 predep_objects_CXX="$p"
19605 else
19606 predep_objects_CXX="$predep_objects_CXX $p"
19608 else
19609 if test -z "$postdep_objects_CXX"; then
19610 postdep_objects_CXX="$p"
19611 else
19612 postdep_objects_CXX="$postdep_objects_CXX $p"
19617 *) ;; # Ignore the rest.
19619 esac
19620 done
19622 # Clean up.
19623 rm -f a.out a.exe
19624 else
19625 echo "libtool.m4: error: problem compiling CXX test program"
19628 $RM -f confest.$objext
19630 # PORTME: override above test on systems where it is broken
19631 case $host_os in
19632 interix[3-9]*)
19633 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19634 # hack all around it, let's just trust "g++" to DTRT.
19635 predep_objects_CXX=
19636 postdep_objects_CXX=
19637 postdeps_CXX=
19640 linux*)
19641 case `$CC -V 2>&1 | sed 5q` in
19642 *Sun\ C*)
19643 # Sun C++ 5.9
19645 # The more standards-conforming stlport4 library is
19646 # incompatible with the Cstd library. Avoid specifying
19647 # it if it's in CXXFLAGS. Ignore libCrun as
19648 # -library=stlport4 depends on it.
19649 case " $CXX $CXXFLAGS " in
19650 *" -library=stlport4 "*)
19651 solaris_use_stlport4=yes
19653 esac
19655 if test "$solaris_use_stlport4" != yes; then
19656 postdeps_CXX='-library=Cstd -library=Crun'
19659 esac
19662 solaris*)
19663 case $cc_basename in
19664 CC*)
19665 # The more standards-conforming stlport4 library is
19666 # incompatible with the Cstd library. Avoid specifying
19667 # it if it's in CXXFLAGS. Ignore libCrun as
19668 # -library=stlport4 depends on it.
19669 case " $CXX $CXXFLAGS " in
19670 *" -library=stlport4 "*)
19671 solaris_use_stlport4=yes
19673 esac
19675 # Adding this requires a known-good setup of shared libraries for
19676 # Sun compiler versions before 5.6, else PIC objects from an old
19677 # archive will be linked into the output, leading to subtle bugs.
19678 if test "$solaris_use_stlport4" != yes; then
19679 postdeps_CXX='-library=Cstd -library=Crun'
19682 esac
19684 esac
19687 case " $postdeps_CXX " in
19688 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19689 esac
19690 compiler_lib_search_dirs_CXX=
19691 if test -n "${compiler_lib_search_path_CXX}"; then
19692 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19725 lt_prog_compiler_wl_CXX=
19726 lt_prog_compiler_pic_CXX=
19727 lt_prog_compiler_static_CXX=
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19730 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19732 # C++ specific cases for pic, static, wl, etc.
19733 if test "$GXX" = yes; then
19734 lt_prog_compiler_wl_CXX='-Wl,'
19735 lt_prog_compiler_static_CXX='-static'
19737 case $host_os in
19738 aix*)
19739 # All AIX code is PIC.
19740 if test "$host_cpu" = ia64; then
19741 # AIX 5 now supports IA64 processor
19742 lt_prog_compiler_static_CXX='-Bstatic'
19744 lt_prog_compiler_pic_CXX='-fPIC'
19747 amigaos*)
19748 case $host_cpu in
19749 powerpc)
19750 # see comment about AmigaOS4 .so support
19751 lt_prog_compiler_pic_CXX='-fPIC'
19753 m68k)
19754 # FIXME: we need at least 68020 code to build shared libraries, but
19755 # adding the `-m68020' flag to GCC prevents building anything better,
19756 # like `-m68040'.
19757 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19759 esac
19762 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19763 # PIC is the default for these OSes.
19765 mingw* | cygwin* | os2* | pw32* | cegcc*)
19766 # This hack is so that the source file can tell whether it is being
19767 # built for inclusion in a dll (and should export symbols for example).
19768 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19769 # (--disable-auto-import) libraries
19770 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19772 darwin* | rhapsody*)
19773 # PIC is the default on this platform
19774 # Common symbols not allowed in MH_DYLIB files
19775 lt_prog_compiler_pic_CXX='-fno-common'
19777 *djgpp*)
19778 # DJGPP does not support shared libraries at all
19779 lt_prog_compiler_pic_CXX=
19781 haiku*)
19782 # PIC is the default for Haiku.
19783 # The "-static" flag exists, but is broken.
19784 lt_prog_compiler_static_CXX=
19786 interix[3-9]*)
19787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19788 # Instead, we relocate shared libraries at runtime.
19790 sysv4*MP*)
19791 if test -d /usr/nec; then
19792 lt_prog_compiler_pic_CXX=-Kconform_pic
19795 hpux*)
19796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19798 # sets the default TLS model and affects inlining.
19799 case $host_cpu in
19800 hppa*64*)
19803 lt_prog_compiler_pic_CXX='-fPIC'
19805 esac
19807 *qnx* | *nto*)
19808 # QNX uses GNU C++, but need to define -shared option too, otherwise
19809 # it will coredump.
19810 lt_prog_compiler_pic_CXX='-fPIC -shared'
19813 lt_prog_compiler_pic_CXX='-fPIC'
19815 esac
19816 else
19817 case $host_os in
19818 aix[4-9]*)
19819 # All AIX code is PIC.
19820 if test "$host_cpu" = ia64; then
19821 # AIX 5 now supports IA64 processor
19822 lt_prog_compiler_static_CXX='-Bstatic'
19823 else
19824 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19827 chorus*)
19828 case $cc_basename in
19829 cxch68*)
19830 # Green Hills C++ Compiler
19831 # _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"
19833 esac
19835 dgux*)
19836 case $cc_basename in
19837 ec++*)
19838 lt_prog_compiler_pic_CXX='-KPIC'
19840 ghcx*)
19841 # Green Hills C++ Compiler
19842 lt_prog_compiler_pic_CXX='-pic'
19846 esac
19848 freebsd* | dragonfly*)
19849 # FreeBSD uses GNU C++
19851 hpux9* | hpux10* | hpux11*)
19852 case $cc_basename in
19853 CC*)
19854 lt_prog_compiler_wl_CXX='-Wl,'
19855 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19856 if test "$host_cpu" != ia64; then
19857 lt_prog_compiler_pic_CXX='+Z'
19860 aCC*)
19861 lt_prog_compiler_wl_CXX='-Wl,'
19862 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19863 case $host_cpu in
19864 hppa*64*|ia64*)
19865 # +Z the default
19868 lt_prog_compiler_pic_CXX='+Z'
19870 esac
19874 esac
19876 interix*)
19877 # This is c89, which is MS Visual C++ (no shared libs)
19878 # Anyone wants to do a port?
19880 irix5* | irix6* | nonstopux*)
19881 case $cc_basename in
19882 CC*)
19883 lt_prog_compiler_wl_CXX='-Wl,'
19884 lt_prog_compiler_static_CXX='-non_shared'
19885 # CC pic flag -KPIC is the default.
19889 esac
19891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19892 case $cc_basename in
19893 KCC*)
19894 # KAI C++ Compiler
19895 lt_prog_compiler_wl_CXX='--backend -Wl,'
19896 lt_prog_compiler_pic_CXX='-fPIC'
19898 ecpc* )
19899 # old Intel C++ for x86_64 which still supported -KPIC.
19900 lt_prog_compiler_wl_CXX='-Wl,'
19901 lt_prog_compiler_pic_CXX='-KPIC'
19902 lt_prog_compiler_static_CXX='-static'
19904 icpc* )
19905 # Intel C++, used to be incompatible with GCC.
19906 # ICC 10 doesn't accept -KPIC any more.
19907 lt_prog_compiler_wl_CXX='-Wl,'
19908 lt_prog_compiler_pic_CXX='-fPIC'
19909 lt_prog_compiler_static_CXX='-static'
19911 pgCC* | pgcpp*)
19912 # Portland Group C++ compiler
19913 lt_prog_compiler_wl_CXX='-Wl,'
19914 lt_prog_compiler_pic_CXX='-fpic'
19915 lt_prog_compiler_static_CXX='-Bstatic'
19917 cxx*)
19918 # Compaq C++
19919 # Make sure the PIC flag is empty. It appears that all Alpha
19920 # Linux and Compaq Tru64 Unix objects are PIC.
19921 lt_prog_compiler_pic_CXX=
19922 lt_prog_compiler_static_CXX='-non_shared'
19924 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19925 # IBM XL 8.0, 9.0 on PPC and BlueGene
19926 lt_prog_compiler_wl_CXX='-Wl,'
19927 lt_prog_compiler_pic_CXX='-qpic'
19928 lt_prog_compiler_static_CXX='-qstaticlink'
19931 case `$CC -V 2>&1 | sed 5q` in
19932 *Sun\ C*)
19933 # Sun C++ 5.9
19934 lt_prog_compiler_pic_CXX='-KPIC'
19935 lt_prog_compiler_static_CXX='-Bstatic'
19936 lt_prog_compiler_wl_CXX='-Qoption ld '
19938 esac
19940 esac
19942 lynxos*)
19944 m88k*)
19946 mvs*)
19947 case $cc_basename in
19948 cxx*)
19949 lt_prog_compiler_pic_CXX='-W c,exportall'
19953 esac
19955 netbsd*)
19957 *qnx* | *nto*)
19958 # QNX uses GNU C++, but need to define -shared option too, otherwise
19959 # it will coredump.
19960 lt_prog_compiler_pic_CXX='-fPIC -shared'
19962 osf3* | osf4* | osf5*)
19963 case $cc_basename in
19964 KCC*)
19965 lt_prog_compiler_wl_CXX='--backend -Wl,'
19967 RCC*)
19968 # Rational C++ 2.4.1
19969 lt_prog_compiler_pic_CXX='-pic'
19971 cxx*)
19972 # Digital/Compaq C++
19973 lt_prog_compiler_wl_CXX='-Wl,'
19974 # Make sure the PIC flag is empty. It appears that all Alpha
19975 # Linux and Compaq Tru64 Unix objects are PIC.
19976 lt_prog_compiler_pic_CXX=
19977 lt_prog_compiler_static_CXX='-non_shared'
19981 esac
19983 psos*)
19985 solaris*)
19986 case $cc_basename in
19987 CC*)
19988 # Sun C++ 4.2, 5.x and Centerline C++
19989 lt_prog_compiler_pic_CXX='-KPIC'
19990 lt_prog_compiler_static_CXX='-Bstatic'
19991 lt_prog_compiler_wl_CXX='-Qoption ld '
19993 gcx*)
19994 # Green Hills C++ Compiler
19995 lt_prog_compiler_pic_CXX='-PIC'
19999 esac
20001 sunos4*)
20002 case $cc_basename in
20003 CC*)
20004 # Sun C++ 4.x
20005 lt_prog_compiler_pic_CXX='-pic'
20006 lt_prog_compiler_static_CXX='-Bstatic'
20008 lcc*)
20009 # Lucid
20010 lt_prog_compiler_pic_CXX='-pic'
20014 esac
20016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20017 case $cc_basename in
20018 CC*)
20019 lt_prog_compiler_wl_CXX='-Wl,'
20020 lt_prog_compiler_pic_CXX='-KPIC'
20021 lt_prog_compiler_static_CXX='-Bstatic'
20023 esac
20025 tandem*)
20026 case $cc_basename in
20027 NCC*)
20028 # NonStop-UX NCC 3.20
20029 lt_prog_compiler_pic_CXX='-KPIC'
20033 esac
20035 vxworks*)
20038 lt_prog_compiler_can_build_shared_CXX=no
20040 esac
20043 case $host_os in
20044 # For platforms which do not support PIC, -DPIC is meaningless:
20045 *djgpp*)
20046 lt_prog_compiler_pic_CXX=
20049 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20051 esac
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20053 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20058 # Check to make sure the PIC flag actually works.
20060 if test -n "$lt_prog_compiler_pic_CXX"; then
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20062 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20063 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20064 $as_echo_n "(cached) " >&6
20065 else
20066 lt_cv_prog_compiler_pic_works_CXX=no
20067 ac_outfile=conftest.$ac_objext
20068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20069 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20070 # Insert the option either (1) after the last *FLAGS variable, or
20071 # (2) before a word containing "conftest.", or (3) at the end.
20072 # Note that $ac_compile itself does not contain backslashes and begins
20073 # with a dollar sign (not a hyphen), so the echo should work correctly.
20074 # The option is referenced via a variable to avoid confusing sed.
20075 lt_compile=`echo "$ac_compile" | $SED \
20076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20078 -e 's:$: $lt_compiler_flag:'`
20079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20080 (eval "$lt_compile" 2>conftest.err)
20081 ac_status=$?
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 if (exit $ac_status) && test -s "$ac_outfile"; then
20085 # The compiler can only warn and ignore the option if not recognized
20086 # So say no if there are warnings other than the usual output.
20087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20090 lt_cv_prog_compiler_pic_works_CXX=yes
20093 $RM conftest*
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20097 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20099 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20100 case $lt_prog_compiler_pic_CXX in
20101 "" | " "*) ;;
20102 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20103 esac
20104 else
20105 lt_prog_compiler_pic_CXX=
20106 lt_prog_compiler_can_build_shared_CXX=no
20114 # Check to make sure the static flag actually works.
20116 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20119 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20120 $as_echo_n "(cached) " >&6
20121 else
20122 lt_cv_prog_compiler_static_works_CXX=no
20123 save_LDFLAGS="$LDFLAGS"
20124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20127 # The linker can only warn and ignore the option if not recognized
20128 # So say no if there are warnings
20129 if test -s conftest.err; then
20130 # Append any errors to the config.log.
20131 cat conftest.err 1>&5
20132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20134 if diff conftest.exp conftest.er2 >/dev/null; then
20135 lt_cv_prog_compiler_static_works_CXX=yes
20137 else
20138 lt_cv_prog_compiler_static_works_CXX=yes
20141 $RM -r conftest*
20142 LDFLAGS="$save_LDFLAGS"
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20146 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20148 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20150 else
20151 lt_prog_compiler_static_CXX=
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20159 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 lt_cv_prog_compiler_c_o_CXX=no
20163 $RM -r conftest 2>/dev/null
20164 mkdir conftest
20165 cd conftest
20166 mkdir out
20167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20169 lt_compiler_flag="-o out/conftest2.$ac_objext"
20170 # Insert the option either (1) after the last *FLAGS variable, or
20171 # (2) before a word containing "conftest.", or (3) at the end.
20172 # Note that $ac_compile itself does not contain backslashes and begins
20173 # with a dollar sign (not a hyphen), so the echo should work correctly.
20174 lt_compile=`echo "$ac_compile" | $SED \
20175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20177 -e 's:$: $lt_compiler_flag:'`
20178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20179 (eval "$lt_compile" 2>out/conftest.err)
20180 ac_status=$?
20181 cat out/conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20184 then
20185 # The compiler can only warn and ignore the option if not recognized
20186 # So say no if there are warnings
20187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20190 lt_cv_prog_compiler_c_o_CXX=yes
20193 chmod u+w . 2>&5
20194 $RM conftest*
20195 # SGI C++ compiler will create directory out/ii_files/ for
20196 # template instantiation
20197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20198 $RM out/* && rmdir out
20199 cd ..
20200 $RM -r conftest
20201 $RM conftest*
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20211 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20212 $as_echo_n "(cached) " >&6
20213 else
20214 lt_cv_prog_compiler_c_o_CXX=no
20215 $RM -r conftest 2>/dev/null
20216 mkdir conftest
20217 cd conftest
20218 mkdir out
20219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20221 lt_compiler_flag="-o out/conftest2.$ac_objext"
20222 # Insert the option either (1) after the last *FLAGS variable, or
20223 # (2) before a word containing "conftest.", or (3) at the end.
20224 # Note that $ac_compile itself does not contain backslashes and begins
20225 # with a dollar sign (not a hyphen), so the echo should work correctly.
20226 lt_compile=`echo "$ac_compile" | $SED \
20227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20229 -e 's:$: $lt_compiler_flag:'`
20230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20231 (eval "$lt_compile" 2>out/conftest.err)
20232 ac_status=$?
20233 cat out/conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20236 then
20237 # The compiler can only warn and ignore the option if not recognized
20238 # So say no if there are warnings
20239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20242 lt_cv_prog_compiler_c_o_CXX=yes
20245 chmod u+w . 2>&5
20246 $RM conftest*
20247 # SGI C++ compiler will create directory out/ii_files/ for
20248 # template instantiation
20249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20250 $RM out/* && rmdir out
20251 cd ..
20252 $RM -r conftest
20253 $RM conftest*
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20257 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20262 hard_links="nottested"
20263 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20264 # do not overwrite the value of need_locks provided by the user
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20266 $as_echo_n "checking if we can lock with hard links... " >&6; }
20267 hard_links=yes
20268 $RM conftest*
20269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20270 touch conftest.a
20271 ln conftest.a conftest.b 2>&5 || hard_links=no
20272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20274 $as_echo "$hard_links" >&6; }
20275 if test "$hard_links" = no; then
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20278 need_locks=warn
20280 else
20281 need_locks=no
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20287 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20289 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20290 case $host_os in
20291 aix[4-9]*)
20292 # If we're using GNU nm, then we don't want the "-C" option.
20293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20294 # Also, AIX nm treats weak defined symbols like other global defined
20295 # symbols, whereas GNU nm marks them as "W".
20296 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20297 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'
20298 else
20299 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'
20302 pw32*)
20303 export_symbols_cmds_CXX="$ltdll_cmds"
20305 cygwin* | mingw* | cegcc*)
20306 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'
20309 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311 esac
20312 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20315 $as_echo "$ld_shlibs_CXX" >&6; }
20316 test "$ld_shlibs_CXX" = no && can_build_shared=no
20318 with_gnu_ld_CXX=$with_gnu_ld
20326 # Do we need to explicitly link libc?
20328 case "x$archive_cmds_need_lc_CXX" in
20329 x|xyes)
20330 # Assume -lc should be added
20331 archive_cmds_need_lc_CXX=yes
20333 if test "$enable_shared" = yes && test "$GCC" = yes; then
20334 case $archive_cmds_CXX in
20335 *'~'*)
20336 # FIXME: we may have to deal with multi-command sequences.
20338 '$CC '*)
20339 # Test whether the compiler implicitly links with -lc since on some
20340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20341 # to ld, don't add -lc before -lgcc.
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20343 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20344 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20347 $RM conftest*
20348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20351 (eval $ac_compile) 2>&5
20352 ac_status=$?
20353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20354 test $ac_status = 0; } 2>conftest.err; then
20355 soname=conftest
20356 lib=conftest
20357 libobjs=conftest.$ac_objext
20358 deplibs=
20359 wl=$lt_prog_compiler_wl_CXX
20360 pic_flag=$lt_prog_compiler_pic_CXX
20361 compiler_flags=-v
20362 linker_flags=-v
20363 verstring=
20364 output_objdir=.
20365 libname=conftest
20366 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20367 allow_undefined_flag_CXX=
20368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20369 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20370 ac_status=$?
20371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20372 test $ac_status = 0; }
20373 then
20374 lt_cv_archive_cmds_need_lc_CXX=no
20375 else
20376 lt_cv_archive_cmds_need_lc_CXX=yes
20378 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20379 else
20380 cat conftest.err 1>&5
20382 $RM conftest*
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20386 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20387 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20389 esac
20392 esac
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20458 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20460 library_names_spec=
20461 libname_spec='lib$name'
20462 soname_spec=
20463 shrext_cmds=".so"
20464 postinstall_cmds=
20465 postuninstall_cmds=
20466 finish_cmds=
20467 finish_eval=
20468 shlibpath_var=
20469 shlibpath_overrides_runpath=unknown
20470 version_type=none
20471 dynamic_linker="$host_os ld.so"
20472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20473 need_lib_prefix=unknown
20474 hardcode_into_libs=no
20476 # when you set need_version to no, make sure it does not cause -set_version
20477 # flags to be left without arguments
20478 need_version=unknown
20480 case $host_os in
20481 aix3*)
20482 version_type=linux
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20484 shlibpath_var=LIBPATH
20486 # AIX 3 has no versioning support, so we append a major version to the name.
20487 soname_spec='${libname}${release}${shared_ext}$major'
20490 aix[4-9]*)
20491 version_type=linux
20492 need_lib_prefix=no
20493 need_version=no
20494 hardcode_into_libs=yes
20495 if test "$host_cpu" = ia64; then
20496 # AIX 5 supports IA64
20497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 else
20500 # With GCC up to 2.95.x, collect2 would create an import file
20501 # for dependence libraries. The import file would start with
20502 # the line `#! .'. This would cause the generated library to
20503 # depend on `.', always an invalid library. This was fixed in
20504 # development snapshots of GCC prior to 3.0.
20505 case $host_os in
20506 aix4 | aix4.[01] | aix4.[01].*)
20507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20508 echo ' yes '
20509 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20511 else
20512 can_build_shared=no
20515 esac
20516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20517 # soname into executable. Probably we can add versioning support to
20518 # collect2, so additional links can be useful in future.
20519 if test "$aix_use_runtimelinking" = yes; then
20520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20521 # instead of lib<name>.a to let people know that these are not
20522 # typical AIX shared libraries.
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 else
20525 # We preserve .a as extension for shared libraries through AIX4.2
20526 # and later when we are not doing run time linking.
20527 library_names_spec='${libname}${release}.a $libname.a'
20528 soname_spec='${libname}${release}${shared_ext}$major'
20530 shlibpath_var=LIBPATH
20534 amigaos*)
20535 case $host_cpu in
20536 powerpc)
20537 # Since July 2007 AmigaOS4 officially supports .so libraries.
20538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20541 m68k)
20542 library_names_spec='$libname.ixlibrary $libname.a'
20543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20544 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'
20546 esac
20549 beos*)
20550 library_names_spec='${libname}${shared_ext}'
20551 dynamic_linker="$host_os ld.so"
20552 shlibpath_var=LIBRARY_PATH
20555 bsdi[45]*)
20556 version_type=linux
20557 need_version=no
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 soname_spec='${libname}${release}${shared_ext}$major'
20560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20561 shlibpath_var=LD_LIBRARY_PATH
20562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20564 # the default ld.so.conf also contains /usr/contrib/lib and
20565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20566 # libtool to hard-code these into programs
20569 cygwin* | mingw* | pw32* | cegcc*)
20570 version_type=windows
20571 shrext_cmds=".dll"
20572 need_version=no
20573 need_lib_prefix=no
20575 case $GCC,$host_os in
20576 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20577 library_names_spec='$libname.dll.a'
20578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20579 postinstall_cmds='base_file=`basename \${file}`~
20580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20581 dldir=$destdir/`dirname \$dlpath`~
20582 test -d \$dldir || mkdir -p \$dldir~
20583 $install_prog $dir/$dlname \$dldir/$dlname~
20584 chmod a+x \$dldir/$dlname~
20585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20589 dlpath=$dir/\$dldll~
20590 $RM \$dlpath'
20591 shlibpath_overrides_runpath=yes
20593 case $host_os in
20594 cygwin*)
20595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20599 mingw* | cegcc*)
20600 # MinGW DLLs use traditional 'lib' prefix
20601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20603 pw32*)
20604 # pw32 DLLs use 'pw' prefix rather than 'lib'
20605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20607 esac
20611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20613 esac
20614 dynamic_linker='Win32 ld.exe'
20615 # FIXME: first we should search . and the directory the executable is in
20616 shlibpath_var=PATH
20619 darwin* | rhapsody*)
20620 dynamic_linker="$host_os dyld"
20621 version_type=darwin
20622 need_lib_prefix=no
20623 need_version=no
20624 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20625 soname_spec='${libname}${release}${major}$shared_ext'
20626 shlibpath_overrides_runpath=yes
20627 shlibpath_var=DYLD_LIBRARY_PATH
20628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20633 dgux*)
20634 version_type=linux
20635 need_lib_prefix=no
20636 need_version=no
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20638 soname_spec='${libname}${release}${shared_ext}$major'
20639 shlibpath_var=LD_LIBRARY_PATH
20642 freebsd* | dragonfly*)
20643 # DragonFly does not have aout. When/if they implement a new
20644 # versioning mechanism, adjust this.
20645 if test -x /usr/bin/objformat; then
20646 objformat=`/usr/bin/objformat`
20647 else
20648 case $host_os in
20649 freebsd[23].*) objformat=aout ;;
20650 *) objformat=elf ;;
20651 esac
20653 version_type=freebsd-$objformat
20654 case $version_type in
20655 freebsd-elf*)
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20657 need_version=no
20658 need_lib_prefix=no
20660 freebsd-*)
20661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20662 need_version=yes
20664 esac
20665 shlibpath_var=LD_LIBRARY_PATH
20666 case $host_os in
20667 freebsd2.*)
20668 shlibpath_overrides_runpath=yes
20670 freebsd3.[01]* | freebsdelf3.[01]*)
20671 shlibpath_overrides_runpath=yes
20672 hardcode_into_libs=yes
20674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20676 shlibpath_overrides_runpath=no
20677 hardcode_into_libs=yes
20679 *) # from 4.6 on, and DragonFly
20680 shlibpath_overrides_runpath=yes
20681 hardcode_into_libs=yes
20683 esac
20686 gnu*)
20687 version_type=linux
20688 need_lib_prefix=no
20689 need_version=no
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 shlibpath_var=LD_LIBRARY_PATH
20693 hardcode_into_libs=yes
20696 haiku*)
20697 version_type=linux
20698 need_lib_prefix=no
20699 need_version=no
20700 dynamic_linker="$host_os runtime_loader"
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20702 soname_spec='${libname}${release}${shared_ext}$major'
20703 shlibpath_var=LIBRARY_PATH
20704 shlibpath_overrides_runpath=yes
20705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20706 hardcode_into_libs=yes
20709 hpux9* | hpux10* | hpux11*)
20710 # Give a soname corresponding to the major version so that dld.sl refuses to
20711 # link against other versions.
20712 version_type=sunos
20713 need_lib_prefix=no
20714 need_version=no
20715 case $host_cpu in
20716 ia64*)
20717 shrext_cmds='.so'
20718 hardcode_into_libs=yes
20719 dynamic_linker="$host_os dld.so"
20720 shlibpath_var=LD_LIBRARY_PATH
20721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20724 if test "X$HPUX_IA64_MODE" = X32; then
20725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20726 else
20727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20731 hppa*64*)
20732 shrext_cmds='.sl'
20733 hardcode_into_libs=yes
20734 dynamic_linker="$host_os dld.sl"
20735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738 soname_spec='${libname}${release}${shared_ext}$major'
20739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20743 shrext_cmds='.sl'
20744 dynamic_linker="$host_os dld.sl"
20745 shlibpath_var=SHLIB_PATH
20746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20750 esac
20751 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20752 postinstall_cmds='chmod 555 $lib'
20753 # or fails outright, so override atomically:
20754 install_override_mode=555
20757 interix[3-9]*)
20758 version_type=linux
20759 need_lib_prefix=no
20760 need_version=no
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20762 soname_spec='${libname}${release}${shared_ext}$major'
20763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 shlibpath_overrides_runpath=no
20766 hardcode_into_libs=yes
20769 irix5* | irix6* | nonstopux*)
20770 case $host_os in
20771 nonstopux*) version_type=nonstopux ;;
20773 if test "$lt_cv_prog_gnu_ld" = yes; then
20774 version_type=linux
20775 else
20776 version_type=irix
20777 fi ;;
20778 esac
20779 need_lib_prefix=no
20780 need_version=no
20781 soname_spec='${libname}${release}${shared_ext}$major'
20782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20783 case $host_os in
20784 irix5* | nonstopux*)
20785 libsuff= shlibsuff=
20788 case $LD in # libtool.m4 will add one of these switches to LD
20789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20790 libsuff= shlibsuff= libmagic=32-bit;;
20791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20792 libsuff=32 shlibsuff=N32 libmagic=N32;;
20793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20794 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20795 *) libsuff= shlibsuff= libmagic=never-match;;
20796 esac
20798 esac
20799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20800 shlibpath_overrides_runpath=no
20801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20803 hardcode_into_libs=yes
20806 # No shared lib support for Linux oldld, aout, or coff.
20807 linux*oldld* | linux*aout* | linux*coff*)
20808 dynamic_linker=no
20811 # This must be Linux ELF.
20812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20813 version_type=linux
20814 need_lib_prefix=no
20815 need_version=no
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 soname_spec='${libname}${release}${shared_ext}$major'
20818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20819 shlibpath_var=LD_LIBRARY_PATH
20820 shlibpath_overrides_runpath=no
20822 # Some binutils ld are patched to set DT_RUNPATH
20823 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20824 $as_echo_n "(cached) " >&6
20825 else
20826 lt_cv_shlibpath_overrides_runpath=no
20827 save_LDFLAGS=$LDFLAGS
20828 save_libdir=$libdir
20829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20835 main ()
20839 return 0;
20841 _ACEOF
20842 if ac_fn_cxx_try_link "$LINENO"; then :
20843 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20844 lt_cv_shlibpath_overrides_runpath=yes
20847 rm -f core conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20849 LDFLAGS=$save_LDFLAGS
20850 libdir=$save_libdir
20854 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20856 # This implies no fast_install, which is unacceptable.
20857 # Some rework will be needed to allow for fast_install
20858 # before this can be enabled.
20859 hardcode_into_libs=yes
20861 # Append ld.so.conf contents to the search path
20862 if test -f /etc/ld.so.conf; then
20863 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' ' '`
20864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20867 # We used to test for /lib/ld.so.1 and disable shared libraries on
20868 # powerpc, because MkLinux only supported shared libraries with the
20869 # GNU dynamic linker. Since this was broken with cross compilers,
20870 # most powerpc-linux boxes support dynamic linking these days and
20871 # people can always --disable-shared, the test was removed, and we
20872 # assume the GNU/Linux dynamic linker is in use.
20873 dynamic_linker='GNU/Linux ld.so'
20876 netbsd*)
20877 version_type=sunos
20878 need_lib_prefix=no
20879 need_version=no
20880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20883 dynamic_linker='NetBSD (a.out) ld.so'
20884 else
20885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20886 soname_spec='${libname}${release}${shared_ext}$major'
20887 dynamic_linker='NetBSD ld.elf_so'
20889 shlibpath_var=LD_LIBRARY_PATH
20890 shlibpath_overrides_runpath=yes
20891 hardcode_into_libs=yes
20894 newsos6)
20895 version_type=linux
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=yes
20901 *nto* | *qnx*)
20902 version_type=qnx
20903 need_lib_prefix=no
20904 need_version=no
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 soname_spec='${libname}${release}${shared_ext}$major'
20907 shlibpath_var=LD_LIBRARY_PATH
20908 shlibpath_overrides_runpath=no
20909 hardcode_into_libs=yes
20910 dynamic_linker='ldqnx.so'
20913 openbsd*)
20914 version_type=sunos
20915 sys_lib_dlsearch_path_spec="/usr/lib"
20916 need_lib_prefix=no
20917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20918 case $host_os in
20919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20920 *) need_version=no ;;
20921 esac
20922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20926 case $host_os in
20927 openbsd2.[89] | openbsd2.[89].*)
20928 shlibpath_overrides_runpath=no
20931 shlibpath_overrides_runpath=yes
20933 esac
20934 else
20935 shlibpath_overrides_runpath=yes
20939 os2*)
20940 libname_spec='$name'
20941 shrext_cmds=".dll"
20942 need_lib_prefix=no
20943 library_names_spec='$libname${shared_ext} $libname.a'
20944 dynamic_linker='OS/2 ld.exe'
20945 shlibpath_var=LIBPATH
20948 osf3* | osf4* | osf5*)
20949 version_type=osf
20950 need_lib_prefix=no
20951 need_version=no
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20954 shlibpath_var=LD_LIBRARY_PATH
20955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20959 rdos*)
20960 dynamic_linker=no
20963 solaris*)
20964 version_type=linux
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=yes
20971 hardcode_into_libs=yes
20972 # ldd complains unless libraries are executable
20973 postinstall_cmds='chmod +x $lib'
20976 sunos4*)
20977 version_type=sunos
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 shlibpath_overrides_runpath=yes
20982 if test "$with_gnu_ld" = yes; then
20983 need_lib_prefix=no
20985 need_version=yes
20988 sysv4 | sysv4.3*)
20989 version_type=linux
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991 soname_spec='${libname}${release}${shared_ext}$major'
20992 shlibpath_var=LD_LIBRARY_PATH
20993 case $host_vendor in
20994 sni)
20995 shlibpath_overrides_runpath=no
20996 need_lib_prefix=no
20997 runpath_var=LD_RUN_PATH
20999 siemens)
21000 need_lib_prefix=no
21002 motorola)
21003 need_lib_prefix=no
21004 need_version=no
21005 shlibpath_overrides_runpath=no
21006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21008 esac
21011 sysv4*MP*)
21012 if test -d /usr/nec ;then
21013 version_type=linux
21014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21015 soname_spec='$libname${shared_ext}.$major'
21016 shlibpath_var=LD_LIBRARY_PATH
21020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21021 version_type=freebsd-elf
21022 need_lib_prefix=no
21023 need_version=no
21024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21025 soname_spec='${libname}${release}${shared_ext}$major'
21026 shlibpath_var=LD_LIBRARY_PATH
21027 shlibpath_overrides_runpath=yes
21028 hardcode_into_libs=yes
21029 if test "$with_gnu_ld" = yes; then
21030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21031 else
21032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21033 case $host_os in
21034 sco3.2v5*)
21035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21037 esac
21039 sys_lib_dlsearch_path_spec='/usr/lib'
21042 tpf*)
21043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21044 version_type=linux
21045 need_lib_prefix=no
21046 need_version=no
21047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 shlibpath_overrides_runpath=no
21050 hardcode_into_libs=yes
21053 uts4*)
21054 version_type=linux
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21056 soname_spec='${libname}${release}${shared_ext}$major'
21057 shlibpath_var=LD_LIBRARY_PATH
21061 dynamic_linker=no
21063 esac
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21065 $as_echo "$dynamic_linker" >&6; }
21066 test "$dynamic_linker" = no && can_build_shared=no
21068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21069 if test "$GCC" = yes; then
21070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21073 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21074 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21076 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21118 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21119 hardcode_action_CXX=
21120 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21121 test -n "$runpath_var_CXX" ||
21122 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21124 # We can hardcode non-existent directories.
21125 if test "$hardcode_direct_CXX" != no &&
21126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21127 # have to relink, otherwise we might link with an installed library
21128 # when we should be linking with a yet-to-be-installed one
21129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21130 test "$hardcode_minus_L_CXX" != no; then
21131 # Linking always hardcodes the temporary library directory.
21132 hardcode_action_CXX=relink
21133 else
21134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21135 hardcode_action_CXX=immediate
21137 else
21138 # We cannot hardcode anything, or else we can only hardcode existing
21139 # directories.
21140 hardcode_action_CXX=unsupported
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21143 $as_echo "$hardcode_action_CXX" >&6; }
21145 if test "$hardcode_action_CXX" = relink ||
21146 test "$inherit_rpath_CXX" = yes; then
21147 # Fast installation is not supported
21148 enable_fast_install=no
21149 elif test "$shlibpath_overrides_runpath" = yes ||
21150 test "$enable_shared" = no; then
21151 # Fast installation is not necessary
21152 enable_fast_install=needless
21161 fi # test -n "$compiler"
21163 CC=$lt_save_CC
21164 LDCXX=$LD
21165 LD=$lt_save_LD
21166 GCC=$lt_save_GCC
21167 with_gnu_ld=$lt_save_with_gnu_ld
21168 lt_cv_path_LDCXX=$lt_cv_path_LD
21169 lt_cv_path_LD=$lt_save_path_LD
21170 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21171 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21172 fi # test "$_lt_caught_CXX_error" != yes
21174 ac_ext=c
21175 ac_cpp='$CPP $CPPFLAGS'
21176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21195 # Only expand once:
21201 # Identify the assembler which will work hand-in-glove with the newly
21202 # built GCC, so that we can examine its features. This is the assembler
21203 # which will be driven by the driver program.
21205 # If build != host, and we aren't building gas in-tree, we identify a
21206 # build->target assembler and hope that it will have the same features
21207 # as the host->target assembler we'll be using.
21208 gcc_cv_gas_major_version=
21209 gcc_cv_gas_minor_version=
21210 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21212 if test "${gcc_cv_as+set}" = set; then :
21214 else
21216 if test -x "$DEFAULT_ASSEMBLER"; then
21217 gcc_cv_as="$DEFAULT_ASSEMBLER"
21218 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21219 && test -f ../gas/Makefile \
21220 && test x$build = x$host; then
21221 gcc_cv_as=../gas/as-new$build_exeext
21222 elif test -x as$build_exeext; then
21223 # Build using assembler in the current directory.
21224 gcc_cv_as=./as$build_exeext
21225 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21226 gcc_cv_as="$AS_FOR_TARGET"
21227 else
21228 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21229 set dummy $AS_FOR_TARGET; ac_word=$2
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21231 $as_echo_n "checking for $ac_word... " >&6; }
21232 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21233 $as_echo_n "(cached) " >&6
21234 else
21235 case $gcc_cv_as in
21236 [\\/]* | ?:[\\/]*)
21237 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21241 for as_dir in $PATH
21243 IFS=$as_save_IFS
21244 test -z "$as_dir" && as_dir=.
21245 for ac_exec_ext in '' $ac_executable_extensions; do
21246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21247 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21249 break 2
21251 done
21252 done
21253 IFS=$as_save_IFS
21256 esac
21258 gcc_cv_as=$ac_cv_path_gcc_cv_as
21259 if test -n "$gcc_cv_as"; then
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21261 $as_echo "$gcc_cv_as" >&6; }
21262 else
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21264 $as_echo "no" >&6; }
21271 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21273 case "$ORIGINAL_AS_FOR_TARGET" in
21274 ./as | ./as$build_exeext) ;;
21275 *) ac_config_files="$ac_config_files as:exec-tool.in"
21277 esac
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21280 $as_echo_n "checking what assembler to use... " >&6; }
21281 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21282 # Single tree build which includes gas. We want to prefer it
21283 # over whatever linker top-level may have detected, since
21284 # we'll use what we're building after installation anyway.
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21286 $as_echo "newly built gas" >&6; }
21287 in_tree_gas=yes
21288 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21289 for f in $gcc_cv_as_bfd_srcdir/configure \
21290 $gcc_cv_as_gas_srcdir/configure \
21291 $gcc_cv_as_gas_srcdir/configure.in \
21292 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21293 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21294 if test x$gcc_cv_gas_version != x; then
21295 break
21297 done
21298 case $gcc_cv_gas_version in
21299 VERSION=[0-9]*) ;;
21300 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21301 esac
21302 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21303 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21304 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21305 case $gcc_cv_gas_patch_version in
21306 "") gcc_cv_gas_patch_version="0" ;;
21307 esac
21308 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21309 + $gcc_cv_gas_minor_version \) \* 1000 \
21310 + $gcc_cv_gas_patch_version`
21312 in_tree_gas_is_elf=no
21313 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21314 || (grep 'obj_format = multi' ../gas/Makefile \
21315 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21316 then
21317 in_tree_gas_is_elf=yes
21319 else
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21321 $as_echo "$gcc_cv_as" >&6; }
21322 in_tree_gas=no
21325 # Identify the linker which will work hand-in-glove with the newly
21326 # built GCC, so that we can examine its features. This is the linker
21327 # which will be driven by the driver program.
21329 # If build != host, and we aren't building gas in-tree, we identify a
21330 # build->target linker and hope that it will have the same features
21331 # as the host->target linker we'll be using.
21332 gcc_cv_gld_major_version=
21333 gcc_cv_gld_minor_version=
21334 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21335 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21337 if test "${gcc_cv_ld+set}" = set; then :
21339 else
21341 if test -x "$DEFAULT_LINKER"; then
21342 gcc_cv_ld="$DEFAULT_LINKER"
21343 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21344 && test -f ../ld/Makefile \
21345 && test x$build = x$host; then
21346 gcc_cv_ld=../ld/ld-new$build_exeext
21347 elif test -x collect-ld$build_exeext; then
21348 # Build using linker in the current directory.
21349 gcc_cv_ld=./collect-ld$build_exeext
21350 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21351 gcc_cv_ld="$LD_FOR_TARGET"
21352 else
21353 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21354 set dummy $LD_FOR_TARGET; ac_word=$2
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21356 $as_echo_n "checking for $ac_word... " >&6; }
21357 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21358 $as_echo_n "(cached) " >&6
21359 else
21360 case $gcc_cv_ld in
21361 [\\/]* | ?:[\\/]*)
21362 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21366 for as_dir in $PATH
21368 IFS=$as_save_IFS
21369 test -z "$as_dir" && as_dir=.
21370 for ac_exec_ext in '' $ac_executable_extensions; do
21371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21372 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21374 break 2
21376 done
21377 done
21378 IFS=$as_save_IFS
21381 esac
21383 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21384 if test -n "$gcc_cv_ld"; then
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21386 $as_echo "$gcc_cv_ld" >&6; }
21387 else
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21389 $as_echo "no" >&6; }
21396 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21397 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21398 # if the PLUGIN_LD is set ld-new, just have it as ld
21399 # as that is the installed named.
21400 if test x$PLUGIN_LD_SUFFIX = xld-new \
21401 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21402 PLUGIN_LD_SUFFIX=ld
21405 # Check whether --with-plugin-ld was given.
21406 if test "${with_plugin_ld+set}" = set; then :
21407 withval=$with_plugin_ld; if test x"$withval" != x; then
21408 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21409 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21415 cat >>confdefs.h <<_ACEOF
21416 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21417 _ACEOF
21420 # Check to see if we are using gold instead of ld
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21422 $as_echo_n "checking whether we are using gold... " >&6; }
21423 ld_is_gold=no
21424 if test x$gcc_cv_ld != x; then
21425 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21426 | grep "GNU gold" > /dev/null; then
21427 ld_is_gold=yes
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21431 $as_echo "$ld_is_gold" >&6; }
21433 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21435 case "$ORIGINAL_LD_FOR_TARGET" in
21436 ./collect-ld | ./collect-ld$build_exeext) ;;
21437 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21439 esac
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21442 $as_echo_n "checking what linker to use... " >&6; }
21443 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21444 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21445 # Single tree build which includes ld. We want to prefer it
21446 # over whatever linker top-level may have detected, since
21447 # we'll use what we're building after installation anyway.
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21449 $as_echo "newly built ld" >&6; }
21450 in_tree_ld=yes
21451 in_tree_ld_is_elf=no
21452 if (grep 'EMUL = .*elf' ../ld/Makefile \
21453 || grep 'EMUL = .*linux' ../ld/Makefile \
21454 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21455 in_tree_ld_is_elf=yes
21456 elif test "$ld_is_gold" = yes; then
21457 in_tree_ld_is_elf=yes
21459 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
21461 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21462 if test x$gcc_cv_gld_version != x; then
21463 break
21465 done
21466 case $gcc_cv_gld_version in
21467 VERSION=[0-9]*) ;;
21468 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21469 esac
21470 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21471 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21472 else
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21474 $as_echo "$gcc_cv_ld" >&6; }
21475 in_tree_ld=no
21478 # Figure out what nm we will be using.
21479 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21480 if test "${gcc_cv_nm+set}" = set; then :
21482 else
21484 if test -f $gcc_cv_binutils_srcdir/configure.in \
21485 && test -f ../binutils/Makefile \
21486 && test x$build = x$host; then
21487 gcc_cv_nm=../binutils/nm-new$build_exeext
21488 elif test -x nm$build_exeext; then
21489 gcc_cv_nm=./nm$build_exeext
21490 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21491 gcc_cv_nm="$NM_FOR_TARGET"
21492 else
21493 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21494 set dummy $NM_FOR_TARGET; ac_word=$2
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21496 $as_echo_n "checking for $ac_word... " >&6; }
21497 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21498 $as_echo_n "(cached) " >&6
21499 else
21500 case $gcc_cv_nm in
21501 [\\/]* | ?:[\\/]*)
21502 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21506 for as_dir in $PATH
21508 IFS=$as_save_IFS
21509 test -z "$as_dir" && as_dir=.
21510 for ac_exec_ext in '' $ac_executable_extensions; do
21511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21512 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21514 break 2
21516 done
21517 done
21518 IFS=$as_save_IFS
21521 esac
21523 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21524 if test -n "$gcc_cv_nm"; then
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21526 $as_echo "$gcc_cv_nm" >&6; }
21527 else
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21529 $as_echo "no" >&6; }
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21537 $as_echo_n "checking what nm to use... " >&6; }
21538 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21539 # Single tree build which includes binutils.
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21541 $as_echo "newly built nm" >&6; }
21542 in_tree_nm=yes
21543 else
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21545 $as_echo "$gcc_cv_nm" >&6; }
21546 in_tree_nm=no
21549 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21551 case "$ORIGINAL_NM_FOR_TARGET" in
21552 ./nm | ./nm$build_exeext) ;;
21553 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21555 esac
21558 # Figure out what objdump we will be using.
21559 if test "${gcc_cv_objdump+set}" = set; then :
21561 else
21563 if test -f $gcc_cv_binutils_srcdir/configure.in \
21564 && test -f ../binutils/Makefile \
21565 && test x$build = x$host; then
21566 # Single tree build which includes binutils.
21567 gcc_cv_objdump=../binutils/objdump$build_exeext
21568 elif test -x objdump$build_exeext; then
21569 gcc_cv_objdump=./objdump$build_exeext
21570 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21571 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21572 else
21573 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21574 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21576 $as_echo_n "checking for $ac_word... " >&6; }
21577 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21578 $as_echo_n "(cached) " >&6
21579 else
21580 case $gcc_cv_objdump in
21581 [\\/]* | ?:[\\/]*)
21582 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21586 for as_dir in $PATH
21588 IFS=$as_save_IFS
21589 test -z "$as_dir" && as_dir=.
21590 for ac_exec_ext in '' $ac_executable_extensions; do
21591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21592 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21594 break 2
21596 done
21597 done
21598 IFS=$as_save_IFS
21601 esac
21603 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21604 if test -n "$gcc_cv_objdump"; then
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21606 $as_echo "$gcc_cv_objdump" >&6; }
21607 else
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21609 $as_echo "no" >&6; }
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21617 $as_echo_n "checking what objdump to use... " >&6; }
21618 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21619 # Single tree build which includes binutils.
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21621 $as_echo "newly built objdump" >&6; }
21622 elif test x$gcc_cv_objdump = x; then
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21624 $as_echo "not found" >&6; }
21625 else
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21627 $as_echo "$gcc_cv_objdump" >&6; }
21630 # Figure out what readelf we will be using.
21631 if test "${gcc_cv_readelf+set}" = set; then :
21633 else
21635 if test -f $gcc_cv_binutils_srcdir/configure.in \
21636 && test -f ../binutils/Makefile \
21637 && test x$build = x$host; then
21638 # Single tree build which includes binutils.
21639 gcc_cv_readelf=../binutils/readelf$build_exeext
21640 elif test -x readelf$build_exeext; then
21641 gcc_cv_readelf=./readelf$build_exeext
21642 else
21643 # Extract the first word of "readelf", so it can be a program name with args.
21644 set dummy readelf; ac_word=$2
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21646 $as_echo_n "checking for $ac_word... " >&6; }
21647 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21648 $as_echo_n "(cached) " >&6
21649 else
21650 case $gcc_cv_readelf in
21651 [\\/]* | ?:[\\/]*)
21652 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21656 for as_dir in $PATH
21658 IFS=$as_save_IFS
21659 test -z "$as_dir" && as_dir=.
21660 for ac_exec_ext in '' $ac_executable_extensions; do
21661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21662 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21664 break 2
21666 done
21667 done
21668 IFS=$as_save_IFS
21671 esac
21673 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21674 if test -n "$gcc_cv_readelf"; then
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21676 $as_echo "$gcc_cv_readelf" >&6; }
21677 else
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21687 $as_echo_n "checking what readelf to use... " >&6; }
21688 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21689 # Single tree build which includes binutils.
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21691 $as_echo "newly built readelf" >&6; }
21692 elif test x$gcc_cv_readelf = x; then
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21694 $as_echo "not found" >&6; }
21695 else
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21697 $as_echo "$gcc_cv_readelf" >&6; }
21700 # Figure out what assembler alignment features are present.
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21702 $as_echo_n "checking assembler flags... " >&6; }
21703 if test "${gcc_cv_as_flags+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 case "$target" in
21707 i[34567]86-*-linux*)
21708 gcc_cv_as_flags="--32"
21710 powerpc*-*-darwin*)
21711 gcc_cv_as_flags="-arch ppc"
21714 gcc_cv_as_flags=" "
21716 esac
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21719 $as_echo "$gcc_cv_as_flags" >&6; }
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21722 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21723 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21724 $as_echo_n "(cached) " >&6
21725 else
21726 gcc_cv_as_balign_and_p2align=no
21727 if test $in_tree_gas = yes; then
21728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21729 then gcc_cv_as_balign_and_p2align=yes
21731 elif test x$gcc_cv_as != x; then
21732 $as_echo '.balign 4
21733 .p2align 2' > conftest.s
21734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21739 test $ac_status = 0; }; }
21740 then
21741 gcc_cv_as_balign_and_p2align=yes
21742 else
21743 echo "configure: failed program was" >&5
21744 cat conftest.s >&5
21746 rm -f conftest.o conftest.s
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21750 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21751 if test $gcc_cv_as_balign_and_p2align = yes; then
21753 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21758 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21759 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21761 else
21762 gcc_cv_as_max_skip_p2align=no
21763 if test $in_tree_gas = yes; then
21764 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21765 then gcc_cv_as_max_skip_p2align=yes
21767 elif test x$gcc_cv_as != x; then
21768 $as_echo '.p2align 4,,7' > conftest.s
21769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21774 test $ac_status = 0; }; }
21775 then
21776 gcc_cv_as_max_skip_p2align=yes
21777 else
21778 echo "configure: failed program was" >&5
21779 cat conftest.s >&5
21781 rm -f conftest.o conftest.s
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21785 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21786 if test $gcc_cv_as_max_skip_p2align = yes; then
21788 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21793 $as_echo_n "checking assembler for .literal16... " >&6; }
21794 if test "${gcc_cv_as_literal16+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21796 else
21797 gcc_cv_as_literal16=no
21798 if test $in_tree_gas = yes; then
21799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21800 then gcc_cv_as_literal16=yes
21802 elif test x$gcc_cv_as != x; then
21803 $as_echo '.literal16' > conftest.s
21804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21806 (eval $ac_try) 2>&5
21807 ac_status=$?
21808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21809 test $ac_status = 0; }; }
21810 then
21811 gcc_cv_as_literal16=yes
21812 else
21813 echo "configure: failed program was" >&5
21814 cat conftest.s >&5
21816 rm -f conftest.o conftest.s
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21820 $as_echo "$gcc_cv_as_literal16" >&6; }
21821 if test $gcc_cv_as_literal16 = yes; then
21823 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21828 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21829 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21830 $as_echo_n "(cached) " >&6
21831 else
21832 gcc_cv_as_subsection_m1=no
21833 if test $in_tree_gas = yes; then
21834 if test $in_tree_gas_is_elf = yes \
21835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21836 then gcc_cv_as_subsection_m1=yes
21838 elif test x$gcc_cv_as != x; then
21839 $as_echo 'conftest_label1: .word 0
21840 .subsection -1
21841 conftest_label2: .word 0
21842 .previous' > conftest.s
21843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21848 test $ac_status = 0; }; }
21849 then
21850 if test x$gcc_cv_nm != x; then
21851 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21852 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21853 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21854 then :
21855 else gcc_cv_as_subsection_m1=yes
21857 rm -f conftest.nm1 conftest.nm2
21859 else
21860 echo "configure: failed program was" >&5
21861 cat conftest.s >&5
21863 rm -f conftest.o conftest.s
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21867 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21868 if test $gcc_cv_as_subsection_m1 = yes; then
21870 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21875 $as_echo_n "checking assembler for .weak... " >&6; }
21876 if test "${gcc_cv_as_weak+set}" = set; then :
21877 $as_echo_n "(cached) " >&6
21878 else
21879 gcc_cv_as_weak=no
21880 if test $in_tree_gas = yes; then
21881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21882 then gcc_cv_as_weak=yes
21884 elif test x$gcc_cv_as != x; then
21885 $as_echo ' .weak foobar' > conftest.s
21886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21891 test $ac_status = 0; }; }
21892 then
21893 gcc_cv_as_weak=yes
21894 else
21895 echo "configure: failed program was" >&5
21896 cat conftest.s >&5
21898 rm -f conftest.o conftest.s
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21902 $as_echo "$gcc_cv_as_weak" >&6; }
21903 if test $gcc_cv_as_weak = yes; then
21905 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21910 $as_echo_n "checking assembler for .weakref... " >&6; }
21911 if test "${gcc_cv_as_weakref+set}" = set; then :
21912 $as_echo_n "(cached) " >&6
21913 else
21914 gcc_cv_as_weakref=no
21915 if test $in_tree_gas = yes; then
21916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21917 then gcc_cv_as_weakref=yes
21919 elif test x$gcc_cv_as != x; then
21920 $as_echo ' .weakref foobar, barfnot' > conftest.s
21921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
21925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21926 test $ac_status = 0; }; }
21927 then
21928 gcc_cv_as_weakref=yes
21929 else
21930 echo "configure: failed program was" >&5
21931 cat conftest.s >&5
21933 rm -f conftest.o conftest.s
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21937 $as_echo "$gcc_cv_as_weakref" >&6; }
21938 if test $gcc_cv_as_weakref = yes; then
21940 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21945 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21946 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21947 $as_echo_n "(cached) " >&6
21948 else
21949 gcc_cv_as_nsubspa_comdat=no
21950 if test $in_tree_gas = yes; then
21951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21952 then gcc_cv_as_nsubspa_comdat=yes
21954 elif test x$gcc_cv_as != x; then
21955 $as_echo ' .SPACE $TEXT$
21956 .NSUBSPA $CODE$,COMDAT' > conftest.s
21957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21962 test $ac_status = 0; }; }
21963 then
21964 gcc_cv_as_nsubspa_comdat=yes
21965 else
21966 echo "configure: failed program was" >&5
21967 cat conftest.s >&5
21969 rm -f conftest.o conftest.s
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21973 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21974 if test $gcc_cv_as_nsubspa_comdat = yes; then
21976 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21980 # .hidden needs to be supported in both the assembler and the linker,
21981 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21982 # This is irritatingly difficult to feature test for; we have to check the
21983 # date string after the version number. If we've got an in-tree
21984 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21985 # to be safe.
21986 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21988 $as_echo_n "checking assembler for .hidden... " >&6; }
21989 if test "${gcc_cv_as_hidden+set}" = set; then :
21990 $as_echo_n "(cached) " >&6
21991 else
21992 gcc_cv_as_hidden=no
21993 if test $in_tree_gas = yes; then
21994 if test $in_tree_gas_is_elf = yes \
21995 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21996 then gcc_cv_as_hidden=yes
21998 elif test x$gcc_cv_as != x; then
21999 $as_echo ' .hidden foobar
22000 foobar:' > conftest.s
22001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22006 test $ac_status = 0; }; }
22007 then
22009 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22010 # STV_HIDDEN, so disable .hidden support if so.
22011 case "${target}" in
22012 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22013 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22014 cat > conftest.s <<EOF
22015 .globl hidden
22016 .hidden hidden
22017 hidden:
22018 .globl default
22019 .set default,hidden
22021 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22022 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22023 grep '\.hidden default' > /dev/null; then
22024 gcc_cv_as_hidden=no
22025 else
22026 gcc_cv_as_hidden=yes
22028 else
22029 # Assume bug is present if objdump is missing.
22030 gcc_cv_as_hidden=no
22034 gcc_cv_as_hidden=yes
22036 esac
22037 else
22038 echo "configure: failed program was" >&5
22039 cat conftest.s >&5
22041 rm -f conftest.o conftest.s
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22045 $as_echo "$gcc_cv_as_hidden" >&6; }
22047 case "${target}" in
22048 *-*-darwin*)
22049 # Darwin as has some visibility support, though with a different syntax.
22050 gcc_cv_as_hidden=yes
22052 esac
22054 # gnu_indirect_function type is an extension proposed at
22055 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22056 # selection of function implementation
22057 # Check whether --enable-gnu-indirect-function was given.
22058 if test "${enable_gnu_indirect_function+set}" = set; then :
22059 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22060 yes | no) ;;
22061 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22062 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22063 esac
22064 else
22065 enable_gnu_indirect_function="$default_gnu_indirect_function"
22068 if test x$enable_gnu_indirect_function = xyes; then
22070 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22074 if test $in_tree_ld != yes ; then
22075 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22076 if echo "$ld_ver" | grep GNU > /dev/null; then
22077 if test x"$ld_is_gold" = xyes; then
22078 # GNU gold --version looks like this:
22080 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22082 # We extract the binutils version which is more familiar and specific
22083 # than the gold version.
22084 ld_vers=`echo $ld_ver | sed -n \
22085 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22086 else
22087 # GNU ld --version looks like this:
22089 # GNU ld (GNU Binutils) 2.21.51.20110225
22090 ld_vers=`echo $ld_ver | sed -n \
22091 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22093 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'`
22094 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22095 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22096 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22097 else
22098 case "${target}" in
22099 *-*-solaris2*)
22100 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22101 # format.
22103 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22104 # /usr/ccs/bin/ld has been configured.
22105 ld_ver=`$gcc_cv_ld -V 2>&1`
22106 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22107 ld_vers=`echo $ld_ver | sed -n \
22108 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22109 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22110 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22113 esac
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22118 $as_echo_n "checking linker for .hidden support... " >&6; }
22119 if test "${gcc_cv_ld_hidden+set}" = set; then :
22120 $as_echo_n "(cached) " >&6
22121 else
22122 if test $in_tree_ld = yes ; then
22123 gcc_cv_ld_hidden=no
22124 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 \
22125 && test $in_tree_ld_is_elf = yes; then
22126 gcc_cv_ld_hidden=yes
22128 else
22129 gcc_cv_ld_hidden=yes
22130 if test x"$ld_is_gold" = xyes; then
22132 elif echo "$ld_ver" | grep GNU > /dev/null; then
22133 case "${target}" in
22134 mmix-knuth-mmixware)
22135 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22136 gcc_cv_ld_hidden=no
22138 esac
22139 if test 0"$ld_date" -lt 20020404; then
22140 if test -n "$ld_date"; then
22141 # If there was date string, but was earlier than 2002-04-04, fail
22142 gcc_cv_ld_hidden=no
22143 elif test -z "$ld_vers"; then
22144 # If there was no date string nor ld version number, something is wrong
22145 gcc_cv_ld_hidden=no
22146 else
22147 test -z "$ld_vers_patch" && ld_vers_patch=0
22148 if test "$ld_vers_major" -lt 2; then
22149 gcc_cv_ld_hidden=no
22150 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22151 gcc_cv_ld_hidden="no"
22152 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22153 gcc_cv_ld_hidden=no
22157 else
22158 case "${target}" in
22159 *-*-darwin*)
22160 # Darwin ld has some visibility support.
22161 gcc_cv_ld_hidden=yes
22163 hppa64*-*-hpux* | ia64*-*-hpux*)
22164 gcc_cv_ld_hidden=yes
22166 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22167 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22168 # .symbolic was only added in Solaris 9 12/02.
22169 gcc_cv_ld_hidden=yes
22172 gcc_cv_ld_hidden=no
22174 esac
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22179 $as_echo "$gcc_cv_ld_hidden" >&6; }
22180 libgcc_visibility=no
22183 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22184 libgcc_visibility=yes
22186 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22191 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22192 gcc_cv_ld_ro_rw_mix=unknown
22193 if test $in_tree_ld = yes ; then
22194 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 \
22195 && test $in_tree_ld_is_elf = yes; then
22196 gcc_cv_ld_ro_rw_mix=read-write
22198 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22199 echo '.section myfoosect, "a"' > conftest1.s
22200 echo '.section myfoosect, "aw"' > conftest2.s
22201 echo '.byte 1' >> conftest2.s
22202 echo '.section myfoosect, "a"' > conftest3.s
22203 echo '.byte 0' >> conftest3.s
22204 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22205 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22206 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22207 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22208 conftest2.o conftest3.o > /dev/null 2>&1; then
22209 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22210 | sed -e '/myfoosect/!d' -e N`
22211 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22212 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22213 gcc_cv_ld_ro_rw_mix=read-only
22214 else
22215 gcc_cv_ld_ro_rw_mix=read-write
22219 rm -f conftest.* conftest[123].*
22221 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22223 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22227 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22229 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22230 case "${target}" in
22231 *-*-solaris2*)
22233 # Solaris 2 ld -V output looks like this for a regular version:
22235 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22237 # but test versions add stuff at the end:
22239 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22241 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22242 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22243 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22244 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22245 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22246 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22249 esac
22252 # Check whether --enable-initfini-array was given.
22253 if test "${enable_initfini_array+set}" = set; then :
22254 enableval=$enable_initfini_array;
22255 else
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22258 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22259 if test "${gcc_cv_initfini_array+set}" = set; then :
22260 $as_echo_n "(cached) " >&6
22261 else
22262 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22263 case "${target}" in
22264 ia64-*)
22265 if test "$cross_compiling" = yes; then :
22266 gcc_cv_initfini_array=no
22267 else
22268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h. */
22271 #ifndef __ELF__
22272 #error Not an ELF OS
22273 #endif
22274 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22275 if it can be used. */
22276 static int x = -1;
22277 int main (void) { return x; }
22278 int foo (void) { x = 0; }
22279 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22281 _ACEOF
22282 if ac_fn_c_try_run "$LINENO"; then :
22283 gcc_cv_initfini_array=yes
22284 else
22285 gcc_cv_initfini_array=no
22287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22288 conftest.$ac_objext conftest.beam conftest.$ac_ext
22292 gcc_cv_initfini_array=no
22293 if test $in_tree_ld = yes ; then
22294 if test "$gcc_cv_gld_major_version" -eq 2 \
22295 -a "$gcc_cv_gld_minor_version" -ge 22 \
22296 -o "$gcc_cv_gld_major_version" -gt 2 \
22297 && test $in_tree_ld_is_elf = yes; then
22298 gcc_cv_initfini_array=yes
22300 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22301 cat > conftest.s <<\EOF
22302 .section .dtors,"a",%progbits
22303 .balign 4
22304 .byte 'A', 'A', 'A', 'A'
22305 .section .ctors,"a",%progbits
22306 .balign 4
22307 .byte 'B', 'B', 'B', 'B'
22308 .section .fini_array.65530,"a",%progbits
22309 .balign 4
22310 .byte 'C', 'C', 'C', 'C'
22311 .section .init_array.65530,"a",%progbits
22312 .balign 4
22313 .byte 'D', 'D', 'D', 'D'
22314 .section .dtors.64528,"a",%progbits
22315 .balign 4
22316 .byte 'E', 'E', 'E', 'E'
22317 .section .ctors.64528,"a",%progbits
22318 .balign 4
22319 .byte 'F', 'F', 'F', 'F'
22320 .section .fini_array.01005,"a",%progbits
22321 .balign 4
22322 .byte 'G', 'G', 'G', 'G'
22323 .section .init_array.01005,"a",%progbits
22324 .balign 4
22325 .byte 'H', 'H', 'H', 'H'
22326 .text
22327 .globl _start
22328 _start:
22330 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22331 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22332 && $gcc_cv_objdump -s -j .init_array conftest \
22333 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22334 && $gcc_cv_objdump -s -j .fini_array conftest \
22335 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22336 gcc_cv_initfini_array=yes
22338 rm -f conftest conftest.*
22340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22341 /* end confdefs.h. */
22343 #ifndef __ELF__
22344 # error Not an ELF OS
22345 #endif
22346 #include <stdlib.h>
22347 #if defined __GLIBC_PREREQ
22348 # if __GLIBC_PREREQ (2, 4)
22349 # else
22350 # error GLIBC 2.4 required
22351 # endif
22352 #else
22353 # if defined __sun__ && defined __svr4__
22354 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22355 # else
22356 # error The C library not known to support .init_array/.fini_array
22357 # endif
22358 #endif
22360 _ACEOF
22361 if ac_fn_c_try_cpp "$LINENO"; then :
22363 else
22364 gcc_cv_initfini_array=no
22366 rm -f conftest.err conftest.$ac_ext;;
22367 esac
22368 else
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22370 $as_echo_n "checking cross compile... guessing... " >&6; }
22371 gcc_cv_initfini_array=no
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22375 $as_echo "$gcc_cv_initfini_array" >&6; }
22376 enable_initfini_array=$gcc_cv_initfini_array
22380 if test $enable_initfini_array = yes; then
22382 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22386 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22388 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22389 if test "${gcc_cv_as_leb128+set}" = set; then :
22390 $as_echo_n "(cached) " >&6
22391 else
22392 gcc_cv_as_leb128=no
22393 if test $in_tree_gas = yes; then
22394 if test $in_tree_gas_is_elf = yes \
22395 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22396 then gcc_cv_as_leb128=yes
22398 elif test x$gcc_cv_as != x; then
22399 $as_echo ' .data
22400 .uleb128 L2 - L1
22402 .uleb128 1280
22403 .sleb128 -1010
22404 L2:' > conftest.s
22405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22410 test $ac_status = 0; }; }
22411 then
22412 # GAS versions before 2.11 do not support uleb128,
22413 # despite appearing to.
22414 # ??? There exists an elf-specific test that will crash
22415 # the assembler. Perhaps it's better to figure out whether
22416 # arbitrary sections are supported and try the test.
22417 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22418 if echo "$as_ver" | grep GNU > /dev/null; then
22419 as_vers=`echo $as_ver | sed -n \
22420 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22421 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22422 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22423 if test $as_major -eq 2 && test $as_minor -lt 11
22424 then :
22425 else gcc_cv_as_leb128=yes
22428 else
22429 echo "configure: failed program was" >&5
22430 cat conftest.s >&5
22432 rm -f conftest.o conftest.s
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22436 $as_echo "$gcc_cv_as_leb128" >&6; }
22437 if test $gcc_cv_as_leb128 = yes; then
22439 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22443 # Check if we have assembler support for unwind directives.
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22445 $as_echo_n "checking assembler for cfi directives... " >&6; }
22446 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22447 $as_echo_n "(cached) " >&6
22448 else
22449 gcc_cv_as_cfi_directive=no
22450 if test x$gcc_cv_as != x; then
22451 $as_echo ' .text
22452 .cfi_startproc
22453 .cfi_offset 0, 0
22454 .cfi_same_value 1
22455 .cfi_def_cfa 1, 2
22456 .cfi_escape 1, 2, 3, 4, 5
22457 .cfi_endproc' > conftest.s
22458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22463 test $ac_status = 0; }; }
22464 then
22465 case "$target" in
22466 *-*-solaris*)
22467 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22468 # read-only and read-write sections, we need to make sure that the
22469 # assembler used emits read-write .eh_frame sections.
22470 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22471 if test "x$gcc_cv_objdump" != x; then
22472 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22473 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22474 gcc_cv_as_cfi_directive=no
22475 else
22476 case "$target" in
22477 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22478 # On Solaris/x86, make sure that GCC and gas agree on using
22479 # read-only .eh_frame sections for 64-bit.
22480 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22481 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22482 sed -e /.eh_frame/!d -e N | \
22483 grep READONLY > /dev/null; then
22484 gcc_cv_as_cfi_directive=yes
22485 else
22486 gcc_cv_as_cfi_directive=no
22490 gcc_cv_as_cfi_directive=yes
22492 esac
22494 else
22495 # no objdump, err on the side of caution
22496 gcc_cv_as_cfi_directive=no
22498 else
22499 gcc_cv_as_cfi_directive=yes
22502 *-*-*)
22503 gcc_cv_as_cfi_directive=yes
22505 esac
22506 else
22507 echo "configure: failed program was" >&5
22508 cat conftest.s >&5
22510 rm -f conftest.o conftest.s
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22514 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22516 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22518 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22519 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22520 $as_echo_n "(cached) " >&6
22521 else
22522 gcc_cv_as_cfi_advance_working=no
22523 if test x$gcc_cv_as != x; then
22524 $as_echo ' .text
22525 .cfi_startproc
22526 .cfi_adjust_cfa_offset 64
22527 .skip 75040, 0
22528 .cfi_adjust_cfa_offset 128
22529 .cfi_endproc' > conftest.s
22530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535 test $ac_status = 0; }; }
22536 then
22538 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22539 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22540 gcc_cv_as_cfi_advance_working=yes
22543 else
22544 echo "configure: failed program was" >&5
22545 cat conftest.s >&5
22547 rm -f conftest.o conftest.s
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22551 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22553 else
22554 # no objdump, err on the side of caution
22555 gcc_cv_as_cfi_advance_working=no
22559 cat >>confdefs.h <<_ACEOF
22560 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22561 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22562 _ACEOF
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22567 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22568 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22569 $as_echo_n "(cached) " >&6
22570 else
22571 gcc_cv_as_cfi_personality_directive=no
22572 if test x$gcc_cv_as != x; then
22573 $as_echo ' .text
22574 .cfi_startproc
22575 .cfi_personality 0, symbol
22576 .cfi_endproc' > conftest.s
22577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; }
22583 then
22584 gcc_cv_as_cfi_personality_directive=yes
22585 else
22586 echo "configure: failed program was" >&5
22587 cat conftest.s >&5
22589 rm -f conftest.o conftest.s
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22593 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22598 then echo 1; else echo 0; fi`
22599 _ACEOF
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22603 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22604 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22605 $as_echo_n "(cached) " >&6
22606 else
22607 gcc_cv_as_cfi_sections_directive=no
22608 if test x$gcc_cv_as != x; then
22609 $as_echo ' .text
22610 .cfi_sections .debug_frame, .eh_frame
22611 .cfi_startproc
22612 .cfi_endproc' > conftest.s
22613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22618 test $ac_status = 0; }; }
22619 then
22620 case $target_os in
22621 win32 | pe | cygwin* | mingw32* | uwin*)
22622 # Need to check that we generated the correct relocation for the
22623 # .debug_frame section. This was fixed for binutils 2.21.
22624 gcc_cv_as_cfi_sections_directive=no
22625 if test "x$gcc_cv_objdump" != x; then
22626 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22627 grep secrel > /dev/null; then
22628 gcc_cv_as_cfi_sections_directive=yes
22633 gcc_cv_as_cfi_sections_directive=yes
22635 esac
22636 else
22637 echo "configure: failed program was" >&5
22638 cat conftest.s >&5
22640 rm -f conftest.o conftest.s
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22644 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22648 cat >>confdefs.h <<_ACEOF
22649 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22650 then echo 1; else echo 0; fi`
22651 _ACEOF
22654 # GAS versions up to and including 2.11.0 may mis-optimize
22655 # .eh_frame data.
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22657 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22658 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22659 $as_echo_n "(cached) " >&6
22660 else
22661 gcc_cv_as_eh_frame=no
22662 if test $in_tree_gas = yes; then
22663 if test $in_tree_gas_is_elf = yes \
22664 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22665 then gcc_cv_as_eh_frame=yes
22667 elif test x$gcc_cv_as != x; then
22668 $as_echo ' .text
22669 .LFB1:
22670 .4byte 0
22671 .L1:
22672 .4byte 0
22673 .LFE1:
22674 .section .eh_frame,"aw",@progbits
22675 __FRAME_BEGIN__:
22676 .4byte .LECIE1-.LSCIE1
22677 .LSCIE1:
22678 .4byte 0x0
22679 .byte 0x1
22680 .ascii "z\0"
22681 .byte 0x1
22682 .byte 0x78
22683 .byte 0x1a
22684 .byte 0x0
22685 .byte 0x4
22686 .4byte 1
22687 .p2align 1
22688 .LECIE1:
22689 .LSFDE1:
22690 .4byte .LEFDE1-.LASFDE1
22691 .LASFDE1:
22692 .4byte .LASFDE1-__FRAME_BEGIN__
22693 .4byte .LFB1
22694 .4byte .LFE1-.LFB1
22695 .byte 0x4
22696 .4byte .LFE1-.LFB1
22697 .byte 0x4
22698 .4byte .L1-.LFB1
22699 .LEFDE1:' > conftest.s
22700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
22704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22705 test $ac_status = 0; }; }
22706 then
22707 cat > conftest.lit <<EOF
22708 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22709 0010 01000000 12000000 18000000 00000000 ................
22710 0020 08000000 04080000 0044 .........D
22712 cat > conftest.big <<EOF
22713 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22714 0010 00000001 00000012 00000018 00000000 ................
22715 0020 00000008 04000000 0844 .........D
22717 # If the assembler didn't choke, and we can objdump,
22718 # and we got the correct data, then succeed.
22719 # The text in the here-document typically retains its unix-style line
22720 # endings, while the output of objdump will use host line endings.
22721 # Therefore, use diff -b for the comparisons.
22722 if test x$gcc_cv_objdump != x \
22723 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22724 | tail -3 > conftest.got \
22725 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22726 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22727 then
22728 gcc_cv_as_eh_frame=yes
22729 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22731 (eval $ac_try) 2>&5
22732 ac_status=$?
22733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734 test $ac_status = 0; }; }; then
22735 gcc_cv_as_eh_frame=buggy
22736 else
22737 # Uh oh, what do we do now?
22738 gcc_cv_as_eh_frame=no
22740 else
22741 echo "configure: failed program was" >&5
22742 cat conftest.s >&5
22744 rm -f conftest.o conftest.s
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22748 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22751 if test $gcc_cv_as_eh_frame = buggy; then
22753 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22758 $as_echo_n "checking assembler for section merging support... " >&6; }
22759 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22760 $as_echo_n "(cached) " >&6
22761 else
22762 gcc_cv_as_shf_merge=no
22763 if test $in_tree_gas = yes; then
22764 if test $in_tree_gas_is_elf = yes \
22765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22766 then gcc_cv_as_shf_merge=yes
22768 elif test x$gcc_cv_as != x; then
22769 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775 test $ac_status = 0; }; }
22776 then
22777 gcc_cv_as_shf_merge=yes
22778 else
22779 echo "configure: failed program was" >&5
22780 cat conftest.s >&5
22782 rm -f conftest.o conftest.s
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22786 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22788 if test $gcc_cv_as_shf_merge = no; then
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22790 $as_echo_n "checking assembler for section merging support... " >&6; }
22791 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22792 $as_echo_n "(cached) " >&6
22793 else
22794 gcc_cv_as_shf_merge=no
22795 if test $in_tree_gas = yes; then
22796 if test $in_tree_gas_is_elf = yes \
22797 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22798 then gcc_cv_as_shf_merge=yes
22800 elif test x$gcc_cv_as != x; then
22801 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22807 test $ac_status = 0; }; }
22808 then
22809 gcc_cv_as_shf_merge=yes
22810 else
22811 echo "configure: failed program was" >&5
22812 cat conftest.s >&5
22814 rm -f conftest.o conftest.s
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22818 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22822 cat >>confdefs.h <<_ACEOF
22823 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22824 _ACEOF
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22828 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22829 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22831 else
22832 gcc_cv_as_comdat_group=no
22833 if test $in_tree_gas = yes; then
22834 if test $in_tree_gas_is_elf = yes \
22835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22836 then gcc_cv_as_comdat_group=yes
22838 elif test x$gcc_cv_as != x; then
22839 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22845 test $ac_status = 0; }; }
22846 then
22847 gcc_cv_as_comdat_group=yes
22848 else
22849 echo "configure: failed program was" >&5
22850 cat conftest.s >&5
22852 rm -f conftest.o conftest.s
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22856 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22858 if test $gcc_cv_as_comdat_group = yes; then
22859 gcc_cv_as_comdat_group_percent=no
22860 gcc_cv_as_comdat_group_group=no
22861 else
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22863 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22864 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22865 $as_echo_n "(cached) " >&6
22866 else
22867 gcc_cv_as_comdat_group_percent=no
22868 if test $in_tree_gas = yes; then
22869 if test $in_tree_gas_is_elf = yes \
22870 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22871 then gcc_cv_as_comdat_group_percent=yes
22873 elif test x$gcc_cv_as != x; then
22874 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22877 (eval $ac_try) 2>&5
22878 ac_status=$?
22879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22880 test $ac_status = 0; }; }
22881 then
22882 gcc_cv_as_comdat_group_percent=yes
22883 else
22884 echo "configure: failed program was" >&5
22885 cat conftest.s >&5
22887 rm -f conftest.o conftest.s
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22891 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22893 if test $gcc_cv_as_comdat_group_percent = yes; then
22894 gcc_cv_as_comdat_group_group=no
22895 else
22896 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22897 gcc_cv_as_comdat_group_group=no
22899 case "${target}" in
22900 # Sun as uses a completely different syntax.
22901 *-*-solaris2*)
22902 case "${target}" in
22903 sparc*-*-solaris2*)
22904 conftest_s='
22905 .group foo,".text%foo",#comdat
22906 .section ".text%foo", #alloc,#execinstr,#progbits
22907 .globl foo
22908 foo:
22911 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22912 conftest_s='
22913 .group foo,.text%foo,#comdat
22914 .section .text%foo, "ax", @progbits
22915 .globl foo
22916 foo:
22919 esac
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22921 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22922 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22924 else
22925 gcc_cv_as_comdat_group_group=no
22926 if test x$gcc_cv_as != x; then
22927 $as_echo "$conftest_s" > conftest.s
22928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22933 test $ac_status = 0; }; }
22934 then
22935 gcc_cv_as_comdat_group_group=yes
22936 else
22937 echo "configure: failed program was" >&5
22938 cat conftest.s >&5
22940 rm -f conftest.o conftest.s
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22944 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22947 esac
22950 if test x"$ld_is_gold" = xyes; then
22951 comdat_group=yes
22952 elif test $in_tree_ld = yes ; then
22953 comdat_group=no
22954 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 \
22955 && test $in_tree_ld_is_elf = yes; then
22956 comdat_group=yes
22958 elif echo "$ld_ver" | grep GNU > /dev/null; then
22959 comdat_group=yes
22960 if test 0"$ld_date" -lt 20050308; then
22961 if test -n "$ld_date"; then
22962 # If there was date string, but was earlier than 2005-03-08, fail
22963 comdat_group=no
22964 elif test "$ld_vers_major" -lt 2; then
22965 comdat_group=no
22966 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22967 comdat_group=no
22970 else
22971 case "${target}" in
22972 *-*-solaris2.1[1-9]*)
22973 comdat_group=no
22974 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22975 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22976 # version 1.688.
22978 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22979 # least ld version 1.2267.
22980 if test "$ld_vers_major" -gt 1; then
22981 comdat_group=yes
22982 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22983 comdat_group=yes
22984 elif test "$ld_vers_minor" -ge 2267; then
22985 comdat_group=yes
22989 # Assume linkers other than GNU ld don't support COMDAT group.
22990 comdat_group=no
22992 esac
22994 # Allow overriding the automatic COMDAT group tests above.
22995 # Check whether --enable-comdat was given.
22996 if test "${enable_comdat+set}" = set; then :
22997 enableval=$enable_comdat; comdat_group="$enable_comdat"
23000 if test $comdat_group = no; then
23001 gcc_cv_as_comdat_group=no
23002 gcc_cv_as_comdat_group_percent=no
23003 gcc_cv_as_comdat_group_group=no
23006 cat >>confdefs.h <<_ACEOF
23007 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23008 || test $gcc_cv_as_comdat_group_percent = yes \
23009 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23010 _ACEOF
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23014 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23015 if test "${gcc_cv_as_discriminator+set}" = set; then :
23016 $as_echo_n "(cached) " >&6
23017 else
23018 gcc_cv_as_discriminator=no
23019 if test $in_tree_gas = yes; then
23020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23021 then gcc_cv_as_discriminator=yes
23023 elif test x$gcc_cv_as != x; then
23024 $as_echo ' .text
23025 .file 1 "conf.c"
23026 .loc 1 1 0 discriminator 1' > conftest.s
23027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23032 test $ac_status = 0; }; }
23033 then
23034 gcc_cv_as_discriminator=yes
23035 else
23036 echo "configure: failed program was" >&5
23037 cat conftest.s >&5
23039 rm -f conftest.o conftest.s
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23043 $as_echo "$gcc_cv_as_discriminator" >&6; }
23044 if test $gcc_cv_as_discriminator = yes; then
23046 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23050 # Thread-local storage - the check is heavily parameterized.
23051 conftest_s=
23052 tls_first_major=
23053 tls_first_minor=
23054 tls_as_opt=
23055 case "$target" in
23056 alpha*-*-*)
23057 conftest_s='
23058 .section ".tdata","awT",@progbits
23059 foo: .long 25
23060 .text
23061 ldq $27,__tls_get_addr($29) !literal!1
23062 lda $16,foo($29) !tlsgd!1
23063 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23064 ldq $27,__tls_get_addr($29) !literal!2
23065 lda $16,foo($29) !tlsldm!2
23066 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23067 ldq $1,foo($29) !gotdtprel
23068 ldah $2,foo($29) !dtprelhi
23069 lda $3,foo($2) !dtprello
23070 lda $4,foo($29) !dtprel
23071 ldq $1,foo($29) !gottprel
23072 ldah $2,foo($29) !tprelhi
23073 lda $3,foo($2) !tprello
23074 lda $4,foo($29) !tprel'
23075 tls_first_major=2
23076 tls_first_minor=13
23077 tls_as_opt=--fatal-warnings
23079 cris-*-*|crisv32-*-*)
23080 conftest_s='
23081 .section ".tdata","awT",@progbits
23082 x: .long 25
23083 .text
23084 move.d x:IE,$r10
23085 nop'
23086 tls_first_major=2
23087 tls_first_minor=20
23088 tls_as_opt=--fatal-warnings
23090 frv*-*-*)
23091 conftest_s='
23092 .section ".tdata","awT",@progbits
23093 x: .long 25
23094 .text
23095 call #gettlsoff(x)'
23096 tls_first_major=2
23097 tls_first_minor=14
23099 hppa*-*-linux*)
23100 conftest_s='
23101 t1: .reg %r20
23102 t2: .reg %r21
23103 gp: .reg %r19
23104 .section ".tdata","awT",@progbits
23105 foo: .long 25
23106 .text
23107 .align 4
23108 addil LT%foo-$tls_gdidx$,gp
23109 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23110 b __tls_get_addr
23112 addil LT%foo-$tls_ldidx$,gp
23113 b __tls_get_addr
23114 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23115 addil LR%foo-$tls_dtpoff$,%ret0
23116 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23117 mfctl %cr27,%t1
23118 addil LT%foo-$tls_ieoff$,gp
23119 ldw RT%foo-$tls_ieoff$(%r1),%t2
23120 add %t1,%t2,%t3
23121 mfctl %cr27,%t1
23122 addil LR%foo-$tls_leoff$,%t1
23123 ldo RR%foo-$tls_leoff$(%r1),%t2'
23124 tls_first_major=2
23125 tls_first_minor=15
23126 tls_as_opt=--fatal-warnings
23128 arm*-*-*)
23129 conftest_s='
23130 .section ".tdata","awT",%progbits
23131 foo: .long 25
23132 .text
23133 .word foo(gottpoff)
23134 .word foo(tpoff)
23135 .word foo(tlsgd)
23136 .word foo(tlsldm)
23137 .word foo(tlsldo)'
23138 tls_first_major=2
23139 tls_first_minor=17
23141 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23142 case "$target" in
23143 i[34567]86-*-solaris2.*)
23144 on_solaris=yes
23145 tga_func=___tls_get_addr
23147 x86_64-*-solaris2.1[0-9]*)
23148 on_solaris=yes
23149 tga_func=__tls_get_addr
23152 on_solaris=no
23154 esac
23155 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23156 conftest_s='
23157 .section .tdata,"awt",@progbits'
23158 tls_first_major=0
23159 tls_first_minor=0
23161 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23163 else
23164 conftest_s='
23165 .section ".tdata","awT",@progbits'
23166 tls_first_major=2
23167 tls_first_minor=14
23168 tls_as_opt="--fatal-warnings"
23170 conftest_s="$conftest_s
23171 foo: .long 25
23172 .text
23173 movl %gs:0, %eax
23174 leal foo@tlsgd(,%ebx,1), %eax
23175 leal foo@tlsldm(%ebx), %eax
23176 leal foo@dtpoff(%eax), %edx
23177 movl foo@gottpoff(%ebx), %eax
23178 subl foo@gottpoff(%ebx), %eax
23179 addl foo@gotntpoff(%ebx), %eax
23180 movl foo@indntpoff, %eax
23181 movl \$foo@tpoff, %eax
23182 subl \$foo@tpoff, %eax
23183 leal foo@ntpoff(%ecx), %eax"
23185 x86_64-*-*)
23186 conftest_s='
23187 .section ".tdata","awT",@progbits
23188 foo: .long 25
23189 .text
23190 movq %fs:0, %rax
23191 leaq foo@TLSGD(%rip), %rdi
23192 leaq foo@TLSLD(%rip), %rdi
23193 leaq foo@DTPOFF(%rax), %rdx
23194 movq foo@GOTTPOFF(%rip), %rax
23195 movq $foo@TPOFF, %rax'
23196 tls_first_major=2
23197 tls_first_minor=14
23198 tls_as_opt=--fatal-warnings
23200 ia64-*-*)
23201 conftest_s='
23202 .section ".tdata","awT",@progbits
23203 foo: data8 25
23204 .text
23205 addl r16 = @ltoff(@dtpmod(foo#)), gp
23206 addl r17 = @ltoff(@dtprel(foo#)), gp
23207 addl r18 = @ltoff(@tprel(foo#)), gp
23208 addl r19 = @dtprel(foo#), gp
23209 adds r21 = @dtprel(foo#), r13
23210 movl r23 = @dtprel(foo#)
23211 addl r20 = @tprel(foo#), gp
23212 adds r22 = @tprel(foo#), r13
23213 movl r24 = @tprel(foo#)'
23214 tls_first_major=2
23215 tls_first_minor=13
23216 tls_as_opt=--fatal-warnings
23218 microblaze*-*-*)
23219 conftest_s='
23220 .section .tdata,"awT",@progbits
23222 .word 2
23223 .text
23224 addik r5,r20,x@TLSGD
23225 addik r5,r20,x@TLSLDM'
23226 tls_first_major=2
23227 tls_first_minor=20
23228 tls_as_opt='--fatal-warnings'
23230 mips*-*-*)
23231 conftest_s='
23232 .section .tdata,"awT",@progbits
23234 .word 2
23235 .text
23236 addiu $4, $28, %tlsgd(x)
23237 addiu $4, $28, %tlsldm(x)
23238 lui $4, %dtprel_hi(x)
23239 addiu $4, $4, %dtprel_lo(x)
23240 lw $4, %gottprel(x)($28)
23241 lui $4, %tprel_hi(x)
23242 addiu $4, $4, %tprel_lo(x)'
23243 tls_first_major=2
23244 tls_first_minor=16
23245 tls_as_opt='-32 --fatal-warnings'
23247 m68k-*-*)
23248 conftest_s='
23249 .section .tdata,"awT",@progbits
23251 .word 2
23252 .text
23253 foo:
23254 move.l x@TLSGD(%a5),%a0
23255 move.l x@TLSLDM(%a5),%a0
23256 move.l x@TLSLDO(%a5),%a0
23257 move.l x@TLSIE(%a5),%a0
23258 move.l x@TLSLE(%a5),%a0'
23259 tls_first_major=2
23260 tls_first_minor=19
23261 tls_as_opt='--fatal-warnings'
23263 aarch64*-*-*)
23264 conftest_s='
23265 .section ".tdata","awT",%progbits
23266 foo: .long 25
23267 .text
23268 adrp x0, :tlsgd:x
23269 add x0, x0, #:tlsgd_lo12:x
23270 bl __tls_get_addr
23271 nop'
23272 tls_first_major=2
23273 tls_first_minor=20
23274 tls_as_opt='--fatal-warnings'
23276 powerpc-ibm-aix*)
23277 conftest_s='
23278 .extern __get_tpointer
23279 .toc
23280 LC..1:
23281 .tc a[TC],a[TL]@le
23282 .csect .text[PR]
23283 .tlstest:
23284 lwz 9,LC..1(2)
23285 bla __get_tpointer
23286 lwzx 3,9,3
23287 .globl a
23288 .csect a[TL],4
23290 .space 4'
23291 tls_first_major=0
23292 tls_first_minor=0
23294 powerpc64*-*-*)
23295 conftest_s='
23296 .section ".tdata","awT",@progbits
23297 .align 3
23298 ld0: .space 8
23299 ld1: .space 8
23300 x1: .space 8
23301 x2: .space 8
23302 x3: .space 8
23303 .text
23304 addi 3,2,ld0@got@tlsgd
23305 bl .__tls_get_addr
23307 addi 3,2,ld1@toc
23308 bl .__tls_get_addr
23310 addi 3,2,x1@got@tlsld
23311 bl .__tls_get_addr
23313 addi 9,3,x1@dtprel
23314 bl .__tls_get_addr
23316 addis 9,3,x2@dtprel@ha
23317 addi 9,9,x2@dtprel@l
23318 bl .__tls_get_addr
23320 ld 9,x3@got@dtprel(2)
23321 add 9,9,3
23322 bl .__tls_get_addr
23323 nop'
23324 tls_first_major=2
23325 tls_first_minor=14
23326 tls_as_opt="-a64 --fatal-warnings"
23328 powerpc*-*-*)
23329 conftest_s='
23330 .section ".tdata","awT",@progbits
23331 .align 2
23332 ld0: .space 4
23333 ld1: .space 4
23334 x1: .space 4
23335 x2: .space 4
23336 x3: .space 4
23337 .text
23338 addi 3,31,ld0@got@tlsgd
23339 bl __tls_get_addr
23340 addi 3,31,x1@got@tlsld
23341 bl __tls_get_addr
23342 addi 9,3,x1@dtprel
23343 addis 9,3,x2@dtprel@ha
23344 addi 9,9,x2@dtprel@l
23345 lwz 9,x3@got@tprel(31)
23346 add 9,9,x@tls
23347 addi 9,2,x1@tprel
23348 addis 9,2,x2@tprel@ha
23349 addi 9,9,x2@tprel@l'
23350 tls_first_major=2
23351 tls_first_minor=14
23352 tls_as_opt="-a32 --fatal-warnings"
23354 s390-*-*)
23355 conftest_s='
23356 .section ".tdata","awT",@progbits
23357 foo: .long 25
23358 .text
23359 .long foo@TLSGD
23360 .long foo@TLSLDM
23361 .long foo@DTPOFF
23362 .long foo@NTPOFF
23363 .long foo@GOTNTPOFF
23364 .long foo@INDNTPOFF
23365 l %r1,foo@GOTNTPOFF(%r12)
23366 l %r1,0(%r1):tls_load:foo
23367 bas %r14,0(%r1,%r13):tls_gdcall:foo
23368 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23369 tls_first_major=2
23370 tls_first_minor=14
23371 tls_as_opt="-m31 --fatal-warnings"
23373 s390x-*-*)
23374 conftest_s='
23375 .section ".tdata","awT",@progbits
23376 foo: .long 25
23377 .text
23378 .quad foo@TLSGD
23379 .quad foo@TLSLDM
23380 .quad foo@DTPOFF
23381 .quad foo@NTPOFF
23382 .quad foo@GOTNTPOFF
23383 lg %r1,foo@GOTNTPOFF(%r12)
23384 larl %r1,foo@INDNTPOFF
23385 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23386 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23387 tls_first_major=2
23388 tls_first_minor=14
23389 tls_as_opt="-m64 -Aesame --fatal-warnings"
23391 sh-*-* | sh[34]-*-*)
23392 conftest_s='
23393 .section ".tdata","awT",@progbits
23394 foo: .long 25
23395 .text
23396 .long foo@TLSGD
23397 .long foo@TLSLDM
23398 .long foo@DTPOFF
23399 .long foo@GOTTPOFF
23400 .long foo@TPOFF'
23401 tls_first_major=2
23402 tls_first_minor=13
23403 tls_as_opt=--fatal-warnings
23405 sparc*-*-*)
23406 case "$target" in
23407 sparc*-sun-solaris2.*)
23408 on_solaris=yes
23409 tga_func=__tls_get_addr
23412 on_solaris=no
23414 esac
23415 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23416 conftest_s='
23417 .section ".tdata",#alloc,#write,#tls'
23418 tls_first_major=0
23419 tls_first_minor=0
23420 else
23421 conftest_s='
23422 .section ".tdata","awT",@progbits'
23423 tls_first_major=2
23424 tls_first_minor=14
23425 tls_as_opt="-32 --fatal-warnings"
23427 conftest_s="$conftest_s
23428 foo: .long 25
23429 .text
23430 sethi %tgd_hi22(foo), %o0
23431 add %o0, %tgd_lo10(foo), %o1
23432 add %l7, %o1, %o0, %tgd_add(foo)
23433 call __tls_get_addr, %tgd_call(foo)
23434 sethi %tldm_hi22(foo), %l1
23435 add %l1, %tldm_lo10(foo), %l2
23436 add %l7, %l2, %o0, %tldm_add(foo)
23437 call __tls_get_addr, %tldm_call(foo)
23438 sethi %tldo_hix22(foo), %l3
23439 xor %l3, %tldo_lox10(foo), %l4
23440 add %o0, %l4, %l5, %tldo_add(foo)
23441 sethi %tie_hi22(foo), %o3
23442 add %o3, %tie_lo10(foo), %o3
23443 ld [%l7 + %o3], %o2, %tie_ld(foo)
23444 add %g7, %o2, %o4, %tie_add(foo)
23445 sethi %tle_hix22(foo), %l1
23446 xor %l1, %tle_lox10(foo), %o5
23447 ld [%g7 + %o5], %o1"
23449 tilepro*-*-*)
23450 conftest_s='
23451 .section ".tdata","awT",@progbits
23452 foo: .long 25
23453 .text
23454 addli r0, zero, tls_gd(foo)
23455 auli r0, zero, tls_gd_ha16(foo)
23456 addli r0, r0, tls_gd_lo16(foo)
23457 jal __tls_get_addr
23458 addli r0, zero, tls_ie(foo)
23459 auli r0, r0, tls_ie_ha16(foo)
23460 addli r0, r0, tls_ie_lo16(foo)'
23461 tls_first_major=2
23462 tls_first_minor=22
23463 tls_as_opt="--fatal-warnings"
23465 tilegx*-*-*)
23466 conftest_s='
23467 .section ".tdata","awT",@progbits
23468 foo: .long 25
23469 .text
23470 shl16insli r0, zero, hw0_last_tls_gd(foo)
23471 shl16insli r0, zero, hw1_last_tls_gd(foo)
23472 shl16insli r0, r0, hw0_tls_gd(foo)
23473 jal __tls_get_addr
23474 shl16insli r0, zero, hw1_last_tls_ie(foo)
23475 shl16insli r0, r0, hw0_tls_ie(foo)'
23476 tls_first_major=2
23477 tls_first_minor=22
23478 tls_as_opt="--fatal-warnings"
23480 xtensa*-*-*)
23481 conftest_s='
23482 .section ".tdata","awT",@progbits
23483 foo: .long 25
23484 .text
23485 movi a8, foo@TLSFUNC
23486 movi a10, foo@TLSARG
23487 callx8.tls a8, foo@TLSCALL'
23488 tls_first_major=2
23489 tls_first_minor=19
23491 esac
23492 set_have_as_tls=no
23493 if test "x$enable_tls" = xno ; then
23494 : # TLS explicitly disabled.
23495 elif test "x$enable_tls" = xyes ; then
23496 set_have_as_tls=yes # TLS explicitly enabled.
23497 elif test -z "$tls_first_major"; then
23498 : # If we don't have a check, assume no support.
23499 else
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23501 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23502 if test "${gcc_cv_as_tls+set}" = set; then :
23503 $as_echo_n "(cached) " >&6
23504 else
23505 gcc_cv_as_tls=no
23506 if test $in_tree_gas = yes; then
23507 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23508 then gcc_cv_as_tls=yes
23510 elif test x$gcc_cv_as != x; then
23511 $as_echo "$conftest_s" > conftest.s
23512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23517 test $ac_status = 0; }; }
23518 then
23519 gcc_cv_as_tls=yes
23520 else
23521 echo "configure: failed program was" >&5
23522 cat conftest.s >&5
23524 rm -f conftest.o conftest.s
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23528 $as_echo "$gcc_cv_as_tls" >&6; }
23529 if test $gcc_cv_as_tls = yes; then
23530 set_have_as_tls=yes
23533 case "$target" in
23534 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23535 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23536 # Sun style that Sun ld and GCC don't support any longer.
23537 *-*-solaris2.*)
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23539 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23540 ld_tls_support=no
23541 # Check ld and ld.so.1 TLS support.
23542 if echo "$ld_ver" | grep GNU > /dev/null; then
23543 # Assume all interesting versions of GNU ld have TLS support.
23544 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23545 ld_tls_support=yes
23546 else
23547 case "$target" in
23548 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23549 i?86-*-solaris2.9)
23550 min_tls_ld_vers_minor=374
23552 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23553 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23554 min_tls_ld_vers_minor=343
23556 esac
23557 if test "$ld_vers_major" -gt 1 || \
23558 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23559 ld_tls_support=yes
23560 else
23561 set_have_as_tls=no
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23565 $as_echo "$ld_tls_support" >&6; }
23567 save_LIBS="$LIBS"
23568 save_LDFLAGS="$LDFLAGS"
23569 LIBS=
23570 LDFLAGS=
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23573 $as_echo_n "checking library containing $tga_func... " >&6; }
23574 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23575 # (32-bit x86) only lived in libthread, so check for that. Keep
23576 # set_have_as_tls if found, disable if not.
23577 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23579 $as_echo_n "checking for library containing $tga_func... " >&6; }
23580 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23581 $as_echo_n "(cached) " >&6
23582 else
23583 ac_func_search_save_LIBS=$LIBS
23584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23585 /* end confdefs.h. */
23587 /* Override any GCC internal prototype to avoid an error.
23588 Use char because int might match the return type of a GCC
23589 builtin and then its argument prototype would still apply. */
23590 #ifdef __cplusplus
23591 extern "C"
23592 #endif
23593 char $tga_func ();
23595 main ()
23597 return $tga_func ();
23599 return 0;
23601 _ACEOF
23602 for ac_lib in '' thread; do
23603 if test -z "$ac_lib"; then
23604 ac_res="none required"
23605 else
23606 ac_res=-l$ac_lib
23607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23609 if ac_fn_c_try_link "$LINENO"; then :
23610 eval "$as_ac_Search=\$ac_res"
23612 rm -f core conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext
23614 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23615 break
23617 done
23618 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23620 else
23621 eval "$as_ac_Search=no"
23623 rm conftest.$ac_ext
23624 LIBS=$ac_func_search_save_LIBS
23626 eval ac_res=\$$as_ac_Search
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23628 $as_echo "$ac_res" >&6; }
23629 eval ac_res=\$$as_ac_Search
23630 if test "$ac_res" != no; then :
23631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23633 else
23634 set_have_as_tls=no
23637 # Clear LIBS if we cannot support TLS.
23638 if test $set_have_as_tls = no; then
23639 LIBS=
23641 # Always define LIB_TLS_SPEC, even without TLS support.
23643 cat >>confdefs.h <<_ACEOF
23644 #define LIB_TLS_SPEC "$LIBS"
23645 _ACEOF
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23648 $as_echo "$LIBS" >&6; }
23650 LIBS="$save_LIBS"
23651 LDFLAGS="$save_LDFLAGS"
23653 esac
23654 if test $set_have_as_tls = yes ; then
23656 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23660 # Target-specific assembler checks.
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23663 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23664 gcc_cv_ld_static_dynamic=no
23665 gcc_cv_ld_static_option='-Bstatic'
23666 gcc_cv_ld_dynamic_option='-Bdynamic'
23667 if test $in_tree_ld = yes ; then
23668 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
23669 gcc_cv_ld_static_dynamic=yes
23671 elif test x$gcc_cv_ld != x; then
23672 # Check if linker supports -Bstatic/-Bdynamic option
23673 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23674 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23675 gcc_cv_ld_static_dynamic=yes
23676 else
23677 case "$target" in
23678 # AIX ld uses -b flags
23679 *-*-aix4.[23]* | *-*-aix[5-9]*)
23680 gcc_cv_ld_static_dynamic=yes
23681 gcc_cv_ld_static_option="-bstatic"
23682 gcc_cv_ld_dynamic_option="-bdynamic"
23684 # HP-UX ld uses -a flags to select between shared and archive.
23685 *-*-hpux*)
23686 if test x"$gnu_ld" = xno; then
23687 gcc_cv_ld_static_dynamic=yes
23688 gcc_cv_ld_static_option="-aarchive_shared"
23689 gcc_cv_ld_dynamic_option="-adefault"
23692 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23693 *-*-solaris2*)
23694 gcc_cv_ld_static_dynamic=yes
23696 esac
23699 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23701 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23704 cat >>confdefs.h <<_ACEOF
23705 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23706 _ACEOF
23709 cat >>confdefs.h <<_ACEOF
23710 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23711 _ACEOF
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23715 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23717 if test x"$demangler_in_ld" = xyes; then
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23719 $as_echo_n "checking linker --demangle support... " >&6; }
23720 gcc_cv_ld_demangle=no
23721 if test $in_tree_ld = yes; then
23722 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23723 gcc_cv_ld_demangle=yes
23725 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23726 # Check if the GNU linker supports --demangle option
23727 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23728 gcc_cv_ld_demangle=yes
23731 if test x"$gcc_cv_ld_demangle" = xyes; then
23733 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23737 $as_echo "$gcc_cv_ld_demangle" >&6; }
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23741 $as_echo_n "checking linker plugin support... " >&6; }
23742 gcc_cv_lto_plugin=0
23743 if test -f liblto_plugin.la; then
23744 save_ld_ver="$ld_ver"
23745 save_ld_vers_major="$ld_vers_major"
23746 save_ld_vers_minor="$ld_vers_minor"
23747 save_ld_is_gold="$ld_is_gold"
23749 ld_is_gold=no
23751 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23752 ld_ver="GNU ld"
23753 # FIXME: ld_is_gold?
23754 ld_vers_major="$gcc_cv_gld_major_version"
23755 ld_vers_minor="$gcc_cv_gld_minor_version"
23756 else
23757 # Determine plugin linker version.
23758 # FIXME: Partial duplicate from above, generalize.
23759 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23760 if echo "$ld_ver" | grep GNU > /dev/null; then
23761 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23762 ld_is_gold=yes
23763 ld_vers=`echo $ld_ver | sed -n \
23764 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23765 else
23766 ld_vers=`echo $ld_ver | sed -n \
23767 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23769 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23770 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23774 # Determine plugin support.
23775 if echo "$ld_ver" | grep GNU > /dev/null; then
23776 # Require GNU ld or gold 2.21+ for plugin support by default.
23777 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23778 gcc_cv_lto_plugin=2
23779 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23780 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23781 gcc_cv_lto_plugin=1
23785 ld_ver="$save_ld_ver"
23786 ld_vers_major="$save_ld_vers_major"
23787 ld_vers_minor="$save_ld_vers_minor"
23788 ld_is_gold="$save_ld_is_gold"
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23793 _ACEOF
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23796 $as_echo "$gcc_cv_lto_plugin" >&6; }
23798 case "$target" in
23799 # All TARGET_ABI_OSF targets.
23800 alpha*-*-linux* | alpha*-*-*bsd*)
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23802 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23803 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 gcc_cv_as_alpha_explicit_relocs=no
23807 if test $in_tree_gas = yes; then
23808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23809 then gcc_cv_as_alpha_explicit_relocs=yes
23811 elif test x$gcc_cv_as != x; then
23812 $as_echo ' .set nomacro
23813 .text
23814 extbl $3, $2, $3 !lituse_bytoff!1
23815 ldq $2, a($29) !literal!1
23816 ldq $4, b($29) !literal!2
23817 ldq_u $3, 0($2) !lituse_base!1
23818 ldq $27, f($29) !literal!5
23819 jsr $26, ($27), f !lituse_jsr!5
23820 ldah $29, 0($26) !gpdisp!3
23821 lda $0, c($29) !gprel
23822 ldah $1, d($29) !gprelhigh
23823 lda $1, d($1) !gprellow
23824 lda $29, 0($29) !gpdisp!3' > conftest.s
23825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23830 test $ac_status = 0; }; }
23831 then
23832 gcc_cv_as_alpha_explicit_relocs=yes
23833 else
23834 echo "configure: failed program was" >&5
23835 cat conftest.s >&5
23837 rm -f conftest.o conftest.s
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23841 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23842 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23844 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23848 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23849 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23850 $as_echo_n "(cached) " >&6
23851 else
23852 gcc_cv_as_alpha_jsrdirect_relocs=no
23853 if test $in_tree_gas = yes; then
23854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23855 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23857 elif test x$gcc_cv_as != x; then
23858 $as_echo ' .set nomacro
23859 .text
23860 ldq $27, a($29) !literal!1
23861 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23868 then
23869 gcc_cv_as_alpha_jsrdirect_relocs=yes
23870 else
23871 echo "configure: failed program was" >&5
23872 cat conftest.s >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23878 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23879 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23881 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23886 cris-*-*)
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23888 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23889 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23890 $as_echo_n "(cached) " >&6
23891 else
23892 gcc_cv_as_cris_no_mul_bug=no
23893 if test $in_tree_gas = yes; then
23894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23895 then gcc_cv_as_cris_no_mul_bug=yes
23897 elif test x$gcc_cv_as != x; then
23898 $as_echo '.text' > conftest.s
23899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23901 (eval $ac_try) 2>&5
23902 ac_status=$?
23903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23904 test $ac_status = 0; }; }
23905 then
23906 gcc_cv_as_cris_no_mul_bug=yes
23907 else
23908 echo "configure: failed program was" >&5
23909 cat conftest.s >&5
23911 rm -f conftest.o conftest.s
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23915 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23916 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23918 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23923 sparc*-*-*)
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23925 $as_echo_n "checking assembler for .register... " >&6; }
23926 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23927 $as_echo_n "(cached) " >&6
23928 else
23929 gcc_cv_as_sparc_register_op=no
23930 if test x$gcc_cv_as != x; then
23931 $as_echo '.register %g2, #scratch' > conftest.s
23932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23937 test $ac_status = 0; }; }
23938 then
23939 gcc_cv_as_sparc_register_op=yes
23940 else
23941 echo "configure: failed program was" >&5
23942 cat conftest.s >&5
23944 rm -f conftest.o conftest.s
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23948 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23949 if test $gcc_cv_as_sparc_register_op = yes; then
23951 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23956 $as_echo_n "checking assembler for #nobits... " >&6; }
23957 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 gcc_cv_as_sparc_nobits=no
23961 if test x$gcc_cv_as != x; then
23962 $as_echo '.section "nobits",#alloc,#write,#nobits
23963 .section "progbits",#alloc,#write,#progbits' > conftest.s
23964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969 test $ac_status = 0; }; }
23970 then
23971 gcc_cv_as_sparc_nobits=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_sparc_nobits" >&5
23980 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
23983 cat >>confdefs.h <<_ACEOF
23984 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
23985 _ACEOF
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23989 $as_echo_n "checking assembler for -relax option... " >&6; }
23990 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23991 $as_echo_n "(cached) " >&6
23992 else
23993 gcc_cv_as_sparc_relax=no
23994 if test x$gcc_cv_as != x; then
23995 $as_echo '.text' > conftest.s
23996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23998 (eval $ac_try) 2>&5
23999 ac_status=$?
24000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24001 test $ac_status = 0; }; }
24002 then
24003 gcc_cv_as_sparc_relax=yes
24004 else
24005 echo "configure: failed program was" >&5
24006 cat conftest.s >&5
24008 rm -f conftest.o conftest.s
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24012 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24013 if test $gcc_cv_as_sparc_relax = yes; then
24015 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24020 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24021 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24022 $as_echo_n "(cached) " >&6
24023 else
24024 gcc_cv_as_sparc_gotdata_op=no
24025 if test x$gcc_cv_as != x; then
24026 $as_echo '.text
24027 .align 4
24028 foo:
24030 bar:
24031 sethi %gdop_hix22(foo), %g1
24032 xor %g1, %gdop_lox10(foo), %g1
24033 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24039 test $ac_status = 0; }; }
24040 then
24041 if test x$gcc_cv_ld != x \
24042 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24043 if test x$gcc_cv_objdump != x; then
24044 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24045 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24046 gcc_cv_as_sparc_gotdata_op=no
24047 else
24048 gcc_cv_as_sparc_gotdata_op=yes
24052 rm -f conftest
24053 else
24054 echo "configure: failed program was" >&5
24055 cat conftest.s >&5
24057 rm -f conftest.o conftest.s
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24061 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24062 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24064 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24069 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24070 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24071 $as_echo_n "(cached) " >&6
24072 else
24073 gcc_cv_as_sparc_ua_pcrel=no
24074 if test x$gcc_cv_as != x; then
24075 $as_echo '.text
24076 foo:
24078 .data
24079 .align 4
24080 .byte 0
24081 .uaword %r_disp32(foo)' > conftest.s
24082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }
24088 then
24089 if test x$gcc_cv_ld != x \
24090 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24091 gcc_cv_as_sparc_ua_pcrel=yes
24093 rm -f conftest
24094 else
24095 echo "configure: failed program was" >&5
24096 cat conftest.s >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24102 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24103 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24105 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24109 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24110 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24111 $as_echo_n "(cached) " >&6
24112 else
24113 gcc_cv_as_sparc_ua_pcrel_hidden=no
24114 if test x$gcc_cv_as != x; then
24115 $as_echo '.data
24116 .align 4
24117 .byte 0x31
24118 .uaword %r_disp32(foo)
24119 .byte 0x32, 0x33, 0x34
24120 .global foo
24121 .hidden foo
24122 foo:
24123 .skip 4' > conftest.s
24124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }
24130 then
24131 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24132 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24133 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24134 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24135 if $gcc_cv_objdump -R conftest 2> /dev/null \
24136 | grep 'DISP32' > /dev/null 2>&1; then
24138 else
24139 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24142 rm -f conftest
24143 else
24144 echo "configure: failed program was" >&5
24145 cat conftest.s >&5
24147 rm -f conftest.o conftest.s
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24151 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24152 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24154 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24158 fi # unaligned pcrel relocs
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24161 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24162 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24163 $as_echo_n "(cached) " >&6
24164 else
24165 gcc_cv_as_sparc_offsetable_lo10=no
24166 if test x$gcc_cv_as != x; then
24167 $as_echo '.text
24168 or %g1, %lo(ab) + 12, %g1
24169 or %g1, %lo(ab + 12), %g1' > conftest.s
24170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24176 then
24177 if test x$gcc_cv_objdump != x \
24178 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24179 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24180 gcc_cv_as_sparc_offsetable_lo10=yes
24182 else
24183 echo "configure: failed program was" >&5
24184 cat conftest.s >&5
24186 rm -f conftest.o conftest.s
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24190 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24191 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24193 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24198 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24199 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24200 $as_echo_n "(cached) " >&6
24201 else
24202 gcc_cv_as_sparc_fmaf=no
24203 if test x$gcc_cv_as != x; then
24204 $as_echo '.text
24205 .register %g2, #scratch
24206 .register %g3, #scratch
24207 .align 4
24208 fmaddd %f0, %f2, %f4, %f6
24209 addxccc %g1, %g2, %g3
24210 fsrl32 %f2, %f4, %f8
24211 fnaddd %f10, %f12, %f14' > conftest.s
24212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; }
24218 then
24219 gcc_cv_as_sparc_fmaf=yes
24220 else
24221 echo "configure: failed program was" >&5
24222 cat conftest.s >&5
24224 rm -f conftest.o conftest.s
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24228 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24229 if test $gcc_cv_as_sparc_fmaf = yes; then
24231 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24236 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24237 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24238 $as_echo_n "(cached) " >&6
24239 else
24240 gcc_cv_as_sparc_sparc4=no
24241 if test x$gcc_cv_as != x; then
24242 $as_echo '.text
24243 .register %g2, #scratch
24244 .register %g3, #scratch
24245 .align 4
24246 cxbe %g2, %g3, 1f
24247 1: cwbneg %g2, %g3, 1f
24248 1: sha1
24250 aes_kexpand0 %f4, %f6, %f8
24251 des_round %f38, %f40, %f42, %f44
24252 camellia_f %f54, %f56, %f58, %f60
24253 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24256 (eval $ac_try) 2>&5
24257 ac_status=$?
24258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24259 test $ac_status = 0; }; }
24260 then
24261 gcc_cv_as_sparc_sparc4=yes
24262 else
24263 echo "configure: failed program was" >&5
24264 cat conftest.s >&5
24266 rm -f conftest.o conftest.s
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24270 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24271 if test $gcc_cv_as_sparc_sparc4 = yes; then
24273 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24278 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24279 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24280 $as_echo_n "(cached) " >&6
24281 else
24282 gcc_cv_as_sparc_leon=no
24283 if test x$gcc_cv_as != x; then
24284 $as_echo '.text
24285 .register %g2, #scratch
24286 .register %g3, #scratch
24287 .align 4
24288 smac %g2, %g3, %g1
24289 umac %g2, %g3, %g1
24290 casa [%g2] 0xb, %g3, %g1' > conftest.s
24291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24296 test $ac_status = 0; }; }
24297 then
24298 gcc_cv_as_sparc_leon=yes
24299 else
24300 echo "configure: failed program was" >&5
24301 cat conftest.s >&5
24303 rm -f conftest.o conftest.s
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24307 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24308 if test $gcc_cv_as_sparc_leon = yes; then
24310 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24315 i[34567]86-*-* | x86_64-*-*)
24316 case $target_os in
24317 cygwin*)
24318 # Full C++ conformance when using a shared libstdc++-v3 requires some
24319 # support from the Cygwin DLL, which in more recent versions exports
24320 # wrappers to aid in interposing and redirecting operators new, delete,
24321 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24322 # are configuring for a version of Cygwin that exports the wrappers.
24323 if test x$host = x$target; then
24324 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24325 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24326 gcc_ac_cygwin_dll_wrappers=yes
24327 else
24328 gcc_ac_cygwin_dll_wrappers=no
24331 else
24332 # Can't check presence of libc functions during cross-compile, so
24333 # we just have to assume we're building for an up-to-date target.
24334 gcc_ac_cygwin_dll_wrappers=yes
24337 cat >>confdefs.h <<_ACEOF
24338 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24339 _ACEOF
24341 esac
24342 case $target_os in
24343 cygwin* | pe | mingw32* | interix*)
24344 # Recent binutils allows the three-operand form of ".comm" on PE. This
24345 # definition is used unconditionally to initialise the default state of
24346 # the target option variable that governs usage of the feature.
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24348 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24349 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24350 $as_echo_n "(cached) " >&6
24351 else
24352 gcc_cv_as_comm_has_align=no
24353 if test $in_tree_gas = yes; then
24354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24355 then gcc_cv_as_comm_has_align=yes
24357 elif test x$gcc_cv_as != x; then
24358 $as_echo '.comm foo,1,32' > conftest.s
24359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364 test $ac_status = 0; }; }
24365 then
24366 gcc_cv_as_comm_has_align=yes
24367 else
24368 echo "configure: failed program was" >&5
24369 cat conftest.s >&5
24371 rm -f conftest.o conftest.s
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24375 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24380 _ACEOF
24382 # Used for DWARF 2 in PE
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24384 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24385 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24386 $as_echo_n "(cached) " >&6
24387 else
24388 gcc_cv_as_ix86_pe_secrel32=no
24389 if test $in_tree_gas = yes; then
24390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24391 then gcc_cv_as_ix86_pe_secrel32=yes
24393 elif test x$gcc_cv_as != x; then
24394 $as_echo '.text
24395 foo: nop
24396 .data
24397 .secrel32 foo' > conftest.s
24398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24404 then
24405 if test x$gcc_cv_ld != x \
24406 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24407 gcc_cv_as_ix86_pe_secrel32=yes
24409 rm -f conftest
24410 else
24411 echo "configure: failed program was" >&5
24412 cat conftest.s >&5
24414 rm -f conftest.o conftest.s
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24418 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24419 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24421 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24424 # Test if the assembler supports the extended form of the .section
24425 # directive that specifies section alignment. LTO support uses this,
24426 # but normally only after installation, so we warn but don't fail the
24427 # configure if LTO is enabled but the assembler does not support it.
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24429 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24430 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24431 $as_echo_n "(cached) " >&6
24432 else
24433 gcc_cv_as_section_has_align=no
24434 if test $in_tree_gas = yes; then
24435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24436 then gcc_cv_as_section_has_align=yes
24438 elif test x$gcc_cv_as != x; then
24439 $as_echo '.section lto_test,"dr0"' > conftest.s
24440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24442 (eval $ac_try) 2>&5
24443 ac_status=$?
24444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24445 test $ac_status = 0; }; }
24446 then
24447 gcc_cv_as_section_has_align=yes
24448 else
24449 echo "configure: failed program was" >&5
24450 cat conftest.s >&5
24452 rm -f conftest.o conftest.s
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24456 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24458 if test x$gcc_cv_as_section_has_align != xyes; then
24459 case ",$enable_languages," in
24460 *,lto,*)
24461 { $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
24462 $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;}
24464 esac
24466 # Test if the assembler supports the section flag 'e' for specifying
24467 # an excluded section.
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24469 $as_echo_n "checking assembler for .section with e... " >&6; }
24470 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24472 else
24473 gcc_cv_as_section_has_e=no
24474 if test $in_tree_gas = yes; then
24475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24476 then gcc_cv_as_section_has_e=yes
24478 elif test x$gcc_cv_as != x; then
24479 $as_echo '.section foo1,"e"
24480 .byte 0,0,0,0' > conftest.s
24481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486 test $ac_status = 0; }; }
24487 then
24488 gcc_cv_as_section_has_e=yes
24489 else
24490 echo "configure: failed program was" >&5
24491 cat conftest.s >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24497 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24500 cat >>confdefs.h <<_ACEOF
24501 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24502 _ACEOF
24505 esac
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24508 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24509 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24510 $as_echo_n "(cached) " >&6
24511 else
24512 gcc_cv_as_ix86_filds=no
24513 if test x$gcc_cv_as != x; then
24514 $as_echo 'filds mem; fists mem' > conftest.s
24515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24518 ac_status=$?
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24521 then
24522 gcc_cv_as_ix86_filds=yes
24523 else
24524 echo "configure: failed program was" >&5
24525 cat conftest.s >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24531 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24532 if test $gcc_cv_as_ix86_filds = yes; then
24534 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24539 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24540 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24542 else
24543 gcc_cv_as_ix86_fildq=no
24544 if test x$gcc_cv_as != x; then
24545 $as_echo 'fildq mem; fistpq mem' > conftest.s
24546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24552 then
24553 gcc_cv_as_ix86_fildq=yes
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24562 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24563 if test $gcc_cv_as_ix86_fildq = yes; then
24565 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24570 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24571 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_ix86_cmov_sun_syntax=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24580 ac_status=$?
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24583 then
24584 gcc_cv_as_ix86_cmov_sun_syntax=yes
24585 else
24586 echo "configure: failed program was" >&5
24587 cat conftest.s >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24593 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24594 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24596 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24601 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24602 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 gcc_cv_as_ix86_ffreep=no
24606 if test x$gcc_cv_as != x; then
24607 $as_echo 'ffreep %st(1)' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_ix86_ffreep=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24624 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24625 if test $gcc_cv_as_ix86_ffreep = yes; then
24627 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24632 $as_echo_n "checking assembler for .quad directive... " >&6; }
24633 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24636 gcc_cv_as_ix86_quad=no
24637 if test x$gcc_cv_as != x; then
24638 $as_echo '.quad 0' > conftest.s
24639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644 test $ac_status = 0; }; }
24645 then
24646 gcc_cv_as_ix86_quad=yes
24647 else
24648 echo "configure: failed program was" >&5
24649 cat conftest.s >&5
24651 rm -f conftest.o conftest.s
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24655 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24656 if test $gcc_cv_as_ix86_quad = yes; then
24658 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24663 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24664 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24666 else
24667 gcc_cv_as_ix86_sahf=no
24668 if test x$gcc_cv_as != x; then
24669 $as_echo '.code64
24670 sahf' > conftest.s
24671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }
24677 then
24678 gcc_cv_as_ix86_sahf=yes
24679 else
24680 echo "configure: failed program was" >&5
24681 cat conftest.s >&5
24683 rm -f conftest.o conftest.s
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24687 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24688 if test $gcc_cv_as_ix86_sahf = yes; then
24690 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24695 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24696 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24697 $as_echo_n "(cached) " >&6
24698 else
24699 gcc_cv_as_ix86_hle=no
24700 if test x$gcc_cv_as != x; then
24701 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24704 (eval $ac_try) 2>&5
24705 ac_status=$?
24706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24707 test $ac_status = 0; }; }
24708 then
24709 gcc_cv_as_ix86_hle=yes
24710 else
24711 echo "configure: failed program was" >&5
24712 cat conftest.s >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24718 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24719 if test $gcc_cv_as_ix86_hle = yes; then
24721 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24726 $as_echo_n "checking assembler for swap suffix... " >&6; }
24727 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 gcc_cv_as_ix86_swap=no
24731 if test x$gcc_cv_as != x; then
24732 $as_echo 'movl.s %esp, %ebp' > conftest.s
24733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24739 then
24740 gcc_cv_as_ix86_swap=yes
24741 else
24742 echo "configure: failed program was" >&5
24743 cat conftest.s >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24749 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24750 if test $gcc_cv_as_ix86_swap = yes; then
24752 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24757 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24758 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24759 $as_echo_n "(cached) " >&6
24760 else
24761 gcc_cv_as_ix86_diff_sect_delta=no
24762 if test x$gcc_cv_as != x; then
24763 $as_echo '.section .rodata
24764 .L1:
24765 .long .L2-.L1
24766 .long .L3-.L1
24767 .text
24768 .L3: nop
24769 .L2: nop' > conftest.s
24770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24776 then
24777 gcc_cv_as_ix86_diff_sect_delta=yes
24778 else
24779 echo "configure: failed program was" >&5
24780 cat conftest.s >&5
24782 rm -f conftest.o conftest.s
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24786 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24787 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24789 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24793 # These two are used unconditionally by i386.[ch]; it is to be defined
24794 # to 1 if the feature is present, 0 otherwise.
24795 as_ix86_gotoff_in_data_opt=
24796 if test x$gas = xyes; then
24797 as_ix86_gotoff_in_data_opt="--32"
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24800 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24801 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24802 $as_echo_n "(cached) " >&6
24803 else
24804 gcc_cv_as_ix86_gotoff_in_data=no
24805 if test $in_tree_gas = yes; then
24806 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24807 then gcc_cv_as_ix86_gotoff_in_data=yes
24809 elif test x$gcc_cv_as != x; then
24810 $as_echo ' .text
24811 .L0:
24813 .data
24814 .long .L0@GOTOFF' > conftest.s
24815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24821 then
24822 gcc_cv_as_ix86_gotoff_in_data=yes
24823 else
24824 echo "configure: failed program was" >&5
24825 cat conftest.s >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24831 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24834 cat >>confdefs.h <<_ACEOF
24835 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24836 _ACEOF
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24840 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24841 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24842 $as_echo_n "(cached) " >&6
24843 else
24844 gcc_cv_as_ix86_rep_lock_prefix=no
24845 if test x$gcc_cv_as != x; then
24846 $as_echo 'rep movsl
24847 rep ret
24848 rep nop
24849 rep bsf %ecx, %eax
24850 rep bsr %ecx, %eax
24851 lock addl %edi, (%eax,%esi)
24852 lock orl $0, (%esp)' > conftest.s
24853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24859 then
24860 gcc_cv_as_ix86_rep_lock_prefix=yes
24861 else
24862 echo "configure: failed program was" >&5
24863 cat conftest.s >&5
24865 rm -f conftest.o conftest.s
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24869 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24870 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24872 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24877 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24878 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24879 $as_echo_n "(cached) " >&6
24880 else
24881 gcc_cv_as_ix86_ud2=no
24882 if test x$gcc_cv_as != x; then
24883 $as_echo 'ud2' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 gcc_cv_as_ix86_ud2=yes
24892 else
24893 echo "configure: failed program was" >&5
24894 cat conftest.s >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
24900 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
24901 if test $gcc_cv_as_ix86_ud2 = yes; then
24903 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24908 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24909 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24912 gcc_cv_as_ix86_tlsgdplt=no
24913 if test x$gcc_cv_as != x; then
24914 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24921 then
24922 if test x$gcc_cv_ld != x \
24923 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24924 gcc_cv_as_ix86_tlsgdplt=yes
24926 rm -f conftest
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24935 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24936 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24938 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24943 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24944 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24945 $as_echo_n "(cached) " >&6
24946 else
24947 gcc_cv_as_ix86_tlsldmplt=no
24948 if test x$gcc_cv_as != x; then
24949 $as_echo 'tls_ld:
24950 call tls_ld@tlsldmplt' > conftest.s
24951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24953 (eval $ac_try) 2>&5
24954 ac_status=$?
24955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24956 test $ac_status = 0; }; }
24957 then
24958 if test x$gcc_cv_ld != x \
24959 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24960 gcc_cv_as_ix86_tlsldmplt=yes
24962 rm -f conftest
24963 else
24964 echo "configure: failed program was" >&5
24965 cat conftest.s >&5
24967 rm -f conftest.o conftest.s
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24971 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24972 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24974 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24980 ia64*-*-*)
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24982 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24983 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24987 if test $in_tree_gas = yes; then
24988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24989 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24991 elif test x$gcc_cv_as != x; then
24992 $as_echo ' .text
24993 addl r15 = @ltoffx(x#), gp
24995 ld8.mov r16 = [r15], x#' > conftest.s
24996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25002 then
25003 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25004 else
25005 echo "configure: failed program was" >&5
25006 cat conftest.s >&5
25008 rm -f conftest.o conftest.s
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25012 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25013 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25015 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25021 powerpc*-*-*)
25022 case $target in
25023 *-*-aix*) conftest_s=' .machine "pwr5"
25024 .csect .text[PR]
25025 mfcr 3,128';;
25026 *-*-darwin*)
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25028 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25029 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25030 $as_echo_n "(cached) " >&6
25031 else
25032 gcc_cv_as_machine_directive=no
25033 if test x$gcc_cv_as != x; then
25034 $as_echo ' .machine ppc7400' > conftest.s
25035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }
25041 then
25042 gcc_cv_as_machine_directive=yes
25043 else
25044 echo "configure: failed program was" >&5
25045 cat conftest.s >&5
25047 rm -f conftest.o conftest.s
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25051 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25053 if test x$gcc_cv_as_machine_directive != xyes; then
25054 echo "*** This target requires an assembler supporting \".machine\"" >&2
25055 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25056 test x$build = x$target && exit 1
25058 conftest_s=' .text
25059 mfcr r3,128';;
25060 *) conftest_s=' .machine power4
25061 .text
25062 mfcr 3,128';;
25063 esac
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25066 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25067 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25068 $as_echo_n "(cached) " >&6
25069 else
25070 gcc_cv_as_powerpc_mfcrf=no
25071 if test $in_tree_gas = yes; then
25072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25073 then gcc_cv_as_powerpc_mfcrf=yes
25075 elif test x$gcc_cv_as != x; then
25076 $as_echo "$conftest_s" > conftest.s
25077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079 (eval $ac_try) 2>&5
25080 ac_status=$?
25081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; }
25083 then
25084 gcc_cv_as_powerpc_mfcrf=yes
25085 else
25086 echo "configure: failed program was" >&5
25087 cat conftest.s >&5
25089 rm -f conftest.o conftest.s
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25093 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25094 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25096 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25100 case $target in
25101 *-*-aix*) conftest_s=' .machine "pwr5"
25102 .csect .text[PR]
25103 popcntb 3,3';;
25104 *) conftest_s=' .machine power5
25105 .text
25106 popcntb 3,3';;
25107 esac
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25110 $as_echo_n "checking assembler for popcntb support... " >&6; }
25111 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25113 else
25114 gcc_cv_as_powerpc_popcntb=no
25115 if test $in_tree_gas = yes; then
25116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25117 then gcc_cv_as_powerpc_popcntb=yes
25119 elif test x$gcc_cv_as != x; then
25120 $as_echo "$conftest_s" > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_powerpc_popcntb=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25137 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25138 if test $gcc_cv_as_powerpc_popcntb = yes; then
25140 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25144 case $target in
25145 *-*-aix*) conftest_s=' .machine "pwr5x"
25146 .csect .text[PR]
25147 frin 1,1';;
25148 *) conftest_s=' .machine power5
25149 .text
25150 frin 1,1';;
25151 esac
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25154 $as_echo_n "checking assembler for fp round support... " >&6; }
25155 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25156 $as_echo_n "(cached) " >&6
25157 else
25158 gcc_cv_as_powerpc_fprnd=no
25159 if test $in_tree_gas = yes; then
25160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25161 then gcc_cv_as_powerpc_fprnd=yes
25163 elif test x$gcc_cv_as != x; then
25164 $as_echo "$conftest_s" > conftest.s
25165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25170 test $ac_status = 0; }; }
25171 then
25172 gcc_cv_as_powerpc_fprnd=yes
25173 else
25174 echo "configure: failed program was" >&5
25175 cat conftest.s >&5
25177 rm -f conftest.o conftest.s
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25181 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25182 if test $gcc_cv_as_powerpc_fprnd = yes; then
25184 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25188 case $target in
25189 *-*-aix*) conftest_s=' .machine "pwr6"
25190 .csect .text[PR]
25191 mffgpr 1,3';;
25192 *) conftest_s=' .machine power6
25193 .text
25194 mffgpr 1,3';;
25195 esac
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25198 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25199 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25200 $as_echo_n "(cached) " >&6
25201 else
25202 gcc_cv_as_powerpc_mfpgpr=no
25203 if test $in_tree_gas = yes; then
25204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25205 then gcc_cv_as_powerpc_mfpgpr=yes
25207 elif test x$gcc_cv_as != x; then
25208 $as_echo "$conftest_s" > conftest.s
25209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25215 then
25216 gcc_cv_as_powerpc_mfpgpr=yes
25217 else
25218 echo "configure: failed program was" >&5
25219 cat conftest.s >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25225 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25226 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25228 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25232 case $target in
25233 *-*-aix*) conftest_s=' .csect .text[PR]
25234 LCF..0:
25235 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25236 *-*-darwin*)
25237 conftest_s=' .text
25238 LCF0:
25239 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25240 *) conftest_s=' .text
25241 .LCF0:
25242 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25243 esac
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25246 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25247 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 gcc_cv_as_powerpc_rel16=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25253 then gcc_cv_as_powerpc_rel16=yes
25255 elif test x$gcc_cv_as != x; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 gcc_cv_as_powerpc_rel16=yes
25265 else
25266 echo "configure: failed program was" >&5
25267 cat conftest.s >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25273 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25274 if test $gcc_cv_as_powerpc_rel16 = yes; then
25276 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25280 case $target in
25281 *-*-aix*) conftest_s=' .machine "pwr6"
25282 .csect .text[PR]
25283 cmpb 3,4,5';;
25284 *) conftest_s=' .machine power6
25285 .text
25286 cmpb 3,4,5';;
25287 esac
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25290 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25291 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 gcc_cv_as_powerpc_cmpb=no
25295 if test $in_tree_gas = yes; then
25296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25297 then gcc_cv_as_powerpc_cmpb=yes
25299 elif test x$gcc_cv_as != x; then
25300 $as_echo "$conftest_s" > conftest.s
25301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25306 test $ac_status = 0; }; }
25307 then
25308 gcc_cv_as_powerpc_cmpb=yes
25309 else
25310 echo "configure: failed program was" >&5
25311 cat conftest.s >&5
25313 rm -f conftest.o conftest.s
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25317 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25318 if test $gcc_cv_as_powerpc_cmpb = yes; then
25320 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25324 case $target in
25325 *-*-aix*) conftest_s=' .machine "pwr6"
25326 .csect .text[PR]
25327 dadd 1,2,3';;
25328 *) conftest_s=' .machine power6
25329 .text
25330 dadd 1,2,3';;
25331 esac
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25334 $as_echo_n "checking assembler for decimal float support... " >&6; }
25335 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25336 $as_echo_n "(cached) " >&6
25337 else
25338 gcc_cv_as_powerpc_dfp=no
25339 if test $in_tree_gas = yes; then
25340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25341 then gcc_cv_as_powerpc_dfp=yes
25343 elif test x$gcc_cv_as != x; then
25344 $as_echo "$conftest_s" > conftest.s
25345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25351 then
25352 gcc_cv_as_powerpc_dfp=yes
25353 else
25354 echo "configure: failed program was" >&5
25355 cat conftest.s >&5
25357 rm -f conftest.o conftest.s
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25361 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25362 if test $gcc_cv_as_powerpc_dfp = yes; then
25364 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25368 case $target in
25369 *-*-aix*) conftest_s=' .machine "pwr7"
25370 .csect .text[PR]
25371 lxvd2x 1,2,3';;
25372 *) conftest_s=' .machine power7
25373 .text
25374 lxvd2x 1,2,3';;
25375 esac
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25378 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25379 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25380 $as_echo_n "(cached) " >&6
25381 else
25382 gcc_cv_as_powerpc_vsx=no
25383 if test $in_tree_gas = yes; then
25384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25385 then gcc_cv_as_powerpc_vsx=yes
25387 elif test x$gcc_cv_as != x; then
25388 $as_echo "$conftest_s" > conftest.s
25389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25394 test $ac_status = 0; }; }
25395 then
25396 gcc_cv_as_powerpc_vsx=yes
25397 else
25398 echo "configure: failed program was" >&5
25399 cat conftest.s >&5
25401 rm -f conftest.o conftest.s
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25405 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25406 if test $gcc_cv_as_powerpc_vsx = yes; then
25408 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25412 case $target in
25413 *-*-aix*) conftest_s=' .machine "pwr7"
25414 .csect .text[PR]
25415 popcntd 3,3';;
25416 *) conftest_s=' .machine power7
25417 .text
25418 popcntd 3,3';;
25419 esac
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25422 $as_echo_n "checking assembler for popcntd support... " >&6; }
25423 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_powerpc_popcntd=no
25427 if test $in_tree_gas = yes; then
25428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25429 then gcc_cv_as_powerpc_popcntd=yes
25431 elif test x$gcc_cv_as != x; then
25432 $as_echo "$conftest_s" > conftest.s
25433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438 test $ac_status = 0; }; }
25439 then
25440 gcc_cv_as_powerpc_popcntd=yes
25441 else
25442 echo "configure: failed program was" >&5
25443 cat conftest.s >&5
25445 rm -f conftest.o conftest.s
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25449 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25450 if test $gcc_cv_as_powerpc_popcntd = yes; then
25452 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25456 case $target in
25457 *-*-aix*) conftest_s=' .machine "pwr8"
25458 .csect .text[PR]';;
25459 *) conftest_s=' .machine power8
25460 .text';;
25461 esac
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25464 $as_echo_n "checking assembler for power8 support... " >&6; }
25465 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_powerpc_power8=no
25469 if test $in_tree_gas = yes; then
25470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25471 then gcc_cv_as_powerpc_power8=yes
25473 elif test x$gcc_cv_as != x; then
25474 $as_echo "$conftest_s" > conftest.s
25475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }; }
25481 then
25482 gcc_cv_as_powerpc_power8=yes
25483 else
25484 echo "configure: failed program was" >&5
25485 cat conftest.s >&5
25487 rm -f conftest.o conftest.s
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25491 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25492 if test $gcc_cv_as_powerpc_power8 = yes; then
25494 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25498 case $target in
25499 *-*-aix*) conftest_s=' .csect .text[PR]
25500 lwsync';;
25501 *) conftest_s=' .text
25502 lwsync';;
25503 esac
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25506 $as_echo_n "checking assembler for lwsync support... " >&6; }
25507 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25508 $as_echo_n "(cached) " >&6
25509 else
25510 gcc_cv_as_powerpc_lwsync=no
25511 if test $in_tree_gas = yes; then
25512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25513 then gcc_cv_as_powerpc_lwsync=yes
25515 elif test x$gcc_cv_as != x; then
25516 $as_echo "$conftest_s" > conftest.s
25517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25522 test $ac_status = 0; }; }
25523 then
25524 gcc_cv_as_powerpc_lwsync=yes
25525 else
25526 echo "configure: failed program was" >&5
25527 cat conftest.s >&5
25529 rm -f conftest.o conftest.s
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25533 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25534 if test $gcc_cv_as_powerpc_lwsync = yes; then
25536 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25540 case $target in
25541 *-*-aix*) conftest_s=' .machine "476"
25542 .csect .text[PR]
25543 dci 0';;
25544 *) conftest_s=' .machine "476"
25545 .text
25546 dci 0';;
25547 esac
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25550 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25551 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25553 else
25554 gcc_cv_as_powerpc_dci=no
25555 if test $in_tree_gas = yes; then
25556 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25557 then gcc_cv_as_powerpc_dci=yes
25559 elif test x$gcc_cv_as != x; then
25560 $as_echo "$conftest_s" > conftest.s
25561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25567 then
25568 gcc_cv_as_powerpc_dci=yes
25569 else
25570 echo "configure: failed program was" >&5
25571 cat conftest.s >&5
25573 rm -f conftest.o conftest.s
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25577 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25578 if test $gcc_cv_as_powerpc_dci = yes; then
25580 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25585 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25586 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25587 $as_echo_n "(cached) " >&6
25588 else
25589 gcc_cv_as_powerpc_gnu_attribute=no
25590 if test $in_tree_gas = yes; then
25591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25592 then gcc_cv_as_powerpc_gnu_attribute=yes
25594 elif test x$gcc_cv_as != x; then
25595 $as_echo '.gnu_attribute 4,1' > conftest.s
25596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }
25602 then
25603 gcc_cv_as_powerpc_gnu_attribute=yes
25604 else
25605 echo "configure: failed program was" >&5
25606 cat conftest.s >&5
25608 rm -f conftest.o conftest.s
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25612 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25613 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25615 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25620 $as_echo_n "checking assembler for tls marker support... " >&6; }
25621 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25622 $as_echo_n "(cached) " >&6
25623 else
25624 gcc_cv_as_powerpc_tls_markers=no
25625 if test $in_tree_gas = yes; then
25626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25627 then gcc_cv_as_powerpc_tls_markers=yes
25629 elif test x$gcc_cv_as != x; then
25630 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633 (eval $ac_try) 2>&5
25634 ac_status=$?
25635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636 test $ac_status = 0; }; }
25637 then
25638 gcc_cv_as_powerpc_tls_markers=yes
25639 else
25640 echo "configure: failed program was" >&5
25641 cat conftest.s >&5
25643 rm -f conftest.o conftest.s
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25647 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25648 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25650 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25654 case $target in
25655 *-*-aix*)
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25657 $as_echo_n "checking assembler for .ref support... " >&6; }
25658 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25659 $as_echo_n "(cached) " >&6
25660 else
25661 gcc_cv_as_aix_ref=no
25662 if test $in_tree_gas = yes; then
25663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25664 then gcc_cv_as_aix_ref=yes
25666 elif test x$gcc_cv_as != x; then
25667 $as_echo ' .csect stuff[rw]
25668 stuff:
25669 .long 1
25670 .extern sym
25671 .ref sym
25672 ' > conftest.s
25673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25678 test $ac_status = 0; }; }
25679 then
25680 gcc_cv_as_aix_ref=yes
25681 else
25682 echo "configure: failed program was" >&5
25683 cat conftest.s >&5
25685 rm -f conftest.o conftest.s
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25689 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25690 if test $gcc_cv_as_aix_ref = yes; then
25692 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25696 esac
25699 mips*-*-*)
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25701 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25702 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25703 $as_echo_n "(cached) " >&6
25704 else
25705 gcc_cv_as_mips_explicit_relocs=no
25706 if test $in_tree_gas = yes; then
25707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25708 then gcc_cv_as_mips_explicit_relocs=yes
25710 elif test x$gcc_cv_as != x; then
25711 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }
25718 then
25719 gcc_cv_as_mips_explicit_relocs=yes
25720 else
25721 echo "configure: failed program was" >&5
25722 cat conftest.s >&5
25724 rm -f conftest.o conftest.s
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25728 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25729 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25730 if test x$target_cpu_default = x
25731 then target_cpu_default=MASK_EXPLICIT_RELOCS
25732 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25736 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25737 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25739 else
25740 gcc_cv_as_mips_no_shared=no
25741 if test $in_tree_gas = yes; then
25742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25743 then gcc_cv_as_mips_no_shared=yes
25745 elif test x$gcc_cv_as != x; then
25746 $as_echo 'nop' > conftest.s
25747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25753 then
25754 gcc_cv_as_mips_no_shared=yes
25755 else
25756 echo "configure: failed program was" >&5
25757 cat conftest.s >&5
25759 rm -f conftest.o conftest.s
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25763 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25764 if test $gcc_cv_as_mips_no_shared = yes; then
25766 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25771 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25772 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25773 $as_echo_n "(cached) " >&6
25774 else
25775 gcc_cv_as_mips_gnu_attribute=no
25776 if test $in_tree_gas = yes; then
25777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25778 then gcc_cv_as_mips_gnu_attribute=yes
25780 elif test x$gcc_cv_as != x; then
25781 $as_echo '.gnu_attribute 4,1' > conftest.s
25782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25788 then
25789 gcc_cv_as_mips_gnu_attribute=yes
25790 else
25791 echo "configure: failed program was" >&5
25792 cat conftest.s >&5
25794 rm -f conftest.o conftest.s
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25798 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25799 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25801 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25806 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25807 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25808 $as_echo_n "(cached) " >&6
25809 else
25810 gcc_cv_as_mips_dtprelword=no
25811 if test $in_tree_gas = yes; then
25812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25813 then gcc_cv_as_mips_dtprelword=yes
25815 elif test x$gcc_cv_as != x; then
25816 $as_echo '.section .tdata,"awT",@progbits
25818 .word 2
25819 .text
25820 .dtprelword x+0x8000' > conftest.s
25821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25823 (eval $ac_try) 2>&5
25824 ac_status=$?
25825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25826 test $ac_status = 0; }; }
25827 then
25828 gcc_cv_as_mips_dtprelword=yes
25829 else
25830 echo "configure: failed program was" >&5
25831 cat conftest.s >&5
25833 rm -f conftest.o conftest.s
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25837 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25838 if test $gcc_cv_as_mips_dtprelword = yes; then
25840 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25845 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25846 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25849 gcc_cv_as_mips_dspr1_mult=no
25850 if test x$gcc_cv_as != x; then
25851 $as_echo ' .set mips32r2
25852 .set nodspr2
25853 .set dsp
25854 madd $ac3,$4,$5
25855 maddu $ac3,$4,$5
25856 msub $ac3,$4,$5
25857 msubu $ac3,$4,$5
25858 mult $ac3,$4,$5
25859 multu $ac3,$4,$5' > conftest.s
25860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25862 (eval $ac_try) 2>&5
25863 ac_status=$?
25864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25865 test $ac_status = 0; }; }
25866 then
25867 gcc_cv_as_mips_dspr1_mult=yes
25868 else
25869 echo "configure: failed program was" >&5
25870 cat conftest.s >&5
25872 rm -f conftest.o conftest.s
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25876 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25877 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25879 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25884 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25885 gcc_cv_as_ld_jalr_reloc=no
25886 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25887 if test $in_tree_ld = yes ; then
25888 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 \
25889 && test $in_tree_ld_is_elf = yes; then
25890 gcc_cv_as_ld_jalr_reloc=yes
25892 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25893 echo ' .ent x' > conftest.s
25894 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25895 echo ' ld $25,%call16(y)($28)' >> conftest.s
25896 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25897 echo '1: jalr $25' >> conftest.s
25898 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25899 echo '1: jalr $25' >> conftest.s
25900 echo ' .end x' >> conftest.s
25901 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25902 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25903 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25904 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25905 gcc_cv_as_ld_jalr_reloc=yes
25908 rm -f conftest.*
25911 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25912 if test x$target_cpu_default = x; then
25913 target_cpu_default=MASK_RELAX_PIC_CALLS
25914 else
25915 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25919 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25922 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25923 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25924 $as_echo_n "(cached) " >&6
25925 else
25926 gcc_cv_ld_mips_personality_relaxation=no
25927 if test $in_tree_ld = yes ; then
25928 if test "$gcc_cv_gld_major_version" -eq 2 \
25929 -a "$gcc_cv_gld_minor_version" -ge 21 \
25930 -o "$gcc_cv_gld_major_version" -gt 2; then
25931 gcc_cv_ld_mips_personality_relaxation=yes
25933 elif test x$gcc_cv_as != x \
25934 -a x$gcc_cv_ld != x \
25935 -a x$gcc_cv_readelf != x ; then
25936 cat > conftest.s <<EOF
25937 .cfi_startproc
25938 .cfi_personality 0x80,indirect_ptr
25939 .ent test
25940 test:
25942 .end test
25943 .cfi_endproc
25945 .section .data,"aw",@progbits
25946 indirect_ptr:
25947 .dc.a personality
25949 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25950 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25951 if $gcc_cv_readelf -d conftest 2>&1 \
25952 | grep TEXTREL > /dev/null 2>&1; then
25954 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25955 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25957 else
25958 gcc_cv_ld_mips_personality_relaxation=yes
25962 rm -f conftest.s conftest.o conftest
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25965 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25966 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25968 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25972 esac
25974 # Mips and HP-UX need the GNU assembler.
25975 # Linux on IA64 might be able to use the Intel assembler.
25977 case "$target" in
25978 mips*-*-* | *-*-hpux* )
25979 if test x$gas_flag = xyes \
25980 || test x"$host" != x"$build" \
25981 || test ! -x "$gcc_cv_as" \
25982 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25984 else
25985 echo "*** This configuration requires the GNU assembler" >&2
25986 exit 1
25989 esac
25991 # ??? Not all targets support dwarf2 debug_line, even within a version
25992 # of gas. Moreover, we need to emit a valid instruction to trigger any
25993 # info to the output file. So, as supported targets are added to gas 2.11,
25994 # add some instruction here to (also) show we expect this might work.
25995 # ??? Once 2.11 is released, probably need to add first known working
25996 # version to the per-target configury.
25997 case "$cpu_type" in
25998 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25999 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26000 insn="nop"
26002 ia64 | s390)
26003 insn="nop 0"
26005 mmix)
26006 insn="swym 0"
26008 esac
26009 if test x"$insn" != x; then
26010 conftest_s="\
26011 .file 1 \"conftest.s\"
26012 .loc 1 3 0
26013 $insn"
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26015 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26016 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26019 gcc_cv_as_dwarf2_debug_line=no
26020 if test $in_tree_gas = yes; then
26021 if test $in_tree_gas_is_elf = yes \
26022 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26023 then gcc_cv_as_dwarf2_debug_line=yes
26025 elif test x$gcc_cv_as != x; then
26026 $as_echo "$conftest_s" > conftest.s
26027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26032 test $ac_status = 0; }; }
26033 then
26034 if test x$gcc_cv_objdump != x \
26035 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26036 | grep debug_line > /dev/null 2>&1; then
26037 gcc_cv_as_dwarf2_debug_line=yes
26039 else
26040 echo "configure: failed program was" >&5
26041 cat conftest.s >&5
26043 rm -f conftest.o conftest.s
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26047 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26050 # The .debug_line file table must be in the exact order that
26051 # we specified the files, since these indices are also used
26052 # by DW_AT_decl_file. Approximate this test by testing if
26053 # the assembler bitches if the same index is assigned twice.
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26055 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26056 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26057 $as_echo_n "(cached) " >&6
26058 else
26059 gcc_cv_as_dwarf2_file_buggy=no
26060 if test x$gcc_cv_as != x; then
26061 $as_echo ' .file 1 "foo.s"
26062 .file 1 "bar.s"' > conftest.s
26063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
26067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26068 test $ac_status = 0; }; }
26069 then
26070 gcc_cv_as_dwarf2_file_buggy=yes
26071 else
26072 echo "configure: failed program was" >&5
26073 cat conftest.s >&5
26075 rm -f conftest.o conftest.s
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26079 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26082 if test $gcc_cv_as_dwarf2_debug_line = yes \
26083 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26085 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26090 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26091 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26092 $as_echo_n "(cached) " >&6
26093 else
26094 gcc_cv_as_gdwarf2_flag=no
26095 if test $in_tree_gas = yes; then
26096 if test $in_tree_gas_is_elf = yes \
26097 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26098 then gcc_cv_as_gdwarf2_flag=yes
26100 elif test x$gcc_cv_as != x; then
26101 $as_echo "$insn" > conftest.s
26102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26104 (eval $ac_try) 2>&5
26105 ac_status=$?
26106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26107 test $ac_status = 0; }; }
26108 then
26109 gcc_cv_as_gdwarf2_flag=yes
26110 else
26111 echo "configure: failed program was" >&5
26112 cat conftest.s >&5
26114 rm -f conftest.o conftest.s
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26118 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26119 if test $gcc_cv_as_gdwarf2_flag = yes; then
26121 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26126 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26127 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26128 $as_echo_n "(cached) " >&6
26129 else
26130 gcc_cv_as_gstabs_flag=no
26131 if test $in_tree_gas = yes; then
26132 if test $in_tree_gas_is_elf = yes \
26133 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26134 then gcc_cv_as_gstabs_flag=yes
26136 elif test x$gcc_cv_as != x; then
26137 $as_echo "$insn" > conftest.s
26138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26140 (eval $ac_try) 2>&5
26141 ac_status=$?
26142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26143 test $ac_status = 0; }; }
26144 then
26145 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26146 # and warns about it, but still exits successfully. So check for
26147 # this.
26148 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26150 (eval $ac_try) 2>&5
26151 ac_status=$?
26152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26153 test $ac_status = 0; }; }
26154 then :
26155 else gcc_cv_as_gstabs_flag=yes
26157 else
26158 echo "configure: failed program was" >&5
26159 cat conftest.s >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26165 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26166 if test $gcc_cv_as_gstabs_flag = yes; then
26168 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26173 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26174 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26175 $as_echo_n "(cached) " >&6
26176 else
26177 gcc_cv_as_debug_prefix_map_flag=no
26178 if test $in_tree_gas = yes; then
26179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26180 then gcc_cv_as_debug_prefix_map_flag=yes
26182 elif test x$gcc_cv_as != x; then
26183 $as_echo "$insn" > conftest.s
26184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26189 test $ac_status = 0; }; }
26190 then
26191 gcc_cv_as_debug_prefix_map_flag=yes
26192 else
26193 echo "configure: failed program was" >&5
26194 cat conftest.s >&5
26196 rm -f conftest.o conftest.s
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26200 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26201 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26203 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26209 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26210 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26212 else
26213 gcc_cv_as_lcomm_with_alignment=no
26214 if test x$gcc_cv_as != x; then
26215 $as_echo '.lcomm bar,4,16' > conftest.s
26216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26222 then
26223 gcc_cv_as_lcomm_with_alignment=yes
26224 else
26225 echo "configure: failed program was" >&5
26226 cat conftest.s >&5
26228 rm -f conftest.o conftest.s
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26232 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26233 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26235 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26239 # Check whether --enable-gnu-unique-object was given.
26240 if test "${enable_gnu_unique_object+set}" = set; then :
26241 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26242 yes | no) ;;
26243 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26244 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26245 esac
26246 else
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26248 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26249 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26252 gcc_cv_as_gnu_unique_object=no
26253 if test $in_tree_gas = yes; then
26254 if test $in_tree_gas_is_elf = yes \
26255 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26256 then gcc_cv_as_gnu_unique_object=yes
26258 elif test x$gcc_cv_as != x; then
26259 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26265 test $ac_status = 0; }; }
26266 then
26267 gcc_cv_as_gnu_unique_object=yes
26268 else
26269 echo "configure: failed program was" >&5
26270 cat conftest.s >&5
26272 rm -f conftest.o conftest.s
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26276 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26277 if test $gcc_cv_as_gnu_unique_object = yes; then
26278 # We need to unquote above to to use the definition from config.gcc.
26279 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26280 if test x$host = x$build -a x$host = x$target &&
26281 ldd --version 2>/dev/null &&
26282 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26283 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26284 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26285 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26286 if test "$glibcnum" -ge 2011 ; then
26287 enable_gnu_unique_object=yes
26293 if test x$enable_gnu_unique_object = xyes; then
26295 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26300 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26301 if test "${gcc_cv_as_line_zero+set}" = set; then :
26302 $as_echo_n "(cached) " >&6
26303 else
26304 gcc_cv_as_line_zero=no
26305 if test $in_tree_gas = yes; then
26306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26307 then gcc_cv_as_line_zero=yes
26309 elif test "x$gcc_cv_as" != x; then
26310 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26311 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26316 test $ac_status = 0; }; } &&
26317 test "x`cat conftest.out`" = x
26318 then
26319 gcc_cv_as_line_zero=yes
26320 else
26321 echo "configure: failed program was" >&5
26322 cat conftest.s >&5
26323 echo "configure: error output was" >&5
26324 cat conftest.out >&5
26326 rm -f conftest.o conftest.s conftest.out
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26330 $as_echo "$gcc_cv_as_line_zero" >&6; }
26331 if test "x$gcc_cv_as_line_zero" = xyes; then
26333 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26338 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26339 gcc_cv_ld_eh_frame_hdr=no
26340 if test $in_tree_ld = yes ; then
26341 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 \
26342 && test $in_tree_ld_is_elf = yes; then
26343 gcc_cv_ld_eh_frame_hdr=yes
26345 elif test x$gcc_cv_ld != x; then
26346 if echo "$ld_ver" | grep GNU > /dev/null; then
26347 # Check if linker supports --eh-frame-hdr option
26348 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26349 gcc_cv_ld_eh_frame_hdr=yes
26351 else
26352 case "$target" in
26353 *-*-solaris2*)
26354 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26355 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26356 gcc_cv_ld_eh_frame_hdr=yes
26359 esac
26363 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26365 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26369 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26372 $as_echo_n "checking linker position independent executable support... " >&6; }
26373 gcc_cv_ld_pie=no
26374 if test $in_tree_ld = yes ; then
26375 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 \
26376 && test $in_tree_ld_is_elf = yes; then
26377 gcc_cv_ld_pie=yes
26379 elif test x$gcc_cv_ld != x; then
26380 # Check if linker supports -pie option
26381 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26382 gcc_cv_ld_pie=yes
26385 if test x"$gcc_cv_ld_pie" = xyes; then
26387 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26391 $as_echo "$gcc_cv_ld_pie" >&6; }
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26394 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26395 gcc_cv_ld_eh_gc_sections=no
26396 if test $in_tree_ld = yes ; then
26397 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 \
26398 && test $in_tree_ld_is_elf = yes; then
26399 gcc_cv_ld_eh_gc_sections=yes
26401 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26402 cat > conftest.s <<EOF
26403 .section .text
26404 .globl _start
26405 .type _start, @function
26406 _start:
26407 .long foo
26408 .size _start, .-_start
26409 .section .text.foo,"ax",@progbits
26410 .type foo, @function
26411 foo:
26412 .long 0
26413 .size foo, .-foo
26414 .section .gcc_except_table.foo,"a",@progbits
26415 .L0:
26416 .long 0
26417 .section .eh_frame,"a",@progbits
26418 .long .L0
26420 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26421 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26422 | grep "gc-sections option ignored" > /dev/null; then
26423 gcc_cv_ld_eh_gc_sections=no
26424 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26425 | grep gcc_except_table > /dev/null; then
26426 gcc_cv_ld_eh_gc_sections=yes
26427 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26428 if test x$gcc_cv_as_comdat_group != xyes; then
26429 gcc_cv_ld_eh_gc_sections=no
26430 cat > conftest.s <<EOF
26431 .section .text
26432 .globl _start
26433 .type _start, @function
26434 _start:
26435 .long foo
26436 .size _start, .-_start
26437 .section .gnu.linkonce.t.foo,"ax",@progbits
26438 .type foo, @function
26439 foo:
26440 .long 0
26441 .size foo, .-foo
26442 .section .gcc_except_table.foo,"a",@progbits
26443 .L0:
26444 .long 0
26445 .section .eh_frame,"a",@progbits
26446 .long .L0
26448 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26449 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26450 | grep "gc-sections option ignored" > /dev/null; then
26451 gcc_cv_ld_eh_gc_sections=no
26452 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26453 | grep gcc_except_table > /dev/null; then
26454 gcc_cv_ld_eh_gc_sections=yes
26460 rm -f conftest.s conftest.o conftest
26462 case "$target" in
26463 hppa*-*-linux*)
26464 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26465 gcc_cv_ld_eh_gc_sections=no
26467 esac
26468 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26470 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26474 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26477 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26478 gcc_cv_ld_eh_gc_sections_bug=no
26479 if test $in_tree_ld = yes ; then
26480 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 \
26481 && test $in_tree_ld_is_elf = yes; then
26482 gcc_cv_ld_eh_gc_sections_bug=yes
26484 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
26485 gcc_cv_ld_eh_gc_sections_bug=yes
26486 cat > conftest.s <<EOF
26487 .section .text
26488 .globl _start
26489 .type _start, @function
26490 _start:
26491 .long foo
26492 .size _start, .-_start
26493 .section .text.startup.foo,"ax",@progbits
26494 .type foo, @function
26495 foo:
26496 .long 0
26497 .size foo, .-foo
26498 .section .gcc_except_table.foo,"a",@progbits
26499 .L0:
26500 .long 0
26501 .section .eh_frame,"a",@progbits
26502 .long .L0
26504 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26505 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26506 | grep "gc-sections option ignored" > /dev/null; then
26508 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26509 | grep gcc_except_table > /dev/null; then
26510 gcc_cv_ld_eh_gc_sections_bug=no
26513 rm -f conftest.s conftest.o conftest
26515 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26517 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26521 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26523 # --------
26524 # UNSORTED
26525 # --------
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26528 $as_echo_n "checking linker --as-needed support... " >&6; }
26529 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26530 $as_echo_n "(cached) " >&6
26531 else
26532 gcc_cv_ld_as_needed=no
26533 if test $in_tree_ld = yes ; then
26534 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 \
26535 && test $in_tree_ld_is_elf = yes; then
26536 gcc_cv_ld_as_needed=yes
26538 elif test x$gcc_cv_ld != x; then
26539 # Check if linker supports --as-needed and --no-as-needed options
26540 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26541 gcc_cv_ld_as_needed=yes
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26547 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26548 if test x"$gcc_cv_ld_as_needed" = xyes; then
26550 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26554 case "$target:$tm_file" in
26555 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26556 case "$target" in
26557 *le-*-linux*)
26558 emul_name="-melf64lppc"
26560 *-*-linux*)
26561 emul_name="-melf64ppc"
26563 *-*-freebsd*)
26564 emul_name="-melf64ppc_fbsd"
26566 esac
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26568 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26569 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26570 $as_echo_n "(cached) " >&6
26571 else
26572 gcc_cv_ld_no_dot_syms=no
26573 if test x"$ld_is_gold" = xyes; then
26574 gcc_cv_ld_no_dot_syms=yes
26575 elif test $in_tree_ld = yes ; then
26576 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
26577 gcc_cv_ld_no_dot_syms=yes
26579 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26580 cat > conftest1.s <<EOF
26581 .text
26582 bl .foo
26584 cat > conftest2.s <<EOF
26585 .section ".opd","aw"
26586 .align 3
26587 .globl foo
26588 .type foo,@function
26589 foo:
26590 .quad .LEfoo,.TOC.@tocbase,0
26591 .text
26592 .LEfoo:
26594 .size foo,.-.LEfoo
26596 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26597 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26598 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26599 gcc_cv_ld_no_dot_syms=yes
26601 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26606 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26607 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26609 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26614 $as_echo_n "checking linker large toc support... " >&6; }
26615 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26616 $as_echo_n "(cached) " >&6
26617 else
26618 gcc_cv_ld_large_toc=no
26619 if test x"$ld_is_gold" = xyes; then
26620 gcc_cv_ld_large_toc=yes
26621 elif test $in_tree_ld = yes ; then
26622 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
26623 gcc_cv_ld_large_toc=yes
26625 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26626 cat > conftest.s <<EOF
26627 .section ".tbss","awT",@nobits
26628 .align 3
26629 ie0: .space 8
26630 .global _start
26631 .text
26632 _start:
26633 addis 9,13,ie0@got@tprel@ha
26634 ld 9,ie0@got@tprel@l(9)
26636 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26637 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26638 gcc_cv_ld_large_toc=yes
26640 rm -f conftest conftest.o conftest.s
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26645 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26646 if test x"$gcc_cv_ld_large_toc" = xyes; then
26648 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26652 esac
26654 case "$target" in
26655 *-*-aix*)
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26657 $as_echo_n "checking linker large toc support... " >&6; }
26658 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26660 else
26661 gcc_cv_ld_large_toc=no
26662 if test x$gcc_cv_as != x ; then
26663 cat > conftest.s <<EOF
26664 .toc
26665 LC..1:
26666 .tc a[TC],a[RW]
26667 .extern a[RW]
26668 .csect .text[PR]
26669 .largetoctest:
26670 addis 9,LC..1@u(2)
26671 ld 3,LC..1@l(9)
26673 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26674 gcc_cv_ld_large_toc=yes
26676 rm -f conftest conftest.o conftest.s
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26681 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26682 if test x"$gcc_cv_ld_large_toc" = xyes; then
26684 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26688 esac
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26691 $as_echo_n "checking linker --build-id support... " >&6; }
26692 if test "${gcc_cv_ld_buildid+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26694 else
26695 gcc_cv_ld_buildid=no
26696 if test $in_tree_ld = yes ; then
26697 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26698 "$gcc_cv_gld_minor_version" -ge 18 -o \
26699 "$gcc_cv_gld_major_version" -gt 2 \
26700 && test $in_tree_ld_is_elf = yes; then
26701 gcc_cv_ld_buildid=yes
26703 elif test x$gcc_cv_ld != x; then
26704 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26705 gcc_cv_ld_buildid=yes
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26710 $as_echo "$gcc_cv_ld_buildid" >&6; }
26711 if test x"$gcc_cv_ld_buildid" = xyes; then
26713 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26717 # Check whether --enable-linker-build-id was given.
26718 if test "${enable_linker_build_id+set}" = set; then :
26719 enableval=$enable_linker_build_id;
26720 else
26721 enable_linker_build_id=no
26725 if test x"$enable_linker_build_id" = xyes; then
26726 if test x"$gcc_cv_ld_buildid" = xyes; then
26728 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26730 else
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26732 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26736 # In binutils 2.21, GNU ld gained support for new emulations fully
26737 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26739 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26740 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26741 $as_echo_n "(cached) " >&6
26742 else
26743 gcc_cv_ld_sol2_emulation=no
26744 if test $in_tree_ld = yes ; then
26745 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26746 "$gcc_cv_gld_minor_version" -ge 21 -o \
26747 "$gcc_cv_gld_major_version" -gt 2 \
26748 && test $in_tree_ld_is_elf = yes; then
26749 gcc_cv_ld_sol2_emulation=yes
26751 elif test x$gcc_cv_ld != x; then
26752 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26753 grep _sol2 > /dev/null; then
26754 gcc_cv_ld_sol2_emulation=yes
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26759 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26760 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26762 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26767 $as_echo_n "checking linker --sysroot support... " >&6; }
26768 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26769 $as_echo_n "(cached) " >&6
26770 else
26771 gcc_cv_ld_sysroot=no
26772 if test $in_tree_ld = yes ; then
26773 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
26774 gcc_cv_ld_sysroot=yes
26776 elif test x$gcc_cv_ld != x; then
26777 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26778 gcc_cv_ld_sysroot=yes
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26783 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26784 if test x"$gcc_cv_ld_sysroot" = xyes; then
26786 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26790 if test x$with_sysroot = x && test x$host = x$target \
26791 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26792 && test "$prefix" != "NONE"; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define PREFIX_INCLUDE_DIR "$prefix/include"
26796 _ACEOF
26800 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26801 if test "x$with_headers" != x; then
26802 target_header_dir=$with_headers
26803 elif test "x$with_sysroot" = x; then
26804 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26805 elif test "x$with_build_sysroot" != "x"; then
26806 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26807 elif test "x$with_sysroot" = xyes; then
26808 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26809 else
26810 target_header_dir="${with_sysroot}${native_system_header_dir}"
26812 else
26813 target_header_dir=${native_system_header_dir}
26816 # Test for stack protector support in target C library.
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26818 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26819 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26820 $as_echo_n "(cached) " >&6
26821 else
26822 gcc_cv_libc_provides_ssp=no
26823 case "$target" in
26824 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26825 # glibc 2.4 and later provides __stack_chk_fail and
26826 # either __stack_chk_guard, or TLS access to stack guard canary.
26827 if test -f $target_header_dir/features.h \
26828 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26829 $target_header_dir/features.h > /dev/null; then
26830 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26831 $target_header_dir/features.h > /dev/null; then
26832 gcc_cv_libc_provides_ssp=yes
26833 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26834 $target_header_dir/features.h > /dev/null \
26835 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26836 $target_header_dir/features.h > /dev/null; then
26837 gcc_cv_libc_provides_ssp=yes
26838 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26839 $target_header_dir/features.h > /dev/null && \
26840 test -f $target_header_dir/bits/uClibc_config.h && \
26841 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26842 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26843 gcc_cv_libc_provides_ssp=yes
26845 # all versions of Bionic support stack protector
26846 elif test -f $target_header_dir/sys/cdefs.h \
26847 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26848 $target_header_dir/sys/cdefs.h > /dev/null; then
26849 gcc_cv_libc_provides_ssp=yes
26852 *-*-gnu*)
26853 # Avoid complicated tests (see
26854 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26855 # simply assert that glibc does provide this, which is true for all
26856 # realistically usable GNU/Hurd configurations.
26857 gcc_cv_libc_provides_ssp=yes;;
26858 *-*-darwin* | *-*-freebsd*)
26859 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26860 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26861 gcc_cv_libc_provides_ssp=yes
26862 else
26863 echo "no __stack_chk_fail on this target"
26867 *) gcc_cv_libc_provides_ssp=no ;;
26868 esac
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26871 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26873 if test x$gcc_cv_libc_provides_ssp = xyes; then
26875 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26879 # Test for <sys/sdt.h> on the target.
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26882 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26883 have_sys_sdt_h=no
26884 if test -f $target_header_dir/sys/sdt.h; then
26885 have_sys_sdt_h=yes
26887 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26891 $as_echo "$have_sys_sdt_h" >&6; }
26893 # Check if TFmode long double should be used by default or not.
26894 # Some glibc targets used DFmode long double, but with glibc 2.4
26895 # and later they can use TFmode.
26896 case "$target" in
26897 powerpc*-*-linux* | \
26898 sparc*-*-linux* | \
26899 s390*-*-linux* | \
26900 alpha*-*-linux*)
26902 # Check whether --with-long-double-128 was given.
26903 if test "${with_long_double_128+set}" = set; then :
26904 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26905 else
26906 gcc_cv_target_ldbl128=no
26907 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26908 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26909 && gcc_cv_target_ldbl128=yes
26914 esac
26915 if test x$gcc_cv_target_ldbl128 = xyes; then
26917 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26922 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26923 gcc_cv_target_dl_iterate_phdr=unknown
26924 case "$target" in
26925 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26926 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26927 # libdl there, both complicating its use and breaking compatibility
26928 # between Solaris 10 updates.
26929 *-*-solaris2.1[1-9]*)
26930 # <link.h> needs both a dl_iterate_phdr declaration and support for
26931 # compilation with largefile support.
26932 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26933 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26934 gcc_cv_target_dl_iterate_phdr=yes
26935 else
26936 gcc_cv_target_dl_iterate_phdr=no
26939 esac
26941 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26943 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26947 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26949 # We no longer support different GC mechanisms. Emit an error if
26950 # the user configures with --with-gc.
26952 # Check whether --with-gc was given.
26953 if test "${with_gc+set}" = set; then :
26954 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26958 # Libraries to use on the host. This will normally be set by the top
26959 # level Makefile. Here we simply capture the value for our Makefile.
26960 if test -z "${HOST_LIBS+set}"; then
26961 HOST_LIBS=
26965 # Use the system's zlib library.
26966 zlibdir=-L../zlib
26967 zlibinc="-I\$(srcdir)/../zlib"
26969 # Check whether --with-system-zlib was given.
26970 if test "${with_system_zlib+set}" = set; then :
26971 withval=$with_system_zlib; zlibdir=
26972 zlibinc=
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26981 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26982 # Check whether --enable-maintainer-mode was given.
26983 if test "${enable_maintainer_mode+set}" = set; then :
26984 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26985 else
26986 maintainer_mode=no
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26991 $as_echo "$maintainer_mode" >&6; }
26993 if test "$maintainer_mode" = "yes"; then
26994 MAINT=''
26995 else
26996 MAINT='#'
26999 # --------------
27000 # Language hooks
27001 # --------------
27003 # Make empty files to contain the specs and options for each language.
27004 # Then add #include lines to for a compiler that has specs and/or options.
27006 subdirs=
27007 lang_opt_files=
27008 lang_specs_files=
27009 lang_tree_files=
27010 # These (without "all_") are set in each config-lang.in.
27011 # `language' must be a single word so is spelled singularly.
27012 all_languages=
27013 all_compilers=
27014 all_outputs='Makefile'
27015 # List of language makefile fragments.
27016 all_lang_makefrags=
27017 # Additional files for gengtype
27018 all_gtfiles="$target_gtfiles"
27020 # These are the languages that are set in --enable-languages,
27021 # and are available in the GCC tree.
27022 all_selected_languages=
27024 # Add the language fragments.
27025 # Languages are added via two mechanisms. Some information must be
27026 # recorded in makefile variables, these are defined in config-lang.in.
27027 # We accumulate them and plug them into the main Makefile.
27028 # The other mechanism is a set of hooks for each of the main targets
27029 # like `clean', `install', etc.
27031 language_hooks="Make-hooks"
27033 for lang in ${srcdir}/*/config-lang.in
27035 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27037 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27038 if test "x$lang_alias" = x
27039 then
27040 echo "$lang doesn't set \$language." 1>&2
27041 exit 1
27043 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27044 subdirs="$subdirs $subdir"
27046 # $gcc_subdir is where the gcc integration files are to be found
27047 # for a language, both for internal compiler purposes (compiler
27048 # sources implementing front-end to GCC tree converters), and for
27049 # build infrastructure purposes (Make-lang.in, etc.)
27051 # This will be <subdir> (relative to $srcdir) if a line like
27052 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27053 # is found in <langdir>/config-lang.in, and will remain <langdir>
27054 # otherwise.
27056 # Except for the language alias (fetched above), the regular
27057 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27058 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27059 # only this and the language alias.
27061 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27062 if [ "$gcc_subdir" = "" ]; then
27063 gcc_subdir="$subdir"
27066 case ",$enable_languages," in
27067 *,$lang_alias,*)
27068 all_selected_languages="$all_selected_languages $lang_alias"
27069 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27070 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27073 esac
27075 language=
27076 boot_language=
27077 compilers=
27078 outputs=
27079 gtfiles=
27080 subdir_requires=
27081 . ${srcdir}/$gcc_subdir/config-lang.in
27082 if test "x$language" = x
27083 then
27084 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27085 exit 1
27088 ok=:
27089 case ",$enable_languages," in
27090 *,$lang_alias,*) ;;
27092 for i in $subdir_requires; do
27093 test -f "${srcdir}/$i/config-lang.in" && continue
27094 ok=false
27095 break
27096 done
27098 esac
27099 $ok || continue
27101 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27102 if test -f $srcdir/$gcc_subdir/lang.opt; then
27103 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27104 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27106 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27107 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27109 all_languages="$all_languages $language"
27110 all_compilers="$all_compilers $compilers"
27111 all_outputs="$all_outputs $outputs"
27112 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27113 case ",$enable_languages," in
27114 *,lto,*)
27116 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27118 enable_lto=yes
27121 *) ;;
27122 esac
27123 done
27125 check_languages=
27126 for language in $all_selected_languages
27128 check_languages="$check_languages check-$language"
27129 done
27131 # We link each language in with a set of hooks, reached indirectly via
27132 # lang.${target}. Only do so for selected languages.
27134 rm -f Make-hooks
27135 touch Make-hooks
27136 target_list="all.cross start.encap rest.encap tags \
27137 install-common install-man install-info install-pdf install-html dvi \
27138 pdf html uninstall info man srcextra srcman srcinfo \
27139 mostlyclean clean distclean maintainer-clean install-plugin"
27141 for t in $target_list
27144 for lang in $all_selected_languages
27146 x="$x $lang.$t"
27147 done
27148 echo "lang.$t: $x" >> Make-hooks
27149 done
27151 # --------
27152 # Option include files
27153 # --------
27155 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27156 option_includes="option-includes.mk"
27159 # --------
27160 # UNSORTED
27161 # --------
27163 # Create .gdbinit.
27165 echo "dir ." > .gdbinit
27166 echo "dir ${srcdir}" >> .gdbinit
27167 if test x$gdb_needs_out_file_path = xyes
27168 then
27169 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27171 if test "x$subdirs" != x; then
27172 for s in $subdirs
27174 echo "dir ${srcdir}/$s" >> .gdbinit
27175 done
27177 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27179 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27183 # Find a directory in which to install a shared libgcc.
27185 # Check whether --enable-version-specific-runtime-libs was given.
27186 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27187 enableval=$enable_version_specific_runtime_libs;
27191 # Substitute configuration variables
27254 # Echo link setup.
27255 if test x${build} = x${host} ; then
27256 if test x${host} = x${target} ; then
27257 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27258 else
27259 echo "Links are now set up to build a cross-compiler" 1>&2
27260 echo " from ${host} to ${target}." 1>&2
27262 else
27263 if test x${host} = x${target} ; then
27264 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27265 echo " for ${target}." 1>&2
27266 else
27267 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27268 echo " from ${host} to ${target}." 1>&2
27280 if test "x${CLOOGLIBS}" != "x" ; then
27282 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27286 # Check for plugin support
27287 # Check whether --enable-plugin was given.
27288 if test "${enable_plugin+set}" = set; then :
27289 enableval=$enable_plugin; enable_plugin=$enableval
27290 else
27291 enable_plugin=yes; default_plugin=yes
27295 pluginlibs=
27297 case "${host}" in
27298 *-*-darwin*)
27299 if test x$build = x$host; then
27300 export_sym_check="nm${exeext} -g"
27301 elif test x$host = x$target; then
27302 export_sym_check="$gcc_cv_nm -g"
27303 else
27304 export_sym_check=
27308 if test x$build = x$host; then
27309 export_sym_check="objdump${exeext} -T"
27310 elif test x$host = x$target; then
27311 export_sym_check="$gcc_cv_objdump -T"
27312 else
27313 export_sym_check=
27316 esac
27318 if test x"$enable_plugin" = x"yes"; then
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27321 $as_echo_n "checking for exported symbols... " >&6; }
27322 if test "x$export_sym_check" != x; then
27323 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27324 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27325 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27326 : # No need to use a flag
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27328 $as_echo "yes" >&6; }
27329 else
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27331 $as_echo "yes" >&6; }
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27333 $as_echo_n "checking for -rdynamic... " >&6; }
27334 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27335 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27336 plugin_rdynamic=yes
27337 pluginlibs="-rdynamic"
27338 else
27339 plugin_rdynamic=no
27340 enable_plugin=no
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27343 $as_echo "$plugin_rdynamic" >&6; }
27345 else
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27347 $as_echo "unable to check" >&6; }
27350 # Check -ldl
27351 saved_LIBS="$LIBS"
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27353 $as_echo_n "checking for library containing dlopen... " >&6; }
27354 if test "${ac_cv_search_dlopen+set}" = set; then :
27355 $as_echo_n "(cached) " >&6
27356 else
27357 ac_func_search_save_LIBS=$LIBS
27358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27359 /* end confdefs.h. */
27361 /* Override any GCC internal prototype to avoid an error.
27362 Use char because int might match the return type of a GCC
27363 builtin and then its argument prototype would still apply. */
27364 #ifdef __cplusplus
27365 extern "C"
27366 #endif
27367 char dlopen ();
27369 main ()
27371 return dlopen ();
27373 return 0;
27375 _ACEOF
27376 for ac_lib in '' dl; do
27377 if test -z "$ac_lib"; then
27378 ac_res="none required"
27379 else
27380 ac_res=-l$ac_lib
27381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27383 if ac_fn_c_try_link "$LINENO"; then :
27384 ac_cv_search_dlopen=$ac_res
27386 rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext
27388 if test "${ac_cv_search_dlopen+set}" = set; then :
27389 break
27391 done
27392 if test "${ac_cv_search_dlopen+set}" = set; then :
27394 else
27395 ac_cv_search_dlopen=no
27397 rm conftest.$ac_ext
27398 LIBS=$ac_func_search_save_LIBS
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27401 $as_echo "$ac_cv_search_dlopen" >&6; }
27402 ac_res=$ac_cv_search_dlopen
27403 if test "$ac_res" != no; then :
27404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27408 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27409 pluginlibs="$pluginlibs -ldl"
27411 LIBS="$saved_LIBS"
27413 # Check that we can build shared objects with -fPIC -shared
27414 saved_LDFLAGS="$LDFLAGS"
27415 saved_CFLAGS="$CFLAGS"
27416 case "${host}" in
27417 *-*-darwin*)
27418 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27419 CFLAGS="$CFLAGS -fPIC"
27420 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27423 CFLAGS="$CFLAGS -fPIC"
27424 LDFLAGS="$LDFLAGS -fPIC -shared"
27426 esac
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27428 $as_echo_n "checking for -fPIC -shared... " >&6; }
27429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27430 /* end confdefs.h. */
27431 extern int X;
27433 main ()
27435 return X == 0;
27437 return 0;
27439 _ACEOF
27440 if ac_fn_c_try_link "$LINENO"; then :
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27442 $as_echo "yes" >&6; }; have_pic_shared=yes
27443 else
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27445 $as_echo "no" >&6; }; have_pic_shared=no
27447 rm -f core conftest.err conftest.$ac_objext \
27448 conftest$ac_exeext conftest.$ac_ext
27449 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27450 pluginlibs=
27451 enable_plugin=no
27453 LDFLAGS="$saved_LDFLAGS"
27454 CFLAGS="$saved_CFLAGS"
27456 # If plugin support had been requested but not available, fail.
27457 if test x"$enable_plugin" = x"no" ; then
27458 if test x"$default_plugin" != x"yes"; then
27459 as_fn_error "
27460 Building GCC with plugin support requires a host that supports
27461 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27468 if test x"$enable_plugin" = x"yes"; then
27470 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27475 # Check whether --enable-libquadmath-support was given.
27476 if test "${enable_libquadmath_support+set}" = set; then :
27477 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27478 else
27479 ENABLE_LIBQUADMATH_SUPPORT=yes
27482 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27484 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27489 # Specify what hash style to use by default.
27491 # Check whether --with-linker-hash-style was given.
27492 if test "${with_linker_hash_style+set}" = set; then :
27493 withval=$with_linker_hash_style; case x"$withval" in
27494 xsysv)
27495 LINKER_HASH_STYLE=sysv
27497 xgnu)
27498 LINKER_HASH_STYLE=gnu
27500 xboth)
27501 LINKER_HASH_STYLE=both
27504 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27506 esac
27507 else
27508 LINKER_HASH_STYLE=''
27511 if test x"${LINKER_HASH_STYLE}" != x; then
27513 cat >>confdefs.h <<_ACEOF
27514 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27515 _ACEOF
27519 # Configure the subdirectories
27520 # AC_CONFIG_SUBDIRS($subdirs)
27522 # Create the Makefile
27523 # and configure language subdirectories
27524 ac_config_files="$ac_config_files $all_outputs"
27527 ac_config_commands="$ac_config_commands default"
27529 cat >confcache <<\_ACEOF
27530 # This file is a shell script that caches the results of configure
27531 # tests run on this system so they can be shared between configure
27532 # scripts and configure runs, see configure's option --config-cache.
27533 # It is not useful on other systems. If it contains results you don't
27534 # want to keep, you may remove or edit it.
27536 # config.status only pays attention to the cache file if you give it
27537 # the --recheck option to rerun configure.
27539 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27540 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27541 # following values.
27543 _ACEOF
27545 # The following way of writing the cache mishandles newlines in values,
27546 # but we know of no workaround that is simple, portable, and efficient.
27547 # So, we kill variables containing newlines.
27548 # Ultrix sh set writes to stderr and can't be redirected directly,
27549 # and sets the high bit in the cache file unless we assign to the vars.
27551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27552 eval ac_val=\$$ac_var
27553 case $ac_val in #(
27554 *${as_nl}*)
27555 case $ac_var in #(
27556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27558 esac
27559 case $ac_var in #(
27560 _ | IFS | as_nl) ;; #(
27561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27562 *) { eval $ac_var=; unset $ac_var;} ;;
27563 esac ;;
27564 esac
27565 done
27567 (set) 2>&1 |
27568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27569 *${as_nl}ac_space=\ *)
27570 # `set' does not quote correctly, so add quotes: double-quote
27571 # substitution turns \\\\ into \\, and sed turns \\ into \.
27572 sed -n \
27573 "s/'/'\\\\''/g;
27574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27575 ;; #(
27577 # `set' quotes correctly as required by POSIX, so do not add quotes.
27578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27580 esac |
27581 sort
27583 sed '
27584 /^ac_cv_env_/b end
27585 t clear
27586 :clear
27587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27588 t end
27589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27590 :end' >>confcache
27591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27592 if test -w "$cache_file"; then
27593 test "x$cache_file" != "x/dev/null" &&
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27595 $as_echo "$as_me: updating cache $cache_file" >&6;}
27596 cat confcache >$cache_file
27597 else
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27599 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27602 rm -f confcache
27604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27605 # Let make expand exec_prefix.
27606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27608 DEFS=-DHAVE_CONFIG_H
27610 ac_libobjs=
27611 ac_ltlibobjs=
27612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27613 # 1. Remove the extension, and $U if already installed.
27614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27617 # will be set to the directory where LIBOBJS objects are built.
27618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27620 done
27621 LIBOBJS=$ac_libobjs
27623 LTLIBOBJS=$ac_ltlibobjs
27628 : ${CONFIG_STATUS=./config.status}
27629 ac_write_fail=0
27630 ac_clean_files_save=$ac_clean_files
27631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27633 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27634 as_write_fail=0
27635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27636 #! $SHELL
27637 # Generated by $as_me.
27638 # Run this file to recreate the current configuration.
27639 # Compiler output produced by configure, useful for debugging
27640 # configure, is in config.log if it exists.
27642 debug=false
27643 ac_cs_recheck=false
27644 ac_cs_silent=false
27646 SHELL=\${CONFIG_SHELL-$SHELL}
27647 export SHELL
27648 _ASEOF
27649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27650 ## -------------------- ##
27651 ## M4sh Initialization. ##
27652 ## -------------------- ##
27654 # Be more Bourne compatible
27655 DUALCASE=1; export DUALCASE # for MKS sh
27656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27657 emulate sh
27658 NULLCMD=:
27659 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27660 # is contrary to our usage. Disable this feature.
27661 alias -g '${1+"$@"}'='"$@"'
27662 setopt NO_GLOB_SUBST
27663 else
27664 case `(set -o) 2>/dev/null` in #(
27665 *posix*) :
27666 set -o posix ;; #(
27667 *) :
27669 esac
27673 as_nl='
27675 export as_nl
27676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27680 # Prefer a ksh shell builtin over an external printf program on Solaris,
27681 # but without wasting forks for bash or zsh.
27682 if test -z "$BASH_VERSION$ZSH_VERSION" \
27683 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27684 as_echo='print -r --'
27685 as_echo_n='print -rn --'
27686 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27687 as_echo='printf %s\n'
27688 as_echo_n='printf %s'
27689 else
27690 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27691 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27692 as_echo_n='/usr/ucb/echo -n'
27693 else
27694 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27695 as_echo_n_body='eval
27696 arg=$1;
27697 case $arg in #(
27698 *"$as_nl"*)
27699 expr "X$arg" : "X\\(.*\\)$as_nl";
27700 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27701 esac;
27702 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27704 export as_echo_n_body
27705 as_echo_n='sh -c $as_echo_n_body as_echo'
27707 export as_echo_body
27708 as_echo='sh -c $as_echo_body as_echo'
27711 # The user is always right.
27712 if test "${PATH_SEPARATOR+set}" != set; then
27713 PATH_SEPARATOR=:
27714 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27715 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27716 PATH_SEPARATOR=';'
27721 # IFS
27722 # We need space, tab and new line, in precisely that order. Quoting is
27723 # there to prevent editors from complaining about space-tab.
27724 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27725 # splitting by setting IFS to empty value.)
27726 IFS=" "" $as_nl"
27728 # Find who we are. Look in the path if we contain no directory separator.
27729 case $0 in #((
27730 *[\\/]* ) as_myself=$0 ;;
27731 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27732 for as_dir in $PATH
27734 IFS=$as_save_IFS
27735 test -z "$as_dir" && as_dir=.
27736 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27737 done
27738 IFS=$as_save_IFS
27741 esac
27742 # We did not find ourselves, most probably we were run as `sh COMMAND'
27743 # in which case we are not to be found in the path.
27744 if test "x$as_myself" = x; then
27745 as_myself=$0
27747 if test ! -f "$as_myself"; then
27748 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27749 exit 1
27752 # Unset variables that we do not need and which cause bugs (e.g. in
27753 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27754 # suppresses any "Segmentation fault" message there. '((' could
27755 # trigger a bug in pdksh 5.2.14.
27756 for as_var in BASH_ENV ENV MAIL MAILPATH
27757 do eval test x\${$as_var+set} = xset \
27758 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27759 done
27760 PS1='$ '
27761 PS2='> '
27762 PS4='+ '
27764 # NLS nuisances.
27765 LC_ALL=C
27766 export LC_ALL
27767 LANGUAGE=C
27768 export LANGUAGE
27770 # CDPATH.
27771 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27774 # as_fn_error ERROR [LINENO LOG_FD]
27775 # ---------------------------------
27776 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27777 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27778 # script with status $?, using 1 if that was 0.
27779 as_fn_error ()
27781 as_status=$?; test $as_status -eq 0 && as_status=1
27782 if test "$3"; then
27783 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27784 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27786 $as_echo "$as_me: error: $1" >&2
27787 as_fn_exit $as_status
27788 } # as_fn_error
27791 # as_fn_set_status STATUS
27792 # -----------------------
27793 # Set $? to STATUS, without forking.
27794 as_fn_set_status ()
27796 return $1
27797 } # as_fn_set_status
27799 # as_fn_exit STATUS
27800 # -----------------
27801 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27802 as_fn_exit ()
27804 set +e
27805 as_fn_set_status $1
27806 exit $1
27807 } # as_fn_exit
27809 # as_fn_unset VAR
27810 # ---------------
27811 # Portably unset VAR.
27812 as_fn_unset ()
27814 { eval $1=; unset $1;}
27816 as_unset=as_fn_unset
27817 # as_fn_append VAR VALUE
27818 # ----------------------
27819 # Append the text in VALUE to the end of the definition contained in VAR. Take
27820 # advantage of any shell optimizations that allow amortized linear growth over
27821 # repeated appends, instead of the typical quadratic growth present in naive
27822 # implementations.
27823 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27824 eval 'as_fn_append ()
27826 eval $1+=\$2
27828 else
27829 as_fn_append ()
27831 eval $1=\$$1\$2
27833 fi # as_fn_append
27835 # as_fn_arith ARG...
27836 # ------------------
27837 # Perform arithmetic evaluation on the ARGs, and store the result in the
27838 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27839 # must be portable across $(()) and expr.
27840 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27841 eval 'as_fn_arith ()
27843 as_val=$(( $* ))
27845 else
27846 as_fn_arith ()
27848 as_val=`expr "$@" || test $? -eq 1`
27850 fi # as_fn_arith
27853 if expr a : '\(a\)' >/dev/null 2>&1 &&
27854 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27855 as_expr=expr
27856 else
27857 as_expr=false
27860 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27861 as_basename=basename
27862 else
27863 as_basename=false
27866 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27867 as_dirname=dirname
27868 else
27869 as_dirname=false
27872 as_me=`$as_basename -- "$0" ||
27873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27874 X"$0" : 'X\(//\)$' \| \
27875 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27876 $as_echo X/"$0" |
27877 sed '/^.*\/\([^/][^/]*\)\/*$/{
27878 s//\1/
27881 /^X\/\(\/\/\)$/{
27882 s//\1/
27885 /^X\/\(\/\).*/{
27886 s//\1/
27889 s/.*/./; q'`
27891 # Avoid depending upon Character Ranges.
27892 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27893 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27894 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27895 as_cr_digits='0123456789'
27896 as_cr_alnum=$as_cr_Letters$as_cr_digits
27898 ECHO_C= ECHO_N= ECHO_T=
27899 case `echo -n x` in #(((((
27900 -n*)
27901 case `echo 'xy\c'` in
27902 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27903 xy) ECHO_C='\c';;
27904 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27905 ECHO_T=' ';;
27906 esac;;
27908 ECHO_N='-n';;
27909 esac
27911 rm -f conf$$ conf$$.exe conf$$.file
27912 if test -d conf$$.dir; then
27913 rm -f conf$$.dir/conf$$.file
27914 else
27915 rm -f conf$$.dir
27916 mkdir conf$$.dir 2>/dev/null
27918 if (echo >conf$$.file) 2>/dev/null; then
27919 if ln -s conf$$.file conf$$ 2>/dev/null; then
27920 as_ln_s='ln -s'
27921 # ... but there are two gotchas:
27922 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27923 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27924 # In both cases, we have to default to `cp -p'.
27925 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27926 as_ln_s='cp -p'
27927 elif ln conf$$.file conf$$ 2>/dev/null; then
27928 as_ln_s=ln
27929 else
27930 as_ln_s='cp -p'
27932 else
27933 as_ln_s='cp -p'
27935 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27936 rmdir conf$$.dir 2>/dev/null
27939 # as_fn_mkdir_p
27940 # -------------
27941 # Create "$as_dir" as a directory, including parents if necessary.
27942 as_fn_mkdir_p ()
27945 case $as_dir in #(
27946 -*) as_dir=./$as_dir;;
27947 esac
27948 test -d "$as_dir" || eval $as_mkdir_p || {
27949 as_dirs=
27950 while :; do
27951 case $as_dir in #(
27952 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27953 *) as_qdir=$as_dir;;
27954 esac
27955 as_dirs="'$as_qdir' $as_dirs"
27956 as_dir=`$as_dirname -- "$as_dir" ||
27957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27958 X"$as_dir" : 'X\(//\)[^/]' \| \
27959 X"$as_dir" : 'X\(//\)$' \| \
27960 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27961 $as_echo X"$as_dir" |
27962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27963 s//\1/
27966 /^X\(\/\/\)[^/].*/{
27967 s//\1/
27970 /^X\(\/\/\)$/{
27971 s//\1/
27974 /^X\(\/\).*/{
27975 s//\1/
27978 s/.*/./; q'`
27979 test -d "$as_dir" && break
27980 done
27981 test -z "$as_dirs" || eval "mkdir $as_dirs"
27982 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27985 } # as_fn_mkdir_p
27986 if mkdir -p . 2>/dev/null; then
27987 as_mkdir_p='mkdir -p "$as_dir"'
27988 else
27989 test -d ./-p && rmdir ./-p
27990 as_mkdir_p=false
27993 if test -x / >/dev/null 2>&1; then
27994 as_test_x='test -x'
27995 else
27996 if ls -dL / >/dev/null 2>&1; then
27997 as_ls_L_option=L
27998 else
27999 as_ls_L_option=
28001 as_test_x='
28002 eval sh -c '\''
28003 if test -d "$1"; then
28004 test -d "$1/.";
28005 else
28006 case $1 in #(
28007 -*)set "./$1";;
28008 esac;
28009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28010 ???[sx]*):;;*)false;;esac;fi
28011 '\'' sh
28014 as_executable_p=$as_test_x
28016 # Sed expression to map a string onto a valid CPP name.
28017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28019 # Sed expression to map a string onto a valid variable name.
28020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28023 exec 6>&1
28024 ## ----------------------------------- ##
28025 ## Main body of $CONFIG_STATUS script. ##
28026 ## ----------------------------------- ##
28027 _ASEOF
28028 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28031 # Save the log message, to keep $0 and so on meaningful, and to
28032 # report actual input values of CONFIG_FILES etc. instead of their
28033 # values after options handling.
28034 ac_log="
28035 This file was extended by $as_me, which was
28036 generated by GNU Autoconf 2.64. Invocation command line was
28038 CONFIG_FILES = $CONFIG_FILES
28039 CONFIG_HEADERS = $CONFIG_HEADERS
28040 CONFIG_LINKS = $CONFIG_LINKS
28041 CONFIG_COMMANDS = $CONFIG_COMMANDS
28042 $ $0 $@
28044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28047 _ACEOF
28049 case $ac_config_files in *"
28050 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28051 esac
28053 case $ac_config_headers in *"
28054 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28055 esac
28058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28059 # Files that config.status was made for.
28060 config_files="$ac_config_files"
28061 config_headers="$ac_config_headers"
28062 config_commands="$ac_config_commands"
28064 _ACEOF
28066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28067 ac_cs_usage="\
28068 \`$as_me' instantiates files and other configuration actions
28069 from templates according to the current configuration. Unless the files
28070 and actions are specified as TAGs, all are instantiated by default.
28072 Usage: $0 [OPTION]... [TAG]...
28074 -h, --help print this help, then exit
28075 -V, --version print version number and configuration settings, then exit
28076 -q, --quiet, --silent
28077 do not print progress messages
28078 -d, --debug don't remove temporary files
28079 --recheck update $as_me by reconfiguring in the same conditions
28080 --file=FILE[:TEMPLATE]
28081 instantiate the configuration file FILE
28082 --header=FILE[:TEMPLATE]
28083 instantiate the configuration header FILE
28085 Configuration files:
28086 $config_files
28088 Configuration headers:
28089 $config_headers
28091 Configuration commands:
28092 $config_commands
28094 Report bugs to the package provider."
28096 _ACEOF
28097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28098 ac_cs_version="\\
28099 config.status
28100 configured by $0, generated by GNU Autoconf 2.64,
28101 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28103 Copyright (C) 2009 Free Software Foundation, Inc.
28104 This config.status script is free software; the Free Software Foundation
28105 gives unlimited permission to copy, distribute and modify it."
28107 ac_pwd='$ac_pwd'
28108 srcdir='$srcdir'
28109 AWK='$AWK'
28110 test -n "\$AWK" || AWK=awk
28111 _ACEOF
28113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28114 # The default lists apply if the user does not specify any file.
28115 ac_need_defaults=:
28116 while test $# != 0
28118 case $1 in
28119 --*=*)
28120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28122 ac_shift=:
28125 ac_option=$1
28126 ac_optarg=$2
28127 ac_shift=shift
28129 esac
28131 case $ac_option in
28132 # Handling of the options.
28133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28134 ac_cs_recheck=: ;;
28135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28136 $as_echo "$ac_cs_version"; exit ;;
28137 --debug | --debu | --deb | --de | --d | -d )
28138 debug=: ;;
28139 --file | --fil | --fi | --f )
28140 $ac_shift
28141 case $ac_optarg in
28142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28143 esac
28144 as_fn_append CONFIG_FILES " '$ac_optarg'"
28145 ac_need_defaults=false;;
28146 --header | --heade | --head | --hea )
28147 $ac_shift
28148 case $ac_optarg in
28149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28150 esac
28151 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28152 ac_need_defaults=false;;
28153 --he | --h)
28154 # Conflict between --help and --header
28155 as_fn_error "ambiguous option: \`$1'
28156 Try \`$0 --help' for more information.";;
28157 --help | --hel | -h )
28158 $as_echo "$ac_cs_usage"; exit ;;
28159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28161 ac_cs_silent=: ;;
28163 # This is an error.
28164 -*) as_fn_error "unrecognized option: \`$1'
28165 Try \`$0 --help' for more information." ;;
28167 *) as_fn_append ac_config_targets " $1"
28168 ac_need_defaults=false ;;
28170 esac
28171 shift
28172 done
28174 ac_configure_extra_args=
28176 if $ac_cs_silent; then
28177 exec 6>/dev/null
28178 ac_configure_extra_args="$ac_configure_extra_args --silent"
28181 _ACEOF
28182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28183 if \$ac_cs_recheck; then
28184 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28185 shift
28186 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28187 CONFIG_SHELL='$SHELL'
28188 export CONFIG_SHELL
28189 exec "\$@"
28192 _ACEOF
28193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28194 exec 5>>config.log
28196 echo
28197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28198 ## Running $as_me. ##
28199 _ASBOX
28200 $as_echo "$ac_log"
28201 } >&5
28203 _ACEOF
28204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28206 # INIT-COMMANDS
28208 subdirs='$subdirs'
28210 _ACEOF
28212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28214 # Handling of arguments.
28215 for ac_config_target in $ac_config_targets
28217 case $ac_config_target in
28218 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28219 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28220 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28221 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28222 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28223 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28225 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28226 esac
28227 done
28230 # If the user did not use the arguments to specify the items to instantiate,
28231 # then the envvar interface is used. Set only those that are not.
28232 # We use the long form for the default assignment because of an extremely
28233 # bizarre bug on SunOS 4.1.3.
28234 if $ac_need_defaults; then
28235 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28236 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28237 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28240 # Have a temporary directory for convenience. Make it in the build tree
28241 # simply because there is no reason against having it here, and in addition,
28242 # creating and moving files from /tmp can sometimes cause problems.
28243 # Hook for its removal unless debugging.
28244 # Note that there is a small window in which the directory will not be cleaned:
28245 # after its creation but before its name has been assigned to `$tmp'.
28246 $debug ||
28248 tmp=
28249 trap 'exit_status=$?
28250 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28252 trap 'as_fn_exit 1' 1 2 13 15
28254 # Create a (secure) tmp directory for tmp files.
28257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28258 test -n "$tmp" && test -d "$tmp"
28259 } ||
28261 tmp=./conf$$-$RANDOM
28262 (umask 077 && mkdir "$tmp")
28263 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28265 # Set up the scripts for CONFIG_FILES section.
28266 # No need to generate them if there are no CONFIG_FILES.
28267 # This happens for instance with `./config.status config.h'.
28268 if test -n "$CONFIG_FILES"; then
28270 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28271 ac_cs_awk_getline=:
28272 ac_cs_awk_pipe_init=
28273 ac_cs_awk_read_file='
28274 while ((getline aline < (F[key])) > 0)
28275 print(aline)
28276 close(F[key])'
28277 ac_cs_awk_pipe_fini=
28278 else
28279 ac_cs_awk_getline=false
28280 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28281 ac_cs_awk_read_file='
28282 print "|#_!!_#|"
28283 print "cat " F[key] " &&"
28284 '$ac_cs_awk_pipe_init
28285 # The final `:' finishes the AND list.
28286 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28288 ac_cr=`echo X | tr X '\015'`
28289 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28290 # But we know of no other shell where ac_cr would be empty at this
28291 # point, so we can use a bashism as a fallback.
28292 if test "x$ac_cr" = x; then
28293 eval ac_cr=\$\'\\r\'
28295 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28296 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28297 ac_cs_awk_cr='\r'
28298 else
28299 ac_cs_awk_cr=$ac_cr
28302 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28303 _ACEOF
28305 # Create commands to substitute file output variables.
28307 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28308 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28309 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28310 echo "_ACAWK" &&
28311 echo "_ACEOF"
28312 } >conf$$files.sh &&
28313 . ./conf$$files.sh ||
28314 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28315 rm -f conf$$files.sh
28318 echo "cat >conf$$subs.awk <<_ACEOF" &&
28319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28320 echo "_ACEOF"
28321 } >conf$$subs.sh ||
28322 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28324 ac_delim='%!_!# '
28325 for ac_last_try in false false false false false :; do
28326 . ./conf$$subs.sh ||
28327 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28330 if test $ac_delim_n = $ac_delim_num; then
28331 break
28332 elif $ac_last_try; then
28333 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28334 else
28335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28337 done
28338 rm -f conf$$subs.sh
28340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28341 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28342 _ACEOF
28343 sed -n '
28345 s/^/S["/; s/!.*/"]=/
28348 s/^[^!]*!//
28349 :repl
28350 t repl
28351 s/'"$ac_delim"'$//
28352 t delim
28355 s/\(.\{148\}\).*/\1/
28356 t more1
28357 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28360 b repl
28361 :more1
28362 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28365 s/.\{148\}//
28366 t nl
28367 :delim
28369 s/\(.\{148\}\).*/\1/
28370 t more2
28371 s/["\\]/\\&/g; s/^/"/; s/$/"/
28374 :more2
28375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28378 s/.\{148\}//
28379 t delim
28380 ' <conf$$subs.awk | sed '
28381 /^[^""]/{
28383 s/\n//
28385 ' >>$CONFIG_STATUS || ac_write_fail=1
28386 rm -f conf$$subs.awk
28387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28388 _ACAWK
28389 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28390 for (key in S) S_is_set[key] = 1
28391 FS = "\a"
28392 \$ac_cs_awk_pipe_init
28395 line = $ 0
28396 nfields = split(line, field, "@")
28397 substed = 0
28398 len = length(field[1])
28399 for (i = 2; i < nfields; i++) {
28400 key = field[i]
28401 keylen = length(key)
28402 if (S_is_set[key]) {
28403 value = S[key]
28404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28405 len += length(value) + length(field[++i])
28406 substed = 1
28407 } else
28408 len += 1 + keylen
28410 if (nfields == 3 && !substed) {
28411 key = field[2]
28412 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28413 \$ac_cs_awk_read_file
28414 next
28417 print line
28419 \$ac_cs_awk_pipe_fini
28420 _ACAWK
28421 _ACEOF
28422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28424 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28425 else
28427 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28428 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28429 _ACEOF
28431 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28432 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28433 # trailing colons and then remove the whole line if VPATH becomes empty
28434 # (actually we leave an empty line to preserve line numbers).
28435 if test "x$srcdir" = x.; then
28436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28437 s/:*\$(srcdir):*/:/
28438 s/:*\${srcdir}:*/:/
28439 s/:*@srcdir@:*/:/
28440 s/^\([^=]*=[ ]*\):*/\1/
28441 s/:*$//
28442 s/^[^=]*=[ ]*$//
28446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28447 fi # test -n "$CONFIG_FILES"
28449 # Set up the scripts for CONFIG_HEADERS section.
28450 # No need to generate them if there are no CONFIG_HEADERS.
28451 # This happens for instance with `./config.status Makefile'.
28452 if test -n "$CONFIG_HEADERS"; then
28453 cat >"$tmp/defines.awk" <<\_ACAWK ||
28454 BEGIN {
28455 _ACEOF
28457 # Transform confdefs.h into an awk script `defines.awk', embedded as
28458 # here-document in config.status, that substitutes the proper values into
28459 # config.h.in to produce config.h.
28461 # Create a delimiter string that does not exist in confdefs.h, to ease
28462 # handling of long lines.
28463 ac_delim='%!_!# '
28464 for ac_last_try in false false :; do
28465 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28466 if test -z "$ac_t"; then
28467 break
28468 elif $ac_last_try; then
28469 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28470 else
28471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28473 done
28475 # For the awk script, D is an array of macro values keyed by name,
28476 # likewise P contains macro parameters if any. Preserve backslash
28477 # newline sequences.
28479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28480 sed -n '
28481 s/.\{148\}/&'"$ac_delim"'/g
28482 t rset
28483 :rset
28484 s/^[ ]*#[ ]*define[ ][ ]*/ /
28485 t def
28487 :def
28488 s/\\$//
28489 t bsnl
28490 s/["\\]/\\&/g
28491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28492 D["\1"]=" \3"/p
28493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28495 :bsnl
28496 s/["\\]/\\&/g
28497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28498 D["\1"]=" \3\\\\\\n"\\/p
28499 t cont
28500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28501 t cont
28503 :cont
28505 s/.\{148\}/&'"$ac_delim"'/g
28506 t clear
28507 :clear
28508 s/\\$//
28509 t bsnlc
28510 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28512 :bsnlc
28513 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28514 b cont
28515 ' <confdefs.h | sed '
28516 s/'"$ac_delim"'/"\\\
28517 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28520 for (key in D) D_is_set[key] = 1
28521 FS = "\a"
28523 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28524 line = \$ 0
28525 split(line, arg, " ")
28526 if (arg[1] == "#") {
28527 defundef = arg[2]
28528 mac1 = arg[3]
28529 } else {
28530 defundef = substr(arg[1], 2)
28531 mac1 = arg[2]
28533 split(mac1, mac2, "(") #)
28534 macro = mac2[1]
28535 prefix = substr(line, 1, index(line, defundef) - 1)
28536 if (D_is_set[macro]) {
28537 # Preserve the white space surrounding the "#".
28538 print prefix "define", macro P[macro] D[macro]
28539 next
28540 } else {
28541 # Replace #undef with comments. This is necessary, for example,
28542 # in the case of _POSIX_SOURCE, which is predefined and required
28543 # on some systems where configure will not decide to define it.
28544 if (defundef == "undef") {
28545 print "/*", prefix defundef, macro, "*/"
28546 next
28550 { print }
28551 _ACAWK
28552 _ACEOF
28553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28554 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28555 fi # test -n "$CONFIG_HEADERS"
28558 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28559 shift
28560 for ac_tag
28562 case $ac_tag in
28563 :[FHLC]) ac_mode=$ac_tag; continue;;
28564 esac
28565 case $ac_mode$ac_tag in
28566 :[FHL]*:*);;
28567 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28568 :[FH]-) ac_tag=-:-;;
28569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28570 esac
28571 ac_save_IFS=$IFS
28572 IFS=:
28573 set x $ac_tag
28574 IFS=$ac_save_IFS
28575 shift
28576 ac_file=$1
28577 shift
28579 case $ac_mode in
28580 :L) ac_source=$1;;
28581 :[FH])
28582 ac_file_inputs=
28583 for ac_f
28585 case $ac_f in
28586 -) ac_f="$tmp/stdin";;
28587 *) # Look for the file first in the build tree, then in the source tree
28588 # (if the path is not absolute). The absolute path cannot be DOS-style,
28589 # because $ac_f cannot contain `:'.
28590 test -f "$ac_f" ||
28591 case $ac_f in
28592 [\\/$]*) false;;
28593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28594 esac ||
28595 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28596 esac
28597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28598 as_fn_append ac_file_inputs " '$ac_f'"
28599 done
28601 # Let's still pretend it is `configure' which instantiates (i.e., don't
28602 # use $as_me), people would be surprised to read:
28603 # /* config.h. Generated by config.status. */
28604 configure_input='Generated from '`
28605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28606 `' by configure.'
28607 if test x"$ac_file" != x-; then
28608 configure_input="$ac_file. $configure_input"
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28610 $as_echo "$as_me: creating $ac_file" >&6;}
28612 # Neutralize special characters interpreted by sed in replacement strings.
28613 case $configure_input in #(
28614 *\&* | *\|* | *\\* )
28615 ac_sed_conf_input=`$as_echo "$configure_input" |
28616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28617 *) ac_sed_conf_input=$configure_input;;
28618 esac
28620 case $ac_tag in
28621 *:-:* | *:-) cat >"$tmp/stdin" \
28622 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28623 esac
28625 esac
28627 ac_dir=`$as_dirname -- "$ac_file" ||
28628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28629 X"$ac_file" : 'X\(//\)[^/]' \| \
28630 X"$ac_file" : 'X\(//\)$' \| \
28631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28632 $as_echo X"$ac_file" |
28633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28634 s//\1/
28637 /^X\(\/\/\)[^/].*/{
28638 s//\1/
28641 /^X\(\/\/\)$/{
28642 s//\1/
28645 /^X\(\/\).*/{
28646 s//\1/
28649 s/.*/./; q'`
28650 as_dir="$ac_dir"; as_fn_mkdir_p
28651 ac_builddir=.
28653 case "$ac_dir" in
28654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28657 # A ".." for each directory in $ac_dir_suffix.
28658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28659 case $ac_top_builddir_sub in
28660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28662 esac ;;
28663 esac
28664 ac_abs_top_builddir=$ac_pwd
28665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28666 # for backward compatibility:
28667 ac_top_builddir=$ac_top_build_prefix
28669 case $srcdir in
28670 .) # We are building in place.
28671 ac_srcdir=.
28672 ac_top_srcdir=$ac_top_builddir_sub
28673 ac_abs_top_srcdir=$ac_pwd ;;
28674 [\\/]* | ?:[\\/]* ) # Absolute name.
28675 ac_srcdir=$srcdir$ac_dir_suffix;
28676 ac_top_srcdir=$srcdir
28677 ac_abs_top_srcdir=$srcdir ;;
28678 *) # Relative name.
28679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28680 ac_top_srcdir=$ac_top_build_prefix$srcdir
28681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28682 esac
28683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28686 case $ac_mode in
28689 # CONFIG_FILE
28692 _ACEOF
28694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28695 # If the template does not know about datarootdir, expand it.
28696 # FIXME: This hack should be removed a few years after 2.60.
28697 ac_datarootdir_hack=; ac_datarootdir_seen=
28698 ac_sed_dataroot='
28699 /datarootdir/ {
28703 /@datadir@/p
28704 /@docdir@/p
28705 /@infodir@/p
28706 /@localedir@/p
28707 /@mandir@/p'
28708 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28709 *datarootdir*) ac_datarootdir_seen=yes;;
28710 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28712 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28713 _ACEOF
28714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28715 ac_datarootdir_hack='
28716 s&@datadir@&$datadir&g
28717 s&@docdir@&$docdir&g
28718 s&@infodir@&$infodir&g
28719 s&@localedir@&$localedir&g
28720 s&@mandir@&$mandir&g
28721 s&\\\${datarootdir}&$datarootdir&g' ;;
28722 esac
28723 _ACEOF
28725 # Neutralize VPATH when `$srcdir' = `.'.
28726 # Shell code in configure.ac might set extrasub.
28727 # FIXME: do we really want to maintain this feature?
28728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28729 ac_sed_extra="$ac_vpsub
28730 $extrasub
28731 _ACEOF
28732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28735 s|@configure_input@|$ac_sed_conf_input|;t t
28736 s&@top_builddir@&$ac_top_builddir_sub&;t t
28737 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28738 s&@srcdir@&$ac_srcdir&;t t
28739 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28740 s&@top_srcdir@&$ac_top_srcdir&;t t
28741 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28742 s&@builddir@&$ac_builddir&;t t
28743 s&@abs_builddir@&$ac_abs_builddir&;t t
28744 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28745 $ac_datarootdir_hack
28747 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28748 if $ac_cs_awk_getline; then
28749 $AWK -f "$tmp/subs.awk"
28750 else
28751 $AWK -f "$tmp/subs.awk" | $SHELL
28752 fi >$tmp/out \
28753 || as_fn_error "could not create $ac_file" "$LINENO" 5
28755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28756 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28759 which seems to be undefined. Please make sure it is defined." >&5
28760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28761 which seems to be undefined. Please make sure it is defined." >&2;}
28763 rm -f "$tmp/stdin"
28764 case $ac_file in
28765 -) cat "$tmp/out" && rm -f "$tmp/out";;
28766 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28767 esac \
28768 || as_fn_error "could not create $ac_file" "$LINENO" 5
28772 # CONFIG_HEADER
28774 if test x"$ac_file" != x-; then
28776 $as_echo "/* $configure_input */" \
28777 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28778 } >"$tmp/config.h" \
28779 || as_fn_error "could not create $ac_file" "$LINENO" 5
28780 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28782 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28783 else
28784 rm -f "$ac_file"
28785 mv "$tmp/config.h" "$ac_file" \
28786 || as_fn_error "could not create $ac_file" "$LINENO" 5
28788 else
28789 $as_echo "/* $configure_input */" \
28790 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28791 || as_fn_error "could not create -" "$LINENO" 5
28795 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28796 $as_echo "$as_me: executing $ac_file commands" >&6;}
28798 esac
28801 case $ac_file$ac_mode in
28802 "as":F) chmod +x as ;;
28803 "collect-ld":F) chmod +x collect-ld ;;
28804 "nm":F) chmod +x nm ;;
28805 "default":C)
28806 case ${CONFIG_HEADERS} in
28807 *auto-host.h:config.in*)
28808 echo > cstamp-h ;;
28809 esac
28810 # Make sure all the subdirs exist.
28811 for d in $subdirs doc build common c-family
28813 test -d $d || mkdir $d
28814 done
28817 esac
28818 done # for ac_tag
28821 as_fn_exit 0
28822 _ACEOF
28823 ac_clean_files=$ac_clean_files_save
28825 test $ac_write_fail = 0 ||
28826 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28829 # configure is writing to config.log, and then calls config.status.
28830 # config.status does its own redirection, appending to config.log.
28831 # Unfortunately, on DOS this fails, as config.log is still kept open
28832 # by configure, so config.status won't be able to write to it; its
28833 # output is simply discarded. So we exec the FD to /dev/null,
28834 # effectively closing config.log, so it can be properly (re)opened and
28835 # appended to by config.status. When coming back to configure, we
28836 # need to make the FD available again.
28837 if test "$no_create" != yes; then
28838 ac_cs_success=:
28839 ac_config_status_args=
28840 test "$silent" = yes &&
28841 ac_config_status_args="$ac_config_status_args --quiet"
28842 exec 5>/dev/null
28843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28844 exec 5>>config.log
28845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28846 # would make configure fail if this is the last instruction.
28847 $ac_cs_success || as_fn_exit $?
28849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28851 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}