PR c++/54021
[official-gcc.git] / gcc / configure
blob817b3d6e88b199f5de7b497b254efc404c7c09dc
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
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 noexception_flags
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
786 PICFLAG_FOR_TARGET
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='option_includes
858 language_hooks'
859 ac_user_opts='
860 enable_option_checking
861 with_build_libsubdir
862 with_local_prefix
863 with_gxx_include_dir
864 with_cpp_install_dir
865 enable_generated_files_in_srcdir
866 with_gnu_ld
867 with_ld
868 with_demangler_in_ld
869 with_gnu_as
870 with_as
871 enable_largefile
872 enable_werror_always
873 enable_checking
874 enable_coverage
875 enable_gather_detailed_mem_stats
876 enable_build_with_cxx
877 with_stabs
878 enable_multilib
879 enable___cxa_atexit
880 enable_decimal_float
881 enable_fixed_point
882 enable_threads
883 enable_tls
884 enable_objc_gc
885 with_dwarf2
886 enable_shared
887 with_native_system_header_dir
888 with_build_sysroot
889 with_sysroot
890 with_specs
891 with_pkgversion
892 with_bugurl
893 enable_languages
894 with_multilib_list
895 enable_rpath
896 with_libiconv_prefix
897 enable_sjlj_exceptions
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_initfini_array
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
931 CXXFLAGS
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 ISLLIBS
938 ISLINC
939 CLOOGLIBS
940 CLOOGINC'
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
991 ac_prev=
992 ac_dashdash=
993 for ac_option
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1011 ac_dashdash=yes ;;
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 esac
1348 done
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1434 /^X\(\/\/\)$/{
1435 s//\1/
1438 /^X\(\/\).*/{
1439 s//\1/
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1447 else
1448 ac_srcdir_defaulted=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1537 cat <<\_ACEOF
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1548 _ACEOF
1551 if test -n "$ac_init_help"; then
1553 cat <<\_ACEOF
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files in source dir intended
1561 for creating source tarballs for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST]
1566 enable expensive run-time checks. With LIST, enable
1567 only specific categories of checks. Categories are:
1568 yes,no,all,none,release. Flags are:
1569 assert,df,fold,gc,gcac,gimple,misc,
1570 rtlflag,rtl,runtime,tree,valgrind,types
1571 --enable-coverage[=LEVEL]
1572 enable compiler's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid'
1583 or 'dpd' choses which decimal floating point format
1584 to use
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 package
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1603 --disable-win32-registry
1604 disable lookup of installation paths in the Registry
1605 on Windows hosts
1606 --enable-win32-registry enable registry lookup (default)
1607 --enable-win32-registry=KEY
1608 use KEY instead of GCC version as the last portion
1609 of the registry key
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-libtool-lock avoid locking (might break parallel builds)
1615 --enable-gnu-indirect-function
1616 enable the use of the @gnu_indirect_function to
1617 glibc systems
1618 --enable-initfini-array use .init_array/.fini_array sections
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1635 Optional Packages:
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-native-system-header-dir=dir
1653 use dir as the directory to look for standard
1654 system header files in. Defaults to /usr/include.
1655 --with-build-sysroot=sysroot
1656 use sysroot as the system root during the build
1657 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1658 --with-specs=SPECS add SPECS to driver command-line processing
1659 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1660 --with-bugurl=URL Direct users to URL to report a bug
1661 --with-multilib-list select multilibs (SH and x86-64 only)
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1664 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1665 --with-pic try to use only PIC/non-PIC objects [default=use
1666 both]
1667 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1668 --with-plugin-ld=[ARG] specify the plugin linker
1669 --with-long-double-128 use 128-bit long double by default
1670 --with-gc={page,zone} choose the garbage collection mechanism to use with
1671 the compiler
1672 --with-system-zlib use installed libz
1673 --with-linker-hash-style={sysv,gnu,both}
1674 specify the linker hash style
1676 Some influential environment variables:
1677 CC C compiler command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1680 nonstandard directory <lib dir>
1681 LIBS libraries to pass to the linker, e.g. -l<library>
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683 you have headers in a nonstandard directory <include dir>
1684 CXX C++ compiler command
1685 CXXFLAGS C++ compiler flags
1686 CPP C preprocessor
1687 CXXCPP C++ preprocessor
1688 GMPLIBS How to link GMP
1689 GMPINC How to find GMP include files
1690 ISLLIBS How to link ISL
1691 ISLINC How to find ISL include files
1692 CLOOGLIBS How to link CLOOG
1693 CLOOGINC How to find CLOOG include files
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1698 Report bugs to the package provider.
1699 _ACEOF
1700 ac_status=$?
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 continue
1709 ac_builddir=.
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1727 case $srcdir in
1728 .) # We are building in place.
1729 ac_srcdir=.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1736 *) # Relative name.
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1751 else
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 fi || ac_status=$?
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1755 done
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760 cat <<\_ACEOF
1761 configure
1762 generated by GNU Autoconf 2.64
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768 exit
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=1
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_compile
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=1
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1849 } # ac_fn_cxx_try_compile
1851 # ac_fn_c_try_cpp LINENO
1852 # ----------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_cpp ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } >/dev/null && {
1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_c_try_cpp
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1892 # accordingly.
1893 ac_fn_c_check_header_mongrel ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 else
1906 # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_header_compiler=yes
1916 else
1917 ac_header_compiler=no
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_cpp "$LINENO"; then :
1931 ac_header_preproc=yes
1932 else
1933 ac_header_preproc=no
1935 rm -f conftest.err conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1939 # So? What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 yes:no: )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 no:yes:* )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 esac
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=\$ac_header_compiler"
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_c_check_header_mongrel
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1979 ac_fn_c_try_run ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>&5
1990 ac_status=$?
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993 { { case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_try") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; }; }; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: program exited with status $ac_status" >&5
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=$ac_status
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 return $ac_retval
2015 } # ac_fn_c_try_run
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$3=yes"
2036 else
2037 eval "$3=no"
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_header_compile
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 # computed
2053 ac_fn_c_compute_int ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if test "$cross_compiling" = yes; then
2057 # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main ()
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2065 test_array [0] = 0
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=$ac_mid; break
2089 else
2090 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2091 if test $ac_lo -le $ac_mid; then
2092 ac_lo= ac_hi=
2093 break
2095 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) < 0)];
2107 test_array [0] = 0
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_hi=-1 ac_mid=-1
2115 while :; do
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2123 test_array [0] = 0
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=$ac_mid; break
2131 else
2132 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2133 if test $ac_mid -le $ac_hi; then
2134 ac_lo= ac_hi=
2135 break
2137 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 done
2141 else
2142 ac_lo= ac_hi=
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 # Binary search between lo and hi bounds.
2148 while test "x$ac_lo" != "x$ac_hi"; do
2149 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 test_array [0] = 0
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid
2165 else
2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 case $ac_lo in #((
2171 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 '') ac_retval=1 ;;
2173 esac
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2180 #include <stdio.h>
2181 #include <stdlib.h>
2183 main ()
2186 FILE *f = fopen ("conftest.val", "w");
2187 if (! f)
2188 return 1;
2189 if (($2) < 0)
2191 long int i = longval ();
2192 if (i != ($2))
2193 return 1;
2194 fprintf (f, "%ld", i);
2196 else
2198 unsigned long int i = ulongval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%lu", i);
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2208 return 0;
2210 _ACEOF
2211 if ac_fn_c_try_run "$LINENO"; then :
2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 else
2214 ac_retval=1
2216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 rm -f conftest.val
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222 return $ac_retval
2224 } # ac_fn_c_compute_int
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 eval "$3=no"
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2243 main ()
2245 if (sizeof ($2))
2246 return 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 if (sizeof (($2)))
2259 return 0;
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2266 else
2267 eval "$3=yes"
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 eval ac_res=\$$3
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278 } # ac_fn_c_check_type
2280 # ac_fn_c_find_intX_t LINENO BITS VAR
2281 # -----------------------------------
2282 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 # accordingly.
2284 ac_fn_c_find_intX_t ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2288 $as_echo_n "checking for int$2_t... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=no"
2293 for ac_type in int$2_t 'int' 'long int' \
2294 'long long int' 'short int' 'signed char'; do
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2299 main ()
2301 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2302 test_array [0] = 0
2305 return 0;
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $ac_includes_default
2313 main ()
2315 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2316 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2317 test_array [0] = 0
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2325 else
2326 case $ac_type in #(
2327 int$2_t) :
2328 eval "$3=yes" ;; #(
2329 *) :
2330 eval "$3=\$ac_type" ;;
2331 esac
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 eval as_val=\$$3
2337 if test "x$as_val" = x""no; then :
2339 else
2340 break
2342 done
2344 eval ac_res=\$$3
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 } # ac_fn_c_find_intX_t
2351 # ac_fn_c_try_link LINENO
2352 # -----------------------
2353 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 ac_fn_c_try_link ()
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { { ac_try="$ac_link"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2366 ac_status=$?
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
2378 $as_test_x conftest$ac_exeext
2379 }; then :
2380 ac_retval=0
2381 else
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 ac_retval=1
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 return $ac_retval
2395 } # ac_fn_c_try_link
2397 # ac_fn_c_find_uintX_t LINENO BITS VAR
2398 # ------------------------------------
2399 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 # accordingly.
2401 ac_fn_c_find_uintX_t ()
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2405 $as_echo_n "checking for uint$2_t... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 eval "$3=no"
2410 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2411 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $ac_includes_default
2416 main ()
2418 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2419 test_array [0] = 0
2422 return 0;
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 case $ac_type in #(
2427 uint$2_t) :
2428 eval "$3=yes" ;; #(
2429 *) :
2430 eval "$3=\$ac_type" ;;
2431 esac
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2437 else
2438 break
2440 done
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_uintX_t
2449 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2450 # ----------------------------------------------
2451 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2452 ac_fn_c_check_header_preproc ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 #include <$2>
2463 _ACEOF
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2465 eval "$3=yes"
2466 else
2467 eval "$3=no"
2469 rm -f conftest.err conftest.$ac_ext
2471 eval ac_res=\$$3
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2476 } # ac_fn_c_check_header_preproc
2478 # ac_fn_cxx_try_cpp LINENO
2479 # ------------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_cpp ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 ac_status=$?
2493 if test -s conftest.err; then
2494 grep -v '^ *+' conftest.err >conftest.er1
2495 cat conftest.er1 >&5
2496 mv -f conftest.er1 conftest.err
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } >/dev/null && {
2500 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2501 test ! -s conftest.err
2502 }; then :
2503 ac_retval=0
2504 else
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 ac_retval=1
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 return $ac_retval
2513 } # ac_fn_cxx_try_cpp
2515 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2516 # ------------------------------------------------
2517 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2518 ac_fn_cxx_check_header_preproc ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528 #include <$2>
2529 _ACEOF
2530 if ac_fn_cxx_try_cpp "$LINENO"; then :
2531 eval "$3=yes"
2532 else
2533 eval "$3=no"
2535 rm -f conftest.err conftest.$ac_ext
2537 eval ac_res=\$$3
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542 } # ac_fn_cxx_check_header_preproc
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2559 #define $2 innocuous_$2
2561 /* System header to define __stub macros and hopefully few prototypes,
2562 which can conflict with char $2 (); below.
2563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564 <limits.h> exists even on freestanding compilers. */
2566 #ifdef __STDC__
2567 # include <limits.h>
2568 #else
2569 # include <assert.h>
2570 #endif
2572 #undef $2
2574 /* Override any GCC internal prototype to avoid an error.
2575 Use char because int might match the return type of a GCC
2576 builtin and then its argument prototype would still apply. */
2577 #ifdef __cplusplus
2578 extern "C"
2579 #endif
2580 char $2 ();
2581 /* The GNU C library defines this for functions which it implements
2582 to always fail with ENOSYS. Some functions are actually named
2583 something starting with __ and the normal name is an alias. */
2584 #if defined __stub_$2 || defined __stub___$2
2585 choke me
2586 #endif
2589 main ()
2591 return $2 ();
2593 return 0;
2595 _ACEOF
2596 if ac_fn_c_try_link "$LINENO"; then :
2597 eval "$3=yes"
2598 else
2599 eval "$3=no"
2601 rm -f core conftest.err conftest.$ac_objext \
2602 conftest$ac_exeext conftest.$ac_ext
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 } # ac_fn_c_check_func
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 $as_test_x conftest$ac_exeext
2639 }; then :
2640 ac_retval=0
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 ac_retval=1
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 return $ac_retval
2655 } # ac_fn_cxx_try_link
2656 cat >config.log <<_ACEOF
2657 This file contains any messages produced by compilers while
2658 running configure, to aid debugging if configure makes a mistake.
2660 It was created by $as_me, which was
2661 generated by GNU Autoconf 2.64. Invocation command line was
2663 $ $0 $@
2665 _ACEOF
2666 exec 5>>config.log
2668 cat <<_ASUNAME
2669 ## --------- ##
2670 ## Platform. ##
2671 ## --------- ##
2673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2690 _ASUNAME
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 $as_echo "PATH: $as_dir"
2698 done
2699 IFS=$as_save_IFS
2701 } >&5
2703 cat >&5 <<_ACEOF
2706 ## ----------- ##
2707 ## Core tests. ##
2708 ## ----------- ##
2710 _ACEOF
2713 # Keep a trace of the command line.
2714 # Strip out --no-create and --no-recursion so they do not pile up.
2715 # Strip out --silent because we don't want to record it for future runs.
2716 # Also quote any args containing shell meta-characters.
2717 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_configure_args=
2719 ac_configure_args0=
2720 ac_configure_args1=
2721 ac_must_keep_next=false
2722 for ac_pass in 1 2
2724 for ac_arg
2726 case $ac_arg in
2727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2729 | -silent | --silent | --silen | --sile | --sil)
2730 continue ;;
2731 *\'*)
2732 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2733 esac
2734 case $ac_pass in
2735 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2737 as_fn_append ac_configure_args1 " '$ac_arg'"
2738 if test $ac_must_keep_next = true; then
2739 ac_must_keep_next=false # Got value, back to normal.
2740 else
2741 case $ac_arg in
2742 *=* | --config-cache | -C | -disable-* | --disable-* \
2743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2745 | -with-* | --with-* | -without-* | --without-* | --x)
2746 case "$ac_configure_args0 " in
2747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 esac
2750 -* ) ac_must_keep_next=true ;;
2751 esac
2753 as_fn_append ac_configure_args " '$ac_arg'"
2755 esac
2756 done
2757 done
2758 { ac_configure_args0=; unset ac_configure_args0;}
2759 { ac_configure_args1=; unset ac_configure_args1;}
2761 # When interrupted or exit'd, cleanup temporary files, and complete
2762 # config.log. We remove comments because anyway the quotes in there
2763 # would cause problems or look ugly.
2764 # WARNING: Use '\'' to represent an apostrophe within the trap.
2765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2766 trap 'exit_status=$?
2767 # Save into config.log some information that might help in debugging.
2769 echo
2771 cat <<\_ASBOX
2772 ## ---------------- ##
2773 ## Cache variables. ##
2774 ## ---------------- ##
2775 _ASBOX
2776 echo
2777 # The following way of writing the cache mishandles newlines in values,
2779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2780 eval ac_val=\$$ac_var
2781 case $ac_val in #(
2782 *${as_nl}*)
2783 case $ac_var in #(
2784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 esac
2787 case $ac_var in #(
2788 _ | IFS | as_nl) ;; #(
2789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2790 *) { eval $ac_var=; unset $ac_var;} ;;
2791 esac ;;
2792 esac
2793 done
2794 (set) 2>&1 |
2795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2796 *${as_nl}ac_space=\ *)
2797 sed -n \
2798 "s/'\''/'\''\\\\'\'''\''/g;
2799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 ;; #(
2802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2804 esac |
2805 sort
2807 echo
2809 cat <<\_ASBOX
2810 ## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##
2813 _ASBOX
2814 echo
2815 for ac_var in $ac_subst_vars
2817 eval ac_val=\$$ac_var
2818 case $ac_val in
2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 esac
2821 $as_echo "$ac_var='\''$ac_val'\''"
2822 done | sort
2823 echo
2825 if test -n "$ac_subst_files"; then
2826 cat <<\_ASBOX
2827 ## ------------------- ##
2828 ## File substitutions. ##
2829 ## ------------------- ##
2830 _ASBOX
2831 echo
2832 for ac_var in $ac_subst_files
2834 eval ac_val=\$$ac_var
2835 case $ac_val in
2836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 esac
2838 $as_echo "$ac_var='\''$ac_val'\''"
2839 done | sort
2840 echo
2843 if test -s confdefs.h; then
2844 cat <<\_ASBOX
2845 ## ----------- ##
2846 ## confdefs.h. ##
2847 ## ----------- ##
2848 _ASBOX
2849 echo
2850 cat confdefs.h
2851 echo
2853 test "$ac_signal" != 0 &&
2854 $as_echo "$as_me: caught signal $ac_signal"
2855 $as_echo "$as_me: exit $exit_status"
2856 } >&5
2857 rm -f core *.core core.conftest.* &&
2858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 exit $exit_status
2861 for ac_signal in 1 2 13 15; do
2862 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 done
2864 ac_signal=0
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2869 $as_echo "/* confdefs.h */" > confdefs.h
2871 # Predefined preprocessor variables.
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 _ACEOF
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 _ACEOF
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 _ACEOF
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2895 _ACEOF
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2900 ac_site_file1=NONE
2901 ac_site_file2=NONE
2902 if test -n "$CONFIG_SITE"; then
2903 ac_site_file1=$CONFIG_SITE
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2907 else
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 test "x$ac_site_file" = xNONE && continue
2914 if test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2918 . "$ac_site_file"
2920 done
2922 if test -r "$cache_file"; then
2923 # Some versions of bash will fail to source /dev/null (special
2924 # files actually), so we avoid doing that.
2925 if test -f "$cache_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2927 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 case $cache_file in
2929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2930 *) . "./$cache_file";;
2931 esac
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2935 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 >$cache_file
2939 # Check that the precious variables saved in the cache have kept the same
2940 # value.
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944 eval ac_new_set=\$ac_env_${ac_var}_set
2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946 eval ac_new_val=\$ac_env_${ac_var}_value
2947 case $ac_old_set,$ac_new_set in
2948 set,)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951 ac_cache_corrupted=: ;;
2952 ,set)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2956 ,);;
2958 if test "x$ac_old_val" != "x$ac_new_val"; then
2959 # differences in whitespace do not lead to failure.
2960 ac_old_val_w=`echo x $ac_old_val`
2961 ac_new_val_w=`echo x $ac_new_val`
2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2965 ac_cache_corrupted=:
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969 eval $ac_var=\$ac_old_val
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2972 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 fi;;
2976 esac
2977 # Pass precious variables to config.status.
2978 if test "$ac_new_set" = set; then
2979 case $ac_new_val in
2980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 *) ac_arg=$ac_var=$ac_new_val ;;
2982 esac
2983 case " $ac_configure_args " in
2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 esac
2988 done
2989 if $ac_cache_corrupted; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3014 gcc_version=`cat $srcdir/BASE-VER`
3016 # Determine the host, build, and target systems
3017 ac_aux_dir=
3018 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3019 for ac_t in install-sh install.sh shtool; do
3020 if test -f "$ac_dir/$ac_t"; then
3021 ac_aux_dir=$ac_dir
3022 ac_install_sh="$ac_aux_dir/$ac_t -c"
3023 break 2
3025 done
3026 done
3027 if test -z "$ac_aux_dir"; then
3028 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if test "${ac_cv_build+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3061 *-*-*) ;;
3062 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 esac
3064 build=$ac_cv_build
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_build
3067 shift
3068 build_cpu=$1
3069 build_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 build_os=$*
3074 IFS=$ac_save_IFS
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if test "${ac_cv_host+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
3085 else
3086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3093 case $ac_cv_host in
3094 *-*-*) ;;
3095 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 esac
3097 host=$ac_cv_host
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_host
3100 shift
3101 host_cpu=$1
3102 host_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 host_os=$*
3107 IFS=$ac_save_IFS
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3112 $as_echo_n "checking target system type... " >&6; }
3113 if test "${ac_cv_target+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test "x$target_alias" = x; then
3117 ac_cv_target=$ac_cv_host
3118 else
3119 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3120 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3125 $as_echo "$ac_cv_target" >&6; }
3126 case $ac_cv_target in
3127 *-*-*) ;;
3128 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 esac
3130 target=$ac_cv_target
3131 ac_save_IFS=$IFS; IFS='-'
3132 set x $ac_cv_target
3133 shift
3134 target_cpu=$1
3135 target_vendor=$2
3136 shift; shift
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3139 target_os=$*
3140 IFS=$ac_save_IFS
3141 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3144 # The aliases save the names the user supplied, while $host etc.
3145 # will get canonicalized.
3146 test -n "$target_alias" &&
3147 test "$program_prefix$program_suffix$program_transform_name" = \
3148 NONENONEs,x,x, &&
3149 program_prefix=${target_alias}-
3151 # Determine the noncanonical target name, for directory use.
3152 case ${build_alias} in
3153 "") build_noncanonical=${build} ;;
3154 *) build_noncanonical=${build_alias} ;;
3155 esac
3157 case ${host_alias} in
3158 "") host_noncanonical=${build_noncanonical} ;;
3159 *) host_noncanonical=${host_alias} ;;
3160 esac
3162 case ${target_alias} in
3163 "") target_noncanonical=${host_noncanonical} ;;
3164 *) target_noncanonical=${target_alias} ;;
3165 esac
3170 # Determine the target- and build-specific subdirectories
3172 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3173 # have matching libraries, they should use host libraries: Makefile.tpl
3174 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3175 # However, they still use the build modules, because the corresponding
3176 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # finishes. So:
3178 # - build_subdir is where we find build modules, and never changes.
3179 # - build_libsubdir is where we find build libraries, and can be overridden.
3181 # Prefix 'build-' so this never conflicts with target_subdir.
3182 build_subdir="build-${build_noncanonical}"
3184 # Check whether --with-build-libsubdir was given.
3185 if test "${with_build_libsubdir+set}" = set; then :
3186 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 else
3188 build_libsubdir="$build_subdir"
3191 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3192 if ( test $srcdir = . && test -d gcc ) \
3193 || test -d $srcdir/../host-${host_noncanonical}; then
3194 host_subdir="host-${host_noncanonical}"
3195 else
3196 host_subdir=.
3198 # No prefix.
3199 target_subdir=${target_noncanonical}
3202 # Set program_transform_name
3203 test "$program_prefix" != NONE &&
3204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s,x,x', remove it if useless.
3210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3214 # Check for bogus environment variables.
3215 # Test if LIBRARY_PATH contains the notation for the current directory
3216 # since this would lead to problems installing/building glibc.
3217 # LIBRARY_PATH contains the current directory if one of the following
3218 # is true:
3219 # - one of the terminals (":" and ";") is the first or last sign
3220 # - two terminals occur directly after each other
3221 # - the path contains an element with a dot in it
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3223 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3224 case ${LIBRARY_PATH} in
3225 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3226 library_path_setting="contains current directory"
3229 library_path_setting="ok"
3231 esac
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3233 $as_echo "$library_path_setting" >&6; }
3234 if test "$library_path_setting" != "ok"; then
3235 as_fn_error "
3236 *** LIBRARY_PATH shouldn't contain the current directory when
3237 *** building gcc. Please change the environment variable
3238 *** and run configure again." "$LINENO" 5
3241 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3242 # since this would lead to problems installing/building glibc.
3243 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # is true:
3245 # - one of the terminals (":" and ";") is the first or last sign
3246 # - two terminals occur directly after each other
3247 # - the path contains an element with a dot in it
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3249 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3250 case ${GCC_EXEC_PREFIX} in
3251 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3252 gcc_exec_prefix_setting="contains current directory"
3255 gcc_exec_prefix_setting="ok"
3257 esac
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3259 $as_echo "$gcc_exec_prefix_setting" >&6; }
3260 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 as_fn_error "
3262 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3263 *** building gcc. Please change the environment variable
3264 *** and run configure again." "$LINENO" 5
3267 # -----------
3268 # Directories
3269 # -----------
3271 # Specify the local prefix
3272 local_prefix=
3274 # Check whether --with-local-prefix was given.
3275 if test "${with_local_prefix+set}" = set; then :
3276 withval=$with_local_prefix; case "${withval}" in
3277 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 no) ;;
3279 *) local_prefix=$with_local_prefix ;;
3280 esac
3284 # Default local prefix if it is empty
3285 if test x$local_prefix = x; then
3286 local_prefix=/usr/local
3289 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3290 # passed in by the toplevel make and thus we'd get different behavior
3291 # depending on where we built the sources.
3292 gcc_gxx_include_dir=
3293 # Specify the g++ header file directory
3295 # Check whether --with-gxx-include-dir was given.
3296 if test "${with_gxx_include_dir+set}" = set; then :
3297 withval=$with_gxx_include_dir; case "${withval}" in
3298 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 no) ;;
3300 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3301 esac
3305 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3306 if test x${gcc_gxx_include_dir} = x; then
3307 if test x${enable_version_specific_runtime_libs} = xyes; then
3308 gcc_gxx_include_dir='${libsubdir}/include/c++'
3309 else
3310 libstdcxx_incdir='include/c++/$(version)'
3311 if test x$host != x$target; then
3312 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3314 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3318 gcc_gxx_include_dir_add_sysroot=0
3319 if test "${with_sysroot+set}" = set; then
3320 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3321 if test "${gcc_gxx_without_sysroot}"; then
3322 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3323 gcc_gxx_include_dir_add_sysroot=1
3328 # Check whether --with-cpp_install_dir was given.
3329 if test "${with_cpp_install_dir+set}" = set; then :
3330 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3331 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3332 elif test x$withval != xno; then
3333 cpp_install_dir=$withval
3338 # We would like to our source tree to be readonly. However when releases or
3339 # pre-releases are generated, the flex/bison generated files as well as the
3340 # various formats of manuals need to be included along with the rest of the
3341 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3342 # just that.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3345 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3346 # Check whether --enable-generated-files-in-srcdir was given.
3347 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3348 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3349 else
3350 generated_files_in_srcdir=no
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3355 $as_echo "$generated_files_in_srcdir" >&6; }
3357 if test "$generated_files_in_srcdir" = "yes"; then
3358 GENINSRC=''
3359 else
3360 GENINSRC='#'
3364 # -------------------
3365 # Find default linker
3366 # -------------------
3368 # With GNU ld
3370 # Check whether --with-gnu-ld was given.
3371 if test "${with_gnu_ld+set}" = set; then :
3372 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3373 else
3374 gnu_ld_flag=no
3378 # With pre-defined ld
3380 # Check whether --with-ld was given.
3381 if test "${with_ld+set}" = set; then :
3382 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3385 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3386 if test ! -x "$DEFAULT_LINKER"; then
3387 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3388 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3389 gnu_ld_flag=yes
3392 cat >>confdefs.h <<_ACEOF
3393 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3394 _ACEOF
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3399 $as_echo_n "checking whether a default linker was specified... " >&6; }
3400 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3401 if test x"$gnu_ld_flag" = x"no"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3413 # With demangler in GNU ld
3415 # Check whether --with-demangler-in-ld was given.
3416 if test "${with_demangler_in_ld+set}" = set; then :
3417 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3418 else
3419 demangler_in_ld=yes
3423 # ----------------------
3424 # Find default assembler
3425 # ----------------------
3427 # With GNU as
3429 # Check whether --with-gnu-as was given.
3430 if test "${with_gnu_as+set}" = set; then :
3431 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3432 else
3433 gas_flag=no
3438 # Check whether --with-as was given.
3439 if test "${with_as+set}" = set; then :
3440 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3443 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3444 if test ! -x "$DEFAULT_ASSEMBLER"; then
3445 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3446 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3447 gas_flag=yes
3450 cat >>confdefs.h <<_ACEOF
3451 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3452 _ACEOF
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3457 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3458 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3459 if test x"$gas_flag" = x"no"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3471 # ---------------
3472 # Find C compiler
3473 # ---------------
3475 # If a non-executable a.out is present (e.g. created by GNU as above even if
3476 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3477 # file, even when creating an executable, so an execution test fails.
3478 # Remove possible default executable files to avoid this.
3480 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3481 # Autoconf includes it.
3482 rm -f a.out a.exe b.out
3484 # Find the native compiler
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3514 IFS=$as_save_IFS
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3578 else
3579 CC="$ac_cv_prog_CC"
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if test "${ac_cv_prog_CC+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3704 done
3705 done
3706 IFS=$as_save_IFS
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3720 test -n "$CC" && break
3721 done
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$ac_ct_CC" && break
3765 done
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details." "$LINENO" 5; }
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 main ()
3821 return 0;
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3830 $as_echo_n "checking for C compiler default output file name... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3861 # Autoconf.
3862 for ac_file in $ac_files ''
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3884 break;;
3885 esac
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3889 else
3890 ac_file=''
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3893 $as_echo "$ac_file" >&6; }
3894 if test -z "$ac_file"; then :
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 { as_fn_set_status 77
3901 as_fn_error "C compiler cannot create executables
3902 See \`config.log' for more details." "$LINENO" 5; }; }
3904 ac_exeext=$ac_cv_exeext
3906 # Check that the compiler produces executables we can run. If not, either
3907 # the compiler is broken, or we cross compile.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3909 $as_echo_n "checking whether the C compiler works... " >&6; }
3910 # If not cross compiling, check that we can run a simple program.
3911 if test "$cross_compiling" != yes; then
3912 if { ac_try='./$ac_file'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3923 cross_compiling=no
3924 else
3925 if test "$cross_compiling" = maybe; then
3926 cross_compiling=yes
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details." "$LINENO" 5; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 $as_echo "yes" >&6; }
3939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 # Check that the compiler produces executables we can run. If not, either
3942 # the compiler is broken, or we cross compile.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944 $as_echo_n "checking whether we are cross compiling... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3946 $as_echo "$cross_compiling" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3949 $as_echo_n "checking for suffix of executables... " >&6; }
3950 if { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3963 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 # `rm'.
3965 for ac_file in conftest.exe conftest conftest.*; do
3966 test -f "$ac_file" || continue
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 break;;
3971 * ) break;;
3972 esac
3973 done
3974 else
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error "cannot compute suffix of executables: cannot compile and link
3978 See \`config.log' for more details." "$LINENO" 5; }
3980 rm -f conftest$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 $as_echo "$ac_cv_exeext" >&6; }
3984 rm -f conftest.$ac_ext
3985 EXEEXT=$ac_cv_exeext
3986 ac_exeext=$EXEEXT
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 $as_echo_n "checking for suffix of object files... " >&6; }
3989 if test "${ac_cv_objext+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3996 main ()
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.o conftest.obj
4004 if { { ac_try="$ac_compile"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 for ac_file in conftest.o conftest.obj conftest.*; do
4016 test -f "$ac_file" || continue;
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4020 break;;
4021 esac
4022 done
4023 else
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error "cannot compute suffix of object files: cannot compile
4030 See \`config.log' for more details." "$LINENO" 5; }
4032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035 $as_echo "$ac_cv_objext" >&6; }
4036 OBJEXT=$ac_cv_objext
4037 ac_objext=$OBJEXT
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4039 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4040 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 main ()
4049 #ifndef __GNUC__
4050 choke me
4051 #endif
4054 return 0;
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_compiler_gnu=yes
4059 else
4060 ac_compiler_gnu=no
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4068 if test $ac_compiler_gnu = yes; then
4069 GCC=yes
4070 else
4071 GCC=
4073 ac_test_CFLAGS=${CFLAGS+set}
4074 ac_save_CFLAGS=$CFLAGS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4076 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4077 if test "${ac_cv_prog_cc_g+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_save_c_werror_flag=$ac_c_werror_flag
4081 ac_c_werror_flag=yes
4082 ac_cv_prog_cc_g=no
4083 CFLAGS="-g"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 main ()
4092 return 0;
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_g=yes
4097 else
4098 CFLAGS=""
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 main ()
4107 return 0;
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4112 else
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4119 main ()
4123 return 0;
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137 $as_echo "$ac_cv_prog_cc_g" >&6; }
4138 if test "$ac_test_CFLAGS" = set; then
4139 CFLAGS=$ac_save_CFLAGS
4140 elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4142 CFLAGS="-g -O2"
4143 else
4144 CFLAGS="-g"
4146 else
4147 if test "$GCC" = yes; then
4148 CFLAGS="-O2"
4149 else
4150 CFLAGS=
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4154 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4155 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_cv_prog_cc_c89=no
4159 ac_save_CC=$CC
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdarg.h>
4163 #include <stdio.h>
4164 #include <sys/types.h>
4165 #include <sys/stat.h>
4166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4167 struct buf { int x; };
4168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4169 static char *e (p, i)
4170 char **p;
4171 int i;
4173 return p[i];
4175 static char *f (char * (*g) (char **, int), char **p, ...)
4177 char *s;
4178 va_list v;
4179 va_start (v,p);
4180 s = g (p, va_arg (v,int));
4181 va_end (v);
4182 return s;
4185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4186 function prototypes and stuff, but not '\xHH' hex character constants.
4187 These don't provoke an error unfortunately, instead are silently treated
4188 as 'x'. The following induces an error, until -std is added to get
4189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4190 array size at least. It's necessary to write '\x00'==0 to get something
4191 that's true only with -std. */
4192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4195 inside strings and character constants. */
4196 #define FOO(x) 'x'
4197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199 int test (int i, double x);
4200 struct s1 {int (*f) (int a);};
4201 struct s2 {int (*f) (double a);};
4202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4203 int argc;
4204 char **argv;
4206 main ()
4208 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4210 return 0;
4212 _ACEOF
4213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 CC="$ac_save_CC $ac_arg"
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_c89=$ac_arg
4220 rm -f core conftest.err conftest.$ac_objext
4221 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222 done
4223 rm -f conftest.$ac_ext
4224 CC=$ac_save_CC
4227 # AC_CACHE_VAL
4228 case "x$ac_cv_prog_cc_c89" in
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;;
4232 xno)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4234 $as_echo "unsupported" >&6; } ;;
4236 CC="$CC $ac_cv_prog_cc_c89"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4239 esac
4240 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 if test "x$CC" != xcc; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4252 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4255 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4257 set dummy $CC; ac_cc=`$as_echo "$2" |
4258 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4259 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4266 main ()
4270 return 0;
4272 _ACEOF
4273 # Make sure it works both with $CC and with simple cc.
4274 # We do the test twice because some compilers refuse to overwrite an
4275 # existing .o file with -o, though they will create one.
4276 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 rm -f conftest2.*
4278 if { { case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4298 then
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4300 if test "x$CC" != xcc; then
4301 # Test first that cc exists at all.
4302 if { ac_try='cc -c conftest.$ac_ext >&5'
4303 { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; }; then
4313 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4314 rm -f conftest2.*
4315 if { { case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; } &&
4325 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; };
4335 then
4336 # cc works too.
4338 else
4339 # cc exists but doesn't like -o.
4340 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344 else
4345 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 rm -f core conftest*
4350 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 $as_echo "yes" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4357 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4361 # expand $ac_aux_dir to an absolute path
4362 am_aux_dir=`cd $ac_aux_dir && pwd`
4364 # FIXME: we rely on the cache variable name because
4365 # there is no other way.
4366 set dummy $CC
4367 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4368 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4369 if test "$am_t" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4379 ac_ext=cpp
4380 ac_cpp='$CXXCPP $CPPFLAGS'
4381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4384 if test -z "$CXX"; then
4385 if test -n "$CCC"; then
4386 CXX=$CCC
4387 else
4388 if test -n "$ac_tool_prefix"; then
4389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_CXX+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$CXX"; then
4399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4418 CXX=$ac_cv_prog_CXX
4419 if test -n "$CXX"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4421 $as_echo "$CXX" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4428 test -n "$CXX" && break
4429 done
4431 if test -z "$CXX"; then
4432 ac_ct_CXX=$CXX
4433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$ac_ct_CXX"; then
4443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_ac_ct_CXX="$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4458 IFS=$as_save_IFS
4462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4463 if test -n "$ac_ct_CXX"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4465 $as_echo "$ac_ct_CXX" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4472 test -n "$ac_ct_CXX" && break
4473 done
4475 if test "x$ac_ct_CXX" = x; then
4476 CXX="g++"
4477 else
4478 case $cross_compiling:$ac_tool_warned in
4479 yes:)
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4482 ac_tool_warned=yes ;;
4483 esac
4484 CXX=$ac_ct_CXX
4490 # Provide some information about the compiler.
4491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4492 set X $ac_compile
4493 ac_compiler=$2
4494 for ac_option in --version -v -V -qversion; do
4495 { { ac_try="$ac_compiler $ac_option >&5"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4503 ac_status=$?
4504 if test -s conftest.err; then
4505 sed '10a\
4506 ... rest of stderr output deleted ...
4507 10q' conftest.err >conftest.er1
4508 cat conftest.er1 >&5
4509 rm -f conftest.er1 conftest.err
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }
4513 done
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4516 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4517 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4524 main ()
4526 #ifndef __GNUC__
4527 choke me
4528 #endif
4531 return 0;
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535 ac_compiler_gnu=yes
4536 else
4537 ac_compiler_gnu=no
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4544 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4545 if test $ac_compiler_gnu = yes; then
4546 GXX=yes
4547 else
4548 GXX=
4550 ac_test_CXXFLAGS=${CXXFLAGS+set}
4551 ac_save_CXXFLAGS=$CXXFLAGS
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4553 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4554 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4558 ac_cxx_werror_flag=yes
4559 ac_cv_prog_cxx_g=no
4560 CXXFLAGS="-g"
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4565 main ()
4569 return 0;
4571 _ACEOF
4572 if ac_fn_cxx_try_compile "$LINENO"; then :
4573 ac_cv_prog_cxx_g=yes
4574 else
4575 CXXFLAGS=""
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4580 main ()
4584 return 0;
4586 _ACEOF
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4589 else
4590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4591 CXXFLAGS="-g"
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4596 main ()
4600 return 0;
4602 _ACEOF
4603 if ac_fn_cxx_try_compile "$LINENO"; then :
4604 ac_cv_prog_cxx_g=yes
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4614 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4615 if test "$ac_test_CXXFLAGS" = set; then
4616 CXXFLAGS=$ac_save_CXXFLAGS
4617 elif test $ac_cv_prog_cxx_g = yes; then
4618 if test "$GXX" = yes; then
4619 CXXFLAGS="-g -O2"
4620 else
4621 CXXFLAGS="-g"
4623 else
4624 if test "$GXX" = yes; then
4625 CXXFLAGS="-O2"
4626 else
4627 CXXFLAGS=
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639 if test -n "$ac_tool_prefix"; then
4640 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4641 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$GNATBIND"; then
4648 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 GNATBIND=$ac_cv_prog_GNATBIND
4668 if test -n "$GNATBIND"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4670 $as_echo "$GNATBIND" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4678 if test -z "$ac_cv_prog_GNATBIND"; then
4679 ac_ct_GNATBIND=$GNATBIND
4680 # Extract the first word of "gnatbind", so it can be a program name with args.
4681 set dummy gnatbind; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$ac_ct_GNATBIND"; then
4688 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4708 if test -n "$ac_ct_GNATBIND"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4710 $as_echo "$ac_ct_GNATBIND" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4716 if test "x$ac_ct_GNATBIND" = x; then
4717 GNATBIND="no"
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725 GNATBIND=$ac_ct_GNATBIND
4727 else
4728 GNATBIND="$ac_cv_prog_GNATBIND"
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$GNATMAKE"; then
4740 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4753 done
4754 done
4755 IFS=$as_save_IFS
4759 GNATMAKE=$ac_cv_prog_GNATMAKE
4760 if test -n "$GNATMAKE"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4762 $as_echo "$GNATMAKE" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4770 if test -z "$ac_cv_prog_GNATMAKE"; then
4771 ac_ct_GNATMAKE=$GNATMAKE
4772 # Extract the first word of "gnatmake", so it can be a program name with args.
4773 set dummy gnatmake; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$ac_ct_GNATMAKE"; then
4780 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4793 done
4794 done
4795 IFS=$as_save_IFS
4799 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4800 if test -n "$ac_ct_GNATMAKE"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4802 $as_echo "$ac_ct_GNATMAKE" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4808 if test "x$ac_ct_GNATMAKE" = x; then
4809 GNATMAKE="no"
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 GNATMAKE=$ac_ct_GNATMAKE
4819 else
4820 GNATMAKE="$ac_cv_prog_GNATMAKE"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4824 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4825 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat >conftest.adb <<EOF
4829 procedure conftest is begin null; end conftest;
4831 acx_cv_cc_gcc_supports_ada=no
4832 # There is a bug in old released versions of GCC which causes the
4833 # driver to exit successfully when the appropriate language module
4834 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4835 # Therefore we must check for the error message as well as an
4836 # unsuccessful exit.
4837 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4838 # given a .adb file, but produce no object file. So we must check
4839 # if an object file was really produced to guard against this.
4840 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4841 if test x"$errors" = x && test -f conftest.$ac_objext; then
4842 acx_cv_cc_gcc_supports_ada=yes
4844 rm -f conftest.*
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4847 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4849 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4850 have_gnat=yes
4851 else
4852 have_gnat=no
4856 # autoconf is lame and doesn't give us any substitution variable for this.
4857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4858 NO_MINUS_C_MINUS_O=yes
4859 else
4860 OUTPUT_OPTION='-o $@'
4865 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4866 # optimizations to be activated explicitly by the toplevel.
4867 case "$CC" in
4868 */prev-gcc/xgcc*) ;;
4869 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4870 esac
4873 # Determine PICFLAG for target gnatlib.
4878 case "${target}" in
4879 # PIC is the default on some targets or must not be used.
4880 *-*-darwin*)
4881 # PIC is the default on this platform
4882 # Common symbols not allowed in MH_DYLIB files
4883 PICFLAG_FOR_TARGET=-fno-common
4885 alpha*-dec-osf5*)
4886 # PIC is the default.
4888 hppa*64*-*-hpux*)
4889 # PIC is the default for 64-bit PA HP-UX.
4891 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4893 i[34567]86-*-interix[3-9]*)
4894 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4895 # Instead, we relocate shared libraries at runtime.
4897 i[34567]86-*-nto-qnx*)
4898 # QNX uses GNU C++, but need to define -shared option too, otherwise
4899 # it will coredump.
4900 PICFLAG_FOR_TARGET='-fPIC -shared'
4902 i[34567]86-pc-msdosdjgpp*)
4903 # DJGPP does not support shared libraries at all.
4905 ia64*-*-hpux*)
4906 # On IA64 HP-UX, PIC is the default but the pic flag
4907 # sets the default TLS model and affects inlining.
4908 PICFLAG_FOR_TARGET=-fPIC
4910 mips-sgi-irix6*)
4911 # PIC is the default.
4913 rs6000-ibm-aix* | powerpc-ibm-aix*)
4914 # All AIX code is PIC.
4917 # Some targets support both -fPIC and -fpic, but prefer the latter.
4918 # FIXME: Why?
4919 i[34567]86-*-* | x86_64-*-*)
4920 PICFLAG_FOR_TARGET=-fpic
4922 m68k-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4925 # FIXME: Override -fPIC default in libgcc only?
4926 sh-*-linux* | sh[2346lbe]*-*-linux*)
4927 PICFLAG_FOR_TARGET=-fpic
4929 # FIXME: Simplify to sh*-*-netbsd*?
4930 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4931 sh64-*-netbsd* | sh64l*-*-netbsd*)
4932 PICFLAG_FOR_TARGET=-fpic
4934 # Default to -fPIC unless specified otherwise.
4936 PICFLAG_FOR_TARGET=-fPIC
4938 esac
4940 # If the user explicitly uses -fpic/-fPIC, keep that.
4941 case "${CFLAGS_FOR_TARGET}" in
4942 *-fpic*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 *-fPIC*)
4946 PICFLAG_FOR_TARGET=-fPIC
4948 esac
4952 # -------------------------
4953 # Check C compiler features
4954 # -------------------------
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4963 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4964 # On Suns, sometimes $CPP names a directory.
4965 if test -n "$CPP" && test -d "$CPP"; then
4966 CPP=
4968 if test -z "$CPP"; then
4969 if test "${ac_cv_prog_CPP+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 # Double quotes because CPP needs to be expanded
4973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4975 ac_preproc_ok=false
4976 for ac_c_preproc_warn_flag in '' yes
4978 # Use a header file that comes with gcc, so configuring glibc
4979 # with a fresh cross-compiler works.
4980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 # <limits.h> exists even on freestanding compilers.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991 Syntax error
4992 _ACEOF
4993 if ac_fn_c_try_cpp "$LINENO"; then :
4995 else
4996 # Broken: fails on valid input.
4997 continue
4999 rm -f conftest.err conftest.$ac_ext
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5015 rm -f conftest.err conftest.$ac_ext
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then :
5021 break
5024 done
5025 ac_cv_prog_CPP=$CPP
5028 CPP=$ac_cv_prog_CPP
5029 else
5030 ac_cv_prog_CPP=$CPP
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5033 $as_echo "$CPP" >&6; }
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050 Syntax error
5051 _ACEOF
5052 if ac_fn_c_try_cpp "$LINENO"; then :
5054 else
5055 # Broken: fails on valid input.
5056 continue
5058 rm -f conftest.err conftest.$ac_ext
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <ac_nonexistent.h>
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5067 # Broken: success on invalid input.
5068 continue
5069 else
5070 # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5074 rm -f conftest.err conftest.$ac_ext
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then :
5081 else
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5085 See \`config.log' for more details." "$LINENO" 5; }
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5097 if test "${ac_cv_path_GREP+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$GREP"; then
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_GREP"; then
5146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148 else
5149 ac_cv_path_GREP=$GREP
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if test "${ac_cv_path_EGREP+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5165 else
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 else
5215 ac_cv_path_EGREP=$EGREP
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5226 $as_echo_n "checking for ANSI C header files... " >&6; }
5227 if test "${ac_cv_header_stdc+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <stdlib.h>
5233 #include <stdarg.h>
5234 #include <string.h>
5235 #include <float.h>
5238 main ()
5242 return 0;
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_header_stdc=yes
5247 else
5248 ac_cv_header_stdc=no
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <string.h>
5258 _ACEOF
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "memchr" >/dev/null 2>&1; then :
5262 else
5263 ac_cv_header_stdc=no
5265 rm -f conftest*
5269 if test $ac_cv_header_stdc = yes; then
5270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <stdlib.h>
5275 _ACEOF
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "free" >/dev/null 2>&1; then :
5279 else
5280 ac_cv_header_stdc=no
5282 rm -f conftest*
5286 if test $ac_cv_header_stdc = yes; then
5287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5288 if test "$cross_compiling" = yes; then :
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ctype.h>
5294 #include <stdlib.h>
5295 #if ((' ' & 0x0FF) == 0x020)
5296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298 #else
5299 # define ISLOWER(c) \
5300 (('a' <= (c) && (c) <= 'i') \
5301 || ('j' <= (c) && (c) <= 'r') \
5302 || ('s' <= (c) && (c) <= 'z'))
5303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5304 #endif
5306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5308 main ()
5310 int i;
5311 for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i))
5313 || toupper (i) != TOUPPER (i))
5314 return 2;
5315 return 0;
5317 _ACEOF
5318 if ac_fn_c_try_run "$LINENO"; then :
5320 else
5321 ac_cv_header_stdc=no
5323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5324 conftest.$ac_objext conftest.beam conftest.$ac_ext
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5330 $as_echo "$ac_cv_header_stdc" >&6; }
5331 if test $ac_cv_header_stdc = yes; then
5333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5339 inttypes.h stdint.h unistd.h
5340 do :
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5344 eval as_val=\$$as_ac_Header
5345 if test "x$as_val" = x""yes; then :
5346 cat >>confdefs.h <<_ACEOF
5347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5348 _ACEOF
5352 done
5356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5357 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5358 MINIX=yes
5359 else
5360 MINIX=
5364 if test "$MINIX" = yes; then
5366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5372 $as_echo "#define _MINIX 1" >>confdefs.h
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5378 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5379 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5385 # define __EXTENSIONS__ 1
5386 $ac_includes_default
5388 main ()
5392 return 0;
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 ac_cv_safe_to_define___extensions__=yes
5397 else
5398 ac_cv_safe_to_define___extensions__=no
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5403 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5404 test $ac_cv_safe_to_define___extensions__ = yes &&
5405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5416 ac_ext=c
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5422 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5423 # On Suns, sometimes $CPP names a directory.
5424 if test -n "$CPP" && test -d "$CPP"; then
5425 CPP=
5427 if test -z "$CPP"; then
5428 if test "${ac_cv_prog_CPP+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 # Double quotes because CPP needs to be expanded
5432 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5434 ac_preproc_ok=false
5435 for ac_c_preproc_warn_flag in '' yes
5437 # Use a header file that comes with gcc, so configuring glibc
5438 # with a fresh cross-compiler works.
5439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440 # <limits.h> exists even on freestanding compilers.
5441 # On the NeXT, cc -E runs the code through the compiler's parser,
5442 # not just through cpp. "Syntax error" is here to catch this case.
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #ifdef __STDC__
5446 # include <limits.h>
5447 #else
5448 # include <assert.h>
5449 #endif
5450 Syntax error
5451 _ACEOF
5452 if ac_fn_c_try_cpp "$LINENO"; then :
5454 else
5455 # Broken: fails on valid input.
5456 continue
5458 rm -f conftest.err conftest.$ac_ext
5460 # OK, works on sane cases. Now check whether nonexistent headers
5461 # can be detected and how.
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <ac_nonexistent.h>
5465 _ACEOF
5466 if ac_fn_c_try_cpp "$LINENO"; then :
5467 # Broken: success on invalid input.
5468 continue
5469 else
5470 # Passes both tests.
5471 ac_preproc_ok=:
5472 break
5474 rm -f conftest.err conftest.$ac_ext
5476 done
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then :
5480 break
5483 done
5484 ac_cv_prog_CPP=$CPP
5487 CPP=$ac_cv_prog_CPP
5488 else
5489 ac_cv_prog_CPP=$CPP
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5492 $as_echo "$CPP" >&6; }
5493 ac_preproc_ok=false
5494 for ac_c_preproc_warn_flag in '' yes
5496 # Use a header file that comes with gcc, so configuring glibc
5497 # with a fresh cross-compiler works.
5498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499 # <limits.h> exists even on freestanding compilers.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 #ifdef __STDC__
5505 # include <limits.h>
5506 #else
5507 # include <assert.h>
5508 #endif
5509 Syntax error
5510 _ACEOF
5511 if ac_fn_c_try_cpp "$LINENO"; then :
5513 else
5514 # Broken: fails on valid input.
5515 continue
5517 rm -f conftest.err conftest.$ac_ext
5519 # OK, works on sane cases. Now check whether nonexistent headers
5520 # can be detected and how.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <ac_nonexistent.h>
5524 _ACEOF
5525 if ac_fn_c_try_cpp "$LINENO"; then :
5526 # Broken: success on invalid input.
5527 continue
5528 else
5529 # Passes both tests.
5530 ac_preproc_ok=:
5531 break
5533 rm -f conftest.err conftest.$ac_ext
5535 done
5536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5537 rm -f conftest.err conftest.$ac_ext
5538 if $ac_preproc_ok; then :
5540 else
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5543 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5544 See \`config.log' for more details." "$LINENO" 5; }
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5554 $as_echo_n "checking for inline... " >&6; }
5555 if test "${ac_cv_c_inline+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 ac_cv_c_inline=no
5559 for ac_kw in inline __inline__ __inline; do
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #ifndef __cplusplus
5563 typedef int foo_t;
5564 static $ac_kw foo_t static_foo () {return 0; }
5565 $ac_kw foo_t foo () {return 0; }
5566 #endif
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_c_inline=$ac_kw
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 test "$ac_cv_c_inline" != no && break
5574 done
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5578 $as_echo "$ac_cv_c_inline" >&6; }
5580 case $ac_cv_c_inline in
5581 inline | yes) ;;
5583 case $ac_cv_c_inline in
5584 no) ac_val=;;
5585 *) ac_val=$ac_cv_c_inline;;
5586 esac
5587 cat >>confdefs.h <<_ACEOF
5588 #ifndef __cplusplus
5589 #define inline $ac_val
5590 #endif
5591 _ACEOF
5593 esac
5596 # Check whether --enable-largefile was given.
5597 if test "${enable_largefile+set}" = set; then :
5598 enableval=$enable_largefile;
5601 if test "$enable_largefile" != no; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5604 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5605 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 ac_cv_sys_largefile_CC=no
5609 if test "$GCC" != yes; then
5610 ac_save_CC=$CC
5611 while :; do
5612 # IRIX 6.2 and later do not support large files by default,
5613 # so use the C compiler's -n32 option if that helps.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <sys/types.h>
5617 /* Check that off_t can represent 2**63 - 1 correctly.
5618 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5619 since some C++ compilers masquerading as C compilers
5620 incorrectly reject 9223372036854775807. */
5621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5623 && LARGE_OFF_T % 2147483647 == 1)
5624 ? 1 : -1];
5626 main ()
5630 return 0;
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 break
5636 rm -f core conftest.err conftest.$ac_objext
5637 CC="$CC -n32"
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_largefile_CC=' -n32'; break
5641 rm -f core conftest.err conftest.$ac_objext
5642 break
5643 done
5644 CC=$ac_save_CC
5645 rm -f conftest.$ac_ext
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5649 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5650 if test "$ac_cv_sys_largefile_CC" != no; then
5651 CC=$CC$ac_cv_sys_largefile_CC
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5655 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5656 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 while :; do
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5672 main ()
5676 return 0;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_sys_file_offset_bits=no; break
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 #define _FILE_OFFSET_BITS 64
5686 #include <sys/types.h>
5687 /* Check that off_t can represent 2**63 - 1 correctly.
5688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5689 since some C++ compilers masquerading as C compilers
5690 incorrectly reject 9223372036854775807. */
5691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5693 && LARGE_OFF_T % 2147483647 == 1)
5694 ? 1 : -1];
5696 main ()
5700 return 0;
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 ac_cv_sys_file_offset_bits=64; break
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cv_sys_file_offset_bits=unknown
5708 break
5709 done
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5712 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5713 case $ac_cv_sys_file_offset_bits in #(
5714 no | unknown) ;;
5716 cat >>confdefs.h <<_ACEOF
5717 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5718 _ACEOF
5720 esac
5721 rm -rf conftest*
5722 if test $ac_cv_sys_file_offset_bits = unknown; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5724 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5725 if test "${ac_cv_sys_large_files+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 while :; do
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5739 ? 1 : -1];
5741 main ()
5745 return 0;
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749 ac_cv_sys_large_files=no; break
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #define _LARGE_FILES 1
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5765 main ()
5769 return 0;
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 ac_cv_sys_large_files=1; break
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_cv_sys_large_files=unknown
5777 break
5778 done
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5781 $as_echo "$ac_cv_sys_large_files" >&6; }
5782 case $ac_cv_sys_large_files in #(
5783 no | unknown) ;;
5785 cat >>confdefs.h <<_ACEOF
5786 #define _LARGE_FILES $ac_cv_sys_large_files
5787 _ACEOF
5789 esac
5790 rm -rf conftest*
5795 # sizeof(char) is 1 by definition.
5796 # The cast to long int works around a bug in the HP C Compiler
5797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5799 # This bug is HP SR number 8606223364.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5801 $as_echo_n "checking size of void *... " >&6; }
5802 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5807 else
5808 if test "$ac_cv_type_void_p" = yes; then
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 { as_fn_set_status 77
5812 as_fn_error "cannot compute sizeof (void *)
5813 See \`config.log' for more details." "$LINENO" 5; }; }
5814 else
5815 ac_cv_sizeof_void_p=0
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5821 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5825 cat >>confdefs.h <<_ACEOF
5826 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5827 _ACEOF
5830 # The cast to long int works around a bug in the HP C Compiler
5831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833 # This bug is HP SR number 8606223364.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5835 $as_echo_n "checking size of short... " >&6; }
5836 if test "${ac_cv_sizeof_short+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5841 else
5842 if test "$ac_cv_type_short" = yes; then
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 { as_fn_set_status 77
5846 as_fn_error "cannot compute sizeof (short)
5847 See \`config.log' for more details." "$LINENO" 5; }; }
5848 else
5849 ac_cv_sizeof_short=0
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5855 $as_echo "$ac_cv_sizeof_short" >&6; }
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_SHORT $ac_cv_sizeof_short
5861 _ACEOF
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5869 $as_echo_n "checking size of int... " >&6; }
5870 if test "${ac_cv_sizeof_int+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5875 else
5876 if test "$ac_cv_type_int" = yes; then
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (int)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5882 else
5883 ac_cv_sizeof_int=0
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5889 $as_echo "$ac_cv_sizeof_int" >&6; }
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_INT $ac_cv_sizeof_int
5895 _ACEOF
5898 # The cast to long int works around a bug in the HP C Compiler
5899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5901 # This bug is HP SR number 8606223364.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5903 $as_echo_n "checking size of long... " >&6; }
5904 if test "${ac_cv_sizeof_long+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5909 else
5910 if test "$ac_cv_type_long" = yes; then
5911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5913 { as_fn_set_status 77
5914 as_fn_error "cannot compute sizeof (long)
5915 See \`config.log' for more details." "$LINENO" 5; }; }
5916 else
5917 ac_cv_sizeof_long=0
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5923 $as_echo "$ac_cv_sizeof_long" >&6; }
5927 cat >>confdefs.h <<_ACEOF
5928 #define SIZEOF_LONG $ac_cv_sizeof_long
5929 _ACEOF
5932 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5933 if test "x$ac_cv_type_long_long" = x""yes; then :
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_LONG_LONG 1
5937 _ACEOF
5939 # The cast to long int works around a bug in the HP C Compiler
5940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5942 # This bug is HP SR number 8606223364.
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5944 $as_echo_n "checking size of long long... " >&6; }
5945 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5950 else
5951 if test "$ac_cv_type_long_long" = yes; then
5952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954 { as_fn_set_status 77
5955 as_fn_error "cannot compute sizeof (long long)
5956 See \`config.log' for more details." "$LINENO" 5; }; }
5957 else
5958 ac_cv_sizeof_long_long=0
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5964 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5968 cat >>confdefs.h <<_ACEOF
5969 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5970 _ACEOF
5975 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5976 if test "x$ac_cv_type___int64" = x""yes; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE___INT64 1
5980 _ACEOF
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5987 $as_echo_n "checking size of __int64... " >&6; }
5988 if test "${ac_cv_sizeof___int64+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5993 else
5994 if test "$ac_cv_type___int64" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status 77
5998 as_fn_error "cannot compute sizeof (__int64)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6000 else
6001 ac_cv_sizeof___int64=0
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6007 $as_echo "$ac_cv_sizeof___int64" >&6; }
6011 cat >>confdefs.h <<_ACEOF
6012 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6013 _ACEOF
6018 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6019 case $ac_cv_c_int8_t in #(
6020 no|yes) ;; #(
6023 cat >>confdefs.h <<_ACEOF
6024 #define int8_t $ac_cv_c_int8_t
6025 _ACEOF
6027 esac
6029 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6030 case $ac_cv_c_int16_t in #(
6031 no|yes) ;; #(
6034 cat >>confdefs.h <<_ACEOF
6035 #define int16_t $ac_cv_c_int16_t
6036 _ACEOF
6038 esac
6040 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6041 case $ac_cv_c_int32_t in #(
6042 no|yes) ;; #(
6045 cat >>confdefs.h <<_ACEOF
6046 #define int32_t $ac_cv_c_int32_t
6047 _ACEOF
6049 esac
6051 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6052 case $ac_cv_c_int64_t in #(
6053 no|yes) ;; #(
6056 cat >>confdefs.h <<_ACEOF
6057 #define int64_t $ac_cv_c_int64_t
6058 _ACEOF
6060 esac
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6064 $as_echo_n "checking for long long int... " >&6; }
6065 if test "${ac_cv_type_long_long_int+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 /* For now, do not test the preprocessor; as of 2007 there are too many
6072 implementations with broken preprocessors. Perhaps this can
6073 be revisited in 2012. In the meantime, code should not expect
6074 #if to work with literals wider than 32 bits. */
6075 /* Test literals. */
6076 long long int ll = 9223372036854775807ll;
6077 long long int nll = -9223372036854775807LL;
6078 unsigned long long int ull = 18446744073709551615ULL;
6079 /* Test constant expressions. */
6080 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6081 ? 1 : -1)];
6082 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6083 ? 1 : -1)];
6084 int i = 63;
6086 main ()
6088 /* Test availability of runtime routines for shift and division. */
6089 long long int llmax = 9223372036854775807ll;
6090 unsigned long long int ullmax = 18446744073709551615ull;
6091 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6092 | (llmax / ll) | (llmax % ll)
6093 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6094 | (ullmax / ull) | (ullmax % ull));
6096 return 0;
6099 _ACEOF
6100 if ac_fn_c_try_link "$LINENO"; then :
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_type_long_long_int=yes
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #include <limits.h>
6107 #ifndef LLONG_MAX
6108 # define HALF \
6109 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6110 # define LLONG_MAX (HALF - 1 + HALF)
6111 #endif
6113 main ()
6115 long long int n = 1;
6116 int i;
6117 for (i = 0; ; i++)
6119 long long int m = n << i;
6120 if (m >> i != n)
6121 return 1;
6122 if (LLONG_MAX / 2 < m)
6123 break;
6125 return 0;
6127 return 0;
6129 _ACEOF
6130 if ac_fn_c_try_run "$LINENO"; then :
6131 ac_cv_type_long_long_int=yes
6132 else
6133 ac_cv_type_long_long_int=no
6135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
6139 else
6140 ac_cv_type_long_long_int=no
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6146 $as_echo "$ac_cv_type_long_long_int" >&6; }
6147 if test $ac_cv_type_long_long_int = yes; then
6149 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6155 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6156 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6158 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6160 else
6161 test $ac_cv_type_long_long_int = yes \
6162 && ac_type='long long int' \
6163 || ac_type='long int'
6165 cat >>confdefs.h <<_ACEOF
6166 #define intmax_t $ac_type
6167 _ACEOF
6173 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6176 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6178 else
6179 for ac_type in 'int' 'long int' 'long long int'; do
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 $ac_includes_default
6184 main ()
6186 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6187 test_array [0] = 0
6190 return 0;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define intptr_t $ac_type
6197 _ACEOF
6199 ac_type=
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 test -z "$ac_type" && break
6203 done
6207 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6208 case $ac_cv_c_uint8_t in #(
6209 no|yes) ;; #(
6212 $as_echo "#define _UINT8_T 1" >>confdefs.h
6215 cat >>confdefs.h <<_ACEOF
6216 #define uint8_t $ac_cv_c_uint8_t
6217 _ACEOF
6219 esac
6221 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6222 case $ac_cv_c_uint16_t in #(
6223 no|yes) ;; #(
6227 cat >>confdefs.h <<_ACEOF
6228 #define uint16_t $ac_cv_c_uint16_t
6229 _ACEOF
6231 esac
6233 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6234 case $ac_cv_c_uint32_t in #(
6235 no|yes) ;; #(
6238 $as_echo "#define _UINT32_T 1" >>confdefs.h
6241 cat >>confdefs.h <<_ACEOF
6242 #define uint32_t $ac_cv_c_uint32_t
6243 _ACEOF
6245 esac
6247 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6248 case $ac_cv_c_uint64_t in #(
6249 no|yes) ;; #(
6252 $as_echo "#define _UINT64_T 1" >>confdefs.h
6255 cat >>confdefs.h <<_ACEOF
6256 #define uint64_t $ac_cv_c_uint64_t
6257 _ACEOF
6259 esac
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6263 $as_echo_n "checking for unsigned long long int... " >&6; }
6264 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6270 /* For now, do not test the preprocessor; as of 2007 there are too many
6271 implementations with broken preprocessors. Perhaps this can
6272 be revisited in 2012. In the meantime, code should not expect
6273 #if to work with literals wider than 32 bits. */
6274 /* Test literals. */
6275 long long int ll = 9223372036854775807ll;
6276 long long int nll = -9223372036854775807LL;
6277 unsigned long long int ull = 18446744073709551615ULL;
6278 /* Test constant expressions. */
6279 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6280 ? 1 : -1)];
6281 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6282 ? 1 : -1)];
6283 int i = 63;
6285 main ()
6287 /* Test availability of runtime routines for shift and division. */
6288 long long int llmax = 9223372036854775807ll;
6289 unsigned long long int ullmax = 18446744073709551615ull;
6290 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6291 | (llmax / ll) | (llmax % ll)
6292 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6293 | (ullmax / ull) | (ullmax % ull));
6295 return 0;
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 ac_cv_type_unsigned_long_long_int=yes
6301 else
6302 ac_cv_type_unsigned_long_long_int=no
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6308 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6309 if test $ac_cv_type_unsigned_long_long_int = yes; then
6311 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6317 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6318 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6320 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6322 else
6323 test $ac_cv_type_unsigned_long_long_int = yes \
6324 && ac_type='unsigned long long int' \
6325 || ac_type='unsigned long int'
6327 cat >>confdefs.h <<_ACEOF
6328 #define uintmax_t $ac_type
6329 _ACEOF
6335 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6336 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6338 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6340 else
6341 for ac_type in 'unsigned int' 'unsigned long int' \
6342 'unsigned long long int'; do
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 $ac_includes_default
6347 main ()
6349 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6350 test_array [0] = 0
6353 return 0;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define uintptr_t $ac_type
6360 _ACEOF
6362 ac_type=
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 test -z "$ac_type" && break
6366 done
6383 # ---------------------
6384 # Warnings and checking
6385 # ---------------------
6387 # Check $CC warning features (if it's GCC).
6388 # We want to use -pedantic, but we don't want warnings about
6389 # * 'long long'
6390 # * variadic macros
6391 # * overlong strings
6392 # * C++11 narrowing conversions in { }
6393 # So, we only use -pedantic if we can disable those warnings.
6395 loose_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6398 # Do the check with the no- prefix removed since gcc silently
6399 # accepts any -Wno-* option on purpose
6400 case $real_option in
6401 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6402 *) option=$real_option ;;
6403 esac
6404 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 CFLAGS="$option"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6416 main ()
6420 return 0;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6425 else
6426 eval "$as_acx_Woption=no"
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 eval ac_res=\$$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6437 done
6438 CFLAGS="$save_CFLAGS"
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 # Do the check with the no- prefix removed since gcc silently
6444 # accepts any -Wno-* option on purpose
6445 case $real_option in
6446 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6447 *) option=$real_option ;;
6448 esac
6449 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 CFLAGS="$option"
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6461 main ()
6465 return 0;
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 eval "$as_acx_Woption=yes"
6470 else
6471 eval "$as_acx_Woption=no"
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 eval ac_res=\$$as_acx_Woption
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6482 done
6483 CFLAGS="$save_CFLAGS"
6485 strict_warn=
6486 save_CFLAGS="$CFLAGS"
6487 for real_option in -Wmissing-format-attribute; do
6488 # Do the check with the no- prefix removed since gcc silently
6489 # accepts any -Wno-* option on purpose
6490 case $real_option in
6491 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6492 *) option=$real_option ;;
6493 esac
6494 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6497 $as_echo_n "checking whether $CC supports $option... " >&6; }
6498 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 CFLAGS="$option"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6506 main ()
6510 return 0;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 eval "$as_acx_Woption=yes"
6515 else
6516 eval "$as_acx_Woption=no"
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 eval ac_res=\$$as_acx_Woption
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6527 done
6528 CFLAGS="$save_CFLAGS"
6530 c_strict_warn=
6531 save_CFLAGS="$CFLAGS"
6532 for real_option in -Wold-style-definition -Wc++-compat; do
6533 # Do the check with the no- prefix removed since gcc silently
6534 # accepts any -Wno-* option on purpose
6535 case $real_option in
6536 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6537 *) option=$real_option ;;
6538 esac
6539 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6542 $as_echo_n "checking whether $CC supports $option... " >&6; }
6543 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 CFLAGS="$option"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 main ()
6555 return 0;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 eval "$as_acx_Woption=yes"
6560 else
6561 eval "$as_acx_Woption=no"
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 eval ac_res=\$$as_acx_Woption
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6568 $as_echo "$ac_res" >&6; }
6569 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6570 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6572 done
6573 CFLAGS="$save_CFLAGS"
6575 # Do the check with the no- prefix removed from the warning options
6576 # since gcc silently accepts any -Wno-* option on purpose
6577 if test "$GCC" = yes; then :
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6579 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6580 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 save_CFLAGS="$CFLAGS"
6584 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6589 main ()
6593 return 0;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6598 else
6599 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 CFLAGS="$save_CFLAGS"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6605 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6606 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6607 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6612 # Check whether --enable-werror-always was given.
6613 if test "${enable_werror_always+set}" = set; then :
6614 enableval=$enable_werror_always;
6615 else
6616 enable_werror_always=no
6619 if test $enable_werror_always = yes; then :
6620 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6625 # The above macros do nothing if the compiler is not GCC. However, the
6626 # Makefile has more goo to add other flags, so these variables are used
6627 # to enable warnings only for GCC.
6628 warn_cflags=
6629 warn_cxxflags=
6630 if test "x$GCC" = "xyes"; then
6631 warn_cflags='$(GCC_WARN_CFLAGS)'
6632 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6637 # Disable exceptions and RTTI if building with g++
6638 noexception_flags=
6639 save_CFLAGS="$CFLAGS"
6640 for real_option in -fno-exceptions -fno-rtti; do
6641 # Do the check with the no- prefix removed since gcc silently
6642 # accepts any -Wno-* option on purpose
6643 case $real_option in
6644 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6645 *) option=$real_option ;;
6646 esac
6647 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6650 $as_echo_n "checking whether $CC supports $option... " >&6; }
6651 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 CFLAGS="$option"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6659 main ()
6663 return 0;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 eval "$as_acx_Woption=yes"
6668 else
6669 eval "$as_acx_Woption=no"
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 eval ac_res=\$$as_acx_Woption
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6678 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6680 done
6681 CFLAGS="$save_CFLAGS"
6684 # Enable expensive internal checks
6685 is_release=
6686 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6687 is_release=yes
6690 # Check whether --enable-checking was given.
6691 if test "${enable_checking+set}" = set; then :
6692 enableval=$enable_checking; ac_checking_flags="${enableval}"
6693 else
6695 # Determine the default checks.
6696 if test x$is_release = x ; then
6697 ac_checking_flags=yes
6698 else
6699 ac_checking_flags=release
6703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6704 for check in release $ac_checking_flags
6706 case $check in
6707 # these set all the flags to specific states
6708 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6709 ac_fold_checking= ; ac_gc_checking=1 ;
6710 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6711 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6712 ac_tree_checking=1 ; ac_valgrind_checking= ;
6713 ac_types_checking=1 ;;
6714 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6715 ac_fold_checking= ; ac_gc_checking= ;
6716 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6717 ac_rtlflag_checking= ; ac_runtime_checking= ;
6718 ac_tree_checking= ; ac_valgrind_checking= ;
6719 ac_types_checking= ;;
6720 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6721 ac_fold_checking=1 ; ac_gc_checking=1 ;
6722 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6723 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6724 ac_tree_checking=1 ; ac_valgrind_checking= ;
6725 ac_types_checking=1 ;;
6726 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6727 ac_fold_checking= ; ac_gc_checking= ;
6728 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6729 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6730 ac_tree_checking= ; ac_valgrind_checking= ;
6731 ac_types_checking= ;;
6732 # these enable particular checks
6733 assert) ac_assert_checking=1 ;;
6734 df) ac_df_checking=1 ;;
6735 fold) ac_fold_checking=1 ;;
6736 gc) ac_gc_checking=1 ;;
6737 gcac) ac_gc_always_collect=1 ;;
6738 gimple) ac_gimple_checking=1 ;;
6739 misc) ac_checking=1 ;;
6740 rtl) ac_rtl_checking=1 ;;
6741 rtlflag) ac_rtlflag_checking=1 ;;
6742 runtime) ac_runtime_checking=1 ;;
6743 tree) ac_tree_checking=1 ;;
6744 types) ac_types_checking=1 ;;
6745 valgrind) ac_valgrind_checking=1 ;;
6746 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6747 esac
6748 done
6749 IFS="$ac_save_IFS"
6751 nocommon_flag=""
6752 if test x$ac_checking != x ; then
6754 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6756 nocommon_flag=-fno-common
6759 if test x$ac_df_checking != x ; then
6761 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6764 if test x$ac_assert_checking != x ; then
6766 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6769 if test x$ac_gimple_checking != x ; then
6771 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6775 if test x$ac_runtime_checking != x ; then
6777 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6780 if test x$ac_tree_checking != x ; then
6782 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6784 TREEBROWSER=tree-browser.o
6786 if test x$ac_types_checking != x ; then
6788 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6792 if test x$ac_rtl_checking != x ; then
6794 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6797 if test x$ac_rtlflag_checking != x ; then
6799 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6802 if test x$ac_gc_checking != x ; then
6804 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6807 if test x$ac_gc_always_collect != x ; then
6809 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6812 if test x$ac_fold_checking != x ; then
6814 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6817 valgrind_path_defines=
6818 valgrind_command=
6820 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6821 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6822 have_valgrind_h=yes
6823 else
6824 have_valgrind_h=no
6829 if test x$ac_valgrind_checking != x ; then
6830 # It is certainly possible that there's valgrind but no valgrind.h.
6831 # GCC relies on making annotations so we must have both.
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6833 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #include <valgrind/memcheck.h>
6837 #ifndef VALGRIND_DISCARD
6838 #error VALGRIND_DISCARD not defined
6839 #endif
6840 _ACEOF
6841 if ac_fn_c_try_cpp "$LINENO"; then :
6842 gcc_cv_header_valgrind_memcheck_h=yes
6843 else
6844 gcc_cv_header_valgrind_memcheck_h=no
6846 rm -f conftest.err conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6848 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6850 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <memcheck.h>
6854 #ifndef VALGRIND_DISCARD
6855 #error VALGRIND_DISCARD not defined
6856 #endif
6857 _ACEOF
6858 if ac_fn_c_try_cpp "$LINENO"; then :
6859 gcc_cv_header_memcheck_h=yes
6860 else
6861 gcc_cv_header_memcheck_h=no
6863 rm -f conftest.err conftest.$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6865 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6867 # Prepare PATH_SEPARATOR.
6868 # The user is always right.
6869 if test "${PATH_SEPARATOR+set}" != set; then
6870 echo "#! /bin/sh" >conf$$.sh
6871 echo "exit 0" >>conf$$.sh
6872 chmod +x conf$$.sh
6873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6874 PATH_SEPARATOR=';'
6875 else
6876 PATH_SEPARATOR=:
6878 rm -f conf$$.sh
6881 # Find out how to test for executable files. Don't use a zero-byte file,
6882 # as systems may use methods other than mode bits to determine executability.
6883 cat >conf$$.file <<_ASEOF
6884 #! /bin/sh
6885 exit 0
6886 _ASEOF
6887 chmod +x conf$$.file
6888 if test -x conf$$.file >/dev/null 2>&1; then
6889 ac_executable_p="test -x"
6890 else
6891 ac_executable_p="test -f"
6893 rm -f conf$$.file
6895 # Extract the first word of "valgrind", so it can be a program name with args.
6896 set dummy valgrind; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 case "$valgrind_path" in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6908 for ac_dir in $PATH; do
6909 IFS="$ac_save_IFS"
6910 test -z "$ac_dir" && ac_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6913 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6914 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6915 break 2
6918 done
6919 done
6920 IFS="$ac_save_IFS"
6922 esac
6924 valgrind_path="$ac_cv_path_valgrind_path"
6925 if test -n "$valgrind_path"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6927 $as_echo "$valgrind_path" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6933 if test "x$valgrind_path" = "x" \
6934 || (test $have_valgrind_h = no \
6935 && test $gcc_cv_header_memcheck_h = no \
6936 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6937 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6939 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6940 valgrind_command="$valgrind_path -q"
6942 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6944 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6946 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6949 if test $gcc_cv_header_memcheck_h = yes; then
6951 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6958 # Enable code coverage collection
6959 # Check whether --enable-coverage was given.
6960 if test "${enable_coverage+set}" = set; then :
6961 enableval=$enable_coverage; case "${enableval}" in
6962 yes|noopt)
6963 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6965 opt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6969 # a.k.a. --disable-coverage
6970 coverage_flags=""
6973 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6975 esac
6976 else
6977 coverage_flags=""
6982 # Check whether --enable-gather-detailed-mem-stats was given.
6983 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6984 enableval=$enable_gather_detailed_mem_stats;
6985 else
6986 enable_gather_detailed_mem_stats=no
6989 if test x$enable_gather_detailed_mem_stats = xyes ; then
6991 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6995 # -------------------------------
6996 # Miscenalleous configure options
6997 # -------------------------------
6999 # See if we are building gcc with C++.
7000 # Check whether --enable-build-with-cxx was given.
7001 if test "${enable_build_with_cxx+set}" = set; then :
7002 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7003 else
7004 ENABLE_BUILD_WITH_CXX=no
7008 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7010 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7014 # With stabs
7016 # Check whether --with-stabs was given.
7017 if test "${with_stabs+set}" = set; then :
7018 withval=$with_stabs; stabs="$with_stabs"
7019 else
7020 stabs=no
7024 # Determine whether or not multilibs are enabled.
7025 # Check whether --enable-multilib was given.
7026 if test "${enable_multilib+set}" = set; then :
7027 enableval=$enable_multilib;
7028 else
7029 enable_multilib=yes
7034 # Enable __cxa_atexit for C++.
7035 # Check whether --enable-__cxa_atexit was given.
7036 if test "${enable___cxa_atexit+set}" = set; then :
7037 enableval=$enable___cxa_atexit;
7041 # Enable C extension for decimal float if target supports it.
7043 # Check whether --enable-decimal-float was given.
7044 if test "${enable_decimal_float+set}" = set; then :
7045 enableval=$enable_decimal_float;
7046 case $enable_decimal_float in
7047 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7048 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7049 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7050 esac
7052 else
7054 case $target in
7055 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7056 i?86*-*-mingw* | x86_64*-*-mingw* | \
7057 i?86*-*-cygwin*)
7058 enable_decimal_float=yes
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7062 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7063 enable_decimal_float=no
7065 esac
7070 # x86's use BID format instead of DPD
7071 case x$enable_decimal_float in
7072 xyes)
7073 case $target in
7074 i?86*-*-* | x86_64*-*-*)
7075 enable_decimal_float=bid
7078 enable_decimal_float=dpd
7080 esac
7081 default_decimal_float=$enable_decimal_float
7083 xno)
7084 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7085 # dependency on libdecnumber.
7086 default_decimal_float=dpd
7088 esac
7093 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7095 cat >>confdefs.h <<_ACEOF
7096 #define ENABLE_DECIMAL_FLOAT $dfp
7097 _ACEOF
7100 # Use default_decimal_float for dependency.
7101 enable_decimal_float=$default_decimal_float
7103 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7105 cat >>confdefs.h <<_ACEOF
7106 #define ENABLE_DECIMAL_BID_FORMAT $bid
7107 _ACEOF
7110 # Enable C extension for fixed-point arithmetic.
7111 # Check whether --enable-fixed-point was given.
7112 if test "${enable_fixed_point+set}" = set; then :
7113 enableval=$enable_fixed_point;
7114 else
7116 case $target in
7117 arm*)
7118 enable_fixed_point=yes
7121 mips*-*-*)
7122 enable_fixed_point=yes
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7126 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7127 enable_fixed_point=no
7129 esac
7135 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7137 cat >>confdefs.h <<_ACEOF
7138 #define ENABLE_FIXED_POINT $fixedpoint
7139 _ACEOF
7142 # Enable threads
7143 # Pass with no value to take the default
7144 # Pass with a value to specify a thread package
7145 # Check whether --enable-threads was given.
7146 if test "${enable_threads+set}" = set; then :
7147 enableval=$enable_threads;
7148 else
7149 enable_threads=''
7153 # Check whether --enable-tls was given.
7154 if test "${enable_tls+set}" = set; then :
7155 enableval=$enable_tls;
7156 case $enable_tls in
7157 yes | no) ;;
7158 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7159 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7160 esac
7162 else
7163 enable_tls=''
7167 # Check whether --enable-objc-gc was given.
7168 if test "${enable_objc_gc+set}" = set; then :
7169 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7170 objc_boehm_gc=''
7171 else
7172 objc_boehm_gc=1
7174 else
7175 objc_boehm_gc=''
7180 # Check whether --with-dwarf2 was given.
7181 if test "${with_dwarf2+set}" = set; then :
7182 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7183 else
7184 dwarf2=no
7188 # Check whether --enable-shared was given.
7189 if test "${enable_shared+set}" = set; then :
7190 enableval=$enable_shared;
7191 case $enable_shared in
7192 yes | no) ;;
7194 enable_shared=no
7195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7196 for pkg in $enableval; do
7197 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7198 enable_shared=yes
7200 done
7201 IFS="$ac_save_ifs"
7203 esac
7205 else
7206 enable_shared=yes
7212 # Check whether --with-native-system-header-dir was given.
7213 if test "${with_native_system_header_dir+set}" = set; then :
7214 withval=$with_native_system_header_dir;
7215 case ${with_native_system_header_dir} in
7216 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7217 /* | [A-Za-z]:[\\/]*) ;;
7218 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7219 esac
7220 configured_native_system_header_dir="${withval}"
7222 else
7223 configured_native_system_header_dir=
7228 # Check whether --with-build-sysroot was given.
7229 if test "${with_build_sysroot+set}" = set; then :
7230 withval=$with_build_sysroot; if test x"$withval" != x ; then
7231 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7233 else
7234 SYSROOT_CFLAGS_FOR_TARGET=
7239 if test "x$prefix" = xNONE; then
7240 test_prefix=/usr/local
7241 else
7242 test_prefix=$prefix
7244 if test "x$exec_prefix" = xNONE; then
7245 test_exec_prefix=$test_prefix
7246 else
7247 test_exec_prefix=$exec_prefix
7251 # Check whether --with-sysroot was given.
7252 if test "${with_sysroot+set}" = set; then :
7253 withval=$with_sysroot;
7254 case ${with_sysroot} in
7255 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7256 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7257 esac
7259 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7260 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7262 case ${TARGET_SYSTEM_ROOT} in
7263 "${test_prefix}"|"${test_prefix}/"*|\
7264 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7265 '${prefix}'|'${prefix}/'*|\
7266 '${exec_prefix}'|'${exec_prefix}/'*)
7267 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7268 TARGET_SYSTEM_ROOT_DEFINE="$t"
7270 esac
7272 else
7274 TARGET_SYSTEM_ROOT=
7275 TARGET_SYSTEM_ROOT_DEFINE=
7276 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7285 # Check whether --with-specs was given.
7286 if test "${with_specs+set}" = set; then :
7287 withval=$with_specs; CONFIGURE_SPECS=$withval
7288 else
7289 CONFIGURE_SPECS=
7297 # Check whether --with-pkgversion was given.
7298 if test "${with_pkgversion+set}" = set; then :
7299 withval=$with_pkgversion; case "$withval" in
7300 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7301 no) PKGVERSION= ;;
7302 *) PKGVERSION="($withval) " ;;
7303 esac
7304 else
7305 PKGVERSION="(GCC) "
7313 # Check whether --with-bugurl was given.
7314 if test "${with_bugurl+set}" = set; then :
7315 withval=$with_bugurl; case "$withval" in
7316 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7317 no) BUGURL=
7319 *) BUGURL="$withval"
7321 esac
7322 else
7323 BUGURL="http://gcc.gnu.org/bugs.html"
7327 case ${BUGURL} in
7329 REPORT_BUGS_TO=
7330 REPORT_BUGS_TEXI=
7333 REPORT_BUGS_TO="<$BUGURL>"
7334 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7336 esac;
7341 # Sanity check enable_languages in case someone does not run the toplevel
7342 # configure # script.
7343 # Check whether --enable-languages was given.
7344 if test "${enable_languages+set}" = set; then :
7345 enableval=$enable_languages; case ,${enable_languages}, in
7346 ,,|,yes,)
7347 # go safe -- we cannot be much sure without the toplevel
7348 # configure's
7349 # analysis of which target libs are present and usable
7350 enable_languages=c
7352 *,all,*)
7353 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7355 *,c,*)
7358 enable_languages=c,${enable_languages}
7360 esac
7361 else
7362 enable_languages=c
7367 # Check whether --with-multilib-list was given.
7368 if test "${with_multilib_list+set}" = set; then :
7369 withval=$with_multilib_list; :
7370 else
7371 with_multilib_list=default
7375 # -------------------------
7376 # Checks for other programs
7377 # -------------------------
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7380 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7381 set x ${MAKE-make}
7382 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat >conftest.make <<\_ACEOF
7387 SHELL = /bin/sh
7388 all:
7389 @echo '@@@%%%=$(MAKE)=@@@%%%'
7390 _ACEOF
7391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7393 *@@@%%%=?*=@@@%%%*)
7394 eval ac_cv_prog_make_${ac_make}_set=yes;;
7396 eval ac_cv_prog_make_${ac_make}_set=no;;
7397 esac
7398 rm -f conftest.make
7400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7402 $as_echo "yes" >&6; }
7403 SET_MAKE=
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 SET_MAKE="MAKE=${MAKE-make}"
7411 # Find some useful tools
7412 for ac_prog in gawk mawk nawk awk
7414 # Extract the first word of "$ac_prog", so it can be a program name with args.
7415 set dummy $ac_prog; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if test "${ac_cv_prog_AWK+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test -n "$AWK"; then
7422 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_AWK="$ac_prog"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7435 done
7436 done
7437 IFS=$as_save_IFS
7441 AWK=$ac_cv_prog_AWK
7442 if test -n "$AWK"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7444 $as_echo "$AWK" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7451 test -n "$AWK" && break
7452 done
7454 # We need awk to create options.c and options.h.
7455 # Bail out if it's missing.
7456 case ${AWK} in
7457 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7458 esac
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7461 $as_echo_n "checking whether ln -s works... " >&6; }
7462 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 rm -f conftestdata_t
7466 echo >conftestdata_f
7467 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7468 then
7469 gcc_cv_prog_LN_S="ln -s"
7470 else
7471 if ln conftestdata_f conftestdata_t 2>/dev/null
7472 then
7473 gcc_cv_prog_LN_S=ln
7474 else
7475 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7476 then
7477 gcc_cv_prog_LN_S="cp -p"
7478 else
7479 gcc_cv_prog_LN_S=cp
7483 rm -f conftestdata_f conftestdata_t
7486 LN_S="$gcc_cv_prog_LN_S"
7487 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7489 $as_echo "yes" >&6; }
7490 else
7491 if test "$gcc_cv_prog_LN_S" = "ln"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7493 $as_echo "no, using ln" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7496 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7501 $as_echo_n "checking whether ln works... " >&6; }
7502 if test "${acx_cv_prog_LN+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 rm -f conftestdata_t
7506 echo >conftestdata_f
7507 if ln conftestdata_f conftestdata_t 2>/dev/null
7508 then
7509 acx_cv_prog_LN=ln
7510 else
7511 acx_cv_prog_LN=no
7513 rm -f conftestdata_f conftestdata_t
7516 if test $acx_cv_prog_LN = no; then
7517 LN="$LN_S"
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7519 $as_echo "no, using $LN" >&6; }
7520 else
7521 LN="$acx_cv_prog_LN"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$RANLIB"; then
7535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7548 done
7549 done
7550 IFS=$as_save_IFS
7554 RANLIB=$ac_cv_prog_RANLIB
7555 if test -n "$RANLIB"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7557 $as_echo "$RANLIB" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7565 if test -z "$ac_cv_prog_RANLIB"; then
7566 ac_ct_RANLIB=$RANLIB
7567 # Extract the first word of "ranlib", so it can be a program name with args.
7568 set dummy ranlib; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$ac_ct_RANLIB"; then
7575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_prog_ac_ct_RANLIB="ranlib"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7588 done
7589 done
7590 IFS=$as_save_IFS
7594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7595 if test -n "$ac_ct_RANLIB"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7597 $as_echo "$ac_ct_RANLIB" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7603 if test "x$ac_ct_RANLIB" = x; then
7604 RANLIB=":"
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 RANLIB=$ac_ct_RANLIB
7614 else
7615 RANLIB="$ac_cv_prog_RANLIB"
7618 ranlib_flags=""
7621 # Find a good install program. We prefer a C program (faster),
7622 # so one script is as good as another. But avoid the broken or
7623 # incompatible versions:
7624 # SysV /etc/install, /usr/sbin/install
7625 # SunOS /usr/etc/install
7626 # IRIX /sbin/install
7627 # AIX /bin/install
7628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7630 # ./install, which can be erroneously created by make from ./install.sh.
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7632 $as_echo_n "checking for a BSD compatible install... " >&6; }
7633 if test -z "$INSTALL"; then
7634 if test "${ac_cv_path_install+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7638 for ac_dir in $PATH; do
7639 # Account for people who put trailing slashes in PATH elements.
7640 case "$ac_dir/" in
7641 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7643 # OSF1 and SCO ODT 3.0 have their own names for install.
7644 for ac_prog in ginstall scoinst install; do
7645 if test -f $ac_dir/$ac_prog; then
7646 if test $ac_prog = install &&
7647 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7648 # AIX install. It has an incompatible calling convention.
7649 # OSF/1 installbsd also uses dspmsg, but is usable.
7651 else
7652 ac_cv_path_install="$ac_dir/$ac_prog -c"
7653 break 2
7656 done
7658 esac
7659 done
7660 IFS="$ac_save_IFS"
7663 if test "${ac_cv_path_install+set}" = set; then
7664 INSTALL="$ac_cv_path_install"
7665 else
7666 # As a last resort, use the slow shell script. We don't cache a
7667 # path for INSTALL within a source directory, because that will
7668 # break other packages using the cache if that directory is
7669 # removed, or if the path is relative.
7670 INSTALL="$ac_install_sh"
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7674 $as_echo "$INSTALL" >&6; }
7676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7677 # It thinks the first close brace ends the variable substitution.
7678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7683 # See if cmp has --ignore-initial.
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7685 $as_echo_n "checking for cmp's capabilities... " >&6; }
7686 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 echo abfoo >t1
7690 echo cdfoo >t2
7691 gcc_cv_prog_cmp_skip=slowcompare
7692 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7693 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7695 else
7696 gcc_cv_prog_cmp_skip=gnucompare
7699 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7700 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7701 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7703 else
7704 gcc_cv_prog_cmp_skip=fastcompare
7708 rm t1 t2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7712 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7713 make_compare_target=$gcc_cv_prog_cmp_skip
7717 # See if we have the mktemp command.
7718 # Extract the first word of "mktemp", so it can be a program name with args.
7719 set dummy mktemp; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$have_mktemp_command"; then
7726 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_have_mktemp_command="yes"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7739 done
7740 done
7741 IFS=$as_save_IFS
7743 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7746 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7747 if test -n "$have_mktemp_command"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7749 $as_echo "$have_mktemp_command" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7757 # See if makeinfo has been installed and is modern enough
7758 # that we can use it.
7760 # Extract the first word of "makeinfo", so it can be a program name with args.
7761 set dummy makeinfo; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 if test -n "$MAKEINFO"; then
7768 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_MAKEINFO="makeinfo"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7781 done
7782 done
7783 IFS=$as_save_IFS
7787 MAKEINFO=$ac_cv_prog_MAKEINFO
7788 if test -n "$MAKEINFO"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7790 $as_echo "$MAKEINFO" >&6; }
7791 else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7797 if test -n "$MAKEINFO"; then
7798 # Found it, now check the version.
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7800 $as_echo_n "checking for modern makeinfo... " >&6; }
7801 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7805 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7807 case $ac_prog_version in
7808 '') gcc_cv_prog_makeinfo_modern=no;;
7809 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7810 *) gcc_cv_prog_makeinfo_modern=no;;
7811 esac
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7815 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7816 else
7817 gcc_cv_prog_makeinfo_modern=no
7819 if test $gcc_cv_prog_makeinfo_modern = no; then
7820 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7823 if test $gcc_cv_prog_makeinfo_modern = no; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7825 *** Makeinfo is missing or too old.
7826 *** Info documentation will not be built." >&5
7827 $as_echo "$as_me: WARNING:
7828 *** Makeinfo is missing or too old.
7829 *** Info documentation will not be built." >&2;}
7830 BUILD_INFO=
7831 else
7832 BUILD_INFO=info
7836 # Is pod2man recent enough to regenerate manpages?
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7838 $as_echo_n "checking for recent Pod::Man... " >&6; }
7839 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841 $as_echo "yes" >&6; }
7842 GENERATED_MANPAGES=generated-manpages
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 GENERATED_MANPAGES=
7850 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7852 # How about lex?
7853 for ac_prog in flex
7855 # Extract the first word of "$ac_prog", so it can be a program name with args.
7856 set dummy $ac_prog; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if test "${ac_cv_prog_FLEX+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 if test -n "$FLEX"; then
7863 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7872 ac_cv_prog_FLEX="$ac_prog"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7876 done
7877 done
7878 IFS=$as_save_IFS
7882 FLEX=$ac_cv_prog_FLEX
7883 if test -n "$FLEX"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7885 $as_echo "$FLEX" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7892 test -n "$FLEX" && break
7893 done
7894 test -n "$FLEX" || FLEX="$MISSING flex"
7897 # Bison?
7898 for ac_prog in bison
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_BISON+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$BISON"; then
7908 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_BISON="$ac_prog"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7927 BISON=$ac_cv_prog_BISON
7928 if test -n "$BISON"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7930 $as_echo "$BISON" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7937 test -n "$BISON" && break
7938 done
7939 test -n "$BISON" || BISON="$MISSING bison"
7942 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7943 # check for build == host before using them.
7945 # NM
7946 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7947 && test -d ../binutils ; then
7948 NM='${objdir}/../binutils/nm-new'
7949 else
7950 # Extract the first word of "nm", so it can be a program name with args.
7951 set dummy nm; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_prog_NM+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$NM"; then
7958 ac_cv_prog_NM="$NM" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_NM="nm"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7971 done
7972 done
7973 IFS=$as_save_IFS
7975 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7978 NM=$ac_cv_prog_NM
7979 if test -n "$NM"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7981 $as_echo "$NM" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7990 # AR
7991 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7992 && test -d ../binutils ; then
7993 AR='${objdir}/../binutils/ar'
7994 else
7995 # Extract the first word of "ar", so it can be a program name with args.
7996 set dummy ar; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_AR+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$AR"; then
8003 ac_cv_prog_AR="$AR" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_AR="ar"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8020 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8023 AR=$ac_cv_prog_AR
8024 if test -n "$AR"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8026 $as_echo "$AR" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8036 # --------------------
8037 # Checks for C headers
8038 # --------------------
8040 # Need to reject headers which give warnings, so that the -Werror bootstrap
8041 # works later. *sigh* This needs to come before all header checks.
8043 ac_c_preproc_warn_flag=yes
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8046 $as_echo_n "checking for ANSI C header files... " >&6; }
8047 if test "${ac_cv_header_stdc+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #include <stdlib.h>
8053 #include <stdarg.h>
8054 #include <string.h>
8055 #include <float.h>
8058 main ()
8062 return 0;
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_header_stdc=yes
8067 else
8068 ac_cv_header_stdc=no
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 if test $ac_cv_header_stdc = yes; then
8073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #include <string.h>
8078 _ACEOF
8079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8080 $EGREP "memchr" >/dev/null 2>&1; then :
8082 else
8083 ac_cv_header_stdc=no
8085 rm -f conftest*
8089 if test $ac_cv_header_stdc = yes; then
8090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 #include <stdlib.h>
8095 _ACEOF
8096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8097 $EGREP "free" >/dev/null 2>&1; then :
8099 else
8100 ac_cv_header_stdc=no
8102 rm -f conftest*
8106 if test $ac_cv_header_stdc = yes; then
8107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8108 if test "$cross_compiling" = yes; then :
8110 else
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <ctype.h>
8114 #include <stdlib.h>
8115 #if ((' ' & 0x0FF) == 0x020)
8116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8118 #else
8119 # define ISLOWER(c) \
8120 (('a' <= (c) && (c) <= 'i') \
8121 || ('j' <= (c) && (c) <= 'r') \
8122 || ('s' <= (c) && (c) <= 'z'))
8123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8124 #endif
8126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8128 main ()
8130 int i;
8131 for (i = 0; i < 256; i++)
8132 if (XOR (islower (i), ISLOWER (i))
8133 || toupper (i) != TOUPPER (i))
8134 return 2;
8135 return 0;
8137 _ACEOF
8138 if ac_fn_c_try_run "$LINENO"; then :
8140 else
8141 ac_cv_header_stdc=no
8143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8144 conftest.$ac_objext conftest.beam conftest.$ac_ext
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8150 $as_echo "$ac_cv_header_stdc" >&6; }
8151 if test $ac_cv_header_stdc = yes; then
8153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8159 if test "${ac_cv_header_time+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #include <sys/types.h>
8165 #include <sys/time.h>
8166 #include <time.h>
8169 main ()
8171 if ((struct tm *) 0)
8172 return 0;
8174 return 0;
8176 _ACEOF
8177 if ac_fn_c_try_compile "$LINENO"; then :
8178 ac_cv_header_time=yes
8179 else
8180 ac_cv_header_time=no
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8185 $as_echo "$ac_cv_header_time" >&6; }
8186 if test $ac_cv_header_time = yes; then
8188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8193 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8194 if test "${gcc_cv_header_string+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 #include <string.h>
8200 #include <strings.h>
8202 main ()
8206 return 0;
8208 _ACEOF
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 gcc_cv_header_string=yes
8211 else
8212 gcc_cv_header_string=no
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8217 $as_echo "$gcc_cv_header_string" >&6; }
8218 if test $gcc_cv_header_string = yes; then
8220 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8225 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8226 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #include <sys/types.h>
8232 #include <sys/wait.h>
8233 #ifndef WEXITSTATUS
8234 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8235 #endif
8236 #ifndef WIFEXITED
8237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8238 #endif
8241 main ()
8243 int s;
8244 wait (&s);
8245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8247 return 0;
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 ac_cv_header_sys_wait_h=yes
8252 else
8253 ac_cv_header_sys_wait_h=no
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8258 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8259 if test $ac_cv_header_sys_wait_h = yes; then
8261 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8265 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8266 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8267 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8268 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8269 do :
8270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8271 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8272 eval as_val=\$$as_ac_Header
8273 if test "x$as_val" = x""yes; then :
8274 cat >>confdefs.h <<_ACEOF
8275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 _ACEOF
8279 done
8282 # Check for thread headers.
8283 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8284 if test "x$ac_cv_header_thread_h" = x""yes; then :
8285 have_thread_h=yes
8286 else
8287 have_thread_h=
8290 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8291 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8292 have_pthread_h=yes
8293 else
8294 have_pthread_h=
8298 # These tests can't be done till we know if we have limits.h.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8300 $as_echo_n "checking for CHAR_BIT... " >&6; }
8301 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 #ifdef HAVE_LIMITS_H
8307 #include <limits.h>
8308 #endif
8309 #ifdef CHAR_BIT
8310 found
8311 #endif
8312 _ACEOF
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314 $EGREP "found" >/dev/null 2>&1; then :
8315 gcc_cv_decl_char_bit=yes
8316 else
8317 gcc_cv_decl_char_bit=no
8319 rm -f conftest*
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8324 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8325 if test $gcc_cv_decl_char_bit = no; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8327 $as_echo_n "checking number of bits in a byte... " >&6; }
8328 if test "${gcc_cv_c_nbby+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8332 gcc_cv_c_nbby=
8333 while test $i -lt 65; do
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8338 main ()
8340 switch(0) {
8341 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8342 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8345 return 0;
8347 _ACEOF
8348 if ac_fn_c_try_compile "$LINENO"; then :
8349 gcc_cv_c_nbby=$i; break
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 i=`expr $i + 1`
8353 done
8354 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8358 $as_echo "$gcc_cv_c_nbby" >&6; }
8359 if test $gcc_cv_c_nbby = failed; then
8360 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8361 else
8363 cat >>confdefs.h <<_ACEOF
8364 #define CHAR_BIT $gcc_cv_c_nbby
8365 _ACEOF
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8370 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8371 if test "${ac_cv_c_bigendian+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 ac_cv_c_bigendian=unknown
8375 # See if we're dealing with a universal compiler.
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 #ifndef __APPLE_CC__
8379 not a universal capable compiler
8380 #endif
8381 typedef int dummy;
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"; then :
8386 # Check for potential -arch flags. It is not universal unless
8387 # there are at least two -arch flags with different values.
8388 ac_arch=
8389 ac_prev=
8390 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8391 if test -n "$ac_prev"; then
8392 case $ac_word in
8393 i?86 | x86_64 | ppc | ppc64)
8394 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8395 ac_arch=$ac_word
8396 else
8397 ac_cv_c_bigendian=universal
8398 break
8401 esac
8402 ac_prev=
8403 elif test "x$ac_word" = "x-arch"; then
8404 ac_prev=arch
8406 done
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 if test $ac_cv_c_bigendian = unknown; then
8410 # See if sys/param.h defines the BYTE_ORDER macro.
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <sys/types.h>
8414 #include <sys/param.h>
8417 main ()
8419 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8420 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8421 && LITTLE_ENDIAN)
8422 bogus endian macros
8423 #endif
8426 return 0;
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430 # It does; now see whether it defined to BIG_ENDIAN or not.
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/param.h>
8437 main ()
8439 #if BYTE_ORDER != BIG_ENDIAN
8440 not big endian
8441 #endif
8444 return 0;
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448 ac_cv_c_bigendian=yes
8449 else
8450 ac_cv_c_bigendian=no
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 if test $ac_cv_c_bigendian = unknown; then
8457 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <limits.h>
8463 main ()
8465 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8466 bogus endian macros
8467 #endif
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 # It does; now see whether it defined to _BIG_ENDIAN or not.
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <limits.h>
8480 main ()
8482 #ifndef _BIG_ENDIAN
8483 not big endian
8484 #endif
8487 return 0;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 ac_cv_c_bigendian=yes
8492 else
8493 ac_cv_c_bigendian=no
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 if test $ac_cv_c_bigendian = unknown; then
8500 # Compile a test program.
8501 if test "$cross_compiling" = yes; then :
8502 # Try to guess by grepping values from an object file.
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 short int ascii_mm[] =
8506 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8507 short int ascii_ii[] =
8508 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8509 int use_ascii (int i) {
8510 return ascii_mm[i] + ascii_ii[i];
8512 short int ebcdic_ii[] =
8513 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8514 short int ebcdic_mm[] =
8515 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8516 int use_ebcdic (int i) {
8517 return ebcdic_mm[i] + ebcdic_ii[i];
8519 extern int foo;
8522 main ()
8524 return use_ascii (foo) == use_ebcdic (foo);
8526 return 0;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8531 ac_cv_c_bigendian=yes
8533 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8534 if test "$ac_cv_c_bigendian" = unknown; then
8535 ac_cv_c_bigendian=no
8536 else
8537 # finding both strings is unlikely to happen, but who knows?
8538 ac_cv_c_bigendian=unknown
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 else
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 $ac_includes_default
8548 main ()
8551 /* Are we little or big endian? From Harbison&Steele. */
8552 union
8554 long int l;
8555 char c[sizeof (long int)];
8556 } u;
8557 u.l = 1;
8558 return u.c[sizeof (long int) - 1] == 1;
8561 return 0;
8563 _ACEOF
8564 if ac_fn_c_try_run "$LINENO"; then :
8565 ac_cv_c_bigendian=no
8566 else
8567 ac_cv_c_bigendian=yes
8569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8570 conftest.$ac_objext conftest.beam conftest.$ac_ext
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8576 $as_echo "$ac_cv_c_bigendian" >&6; }
8577 case $ac_cv_c_bigendian in #(
8578 yes)
8579 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8580 ;; #(
8582 ;; #(
8583 universal)
8585 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8587 ;; #(
8589 as_fn_error "unknown endianness
8590 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8591 esac
8594 # ----------------------
8595 # Checks for C++ headers
8596 # ----------------------
8598 ac_ext=cpp
8599 ac_cpp='$CXXCPP $CPPFLAGS'
8600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8604 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8605 if test -z "$CXXCPP"; then
8606 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 # Double quotes because CXXCPP needs to be expanded
8610 for CXXCPP in "$CXX -E" "/lib/cpp"
8612 ac_preproc_ok=false
8613 for ac_cxx_preproc_warn_flag in '' yes
8615 # Use a header file that comes with gcc, so configuring glibc
8616 # with a fresh cross-compiler works.
8617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8618 # <limits.h> exists even on freestanding compilers.
8619 # On the NeXT, cc -E runs the code through the compiler's parser,
8620 # not just through cpp. "Syntax error" is here to catch this case.
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #ifdef __STDC__
8624 # include <limits.h>
8625 #else
8626 # include <assert.h>
8627 #endif
8628 Syntax error
8629 _ACEOF
8630 if ac_fn_cxx_try_cpp "$LINENO"; then :
8632 else
8633 # Broken: fails on valid input.
8634 continue
8636 rm -f conftest.err conftest.$ac_ext
8638 # OK, works on sane cases. Now check whether nonexistent headers
8639 # can be detected and how.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <ac_nonexistent.h>
8643 _ACEOF
8644 if ac_fn_cxx_try_cpp "$LINENO"; then :
8645 # Broken: success on invalid input.
8646 continue
8647 else
8648 # Passes both tests.
8649 ac_preproc_ok=:
8650 break
8652 rm -f conftest.err conftest.$ac_ext
8654 done
8655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8656 rm -f conftest.err conftest.$ac_ext
8657 if $ac_preproc_ok; then :
8658 break
8661 done
8662 ac_cv_prog_CXXCPP=$CXXCPP
8665 CXXCPP=$ac_cv_prog_CXXCPP
8666 else
8667 ac_cv_prog_CXXCPP=$CXXCPP
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8670 $as_echo "$CXXCPP" >&6; }
8671 ac_preproc_ok=false
8672 for ac_cxx_preproc_warn_flag in '' yes
8674 # Use a header file that comes with gcc, so configuring glibc
8675 # with a fresh cross-compiler works.
8676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677 # <limits.h> exists even on freestanding compilers.
8678 # On the NeXT, cc -E runs the code through the compiler's parser,
8679 # not just through cpp. "Syntax error" is here to catch this case.
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 #ifdef __STDC__
8683 # include <limits.h>
8684 #else
8685 # include <assert.h>
8686 #endif
8687 Syntax error
8688 _ACEOF
8689 if ac_fn_cxx_try_cpp "$LINENO"; then :
8691 else
8692 # Broken: fails on valid input.
8693 continue
8695 rm -f conftest.err conftest.$ac_ext
8697 # OK, works on sane cases. Now check whether nonexistent headers
8698 # can be detected and how.
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 #include <ac_nonexistent.h>
8702 _ACEOF
8703 if ac_fn_cxx_try_cpp "$LINENO"; then :
8704 # Broken: success on invalid input.
8705 continue
8706 else
8707 # Passes both tests.
8708 ac_preproc_ok=:
8709 break
8711 rm -f conftest.err conftest.$ac_ext
8713 done
8714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8715 rm -f conftest.err conftest.$ac_ext
8716 if $ac_preproc_ok; then :
8718 else
8719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8722 See \`config.log' for more details." >&5
8723 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8724 See \`config.log' for more details." >&2;}; }
8727 ac_ext=c
8728 ac_cpp='$CPP $CPPFLAGS'
8729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8734 ac_ext=cpp
8735 ac_cpp='$CXXCPP $CPPFLAGS'
8736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8743 for ac_header in unordered_map
8744 do :
8745 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8746 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_UNORDERED_MAP 1
8749 _ACEOF
8752 done
8754 for ac_header in tr1/unordered_map
8755 do :
8756 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8757 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8758 cat >>confdefs.h <<_ACEOF
8759 #define HAVE_TR1_UNORDERED_MAP 1
8760 _ACEOF
8763 done
8765 for ac_header in ext/hash_map
8766 do :
8767 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8768 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_EXT_HASH_MAP 1
8771 _ACEOF
8774 done
8777 ac_ext=c
8778 ac_cpp='$CPP $CPPFLAGS'
8779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784 # --------
8785 # UNSORTED
8786 # --------
8789 # These libraries may be used by collect2.
8790 # We may need a special search path to get them linked.
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8792 $as_echo_n "checking for collect2 libraries... " >&6; }
8793 if test "${gcc_cv_collect2_libs+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 save_LIBS="$LIBS"
8797 for libs in '' -lld -lmld \
8798 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8799 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8801 LIBS="$libs"
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8805 /* Override any GCC internal prototype to avoid an error.
8806 Use char because int might match the return type of a GCC
8807 builtin and then its argument prototype would still apply. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 char ldopen ();
8813 main ()
8815 return ldopen ();
8817 return 0;
8819 _ACEOF
8820 if ac_fn_c_try_link "$LINENO"; then :
8821 gcc_cv_collect2_libs="$libs"; break
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 done
8826 LIBS="$save_LIBS"
8827 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8830 $as_echo "$gcc_cv_collect2_libs" >&6; }
8831 case $gcc_cv_collect2_libs in
8832 "none required") ;;
8833 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8834 esac
8837 # When building Ada code on Alpha, we need exc_resume which is usually in
8838 # -lexc. So test for it.
8839 save_LIBS="$LIBS"
8840 LIBS=
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8842 $as_echo_n "checking for library containing exc_resume... " >&6; }
8843 if test "${ac_cv_search_exc_resume+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 ac_func_search_save_LIBS=$LIBS
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8850 /* Override any GCC internal prototype to avoid an error.
8851 Use char because int might match the return type of a GCC
8852 builtin and then its argument prototype would still apply. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 char exc_resume ();
8858 main ()
8860 return exc_resume ();
8862 return 0;
8864 _ACEOF
8865 for ac_lib in '' exc; do
8866 if test -z "$ac_lib"; then
8867 ac_res="none required"
8868 else
8869 ac_res=-l$ac_lib
8870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 ac_cv_search_exc_resume=$ac_res
8875 rm -f core conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext
8877 if test "${ac_cv_search_exc_resume+set}" = set; then :
8878 break
8880 done
8881 if test "${ac_cv_search_exc_resume+set}" = set; then :
8883 else
8884 ac_cv_search_exc_resume=no
8886 rm conftest.$ac_ext
8887 LIBS=$ac_func_search_save_LIBS
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8890 $as_echo "$ac_cv_search_exc_resume" >&6; }
8891 ac_res=$ac_cv_search_exc_resume
8892 if test "$ac_res" != no; then :
8893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8897 GNAT_LIBEXC="$LIBS"
8898 LIBS="$save_LIBS"
8901 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8902 save_LIBS="$LIBS"
8903 LIBS=
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8905 $as_echo_n "checking for library containing kstat_open... " >&6; }
8906 if test "${ac_cv_search_kstat_open+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 ac_func_search_save_LIBS=$LIBS
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char kstat_open ();
8921 main ()
8923 return kstat_open ();
8925 return 0;
8927 _ACEOF
8928 for ac_lib in '' kstat; do
8929 if test -z "$ac_lib"; then
8930 ac_res="none required"
8931 else
8932 ac_res=-l$ac_lib
8933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8935 if ac_fn_c_try_link "$LINENO"; then :
8936 ac_cv_search_kstat_open=$ac_res
8938 rm -f core conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext
8940 if test "${ac_cv_search_kstat_open+set}" = set; then :
8941 break
8943 done
8944 if test "${ac_cv_search_kstat_open+set}" = set; then :
8946 else
8947 ac_cv_search_kstat_open=no
8949 rm conftest.$ac_ext
8950 LIBS=$ac_func_search_save_LIBS
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8953 $as_echo "$ac_cv_search_kstat_open" >&6; }
8954 ac_res=$ac_cv_search_kstat_open
8955 if test "$ac_res" != no; then :
8956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8960 EXTRA_GCC_LIBS="$LIBS"
8961 LIBS="$save_LIBS"
8964 # Some systems put ldexp and frexp in libm instead of libc; assume
8965 # they're both in the same place. jcf-dump needs them.
8966 save_LIBS="$LIBS"
8967 LIBS=
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8969 $as_echo_n "checking for library containing ldexp... " >&6; }
8970 if test "${ac_cv_search_ldexp+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 ac_func_search_save_LIBS=$LIBS
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8977 /* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8980 #ifdef __cplusplus
8981 extern "C"
8982 #endif
8983 char ldexp ();
8985 main ()
8987 return ldexp ();
8989 return 0;
8991 _ACEOF
8992 for ac_lib in '' m; do
8993 if test -z "$ac_lib"; then
8994 ac_res="none required"
8995 else
8996 ac_res=-l$ac_lib
8997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8999 if ac_fn_c_try_link "$LINENO"; then :
9000 ac_cv_search_ldexp=$ac_res
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext
9004 if test "${ac_cv_search_ldexp+set}" = set; then :
9005 break
9007 done
9008 if test "${ac_cv_search_ldexp+set}" = set; then :
9010 else
9011 ac_cv_search_ldexp=no
9013 rm conftest.$ac_ext
9014 LIBS=$ac_func_search_save_LIBS
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9017 $as_echo "$ac_cv_search_ldexp" >&6; }
9018 ac_res=$ac_cv_search_ldexp
9019 if test "$ac_res" != no; then :
9020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9024 LDEXP_LIB="$LIBS"
9025 LIBS="$save_LIBS"
9028 # Use <inttypes.h> only if it exists,
9029 # doesn't clash with <sys/types.h>, and declares intmax_t.
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9031 $as_echo_n "checking for inttypes.h... " >&6; }
9032 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 #include <sys/types.h>
9038 #include <inttypes.h>
9040 main ()
9042 intmax_t i = -1;
9044 return 0;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 gcc_cv_header_inttypes_h=yes
9049 else
9050 gcc_cv_header_inttypes_h=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9056 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9057 if test $gcc_cv_header_inttypes_h = yes; then
9059 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9065 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9066 sysconf strsignal getrusage nl_langinfo \
9067 gettimeofday mbstowcs wcswidth mmap setlocale \
9068 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
9069 do :
9070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9071 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9072 eval as_val=\$$as_ac_var
9073 if test "x$as_val" = x""yes; then :
9074 cat >>confdefs.h <<_ACEOF
9075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9076 _ACEOF
9079 done
9082 if test x$ac_cv_func_mbstowcs = xyes; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9084 $as_echo_n "checking whether mbstowcs works... " >&6; }
9085 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 if test "$cross_compiling" = yes; then :
9089 gcc_cv_func_mbstowcs_works=yes
9090 else
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <stdlib.h>
9094 int main()
9096 mbstowcs(0, "", 0);
9097 return 0;
9099 _ACEOF
9100 if ac_fn_c_try_run "$LINENO"; then :
9101 gcc_cv_func_mbstowcs_works=yes
9102 else
9103 gcc_cv_func_mbstowcs_works=no
9105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9106 conftest.$ac_objext conftest.beam conftest.$ac_ext
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9111 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9112 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9114 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9119 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9120 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9122 else
9124 cat >>confdefs.h <<_ACEOF
9125 #define ssize_t int
9126 _ACEOF
9130 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9131 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9133 else
9135 cat >>confdefs.h <<_ACEOF
9136 #define caddr_t char *
9137 _ACEOF
9143 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9144 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9145 gcc_header_sys_mman_h=yes
9146 else
9147 gcc_header_sys_mman_h=no
9150 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9151 if test "x$ac_cv_func_mmap" = x""yes; then :
9152 gcc_func_mmap=yes
9153 else
9154 gcc_func_mmap=no
9157 if test "$gcc_header_sys_mman_h" != yes \
9158 || test "$gcc_func_mmap" != yes; then
9159 gcc_cv_func_mmap_file=no
9160 gcc_cv_func_mmap_dev_zero=no
9161 gcc_cv_func_mmap_anon=no
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9164 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9165 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 # Add a system to this blacklist if
9169 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9170 # memory area containing the same data that you'd get if you applied
9171 # read() to the same fd. The only system known to have a problem here
9172 # is VMS, where text files have record structure.
9173 case "$host_os" in
9174 *vms* | ultrix*)
9175 gcc_cv_func_mmap_file=no ;;
9177 gcc_cv_func_mmap_file=yes;;
9178 esac
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9181 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9183 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9184 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 # Add a system to this blacklist if it has mmap() but /dev/zero
9188 # does not exist, or if mmapping /dev/zero does not give anonymous
9189 # zeroed pages with both the following properties:
9190 # 1. If you map N consecutive pages in with one call, and then
9191 # unmap any subset of those pages, the pages that were not
9192 # explicitly unmapped remain accessible.
9193 # 2. If you map two adjacent blocks of memory and then unmap them
9194 # both at once, they must both go away.
9195 # Systems known to be in this category are Windows (all variants),
9196 # VMS, and Darwin.
9197 case "$host_os" in
9198 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9199 gcc_cv_func_mmap_dev_zero=no ;;
9201 gcc_cv_func_mmap_dev_zero=yes;;
9202 esac
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9205 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9207 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9209 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9210 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <sys/types.h>
9216 #include <sys/mman.h>
9217 #include <unistd.h>
9219 #ifndef MAP_ANONYMOUS
9220 #define MAP_ANONYMOUS MAP_ANON
9221 #endif
9224 main ()
9226 int n = MAP_ANONYMOUS;
9228 return 0;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 gcc_cv_decl_map_anon=yes
9233 else
9234 gcc_cv_decl_map_anon=no
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9239 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9241 if test $gcc_cv_decl_map_anon = no; then
9242 gcc_cv_func_mmap_anon=no
9243 else
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9245 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9246 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9250 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9251 # doesn't give anonymous zeroed pages with the same properties listed
9252 # above for use of /dev/zero.
9253 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9254 case "$host_os" in
9255 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9256 gcc_cv_func_mmap_anon=no ;;
9258 gcc_cv_func_mmap_anon=yes;;
9259 esac
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9262 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9266 if test $gcc_cv_func_mmap_file = yes; then
9268 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9271 if test $gcc_cv_func_mmap_dev_zero = yes; then
9273 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9276 if test $gcc_cv_func_mmap_anon = yes; then
9278 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9283 case "${host}" in
9284 *-*-*vms*)
9285 # Under VMS, vfork works very differently than on Unix. The standard test
9286 # won't work, and it isn't easily adaptable. It makes more sense to
9287 # just force it.
9288 ac_cv_func_vfork_works=yes
9290 esac
9291 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9292 if test "x$ac_cv_type_pid_t" = x""yes; then :
9294 else
9296 cat >>confdefs.h <<_ACEOF
9297 #define pid_t int
9298 _ACEOF
9302 for ac_header in vfork.h
9303 do :
9304 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9305 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9306 cat >>confdefs.h <<_ACEOF
9307 #define HAVE_VFORK_H 1
9308 _ACEOF
9311 done
9313 for ac_func in fork vfork
9314 do :
9315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9317 eval as_val=\$$as_ac_var
9318 if test "x$as_val" = x""yes; then :
9319 cat >>confdefs.h <<_ACEOF
9320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9321 _ACEOF
9324 done
9326 if test "x$ac_cv_func_fork" = xyes; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9328 $as_echo_n "checking for working fork... " >&6; }
9329 if test "${ac_cv_func_fork_works+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 if test "$cross_compiling" = yes; then :
9333 ac_cv_func_fork_works=cross
9334 else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 $ac_includes_default
9339 main ()
9342 /* By Ruediger Kuhlmann. */
9343 return fork () < 0;
9346 return 0;
9348 _ACEOF
9349 if ac_fn_c_try_run "$LINENO"; then :
9350 ac_cv_func_fork_works=yes
9351 else
9352 ac_cv_func_fork_works=no
9354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9355 conftest.$ac_objext conftest.beam conftest.$ac_ext
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9360 $as_echo "$ac_cv_func_fork_works" >&6; }
9362 else
9363 ac_cv_func_fork_works=$ac_cv_func_fork
9365 if test "x$ac_cv_func_fork_works" = xcross; then
9366 case $host in
9367 *-*-amigaos* | *-*-msdosdjgpp*)
9368 # Override, as these systems have only a dummy fork() stub
9369 ac_cv_func_fork_works=no
9372 ac_cv_func_fork_works=yes
9374 esac
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9376 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9378 ac_cv_func_vfork_works=$ac_cv_func_vfork
9379 if test "x$ac_cv_func_vfork" = xyes; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9381 $as_echo_n "checking for working vfork... " >&6; }
9382 if test "${ac_cv_func_vfork_works+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 if test "$cross_compiling" = yes; then :
9386 ac_cv_func_vfork_works=cross
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 /* Thanks to Paul Eggert for this test. */
9391 $ac_includes_default
9392 #include <sys/wait.h>
9393 #ifdef HAVE_VFORK_H
9394 # include <vfork.h>
9395 #endif
9396 /* On some sparc systems, changes by the child to local and incoming
9397 argument registers are propagated back to the parent. The compiler
9398 is told about this with #include <vfork.h>, but some compilers
9399 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9400 static variable whose address is put into a register that is
9401 clobbered by the vfork. */
9402 static void
9403 #ifdef __cplusplus
9404 sparc_address_test (int arg)
9405 # else
9406 sparc_address_test (arg) int arg;
9407 #endif
9409 static pid_t child;
9410 if (!child) {
9411 child = vfork ();
9412 if (child < 0) {
9413 perror ("vfork");
9414 _exit(2);
9416 if (!child) {
9417 arg = getpid();
9418 write(-1, "", 0);
9419 _exit (arg);
9425 main ()
9427 pid_t parent = getpid ();
9428 pid_t child;
9430 sparc_address_test (0);
9432 child = vfork ();
9434 if (child == 0) {
9435 /* Here is another test for sparc vfork register problems. This
9436 test uses lots of local variables, at least as many local
9437 variables as main has allocated so far including compiler
9438 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9439 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9440 reuse the register of parent for one of the local variables,
9441 since it will think that parent can't possibly be used any more
9442 in this routine. Assigning to the local variable will thus
9443 munge parent in the parent process. */
9444 pid_t
9445 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9446 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9447 /* Convince the compiler that p..p7 are live; otherwise, it might
9448 use the same hardware register for all 8 local variables. */
9449 if (p != p1 || p != p2 || p != p3 || p != p4
9450 || p != p5 || p != p6 || p != p7)
9451 _exit(1);
9453 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9454 from child file descriptors. If the child closes a descriptor
9455 before it execs or exits, this munges the parent's descriptor
9456 as well. Test for this by closing stdout in the child. */
9457 _exit(close(fileno(stdout)) != 0);
9458 } else {
9459 int status;
9460 struct stat st;
9462 while (wait(&status) != child)
9464 return (
9465 /* Was there some problem with vforking? */
9466 child < 0
9468 /* Did the child fail? (This shouldn't happen.) */
9469 || status
9471 /* Did the vfork/compiler bug occur? */
9472 || parent != getpid()
9474 /* Did the file descriptor bug occur? */
9475 || fstat(fileno(stdout), &st) != 0
9479 _ACEOF
9480 if ac_fn_c_try_run "$LINENO"; then :
9481 ac_cv_func_vfork_works=yes
9482 else
9483 ac_cv_func_vfork_works=no
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9491 $as_echo "$ac_cv_func_vfork_works" >&6; }
9494 if test "x$ac_cv_func_fork_works" = xcross; then
9495 ac_cv_func_vfork_works=$ac_cv_func_vfork
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9497 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9500 if test "x$ac_cv_func_vfork_works" = xyes; then
9502 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9504 else
9506 $as_echo "#define vfork fork" >>confdefs.h
9509 if test "x$ac_cv_func_fork_works" = xyes; then
9511 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9516 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9517 # iconv() prototype.
9519 if test "X$prefix" = "XNONE"; then
9520 acl_final_prefix="$ac_default_prefix"
9521 else
9522 acl_final_prefix="$prefix"
9524 if test "X$exec_prefix" = "XNONE"; then
9525 acl_final_exec_prefix='${prefix}'
9526 else
9527 acl_final_exec_prefix="$exec_prefix"
9529 acl_save_prefix="$prefix"
9530 prefix="$acl_final_prefix"
9531 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9532 prefix="$acl_save_prefix"
9535 # Check whether --with-gnu-ld was given.
9536 if test "${with_gnu_ld+set}" = set; then :
9537 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9538 else
9539 with_gnu_ld=no
9542 # Prepare PATH_SEPARATOR.
9543 # The user is always right.
9544 if test "${PATH_SEPARATOR+set}" != set; then
9545 echo "#! /bin/sh" >conf$$.sh
9546 echo "exit 0" >>conf$$.sh
9547 chmod +x conf$$.sh
9548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9549 PATH_SEPARATOR=';'
9550 else
9551 PATH_SEPARATOR=:
9553 rm -f conf$$.sh
9555 ac_prog=ld
9556 if test "$GCC" = yes; then
9557 # Check if gcc -print-prog-name=ld gives a path.
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9559 $as_echo_n "checking for ld used by GCC... " >&6; }
9560 case $host in
9561 *-*-mingw*)
9562 # gcc leaves a trailing carriage return which upsets mingw
9563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9566 esac
9567 case $ac_prog in
9568 # Accept absolute paths.
9569 [\\/]* | [A-Za-z]:[\\/]*)
9570 re_direlt='/[^/][^/]*/\.\./'
9571 # Canonicalize the path of ld
9572 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9573 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9574 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9575 done
9576 test -z "$LD" && LD="$ac_prog"
9579 # If it fails, then pretend we aren't using GCC.
9580 ac_prog=ld
9583 # If it is relative, then search for the first ld in PATH.
9584 with_gnu_ld=unknown
9586 esac
9587 elif test "$with_gnu_ld" = yes; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9589 $as_echo_n "checking for GNU ld... " >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9592 $as_echo_n "checking for non-GNU ld... " >&6; }
9594 if test "${acl_cv_path_LD+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 if test -z "$LD"; then
9598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9599 for ac_dir in $PATH; do
9600 test -z "$ac_dir" && ac_dir=.
9601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9602 acl_cv_path_LD="$ac_dir/$ac_prog"
9603 # Check to see if the program is GNU ld. I'd rather use --version,
9604 # but apparently some GNU ld's only accept -v.
9605 # Break only if it was the GNU/non-GNU ld that we prefer.
9606 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9607 test "$with_gnu_ld" != no && break
9608 else
9609 test "$with_gnu_ld" != yes && break
9612 done
9613 IFS="$ac_save_ifs"
9614 else
9615 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9619 LD="$acl_cv_path_LD"
9620 if test -n "$LD"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9622 $as_echo "$LD" >&6; }
9623 else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9627 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9629 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9630 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9634 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9635 acl_cv_prog_gnu_ld=yes
9636 else
9637 acl_cv_prog_gnu_ld=no
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9641 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9642 with_gnu_ld=$acl_cv_prog_gnu_ld
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9647 $as_echo_n "checking for shared library run path origin... " >&6; }
9648 if test "${acl_cv_rpath+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9652 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9653 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9654 . ./conftest.sh
9655 rm -f ./conftest.sh
9656 acl_cv_rpath=done
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9660 $as_echo "$acl_cv_rpath" >&6; }
9661 wl="$acl_cv_wl"
9662 libext="$acl_cv_libext"
9663 shlibext="$acl_cv_shlibext"
9664 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9665 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9666 hardcode_direct="$acl_cv_hardcode_direct"
9667 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9668 # Check whether --enable-rpath was given.
9669 if test "${enable_rpath+set}" = set; then :
9670 enableval=$enable_rpath; :
9671 else
9672 enable_rpath=yes
9682 use_additional=yes
9684 acl_save_prefix="$prefix"
9685 prefix="$acl_final_prefix"
9686 acl_save_exec_prefix="$exec_prefix"
9687 exec_prefix="$acl_final_exec_prefix"
9689 eval additional_includedir=\"$includedir\"
9690 eval additional_libdir=\"$libdir\"
9692 exec_prefix="$acl_save_exec_prefix"
9693 prefix="$acl_save_prefix"
9696 # Check whether --with-libiconv-prefix was given.
9697 if test "${with_libiconv_prefix+set}" = set; then :
9698 withval=$with_libiconv_prefix;
9699 if test "X$withval" = "Xno"; then
9700 use_additional=no
9701 else
9702 if test "X$withval" = "X"; then
9704 acl_save_prefix="$prefix"
9705 prefix="$acl_final_prefix"
9706 acl_save_exec_prefix="$exec_prefix"
9707 exec_prefix="$acl_final_exec_prefix"
9709 eval additional_includedir=\"$includedir\"
9710 eval additional_libdir=\"$libdir\"
9712 exec_prefix="$acl_save_exec_prefix"
9713 prefix="$acl_save_prefix"
9715 else
9716 additional_includedir="$withval/include"
9717 additional_libdir="$withval/lib"
9723 LIBICONV=
9724 LTLIBICONV=
9725 INCICONV=
9726 rpathdirs=
9727 ltrpathdirs=
9728 names_already_handled=
9729 names_next_round='iconv '
9730 while test -n "$names_next_round"; do
9731 names_this_round="$names_next_round"
9732 names_next_round=
9733 for name in $names_this_round; do
9734 already_handled=
9735 for n in $names_already_handled; do
9736 if test "$n" = "$name"; then
9737 already_handled=yes
9738 break
9740 done
9741 if test -z "$already_handled"; then
9742 names_already_handled="$names_already_handled $name"
9743 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9744 eval value=\"\$HAVE_LIB$uppername\"
9745 if test -n "$value"; then
9746 if test "$value" = yes; then
9747 eval value=\"\$LIB$uppername\"
9748 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9749 eval value=\"\$LTLIB$uppername\"
9750 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9751 else
9754 else
9755 found_dir=
9756 found_la=
9757 found_so=
9758 found_a=
9759 if test $use_additional = yes; then
9760 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9761 found_dir="$additional_libdir"
9762 found_so="$additional_libdir/lib$name.$shlibext"
9763 if test -f "$additional_libdir/lib$name.la"; then
9764 found_la="$additional_libdir/lib$name.la"
9766 else
9767 if test -f "$additional_libdir/lib$name.$libext"; then
9768 found_dir="$additional_libdir"
9769 found_a="$additional_libdir/lib$name.$libext"
9770 if test -f "$additional_libdir/lib$name.la"; then
9771 found_la="$additional_libdir/lib$name.la"
9776 if test "X$found_dir" = "X"; then
9777 for x in $LDFLAGS $LTLIBICONV; do
9779 acl_save_prefix="$prefix"
9780 prefix="$acl_final_prefix"
9781 acl_save_exec_prefix="$exec_prefix"
9782 exec_prefix="$acl_final_exec_prefix"
9783 eval x=\"$x\"
9784 exec_prefix="$acl_save_exec_prefix"
9785 prefix="$acl_save_prefix"
9787 case "$x" in
9788 -L*)
9789 dir=`echo "X$x" | sed -e 's/^X-L//'`
9790 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9791 found_dir="$dir"
9792 found_so="$dir/lib$name.$shlibext"
9793 if test -f "$dir/lib$name.la"; then
9794 found_la="$dir/lib$name.la"
9796 else
9797 if test -f "$dir/lib$name.$libext"; then
9798 found_dir="$dir"
9799 found_a="$dir/lib$name.$libext"
9800 if test -f "$dir/lib$name.la"; then
9801 found_la="$dir/lib$name.la"
9806 esac
9807 if test "X$found_dir" != "X"; then
9808 break
9810 done
9812 if test "X$found_dir" != "X"; then
9813 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9814 if test "X$found_so" != "X"; then
9815 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9817 else
9818 haveit=
9819 for x in $ltrpathdirs; do
9820 if test "X$x" = "X$found_dir"; then
9821 haveit=yes
9822 break
9824 done
9825 if test -z "$haveit"; then
9826 ltrpathdirs="$ltrpathdirs $found_dir"
9828 if test "$hardcode_direct" = yes; then
9829 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9830 else
9831 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9833 haveit=
9834 for x in $rpathdirs; do
9835 if test "X$x" = "X$found_dir"; then
9836 haveit=yes
9837 break
9839 done
9840 if test -z "$haveit"; then
9841 rpathdirs="$rpathdirs $found_dir"
9843 else
9844 haveit=
9845 for x in $LDFLAGS $LIBICONV; do
9847 acl_save_prefix="$prefix"
9848 prefix="$acl_final_prefix"
9849 acl_save_exec_prefix="$exec_prefix"
9850 exec_prefix="$acl_final_exec_prefix"
9851 eval x=\"$x\"
9852 exec_prefix="$acl_save_exec_prefix"
9853 prefix="$acl_save_prefix"
9855 if test "X$x" = "X-L$found_dir"; then
9856 haveit=yes
9857 break
9859 done
9860 if test -z "$haveit"; then
9861 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9863 if test "$hardcode_minus_L" != no; then
9864 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9865 else
9866 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9871 else
9872 if test "X$found_a" != "X"; then
9873 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9874 else
9875 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9878 additional_includedir=
9879 case "$found_dir" in
9880 */lib | */lib/)
9881 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9882 additional_includedir="$basedir/include"
9884 esac
9885 if test "X$additional_includedir" != "X"; then
9886 if test "X$additional_includedir" != "X/usr/include"; then
9887 haveit=
9888 if test "X$additional_includedir" = "X/usr/local/include"; then
9889 if test -n "$GCC"; then
9890 case $host_os in
9891 linux*) haveit=yes;;
9892 esac
9895 if test -z "$haveit"; then
9896 for x in $CPPFLAGS $INCICONV; do
9898 acl_save_prefix="$prefix"
9899 prefix="$acl_final_prefix"
9900 acl_save_exec_prefix="$exec_prefix"
9901 exec_prefix="$acl_final_exec_prefix"
9902 eval x=\"$x\"
9903 exec_prefix="$acl_save_exec_prefix"
9904 prefix="$acl_save_prefix"
9906 if test "X$x" = "X-I$additional_includedir"; then
9907 haveit=yes
9908 break
9910 done
9911 if test -z "$haveit"; then
9912 if test -d "$additional_includedir"; then
9913 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9919 if test -n "$found_la"; then
9920 save_libdir="$libdir"
9921 case "$found_la" in
9922 */* | *\\*) . "$found_la" ;;
9923 *) . "./$found_la" ;;
9924 esac
9925 libdir="$save_libdir"
9926 for dep in $dependency_libs; do
9927 case "$dep" in
9928 -L*)
9929 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9930 if test "X$additional_libdir" != "X/usr/lib"; then
9931 haveit=
9932 if test "X$additional_libdir" = "X/usr/local/lib"; then
9933 if test -n "$GCC"; then
9934 case $host_os in
9935 linux*) haveit=yes;;
9936 esac
9939 if test -z "$haveit"; then
9940 haveit=
9941 for x in $LDFLAGS $LIBICONV; do
9943 acl_save_prefix="$prefix"
9944 prefix="$acl_final_prefix"
9945 acl_save_exec_prefix="$exec_prefix"
9946 exec_prefix="$acl_final_exec_prefix"
9947 eval x=\"$x\"
9948 exec_prefix="$acl_save_exec_prefix"
9949 prefix="$acl_save_prefix"
9951 if test "X$x" = "X-L$additional_libdir"; then
9952 haveit=yes
9953 break
9955 done
9956 if test -z "$haveit"; then
9957 if test -d "$additional_libdir"; then
9958 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9961 haveit=
9962 for x in $LDFLAGS $LTLIBICONV; do
9964 acl_save_prefix="$prefix"
9965 prefix="$acl_final_prefix"
9966 acl_save_exec_prefix="$exec_prefix"
9967 exec_prefix="$acl_final_exec_prefix"
9968 eval x=\"$x\"
9969 exec_prefix="$acl_save_exec_prefix"
9970 prefix="$acl_save_prefix"
9972 if test "X$x" = "X-L$additional_libdir"; then
9973 haveit=yes
9974 break
9976 done
9977 if test -z "$haveit"; then
9978 if test -d "$additional_libdir"; then
9979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9985 -R*)
9986 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9987 if test "$enable_rpath" != no; then
9988 haveit=
9989 for x in $rpathdirs; do
9990 if test "X$x" = "X$dir"; then
9991 haveit=yes
9992 break
9994 done
9995 if test -z "$haveit"; then
9996 rpathdirs="$rpathdirs $dir"
9998 haveit=
9999 for x in $ltrpathdirs; do
10000 if test "X$x" = "X$dir"; then
10001 haveit=yes
10002 break
10004 done
10005 if test -z "$haveit"; then
10006 ltrpathdirs="$ltrpathdirs $dir"
10010 -l*)
10011 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10013 *.la)
10014 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10017 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10018 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10020 esac
10021 done
10023 else
10024 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10025 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10029 done
10030 done
10031 if test "X$rpathdirs" != "X"; then
10032 if test -n "$hardcode_libdir_separator"; then
10033 alldirs=
10034 for found_dir in $rpathdirs; do
10035 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10036 done
10037 acl_save_libdir="$libdir"
10038 libdir="$alldirs"
10039 eval flag=\"$hardcode_libdir_flag_spec\"
10040 libdir="$acl_save_libdir"
10041 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10042 else
10043 for found_dir in $rpathdirs; do
10044 acl_save_libdir="$libdir"
10045 libdir="$found_dir"
10046 eval flag=\"$hardcode_libdir_flag_spec\"
10047 libdir="$acl_save_libdir"
10048 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10049 done
10052 if test "X$ltrpathdirs" != "X"; then
10053 for found_dir in $ltrpathdirs; do
10054 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10055 done
10059 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10060 ac_ext=cpp
10061 ac_cpp='$CXXCPP $CPPFLAGS'
10062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10071 am_save_CPPFLAGS="$CPPFLAGS"
10073 for element in $INCICONV; do
10074 haveit=
10075 for x in $CPPFLAGS; do
10077 acl_save_prefix="$prefix"
10078 prefix="$acl_final_prefix"
10079 acl_save_exec_prefix="$exec_prefix"
10080 exec_prefix="$acl_final_exec_prefix"
10081 eval x=\"$x\"
10082 exec_prefix="$acl_save_exec_prefix"
10083 prefix="$acl_save_prefix"
10085 if test "X$x" = "X$element"; then
10086 haveit=yes
10087 break
10089 done
10090 if test -z "$haveit"; then
10091 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10093 done
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10097 $as_echo_n "checking for iconv... " >&6; }
10098 if test "${am_cv_func_iconv+set}" = set; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10102 am_cv_func_iconv="no, consider installing GNU libiconv"
10103 am_cv_lib_iconv=no
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 #include <stdlib.h>
10107 #include <iconv.h>
10109 main ()
10111 iconv_t cd = iconv_open("","");
10112 iconv(cd,NULL,NULL,NULL,NULL);
10113 iconv_close(cd);
10115 return 0;
10117 _ACEOF
10118 if ac_fn_cxx_try_link "$LINENO"; then :
10119 am_cv_func_iconv=yes
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 if test "$am_cv_func_iconv" != yes; then
10124 am_save_LIBS="$LIBS"
10125 LIBS="$LIBS $LIBICONV"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include <stdlib.h>
10129 #include <iconv.h>
10131 main ()
10133 iconv_t cd = iconv_open("","");
10134 iconv(cd,NULL,NULL,NULL,NULL);
10135 iconv_close(cd);
10137 return 0;
10139 _ACEOF
10140 if ac_fn_cxx_try_link "$LINENO"; then :
10141 am_cv_lib_iconv=yes
10142 am_cv_func_iconv=yes
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10146 LIBS="$am_save_LIBS"
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10151 $as_echo "$am_cv_func_iconv" >&6; }
10152 if test "$am_cv_func_iconv" = yes; then
10154 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10157 if test "$am_cv_lib_iconv" = yes; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10159 $as_echo_n "checking how to link with libiconv... " >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10161 $as_echo "$LIBICONV" >&6; }
10162 else
10163 CPPFLAGS="$am_save_CPPFLAGS"
10164 LIBICONV=
10165 LTLIBICONV=
10170 if test "$am_cv_func_iconv" = yes; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10172 $as_echo_n "checking for iconv declaration... " >&6; }
10173 if test "${am_cv_proto_iconv+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10180 #include <stdlib.h>
10181 #include <iconv.h>
10182 extern
10183 #ifdef __cplusplus
10185 #endif
10186 #if defined(__STDC__) || defined(__cplusplus)
10187 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10188 #else
10189 size_t iconv();
10190 #endif
10193 main ()
10197 return 0;
10199 _ACEOF
10200 if ac_fn_cxx_try_compile "$LINENO"; then :
10201 am_cv_proto_iconv_arg1=""
10202 else
10203 am_cv_proto_iconv_arg1="const"
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 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);"
10209 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10211 }$am_cv_proto_iconv" >&5
10212 $as_echo "${ac_t:-
10213 }$am_cv_proto_iconv" >&6; }
10215 cat >>confdefs.h <<_ACEOF
10216 #define ICONV_CONST $am_cv_proto_iconv_arg1
10217 _ACEOF
10221 ac_ext=c
10222 ac_cpp='$CPP $CPPFLAGS'
10223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227 else
10233 am_save_CPPFLAGS="$CPPFLAGS"
10235 for element in $INCICONV; do
10236 haveit=
10237 for x in $CPPFLAGS; do
10239 acl_save_prefix="$prefix"
10240 prefix="$acl_final_prefix"
10241 acl_save_exec_prefix="$exec_prefix"
10242 exec_prefix="$acl_final_exec_prefix"
10243 eval x=\"$x\"
10244 exec_prefix="$acl_save_exec_prefix"
10245 prefix="$acl_save_prefix"
10247 if test "X$x" = "X$element"; then
10248 haveit=yes
10249 break
10251 done
10252 if test -z "$haveit"; then
10253 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10255 done
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10259 $as_echo_n "checking for iconv... " >&6; }
10260 if test "${am_cv_func_iconv+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10264 am_cv_func_iconv="no, consider installing GNU libiconv"
10265 am_cv_lib_iconv=no
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268 #include <stdlib.h>
10269 #include <iconv.h>
10271 main ()
10273 iconv_t cd = iconv_open("","");
10274 iconv(cd,NULL,NULL,NULL,NULL);
10275 iconv_close(cd);
10277 return 0;
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then :
10281 am_cv_func_iconv=yes
10283 rm -f core conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 if test "$am_cv_func_iconv" != yes; then
10286 am_save_LIBS="$LIBS"
10287 LIBS="$LIBS $LIBICONV"
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290 #include <stdlib.h>
10291 #include <iconv.h>
10293 main ()
10295 iconv_t cd = iconv_open("","");
10296 iconv(cd,NULL,NULL,NULL,NULL);
10297 iconv_close(cd);
10299 return 0;
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 am_cv_lib_iconv=yes
10304 am_cv_func_iconv=yes
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS="$am_save_LIBS"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10313 $as_echo "$am_cv_func_iconv" >&6; }
10314 if test "$am_cv_func_iconv" = yes; then
10316 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10319 if test "$am_cv_lib_iconv" = yes; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10321 $as_echo_n "checking how to link with libiconv... " >&6; }
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10323 $as_echo "$LIBICONV" >&6; }
10324 else
10325 CPPFLAGS="$am_save_CPPFLAGS"
10326 LIBICONV=
10327 LTLIBICONV=
10332 if test "$am_cv_func_iconv" = yes; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10334 $as_echo_n "checking for iconv declaration... " >&6; }
10335 if test "${am_cv_proto_iconv+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 #include <stdlib.h>
10343 #include <iconv.h>
10344 extern
10345 #ifdef __cplusplus
10347 #endif
10348 #if defined(__STDC__) || defined(__cplusplus)
10349 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10350 #else
10351 size_t iconv();
10352 #endif
10355 main ()
10359 return 0;
10361 _ACEOF
10362 if ac_fn_c_try_compile "$LINENO"; then :
10363 am_cv_proto_iconv_arg1=""
10364 else
10365 am_cv_proto_iconv_arg1="const"
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 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);"
10371 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10373 }$am_cv_proto_iconv" >&5
10374 $as_echo "${ac_t:-
10375 }$am_cv_proto_iconv" >&6; }
10377 cat >>confdefs.h <<_ACEOF
10378 #define ICONV_CONST $am_cv_proto_iconv_arg1
10379 _ACEOF
10385 # Until we have in-tree GNU iconv:
10386 LIBICONV_DEP=
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10391 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10392 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
10394 else
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 #include <locale.h>
10399 main ()
10401 return LC_MESSAGES
10403 return 0;
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407 am_cv_val_LC_MESSAGES=yes
10408 else
10409 am_cv_val_LC_MESSAGES=no
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10415 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10416 if test $am_cv_val_LC_MESSAGES = yes; then
10418 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10425 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10426 if test "${am_cv_langinfo_codeset+set}" = set; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <langinfo.h>
10433 main ()
10435 char* cs = nl_langinfo(CODESET);
10437 return 0;
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 am_cv_langinfo_codeset=yes
10442 else
10443 am_cv_langinfo_codeset=no
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10450 $as_echo "$am_cv_langinfo_codeset" >&6; }
10451 if test $am_cv_langinfo_codeset = yes; then
10453 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10458 # We will need to find libiberty.h and ansidecl.h
10459 saved_CFLAGS="$CFLAGS"
10460 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10461 saved_CXXFLAGS="$CXXFLAGS"
10462 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10463 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10464 strsignal strstr stpcpy strverscmp \
10465 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10466 free basename getopt clock getpagesize 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
10468 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 #undef $ac_tr_decl
10477 #define $ac_tr_decl 1
10479 #include "ansidecl.h"
10480 #include "system.h"
10483 main ()
10485 #ifndef $ac_func
10486 char *(*pfn) = (char *(*)) $ac_func ;
10487 #endif
10489 return 0;
10491 _ACEOF
10492 if ac_fn_c_try_compile "$LINENO"; then :
10493 eval "gcc_cv_have_decl_$ac_func=yes"
10494 else
10495 eval "gcc_cv_have_decl_$ac_func=no"
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10503 #define $ac_tr_decl 1
10504 _ACEOF
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10509 #define $ac_tr_decl 0
10510 _ACEOF
10514 done
10517 for ac_func in getrlimit setrlimit getrusage
10519 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10521 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10522 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527 #undef $ac_tr_decl
10528 #define $ac_tr_decl 1
10530 #include "ansidecl.h"
10531 #include "system.h"
10532 #ifdef HAVE_SYS_RESOURCE_H
10533 #include <sys/resource.h>
10534 #endif
10538 main ()
10540 #ifndef $ac_func
10541 char *(*pfn) = (char *(*)) $ac_func ;
10542 #endif
10544 return 0;
10546 _ACEOF
10547 if ac_fn_c_try_compile "$LINENO"; then :
10548 eval "gcc_cv_have_decl_$ac_func=yes"
10549 else
10550 eval "gcc_cv_have_decl_$ac_func=no"
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10557 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10558 #define $ac_tr_decl 1
10559 _ACEOF
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10564 #define $ac_tr_decl 0
10565 _ACEOF
10569 done
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10575 #include "ansidecl.h"
10576 #include "system.h"
10577 #ifdef HAVE_SYS_RESOURCE_H
10578 #include <sys/resource.h>
10579 #endif
10582 main ()
10584 rlim_t l = 0;
10586 return 0;
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10591 else
10593 $as_echo "#define rlim_t long" >>confdefs.h
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10599 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10600 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10601 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10602 for ac_func in ldgetname
10604 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10606 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10607 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 #undef $ac_tr_decl
10613 #define $ac_tr_decl 1
10615 #include "ansidecl.h"
10616 #include "system.h"
10617 #ifdef HAVE_LDFCN_H
10618 #undef FREAD
10619 #undef FWRITE
10620 #include <ldfcn.h>
10621 #endif
10625 main ()
10627 #ifndef $ac_func
10628 char *(*pfn) = (char *(*)) $ac_func ;
10629 #endif
10631 return 0;
10633 _ACEOF
10634 if ac_fn_c_try_compile "$LINENO"; then :
10635 eval "gcc_cv_have_decl_$ac_func=yes"
10636 else
10637 eval "gcc_cv_have_decl_$ac_func=no"
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10644 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10645 #define $ac_tr_decl 1
10646 _ACEOF
10648 else
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10651 #define $ac_tr_decl 0
10652 _ACEOF
10656 done
10659 for ac_func in times
10661 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10663 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10664 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #undef $ac_tr_decl
10670 #define $ac_tr_decl 1
10672 #include "ansidecl.h"
10673 #include "system.h"
10674 #ifdef HAVE_SYS_TIMES_H
10675 #include <sys/times.h>
10676 #endif
10680 main ()
10682 #ifndef $ac_func
10683 char *(*pfn) = (char *(*)) $ac_func ;
10684 #endif
10686 return 0;
10688 _ACEOF
10689 if ac_fn_c_try_compile "$LINENO"; then :
10690 eval "gcc_cv_have_decl_$ac_func=yes"
10691 else
10692 eval "gcc_cv_have_decl_$ac_func=no"
10694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10699 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10700 #define $ac_tr_decl 1
10701 _ACEOF
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10706 #define $ac_tr_decl 0
10707 _ACEOF
10711 done
10714 for ac_func in sigaltstack
10716 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10718 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10719 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #undef $ac_tr_decl
10725 #define $ac_tr_decl 1
10727 #include "ansidecl.h"
10728 #include "system.h"
10729 #include <signal.h>
10733 main ()
10735 #ifndef $ac_func
10736 char *(*pfn) = (char *(*)) $ac_func ;
10737 #endif
10739 return 0;
10741 _ACEOF
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 eval "gcc_cv_have_decl_$ac_func=yes"
10744 else
10745 eval "gcc_cv_have_decl_$ac_func=no"
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10752 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10753 #define $ac_tr_decl 1
10754 _ACEOF
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10759 #define $ac_tr_decl 0
10760 _ACEOF
10764 done
10767 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10768 # prototype.
10769 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10770 ac_ext=cpp
10771 ac_cpp='$CXXCPP $CPPFLAGS'
10772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10776 for ac_func in madvise
10778 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10780 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10781 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786 #undef $ac_tr_decl
10787 #define $ac_tr_decl 1
10789 #include "ansidecl.h"
10790 #include "system.h"
10794 main ()
10796 #ifndef $ac_func
10797 char *(*pfn) = (char *(*)) $ac_func ;
10798 #endif
10800 return 0;
10802 _ACEOF
10803 if ac_fn_cxx_try_compile "$LINENO"; then :
10804 eval "gcc_cv_have_decl_$ac_func=yes"
10805 else
10806 eval "gcc_cv_have_decl_$ac_func=no"
10808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10814 #define $ac_tr_decl 1
10815 _ACEOF
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10820 #define $ac_tr_decl 0
10821 _ACEOF
10825 done
10827 ac_ext=c
10828 ac_cpp='$CPP $CPPFLAGS'
10829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10833 else
10834 for ac_func in madvise
10836 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10838 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10839 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 #undef $ac_tr_decl
10845 #define $ac_tr_decl 1
10847 #include "ansidecl.h"
10848 #include "system.h"
10852 main ()
10854 #ifndef $ac_func
10855 char *(*pfn) = (char *(*)) $ac_func ;
10856 #endif
10858 return 0;
10860 _ACEOF
10861 if ac_fn_c_try_compile "$LINENO"; then :
10862 eval "gcc_cv_have_decl_$ac_func=yes"
10863 else
10864 eval "gcc_cv_have_decl_$ac_func=no"
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10871 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10872 #define $ac_tr_decl 1
10873 _ACEOF
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10878 #define $ac_tr_decl 0
10879 _ACEOF
10883 done
10888 # More time-related stuff.
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10890 $as_echo_n "checking for struct tms... " >&6; }
10891 if test "${ac_cv_struct_tms+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893 else
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10898 #include "ansidecl.h"
10899 #include "system.h"
10900 #ifdef HAVE_SYS_TIMES_H
10901 #include <sys/times.h>
10902 #endif
10905 main ()
10907 struct tms tms;
10909 return 0;
10911 _ACEOF
10912 if ac_fn_c_try_compile "$LINENO"; then :
10913 ac_cv_struct_tms=yes
10914 else
10915 ac_cv_struct_tms=no
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10920 $as_echo "$ac_cv_struct_tms" >&6; }
10921 if test $ac_cv_struct_tms = yes; then
10923 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10927 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10928 # revisit after autoconf 2.50.
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10930 $as_echo_n "checking for clock_t... " >&6; }
10931 if test "${gcc_cv_type_clock_t+set}" = set; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 #include "ansidecl.h"
10939 #include "system.h"
10942 main ()
10944 clock_t x;
10946 return 0;
10948 _ACEOF
10949 if ac_fn_c_try_compile "$LINENO"; then :
10950 gcc_cv_type_clock_t=yes
10951 else
10952 gcc_cv_type_clock_t=no
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10957 $as_echo "$gcc_cv_type_clock_t" >&6; }
10958 if test $gcc_cv_type_clock_t = yes; then
10960 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10964 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10965 CFLAGS="$saved_CFLAGS"
10966 CXXFLAGS="$saved_CXXFLAGS"
10968 # mkdir takes a single argument on some systems.
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10970 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10971 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10977 #include <sys/types.h>
10978 #ifdef HAVE_SYS_STAT_H
10979 # include <sys/stat.h>
10980 #endif
10981 #ifdef HAVE_UNISTD_H
10982 # include <unistd.h>
10983 #endif
10984 #ifdef HAVE_DIRECT_H
10985 # include <direct.h>
10986 #endif
10988 main ()
10990 mkdir ("foo", 0);
10992 return 0;
10994 _ACEOF
10995 if ac_fn_c_try_compile "$LINENO"; then :
10996 gcc_cv_mkdir_takes_one_arg=no
10997 else
10998 gcc_cv_mkdir_takes_one_arg=yes
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11003 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11004 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11006 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11011 # File extensions
11012 manext='.1'
11013 objext='.o'
11017 # With Setjmp/Longjmp based exception handling.
11018 # Check whether --enable-sjlj-exceptions was given.
11019 if test "${enable_sjlj_exceptions+set}" = set; then :
11020 enableval=$enable_sjlj_exceptions; case $target in
11021 *-*-hpux10*)
11022 if test $enableval != yes; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11024 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11025 enableval=yes
11028 esac
11029 force_sjlj_exceptions=yes
11030 else
11031 case $target in
11032 *-*-hpux10*)
11033 force_sjlj_exceptions=yes
11034 enableval=yes
11037 force_sjlj_exceptions=no
11039 esac
11042 if test $force_sjlj_exceptions = yes; then
11043 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11045 cat >>confdefs.h <<_ACEOF
11046 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11047 _ACEOF
11051 # --------------------------------------------------------
11052 # Build, host, and target specific configuration fragments
11053 # --------------------------------------------------------
11055 # Collect build-machine-specific information.
11056 . ${srcdir}/config.build
11058 # Collect host-machine-specific information.
11059 . ${srcdir}/config.host
11061 target_gtfiles=
11063 # Collect target-machine-specific information.
11064 . ${srcdir}/config.gcc
11066 extra_objs="${host_extra_objs} ${extra_objs}"
11067 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11069 # Default the target-machine variables that were not explicitly set.
11070 if test x"$tm_file" = x
11071 then tm_file=$cpu_type/$cpu_type.h; fi
11073 if test x"$extra_headers" = x
11074 then extra_headers=; fi
11076 if test x$md_file = x
11077 then md_file=$cpu_type/$cpu_type.md; fi
11079 if test x$out_file = x
11080 then out_file=$cpu_type/$cpu_type.c; fi
11082 if test x"$tmake_file" = x
11083 then tmake_file=$cpu_type/t-$cpu_type
11086 # Support --enable-initfini-array.
11087 if test x$enable_initfini_array != xno; then
11088 tm_file="${tm_file} initfini-array.h"
11091 if test x"$dwarf2" = xyes
11092 then tm_file="$tm_file tm-dwarf2.h"
11095 # Say what files are being used for the output code and MD file.
11096 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11097 echo "Using \`$srcdir/config/$md_file' as machine description file."
11099 # If any of the xm_file variables contain nonexistent files, warn
11100 # about them and drop them.
11103 for x in $build_xm_file; do
11104 if test -f $srcdir/config/$x
11105 then bx="$bx $x"
11106 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11107 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11109 done
11110 build_xm_file="$bx"
11113 for x in $host_xm_file; do
11114 if test -f $srcdir/config/$x
11115 then hx="$hx $x"
11116 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11117 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11119 done
11120 host_xm_file="$hx"
11123 for x in $xm_file; do
11124 if test -f $srcdir/config/$x
11125 then tx="$tx $x"
11126 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11127 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11129 done
11130 xm_file="$tx"
11132 count=a
11133 for f in $tm_file; do
11134 count=${count}x
11135 done
11136 if test $count = ax; then
11137 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11138 else
11139 echo "Using the following target machine macro files:"
11140 for f in $tm_file; do
11141 echo " $srcdir/config/$f"
11142 done
11145 if test x$need_64bit_hwint = xyes; then
11147 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11151 if test x$use_long_long_for_widest_fast_int = xyes; then
11153 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11157 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_GNU_LD $gnu_ld_bool
11161 _ACEOF
11164 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11166 cat >>confdefs.h <<_ACEOF
11167 #define HAVE_GNU_AS $gnu_as_bool
11168 _ACEOF
11171 count=a
11172 for f in $host_xm_file; do
11173 count=${count}x
11174 done
11175 if test $count = a; then
11177 elif test $count = ax; then
11178 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11179 else
11180 echo "Using the following host machine macro files:"
11181 for f in $host_xm_file; do
11182 echo " $srcdir/config/$f"
11183 done
11185 echo "Using ${out_host_hook_obj} for host machine hooks."
11187 if test "$host_xm_file" != "$build_xm_file"; then
11188 count=a
11189 for f in $build_xm_file; do
11190 count=${count}x
11191 done
11192 if test $count = a; then
11194 elif test $count = ax; then
11195 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11196 else
11197 echo "Using the following build machine macro files:"
11198 for f in $build_xm_file; do
11199 echo " $srcdir/config/$f"
11200 done
11204 if test -n "$configured_native_system_header_dir"; then
11205 native_system_header_dir=$configured_native_system_header_dir
11207 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11210 case ${host} in
11211 powerpc*-*-darwin*)
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11213 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11214 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 #include <sys/cdefs.h>
11221 #include <sys/signal.h>
11222 #include <ucontext.h>
11223 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11225 _ACEOF
11226 if ac_fn_c_try_compile "$LINENO"; then :
11227 gcc_cv_mcontext_underscores=no
11228 else
11229 gcc_cv_mcontext_underscores=yes
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11234 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11235 if test $gcc_cv_mcontext_underscores = yes; then
11237 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11241 esac
11243 # ---------
11244 # Threading
11245 # ---------
11247 # Check if a valid thread package
11248 case ${enable_threads} in
11249 "" | no)
11250 # No threads
11251 target_thread_file='single'
11253 yes)
11254 # default
11255 target_thread_file='single'
11257 aix | dce | lynx | mipssde | posix | rtems | \
11258 single | tpf | vxworks | win32)
11259 target_thread_file=${enable_threads}
11262 echo "${enable_threads} is an unknown thread package" 1>&2
11263 exit 1
11265 esac
11267 if test x${thread_file} = x; then
11268 # No thread file set by target-specific clauses in config.gcc,
11269 # so use file chosen by default logic above
11270 thread_file=${target_thread_file}
11273 # --------
11274 # UNSORTED
11275 # --------
11277 use_cxa_atexit=no
11278 if test x$enable___cxa_atexit = xyes || \
11279 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11280 if test x$host = x$target; then
11281 case $host in
11282 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11283 # keyed to flag_use_cxa_atexit
11284 *-*-mingw32*)
11285 use_cxa_atexit=yes
11288 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11289 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11290 use_cxa_atexit=yes
11291 else
11292 echo "__cxa_atexit can't be enabled on this target"
11296 esac
11297 else
11298 # We can't check for __cxa_atexit when building a cross, so assume
11299 # it is available
11300 use_cxa_atexit=yes
11302 if test x$use_cxa_atexit = xyes; then
11304 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11309 # Look for a file containing extra machine modes.
11310 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11311 extra_modes_file='$(srcdir)'/config/${extra_modes}
11314 cat >>confdefs.h <<_ACEOF
11315 #define EXTRA_MODES_FILE "config/$extra_modes"
11316 _ACEOF
11320 # Convert extra_options into a form suitable for Makefile use.
11321 extra_opt_files=
11322 all_opt_files=
11323 for f in $extra_options; do
11324 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11325 all_opt_files="$all_opt_files $srcdir/config/$f"
11326 done
11329 # auto-host.h is the file containing items generated by autoconf and is
11330 # the first file included by config.h.
11331 # If host=build, it is correct to have bconfig include auto-host.h
11332 # as well. If host!=build, we are in error and need to do more
11333 # work to find out the build config parameters.
11334 if test x$host = x$build
11335 then
11336 build_auto=auto-host.h
11337 else
11338 # We create a subdir, then run autoconf in the subdir.
11339 # To prevent recursion we set host and build for the new
11340 # invocation of configure to the build for this invocation
11341 # of configure.
11342 tempdir=build.$$
11343 rm -rf $tempdir
11344 mkdir $tempdir
11345 cd $tempdir
11346 case ${srcdir} in
11347 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11348 *) realsrcdir=../${srcdir};;
11349 esac
11350 saved_CFLAGS="${CFLAGS}"
11351 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11352 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11353 ${realsrcdir}/configure \
11354 --enable-languages=${enable_languages-all} \
11355 --target=$target_alias --host=$build_alias --build=$build_alias
11356 CFLAGS="${saved_CFLAGS}"
11358 # We just finished tests for the build machine, so rename
11359 # the file auto-build.h in the gcc directory.
11360 mv auto-host.h ../auto-build.h
11361 cd ..
11362 rm -rf $tempdir
11363 build_auto=auto-build.h
11367 tm_file="${tm_file} defaults.h"
11368 tm_p_file="${tm_p_file} tm-preds.h"
11369 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11370 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11371 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11372 # put this back in temporarily.
11373 xm_file="auto-host.h ansidecl.h ${xm_file}"
11375 # --------
11376 # UNSORTED
11377 # --------
11379 # Compile in configure arguments.
11380 if test -f configargs.h ; then
11381 # Being re-configured.
11382 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11383 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11384 else
11385 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11388 # Double all backslashes and backslash all quotes to turn
11389 # gcc_config_arguments into a C string.
11390 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11391 $gcc_config_arguments
11393 gcc_config_arguments_str=`cat conftest.out`
11394 rm -f conftest.out
11396 cat > configargs.h <<EOF
11397 /* Generated automatically. */
11398 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11399 static const char thread_model[] = "$thread_file";
11401 static const struct {
11402 const char *name, *value;
11403 } configure_default_options[] = $configure_default_options;
11406 gcc_BASEVER=`cat $srcdir/BASE-VER`
11407 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11408 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11409 if test -f $srcdir/REVISION ; then
11410 gcc_REVISION=`cat $srcdir/REVISION`
11411 else
11412 gcc_REVISION=""
11414 cat > plugin-version.h <<EOF
11415 #include "configargs.h"
11417 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11418 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11419 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11420 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11422 static char basever[] = "$gcc_BASEVER";
11423 static char datestamp[] = "$gcc_DATESTAMP";
11424 static char devphase[] = "$gcc_DEVPHASE";
11425 static char revision[] = "$gcc_REVISION";
11427 /* FIXME plugins: We should make the version information more precise.
11428 One way to do is to add a checksum. */
11430 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11431 devphase, revision,
11432 configuration_arguments};
11435 # Internationalization
11436 # If we haven't got the data from the intl directory,
11437 # assume NLS is disabled.
11438 USE_NLS=no
11439 LIBINTL=
11440 LIBINTL_DEP=
11441 INCINTL=
11442 XGETTEXT=
11443 GMSGFMT=
11444 POSUB=
11446 if test -f ../intl/config.intl; then
11447 . ../intl/config.intl
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11450 $as_echo_n "checking whether NLS is requested... " >&6; }
11451 if test x"$USE_NLS" != xyes; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456 $as_echo "yes" >&6; }
11458 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11462 $as_echo_n "checking for catalogs to be installed... " >&6; }
11463 # Look for .po and .gmo files in the source directory.
11464 CATALOGS=
11465 XLINGUAS=
11466 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11467 # If there aren't any .gmo files the shell will give us the
11468 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11469 # weeded out.
11470 case "$cat" in *\**)
11471 continue;;
11472 esac
11473 # The quadruple backslash is collapsed to a double backslash
11474 # by the backticks, then collapsed again by the double quotes,
11475 # leaving us with one backslash in the sed expression (right
11476 # before the dot that mustn't act as a wildcard).
11477 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11478 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11479 # The user is allowed to set LINGUAS to a list of languages to
11480 # install catalogs for. If it's empty that means "all of them."
11481 if test "x$LINGUAS" = x; then
11482 CATALOGS="$CATALOGS $cat"
11483 XLINGUAS="$XLINGUAS $lang"
11484 else
11485 case "$LINGUAS" in *$lang*)
11486 CATALOGS="$CATALOGS $cat"
11487 XLINGUAS="$XLINGUAS $lang"
11489 esac
11491 done
11492 LINGUAS="$XLINGUAS"
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11494 $as_echo "$LINGUAS" >&6; }
11497 DATADIRNAME=share
11499 INSTOBJEXT=.mo
11501 GENCAT=gencat
11503 CATOBJEXT=.gmo
11507 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11508 # -liconv on the link line twice.
11509 case "$LIBINTL" in *$LIBICONV*)
11510 LIBICONV= ;;
11511 esac
11513 # Check whether --enable-secureplt was given.
11514 if test "${enable_secureplt+set}" = set; then :
11515 enableval=$enable_secureplt;
11519 # Check whether --enable-leading-mingw64-underscores was given.
11520 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11521 enableval=$enable_leading_mingw64_underscores;
11524 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11526 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11530 # Check whether --enable-cld was given.
11531 if test "${enable_cld+set}" = set; then :
11532 enableval=$enable_cld;
11533 else
11534 enable_cld=no
11538 # Check whether --enable-frame-pointer was given.
11539 if test "${enable_frame_pointer+set}" = set; then :
11540 enableval=$enable_frame_pointer;
11541 else
11543 case $target_os in
11544 linux* | darwin[8912]*)
11545 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11546 # DWARF2.
11547 enable_frame_pointer=no
11550 enable_frame_pointer=yes
11552 esac
11557 # Windows32 Registry support for specifying GCC installation paths.
11558 # Check whether --enable-win32-registry was given.
11559 if test "${enable_win32_registry+set}" = set; then :
11560 enableval=$enable_win32_registry;
11564 case $host_os in
11565 win32 | pe | cygwin* | mingw32* | uwin*)
11566 if test "x$enable_win32_registry" != xno; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11568 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11569 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_func_search_save_LIBS=$LIBS
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char RegOpenKeyExA ();
11584 main ()
11586 return RegOpenKeyExA ();
11588 return 0;
11590 _ACEOF
11591 for ac_lib in '' advapi32; do
11592 if test -z "$ac_lib"; then
11593 ac_res="none required"
11594 else
11595 ac_res=-l$ac_lib
11596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_search_RegOpenKeyExA=$ac_res
11601 rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext
11603 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11604 break
11606 done
11607 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11609 else
11610 ac_cv_search_RegOpenKeyExA=no
11612 rm conftest.$ac_ext
11613 LIBS=$ac_func_search_save_LIBS
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11616 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11617 ac_res=$ac_cv_search_RegOpenKeyExA
11618 if test "$ac_res" != no; then :
11619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11621 else
11622 enable_win32_registry=no
11627 if test "x$enable_win32_registry" != xno; then
11629 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11632 if test "x$enable_win32_registry" != xyes \
11633 && test "x$enable_win32_registry" != x; then
11635 cat >>confdefs.h <<_ACEOF
11636 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11637 _ACEOF
11642 esac
11644 # Get an absolute path to the GCC top-level source directory
11645 holddir=`${PWDCMD-pwd}`
11646 cd $srcdir
11647 topdir=`${PWDCMD-pwd}`
11648 cd $holddir
11650 # Conditionalize the makefile for this host machine.
11651 xmake_file=
11652 for f in ${host_xmake_file}
11654 if test -f ${srcdir}/config/$f
11655 then
11656 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11658 done
11660 # Conditionalize the makefile for this target machine.
11661 tmake_file_=
11662 for f in ${tmake_file}
11664 if test -f ${srcdir}/config/$f
11665 then
11666 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11668 done
11669 tmake_file="${tmake_file_}"
11671 out_object_file=`basename $out_file .c`.o
11672 common_out_object_file=`basename $common_out_file .c`.o
11674 tm_file_list="options.h"
11675 tm_include_list="options.h insn-constants.h"
11676 for f in $tm_file; do
11677 case $f in
11678 ./* )
11679 f=`echo $f | sed 's/^..//'`
11680 tm_file_list="${tm_file_list} $f"
11681 tm_include_list="${tm_include_list} $f"
11683 defaults.h )
11684 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11685 tm_include_list="${tm_include_list} $f"
11688 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11689 tm_include_list="${tm_include_list} config/$f"
11691 esac
11692 done
11694 tm_p_file_list=
11695 tm_p_include_list=
11696 for f in $tm_p_file; do
11697 case $f in
11698 tm-preds.h )
11699 tm_p_file_list="${tm_p_file_list} $f"
11700 tm_p_include_list="${tm_p_include_list} $f"
11703 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11704 tm_p_include_list="${tm_p_include_list} config/$f"
11705 esac
11706 done
11708 xm_file_list=
11709 xm_include_list=
11710 for f in $xm_file; do
11711 case $f in
11712 ansidecl.h )
11713 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11714 xm_include_list="${xm_include_list} $f"
11716 auto-host.h )
11717 xm_file_list="${xm_file_list} $f"
11718 xm_include_list="${xm_include_list} $f"
11721 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11722 xm_include_list="${xm_include_list} config/$f"
11724 esac
11725 done
11727 host_xm_file_list=
11728 host_xm_include_list=
11729 for f in $host_xm_file; do
11730 case $f in
11731 ansidecl.h )
11732 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11733 host_xm_include_list="${host_xm_include_list} $f"
11735 auto-host.h )
11736 host_xm_file_list="${host_xm_file_list} $f"
11737 host_xm_include_list="${host_xm_include_list} $f"
11740 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11741 host_xm_include_list="${host_xm_include_list} config/$f"
11743 esac
11744 done
11746 build_xm_file_list=
11747 for f in $build_xm_file; do
11748 case $f in
11749 ansidecl.h )
11750 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11751 build_xm_include_list="${build_xm_include_list} $f"
11753 auto-build.h | auto-host.h )
11754 build_xm_file_list="${build_xm_file_list} $f"
11755 build_xm_include_list="${build_xm_include_list} $f"
11758 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11759 build_xm_include_list="${build_xm_include_list} config/$f"
11761 esac
11762 done
11764 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11765 # cross-compiler which does not use the native headers and libraries.
11766 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11767 CROSS=
11768 ALL=all.internal
11769 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11771 if test "x$with_build_sysroot" != x; then
11772 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11773 else
11774 # This value is used, even on a native system, because
11775 # CROSS_SYSTEM_HEADER_DIR is just
11776 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11777 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11780 if test x$host != x$target
11781 then
11782 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11783 ALL=all.cross
11784 SYSTEM_HEADER_DIR=$build_system_header_dir
11785 case "$host","$target" in
11786 # Darwin crosses can use the host system's libraries and headers,
11787 # because of the fat library support. Of course, it must be the
11788 # same version of Darwin on both sides. Allow the user to
11789 # just say --target=foo-darwin without a version number to mean
11790 # "the version on this system".
11791 *-*-darwin*,*-*-darwin*)
11792 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11793 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11794 if test $hostos = $targetos -o $targetos = darwin ; then
11795 CROSS=
11796 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11797 with_headers=yes
11801 i?86-*-*,x86_64-*-* \
11802 | powerpc*-*-*,powerpc64*-*-*)
11803 CROSS="$CROSS -DNATIVE_CROSS" ;;
11804 esac
11806 case $target in
11807 *-*-mingw*)
11808 if test "x$with_headers" = x; then
11809 with_headers=yes
11814 esac
11815 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11816 SYSTEM_HEADER_DIR=$build_system_header_dir
11819 # If this is a cross-compiler that does not
11820 # have its own set of headers then define
11821 # inhibit_libc
11823 # If this is using newlib, without having the headers available now,
11824 # then define inhibit_libc in LIBGCC2_CFLAGS.
11825 # This prevents libgcc2 from containing any code which requires libc
11826 # support.
11827 : ${inhibit_libc=false}
11828 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11829 test x$with_newlib = xyes ; } &&
11830 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11831 inhibit_libc=true
11835 # When building gcc with a cross-compiler, we need to adjust things so
11836 # that the generator programs are still built with the native compiler.
11837 # Also, we cannot run fixincludes.
11839 # These are the normal (build=host) settings:
11840 CC_FOR_BUILD='$(CC)'
11841 CXX_FOR_BUILD='$(CXX)'
11842 BUILD_CFLAGS='$(ALL_CFLAGS)'
11843 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11844 BUILD_LDFLAGS='$(LDFLAGS)'
11845 STMP_FIXINC=stmp-fixinc
11847 # And these apply if build != host, or we are generating coverage data
11848 if test x$build != x$host || test "x$coverage_flags" != x
11849 then
11850 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11851 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11854 # Expand extra_headers to include complete path.
11855 # This substitutes for lots of t-* files.
11856 extra_headers_list=
11857 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11858 for file in ${extra_headers} ; do
11859 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11860 done
11862 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11863 if test x"$use_gcc_tgmath" = xyes
11864 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11867 # Define collect2 in Makefile.
11868 case $host_can_use_collect2 in
11869 no) collect2= ;;
11870 *) collect2='collect2$(exeext)' ;;
11871 esac
11874 # Add a definition of USE_COLLECT2 if system wants one.
11875 case $use_collect2 in
11876 no) use_collect2= ;;
11877 "") ;;
11879 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11880 xm_defines="${xm_defines} USE_COLLECT2"
11881 case $host_can_use_collect2 in
11883 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11885 esac
11887 esac
11890 cat >>confdefs.h <<_ACEOF
11891 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11892 _ACEOF
11895 # ---------------------------
11896 # Assembler & linker features
11897 # ---------------------------
11899 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11900 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11901 # However when ld-new is first executed from the build tree, libtool will
11902 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11903 # to the build tree. While doing this we need to use the previous-stage
11904 # linker, or we have an infinite loop. The presence of a shell script as
11905 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11906 # the gcc/collect-ld script. So we need to know how libtool works, or
11907 # exec-tool will fail.
11910 case `pwd` in
11911 *\ * | *\ *)
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11913 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11914 esac
11918 macro_version='2.2.7a'
11919 macro_revision='1.3134'
11933 ltmain="$ac_aux_dir/ltmain.sh"
11935 # Backslashify metacharacters that are still active within
11936 # double-quoted strings.
11937 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11939 # Same as above, but do not quote variable references.
11940 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11942 # Sed substitution to delay expansion of an escaped shell variable in a
11943 # double_quote_subst'ed string.
11944 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11946 # Sed substitution to delay expansion of an escaped single quote.
11947 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11949 # Sed substitution to avoid accidental globbing in evaled expressions
11950 no_glob_subst='s/\*/\\\*/g'
11952 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11953 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11957 $as_echo_n "checking how to print strings... " >&6; }
11958 # Test print first, because it will be a builtin if present.
11959 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11960 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11961 ECHO='print -r --'
11962 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11963 ECHO='printf %s\n'
11964 else
11965 # Use this function as a fallback that always works.
11966 func_fallback_echo ()
11968 eval 'cat <<_LTECHO_EOF
11970 _LTECHO_EOF'
11972 ECHO='func_fallback_echo'
11975 # func_echo_all arg...
11976 # Invoke $ECHO with all args, space-separated.
11977 func_echo_all ()
11979 $ECHO ""
11982 case "$ECHO" in
11983 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11984 $as_echo "printf" >&6; } ;;
11985 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11986 $as_echo "print -r" >&6; } ;;
11987 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11988 $as_echo "cat" >&6; } ;;
11989 esac
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12005 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12006 if test "${ac_cv_path_SED+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12010 for ac_i in 1 2 3 4 5 6 7; do
12011 ac_script="$ac_script$as_nl$ac_script"
12012 done
12013 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12014 { ac_script=; unset ac_script;}
12015 if test -z "$SED"; then
12016 ac_path_SED_found=false
12017 # Loop through the user's path and test for each of PROGNAME-LIST
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_prog in sed gsed; do
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12026 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12027 # Check for GNU ac_path_SED and select it if it is found.
12028 # Check for GNU $ac_path_SED
12029 case `"$ac_path_SED" --version 2>&1` in
12030 *GNU*)
12031 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12033 ac_count=0
12034 $as_echo_n 0123456789 >"conftest.in"
12035 while :
12037 cat "conftest.in" "conftest.in" >"conftest.tmp"
12038 mv "conftest.tmp" "conftest.in"
12039 cp "conftest.in" "conftest.nl"
12040 $as_echo '' >> "conftest.nl"
12041 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12043 as_fn_arith $ac_count + 1 && ac_count=$as_val
12044 if test $ac_count -gt ${ac_path_SED_max-0}; then
12045 # Best one so far, save it but keep looking for a better one
12046 ac_cv_path_SED="$ac_path_SED"
12047 ac_path_SED_max=$ac_count
12049 # 10*(2^10) chars as input seems more than enough
12050 test $ac_count -gt 10 && break
12051 done
12052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12053 esac
12055 $ac_path_SED_found && break 3
12056 done
12057 done
12058 done
12059 IFS=$as_save_IFS
12060 if test -z "$ac_cv_path_SED"; then
12061 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12063 else
12064 ac_cv_path_SED=$SED
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12069 $as_echo "$ac_cv_path_SED" >&6; }
12070 SED="$ac_cv_path_SED"
12071 rm -f conftest.sed
12073 test -z "$SED" && SED=sed
12074 Xsed="$SED -e 1s/^X//"
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12087 $as_echo_n "checking for fgrep... " >&6; }
12088 if test "${ac_cv_path_FGREP+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12092 then ac_cv_path_FGREP="$GREP -F"
12093 else
12094 if test -z "$FGREP"; then
12095 ac_path_FGREP_found=false
12096 # Loop through the user's path and test for each of PROGNAME-LIST
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_prog in fgrep; do
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12105 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12106 # Check for GNU ac_path_FGREP and select it if it is found.
12107 # Check for GNU $ac_path_FGREP
12108 case `"$ac_path_FGREP" --version 2>&1` in
12109 *GNU*)
12110 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12112 ac_count=0
12113 $as_echo_n 0123456789 >"conftest.in"
12114 while :
12116 cat "conftest.in" "conftest.in" >"conftest.tmp"
12117 mv "conftest.tmp" "conftest.in"
12118 cp "conftest.in" "conftest.nl"
12119 $as_echo 'FGREP' >> "conftest.nl"
12120 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12122 as_fn_arith $ac_count + 1 && ac_count=$as_val
12123 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12124 # Best one so far, save it but keep looking for a better one
12125 ac_cv_path_FGREP="$ac_path_FGREP"
12126 ac_path_FGREP_max=$ac_count
12128 # 10*(2^10) chars as input seems more than enough
12129 test $ac_count -gt 10 && break
12130 done
12131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12132 esac
12134 $ac_path_FGREP_found && break 3
12135 done
12136 done
12137 done
12138 IFS=$as_save_IFS
12139 if test -z "$ac_cv_path_FGREP"; then
12140 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12142 else
12143 ac_cv_path_FGREP=$FGREP
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12149 $as_echo "$ac_cv_path_FGREP" >&6; }
12150 FGREP="$ac_cv_path_FGREP"
12153 test -z "$GREP" && GREP=grep
12173 # Check whether --with-gnu-ld was given.
12174 if test "${with_gnu_ld+set}" = set; then :
12175 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12176 else
12177 with_gnu_ld=no
12180 ac_prog=ld
12181 if test "$GCC" = yes; then
12182 # Check if gcc -print-prog-name=ld gives a path.
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12184 $as_echo_n "checking for ld used by $CC... " >&6; }
12185 case $host in
12186 *-*-mingw*)
12187 # gcc leaves a trailing carriage return which upsets mingw
12188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12191 esac
12192 case $ac_prog in
12193 # Accept absolute paths.
12194 [\\/]* | ?:[\\/]*)
12195 re_direlt='/[^/][^/]*/\.\./'
12196 # Canonicalize the pathname of ld
12197 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12198 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12199 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12200 done
12201 test -z "$LD" && LD="$ac_prog"
12204 # If it fails, then pretend we aren't using GCC.
12205 ac_prog=ld
12208 # If it is relative, then search for the first ld in PATH.
12209 with_gnu_ld=unknown
12211 esac
12212 elif test "$with_gnu_ld" = yes; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12214 $as_echo_n "checking for GNU ld... " >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12217 $as_echo_n "checking for non-GNU ld... " >&6; }
12219 if test "${lt_cv_path_LD+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 if test -z "$LD"; then
12223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12224 for ac_dir in $PATH; do
12225 IFS="$lt_save_ifs"
12226 test -z "$ac_dir" && ac_dir=.
12227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12228 lt_cv_path_LD="$ac_dir/$ac_prog"
12229 # Check to see if the program is GNU ld. I'd rather use --version,
12230 # but apparently some variants of GNU ld only accept -v.
12231 # Break only if it was the GNU/non-GNU ld that we prefer.
12232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12233 *GNU* | *'with BFD'*)
12234 test "$with_gnu_ld" != no && break
12237 test "$with_gnu_ld" != yes && break
12239 esac
12241 done
12242 IFS="$lt_save_ifs"
12243 else
12244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12248 LD="$lt_cv_path_LD"
12249 if test -n "$LD"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12251 $as_echo "$LD" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12256 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12258 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12259 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12263 case `$LD -v 2>&1 </dev/null` in
12264 *GNU* | *'with BFD'*)
12265 lt_cv_prog_gnu_ld=yes
12268 lt_cv_prog_gnu_ld=no
12270 esac
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12273 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12274 with_gnu_ld=$lt_cv_prog_gnu_ld
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12285 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12286 if test "${lt_cv_path_NM+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test -n "$NM"; then
12290 # Let the user override the test.
12291 lt_cv_path_NM="$NM"
12292 else
12293 lt_nm_to_check="${ac_tool_prefix}nm"
12294 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12295 lt_nm_to_check="$lt_nm_to_check nm"
12297 for lt_tmp_nm in $lt_nm_to_check; do
12298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12299 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12300 IFS="$lt_save_ifs"
12301 test -z "$ac_dir" && ac_dir=.
12302 tmp_nm="$ac_dir/$lt_tmp_nm"
12303 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12304 # Check to see if the nm accepts a BSD-compat flag.
12305 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12306 # nm: unknown option "B" ignored
12307 # Tru64's nm complains that /dev/null is an invalid object file
12308 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12309 */dev/null* | *'Invalid file or object type'*)
12310 lt_cv_path_NM="$tmp_nm -B"
12311 break
12314 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12315 */dev/null*)
12316 lt_cv_path_NM="$tmp_nm -p"
12317 break
12320 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12321 continue # so that we can try to find one that supports BSD flags
12323 esac
12325 esac
12327 done
12328 IFS="$lt_save_ifs"
12329 done
12330 : ${lt_cv_path_NM=no}
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12334 $as_echo "$lt_cv_path_NM" >&6; }
12335 if test "$lt_cv_path_NM" != "no"; then
12336 NM="$lt_cv_path_NM"
12337 else
12338 # Didn't find any BSD compatible name lister, look for dumpbin.
12339 if test -n "$DUMPBIN"; then :
12340 # Let the user override the test.
12341 else
12342 if test -n "$ac_tool_prefix"; then
12343 for ac_prog in dumpbin "link -dump"
12345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 if test -n "$DUMPBIN"; then
12353 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12366 done
12367 done
12368 IFS=$as_save_IFS
12372 DUMPBIN=$ac_cv_prog_DUMPBIN
12373 if test -n "$DUMPBIN"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12375 $as_echo "$DUMPBIN" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 test -n "$DUMPBIN" && break
12383 done
12385 if test -z "$DUMPBIN"; then
12386 ac_ct_DUMPBIN=$DUMPBIN
12387 for ac_prog in dumpbin "link -dump"
12389 # Extract the first word of "$ac_prog", so it can be a program name with args.
12390 set dummy $ac_prog; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$ac_ct_DUMPBIN"; then
12397 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12410 done
12411 done
12412 IFS=$as_save_IFS
12416 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12417 if test -n "$ac_ct_DUMPBIN"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12419 $as_echo "$ac_ct_DUMPBIN" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12426 test -n "$ac_ct_DUMPBIN" && break
12427 done
12429 if test "x$ac_ct_DUMPBIN" = x; then
12430 DUMPBIN=":"
12431 else
12432 case $cross_compiling:$ac_tool_warned in
12433 yes:)
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12436 ac_tool_warned=yes ;;
12437 esac
12438 DUMPBIN=$ac_ct_DUMPBIN
12442 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12443 *COFF*)
12444 DUMPBIN="$DUMPBIN -symbols"
12447 DUMPBIN=:
12449 esac
12452 if test "$DUMPBIN" != ":"; then
12453 NM="$DUMPBIN"
12456 test -z "$NM" && NM=nm
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12464 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12465 if test "${lt_cv_nm_interface+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 lt_cv_nm_interface="BSD nm"
12469 echo "int some_variable = 0;" > conftest.$ac_ext
12470 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12471 (eval "$ac_compile" 2>conftest.err)
12472 cat conftest.err >&5
12473 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12474 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12475 cat conftest.err >&5
12476 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12477 cat conftest.out >&5
12478 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12479 lt_cv_nm_interface="MS dumpbin"
12481 rm -f conftest*
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12484 $as_echo "$lt_cv_nm_interface" >&6; }
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12487 $as_echo_n "checking whether ln -s works... " >&6; }
12488 LN_S=$as_ln_s
12489 if test "$LN_S" = "ln -s"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491 $as_echo "yes" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12494 $as_echo "no, using $LN_S" >&6; }
12497 # find the maximum length of command line arguments
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12499 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12500 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12504 teststring="ABCD"
12506 case $build_os in
12507 msdosdjgpp*)
12508 # On DJGPP, this test can blow up pretty badly due to problems in libc
12509 # (any single argument exceeding 2000 bytes causes a buffer overrun
12510 # during glob expansion). Even if it were fixed, the result of this
12511 # check would be larger than it should be.
12512 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12515 gnu*)
12516 # Under GNU Hurd, this test is not required because there is
12517 # no limit to the length of command line arguments.
12518 # Libtool will interpret -1 as no limit whatsoever
12519 lt_cv_sys_max_cmd_len=-1;
12522 cygwin* | mingw* | cegcc*)
12523 # On Win9x/ME, this test blows up -- it succeeds, but takes
12524 # about 5 minutes as the teststring grows exponentially.
12525 # Worse, since 9x/ME are not pre-emptively multitasking,
12526 # you end up with a "frozen" computer, even though with patience
12527 # the test eventually succeeds (with a max line length of 256k).
12528 # Instead, let's just punt: use the minimum linelength reported by
12529 # all of the supported platforms: 8192 (on NT/2K/XP).
12530 lt_cv_sys_max_cmd_len=8192;
12533 mint*)
12534 # On MiNT this can take a long time and run out of memory.
12535 lt_cv_sys_max_cmd_len=8192;
12538 amigaos*)
12539 # On AmigaOS with pdksh, this test takes hours, literally.
12540 # So we just punt and use a minimum line length of 8192.
12541 lt_cv_sys_max_cmd_len=8192;
12544 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12545 # This has been around since 386BSD, at least. Likely further.
12546 if test -x /sbin/sysctl; then
12547 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12548 elif test -x /usr/sbin/sysctl; then
12549 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12550 else
12551 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12553 # And add a safety zone
12554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12558 interix*)
12559 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12560 lt_cv_sys_max_cmd_len=196608
12563 osf*)
12564 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12565 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12566 # nice to cause kernel panics so lets avoid the loop below.
12567 # First set a reasonable default.
12568 lt_cv_sys_max_cmd_len=16384
12570 if test -x /sbin/sysconfig; then
12571 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12572 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12573 esac
12576 sco3.2v5*)
12577 lt_cv_sys_max_cmd_len=102400
12579 sysv5* | sco5v6* | sysv4.2uw2*)
12580 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12581 if test -n "$kargmax"; then
12582 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12583 else
12584 lt_cv_sys_max_cmd_len=32768
12588 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12589 if test -n "$lt_cv_sys_max_cmd_len"; then
12590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12592 else
12593 # Make teststring a little bigger before we do anything with it.
12594 # a 1K string should be a reasonable start.
12595 for i in 1 2 3 4 5 6 7 8 ; do
12596 teststring=$teststring$teststring
12597 done
12598 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12599 # If test is not a shell built-in, we'll probably end up computing a
12600 # maximum length that is only half of the actual maximum length, but
12601 # we can't tell.
12602 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12603 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12604 test $i != 17 # 1/2 MB should be enough
12606 i=`expr $i + 1`
12607 teststring=$teststring$teststring
12608 done
12609 # Only check the string length outside the loop.
12610 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12611 teststring=
12612 # Add a significant safety factor because C++ compilers can tack on
12613 # massive amounts of additional arguments before passing them to the
12614 # linker. It appears as though 1/2 is a usable value.
12615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12618 esac
12622 if test -n $lt_cv_sys_max_cmd_len ; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12624 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12627 $as_echo "none" >&6; }
12629 max_cmd_len=$lt_cv_sys_max_cmd_len
12636 : ${CP="cp -f"}
12637 : ${MV="mv -f"}
12638 : ${RM="rm -f"}
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12641 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12642 # Try some XSI features
12643 xsi_shell=no
12644 ( _lt_dummy="a/b/c"
12645 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12646 = c,a/b,, \
12647 && eval 'test $(( 1 + 1 )) -eq 2 \
12648 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12649 && xsi_shell=yes
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12651 $as_echo "$xsi_shell" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12655 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12656 lt_shell_append=no
12657 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12658 >/dev/null 2>&1 \
12659 && lt_shell_append=yes
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12661 $as_echo "$lt_shell_append" >&6; }
12664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12665 lt_unset=unset
12666 else
12667 lt_unset=false
12674 # test EBCDIC or ASCII
12675 case `echo X|tr X '\101'` in
12676 A) # ASCII based system
12677 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12678 lt_SP2NL='tr \040 \012'
12679 lt_NL2SP='tr \015\012 \040\040'
12681 *) # EBCDIC based system
12682 lt_SP2NL='tr \100 \n'
12683 lt_NL2SP='tr \r\n \100\100'
12685 esac
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12696 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12697 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 lt_cv_ld_reload_flag='-r'
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12703 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12704 reload_flag=$lt_cv_ld_reload_flag
12705 case $reload_flag in
12706 "" | " "*) ;;
12707 *) reload_flag=" $reload_flag" ;;
12708 esac
12709 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12710 case $host_os in
12711 darwin*)
12712 if test "$GCC" = yes; then
12713 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12714 else
12715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12718 esac
12728 if test -n "$ac_tool_prefix"; then
12729 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12730 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 if test -n "$OBJDUMP"; then
12737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12738 else
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12746 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12750 done
12751 done
12752 IFS=$as_save_IFS
12756 OBJDUMP=$ac_cv_prog_OBJDUMP
12757 if test -n "$OBJDUMP"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12759 $as_echo "$OBJDUMP" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12767 if test -z "$ac_cv_prog_OBJDUMP"; then
12768 ac_ct_OBJDUMP=$OBJDUMP
12769 # Extract the first word of "objdump", so it can be a program name with args.
12770 set dummy objdump; ac_word=$2
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 if test -n "$ac_ct_OBJDUMP"; then
12777 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12778 else
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12786 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12790 done
12791 done
12792 IFS=$as_save_IFS
12796 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12797 if test -n "$ac_ct_OBJDUMP"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12799 $as_echo "$ac_ct_OBJDUMP" >&6; }
12800 else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12805 if test "x$ac_ct_OBJDUMP" = x; then
12806 OBJDUMP="false"
12807 else
12808 case $cross_compiling:$ac_tool_warned in
12809 yes:)
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12812 ac_tool_warned=yes ;;
12813 esac
12814 OBJDUMP=$ac_ct_OBJDUMP
12816 else
12817 OBJDUMP="$ac_cv_prog_OBJDUMP"
12820 test -z "$OBJDUMP" && OBJDUMP=objdump
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12831 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12832 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 lt_cv_file_magic_cmd='$MAGIC_CMD'
12836 lt_cv_file_magic_test_file=
12837 lt_cv_deplibs_check_method='unknown'
12838 # Need to set the preceding variable on all platforms that support
12839 # interlibrary dependencies.
12840 # 'none' -- dependencies not supported.
12841 # `unknown' -- same as none, but documents that we really don't know.
12842 # 'pass_all' -- all dependencies passed with no checks.
12843 # 'test_compile' -- check by making test program.
12844 # 'file_magic [[regex]]' -- check by looking for files in library path
12845 # which responds to the $file_magic_cmd with a given extended regex.
12846 # If you have `file' or equivalent on your system and you're not sure
12847 # whether `pass_all' will *always* work, you probably want this one.
12849 case $host_os in
12850 aix[4-9]*)
12851 lt_cv_deplibs_check_method=pass_all
12854 beos*)
12855 lt_cv_deplibs_check_method=pass_all
12858 bsdi[45]*)
12859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12860 lt_cv_file_magic_cmd='/usr/bin/file -L'
12861 lt_cv_file_magic_test_file=/shlib/libc.so
12864 cygwin*)
12865 # func_win32_libid is a shell function defined in ltmain.sh
12866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12867 lt_cv_file_magic_cmd='func_win32_libid'
12870 mingw* | pw32*)
12871 # Base MSYS/MinGW do not provide the 'file' command needed by
12872 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12873 # unless we find 'file', for example because we are cross-compiling.
12874 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12875 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12876 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12877 lt_cv_file_magic_cmd='func_win32_libid'
12878 else
12879 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12880 lt_cv_file_magic_cmd='$OBJDUMP -f'
12884 cegcc*)
12885 # use the weaker test based on 'objdump'. See mingw*.
12886 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12887 lt_cv_file_magic_cmd='$OBJDUMP -f'
12890 darwin* | rhapsody*)
12891 lt_cv_deplibs_check_method=pass_all
12894 freebsd* | dragonfly*)
12895 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12896 case $host_cpu in
12897 i*86 )
12898 # Not sure whether the presence of OpenBSD here was a mistake.
12899 # Let's accept both of them until this is cleared up.
12900 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12901 lt_cv_file_magic_cmd=/usr/bin/file
12902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12904 esac
12905 else
12906 lt_cv_deplibs_check_method=pass_all
12910 gnu*)
12911 lt_cv_deplibs_check_method=pass_all
12914 haiku*)
12915 lt_cv_deplibs_check_method=pass_all
12918 hpux10.20* | hpux11*)
12919 lt_cv_file_magic_cmd=/usr/bin/file
12920 case $host_cpu in
12921 ia64*)
12922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12923 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12925 hppa*64*)
12926 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]'
12927 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12931 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12933 esac
12936 interix[3-9]*)
12937 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12941 irix5* | irix6* | nonstopux*)
12942 case $LD in
12943 *-32|*"-32 ") libmagic=32-bit;;
12944 *-n32|*"-n32 ") libmagic=N32;;
12945 *-64|*"-64 ") libmagic=64-bit;;
12946 *) libmagic=never-match;;
12947 esac
12948 lt_cv_deplibs_check_method=pass_all
12951 # This must be Linux ELF.
12952 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12953 lt_cv_deplibs_check_method=pass_all
12956 netbsd*)
12957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12959 else
12960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12964 newos6*)
12965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12966 lt_cv_file_magic_cmd=/usr/bin/file
12967 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12970 *nto* | *qnx*)
12971 lt_cv_deplibs_check_method=pass_all
12974 openbsd*)
12975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12977 else
12978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12982 osf3* | osf4* | osf5*)
12983 lt_cv_deplibs_check_method=pass_all
12986 rdos*)
12987 lt_cv_deplibs_check_method=pass_all
12990 solaris*)
12991 lt_cv_deplibs_check_method=pass_all
12994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12995 lt_cv_deplibs_check_method=pass_all
12998 sysv4 | sysv4.3*)
12999 case $host_vendor in
13000 motorola)
13001 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]'
13002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13004 ncr)
13005 lt_cv_deplibs_check_method=pass_all
13007 sequent)
13008 lt_cv_file_magic_cmd='/bin/file'
13009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13011 sni)
13012 lt_cv_file_magic_cmd='/bin/file'
13013 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13014 lt_cv_file_magic_test_file=/lib/libc.so
13016 siemens)
13017 lt_cv_deplibs_check_method=pass_all
13020 lt_cv_deplibs_check_method=pass_all
13022 esac
13025 tpf*)
13026 lt_cv_deplibs_check_method=pass_all
13028 esac
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13032 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13033 file_magic_cmd=$lt_cv_file_magic_cmd
13034 deplibs_check_method=$lt_cv_deplibs_check_method
13035 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13048 if test -n "$ac_tool_prefix"; then
13049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13050 set dummy ${ac_tool_prefix}ar; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if test "${ac_cv_prog_AR+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 if test -n "$AR"; then
13057 ac_cv_prog_AR="$AR" # Let the user override the test.
13058 else
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13066 ac_cv_prog_AR="${ac_tool_prefix}ar"
13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13070 done
13071 done
13072 IFS=$as_save_IFS
13076 AR=$ac_cv_prog_AR
13077 if test -n "$AR"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13079 $as_echo "$AR" >&6; }
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13087 if test -z "$ac_cv_prog_AR"; then
13088 ac_ct_AR=$AR
13089 # Extract the first word of "ar", so it can be a program name with args.
13090 set dummy ar; ac_word=$2
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 if test -n "$ac_ct_AR"; then
13097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13098 else
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_prog_ac_ct_AR="ar"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 break 2
13110 done
13111 done
13112 IFS=$as_save_IFS
13116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13117 if test -n "$ac_ct_AR"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13119 $as_echo "$ac_ct_AR" >&6; }
13120 else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13125 if test "x$ac_ct_AR" = x; then
13126 AR="false"
13127 else
13128 case $cross_compiling:$ac_tool_warned in
13129 yes:)
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13132 ac_tool_warned=yes ;;
13133 esac
13134 AR=$ac_ct_AR
13136 else
13137 AR="$ac_cv_prog_AR"
13140 test -z "$AR" && AR=ar
13141 test -z "$AR_FLAGS" && AR_FLAGS=cru
13153 if test -n "$ac_tool_prefix"; then
13154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13155 set dummy ${ac_tool_prefix}strip; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if test "${ac_cv_prog_STRIP+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 if test -n "$STRIP"; then
13162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13175 done
13176 done
13177 IFS=$as_save_IFS
13181 STRIP=$ac_cv_prog_STRIP
13182 if test -n "$STRIP"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13184 $as_echo "$STRIP" >&6; }
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13192 if test -z "$ac_cv_prog_STRIP"; then
13193 ac_ct_STRIP=$STRIP
13194 # Extract the first word of "strip", so it can be a program name with args.
13195 set dummy strip; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if test -n "$ac_ct_STRIP"; then
13202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_ac_ct_STRIP="strip"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13222 if test -n "$ac_ct_STRIP"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13224 $as_echo "$ac_ct_STRIP" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13230 if test "x$ac_ct_STRIP" = x; then
13231 STRIP=":"
13232 else
13233 case $cross_compiling:$ac_tool_warned in
13234 yes:)
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13237 ac_tool_warned=yes ;;
13238 esac
13239 STRIP=$ac_ct_STRIP
13241 else
13242 STRIP="$ac_cv_prog_STRIP"
13245 test -z "$STRIP" && STRIP=:
13252 if test -n "$ac_tool_prefix"; then
13253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 if test -n "$RANLIB"; then
13261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13274 done
13275 done
13276 IFS=$as_save_IFS
13280 RANLIB=$ac_cv_prog_RANLIB
13281 if test -n "$RANLIB"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13283 $as_echo "$RANLIB" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13291 if test -z "$ac_cv_prog_RANLIB"; then
13292 ac_ct_RANLIB=$RANLIB
13293 # Extract the first word of "ranlib", so it can be a program name with args.
13294 set dummy ranlib; ac_word=$2
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13296 $as_echo_n "checking for $ac_word... " >&6; }
13297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 if test -n "$ac_ct_RANLIB"; then
13301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13302 else
13303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13304 for as_dir in $PATH
13306 IFS=$as_save_IFS
13307 test -z "$as_dir" && as_dir=.
13308 for ac_exec_ext in '' $ac_executable_extensions; do
13309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13310 ac_cv_prog_ac_ct_RANLIB="ranlib"
13311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13312 break 2
13314 done
13315 done
13316 IFS=$as_save_IFS
13320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13321 if test -n "$ac_ct_RANLIB"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13323 $as_echo "$ac_ct_RANLIB" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13329 if test "x$ac_ct_RANLIB" = x; then
13330 RANLIB=":"
13331 else
13332 case $cross_compiling:$ac_tool_warned in
13333 yes:)
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13336 ac_tool_warned=yes ;;
13337 esac
13338 RANLIB=$ac_ct_RANLIB
13340 else
13341 RANLIB="$ac_cv_prog_RANLIB"
13344 test -z "$RANLIB" && RANLIB=:
13351 # Determine commands to create old-style static archives.
13352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13353 old_postinstall_cmds='chmod 644 $oldlib'
13354 old_postuninstall_cmds=
13356 if test -n "$RANLIB"; then
13357 case $host_os in
13358 openbsd*)
13359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13364 esac
13365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13368 case $host_os in
13369 darwin*)
13370 lock_old_archive_extraction=yes ;;
13372 lock_old_archive_extraction=no ;;
13373 esac
13413 # If no C compiler was specified, use CC.
13414 LTCC=${LTCC-"$CC"}
13416 # If no C compiler flags were specified, use CFLAGS.
13417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13419 # Allow CC to be a program name with arguments.
13420 compiler=$CC
13423 # Check for command to grab the raw symbol name followed by C symbol from nm.
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13425 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13426 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13430 # These are sane defaults that work on at least a few old systems.
13431 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13433 # Character class describing NM global symbol codes.
13434 symcode='[BCDEGRST]'
13436 # Regexp to match symbols that can be accessed directly from C.
13437 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13439 # Define system-specific variables.
13440 case $host_os in
13441 aix*)
13442 symcode='[BCDT]'
13444 cygwin* | mingw* | pw32* | cegcc*)
13445 symcode='[ABCDGISTW]'
13447 hpux*)
13448 if test "$host_cpu" = ia64; then
13449 symcode='[ABCDEGRST]'
13452 irix* | nonstopux*)
13453 symcode='[BCDEGRST]'
13455 osf*)
13456 symcode='[BCDEGQRST]'
13458 solaris*)
13459 symcode='[BDRT]'
13461 sco3.2v5*)
13462 symcode='[DT]'
13464 sysv4.2uw2*)
13465 symcode='[DT]'
13467 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13468 symcode='[ABDT]'
13470 sysv4)
13471 symcode='[DFNSTU]'
13473 esac
13475 # If we're using GNU nm, then use its standard symbol codes.
13476 case `$NM -V 2>&1` in
13477 *GNU* | *'with BFD'*)
13478 symcode='[ABCDGIRSTW]' ;;
13479 esac
13481 # Transform an extracted symbol line into a proper C declaration.
13482 # Some systems (esp. on ia64) link data and code symbols differently,
13483 # so use this general approach.
13484 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13486 # Transform an extracted symbol line into symbol name and symbol address
13487 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13488 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'"
13490 # Handle CRLF in mingw tool chain
13491 opt_cr=
13492 case $build_os in
13493 mingw*)
13494 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13496 esac
13498 # Try without a prefix underscore, then with it.
13499 for ac_symprfx in "" "_"; do
13501 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13502 symxfrm="\\1 $ac_symprfx\\2 \\2"
13504 # Write the raw and C identifiers.
13505 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13506 # Fake it for dumpbin and say T for any non-static function
13507 # and D for any global variable.
13508 # Also find C++ and __fastcall symbols from MSVC++,
13509 # which start with @ or ?.
13510 lt_cv_sys_global_symbol_pipe="$AWK '"\
13511 " {last_section=section; section=\$ 3};"\
13512 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13513 " \$ 0!~/External *\|/{next};"\
13514 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13515 " {if(hide[section]) next};"\
13516 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13517 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13518 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13519 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13520 " ' prfx=^$ac_symprfx"
13521 else
13522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13525 # Check to see that the pipe works correctly.
13526 pipe_works=no
13528 rm -f conftest*
13529 cat > conftest.$ac_ext <<_LT_EOF
13530 #ifdef __cplusplus
13531 extern "C" {
13532 #endif
13533 char nm_test_var;
13534 void nm_test_func(void);
13535 void nm_test_func(void){}
13536 #ifdef __cplusplus
13538 #endif
13539 int main(){nm_test_var='a';nm_test_func();return(0);}
13540 _LT_EOF
13542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13543 (eval $ac_compile) 2>&5
13544 ac_status=$?
13545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546 test $ac_status = 0; }; then
13547 # Now try to grab the symbols.
13548 nlist=conftest.nm
13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13550 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; } && test -s "$nlist"; then
13554 # Try sorting and uniquifying the output.
13555 if sort "$nlist" | uniq > "$nlist"T; then
13556 mv -f "$nlist"T "$nlist"
13557 else
13558 rm -f "$nlist"T
13561 # Make sure that we snagged all the symbols we need.
13562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13564 cat <<_LT_EOF > conftest.$ac_ext
13565 #ifdef __cplusplus
13566 extern "C" {
13567 #endif
13569 _LT_EOF
13570 # Now generate the symbol file.
13571 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13573 cat <<_LT_EOF >> conftest.$ac_ext
13575 /* The mapping between symbol names and symbols. */
13576 const struct {
13577 const char *name;
13578 void *address;
13580 lt__PROGRAM__LTX_preloaded_symbols[] =
13582 { "@PROGRAM@", (void *) 0 },
13583 _LT_EOF
13584 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13585 cat <<\_LT_EOF >> conftest.$ac_ext
13586 {0, (void *) 0}
13589 /* This works around a problem in FreeBSD linker */
13590 #ifdef FREEBSD_WORKAROUND
13591 static const void *lt_preloaded_setup() {
13592 return lt__PROGRAM__LTX_preloaded_symbols;
13594 #endif
13596 #ifdef __cplusplus
13598 #endif
13599 _LT_EOF
13600 # Now try linking the two files.
13601 mv conftest.$ac_objext conftstm.$ac_objext
13602 lt_save_LIBS="$LIBS"
13603 lt_save_CFLAGS="$CFLAGS"
13604 LIBS="conftstm.$ac_objext"
13605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13607 (eval $ac_link) 2>&5
13608 ac_status=$?
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13611 pipe_works=yes
13613 LIBS="$lt_save_LIBS"
13614 CFLAGS="$lt_save_CFLAGS"
13615 else
13616 echo "cannot find nm_test_func in $nlist" >&5
13618 else
13619 echo "cannot find nm_test_var in $nlist" >&5
13621 else
13622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13624 else
13625 echo "$progname: failed program was:" >&5
13626 cat conftest.$ac_ext >&5
13628 rm -rf conftest* conftst*
13630 # Do not use the global_symbol_pipe unless it works.
13631 if test "$pipe_works" = yes; then
13632 break
13633 else
13634 lt_cv_sys_global_symbol_pipe=
13636 done
13640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13641 lt_cv_sys_global_symbol_to_cdecl=
13643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13645 $as_echo "failed" >&6; }
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13648 $as_echo "ok" >&6; }
13672 # Check whether --enable-libtool-lock was given.
13673 if test "${enable_libtool_lock+set}" = set; then :
13674 enableval=$enable_libtool_lock;
13677 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13679 # Some flags need to be propagated to the compiler or linker for good
13680 # libtool support.
13681 case $host in
13682 ia64-*-hpux*)
13683 # Find out which ABI we are using.
13684 echo 'int i;' > conftest.$ac_ext
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13686 (eval $ac_compile) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
13690 case `/usr/bin/file conftest.$ac_objext` in
13691 *ELF-32*)
13692 HPUX_IA64_MODE="32"
13694 *ELF-64*)
13695 HPUX_IA64_MODE="64"
13697 esac
13699 rm -rf conftest*
13701 *-*-irix6*)
13702 # Find out which ABI we are using.
13703 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13705 (eval $ac_compile) 2>&5
13706 ac_status=$?
13707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13708 test $ac_status = 0; }; then
13709 if test "$lt_cv_prog_gnu_ld" = yes; then
13710 case `/usr/bin/file conftest.$ac_objext` in
13711 *32-bit*)
13712 LD="${LD-ld} -melf32bsmip"
13714 *N32*)
13715 LD="${LD-ld} -melf32bmipn32"
13717 *64-bit*)
13718 LD="${LD-ld} -melf64bmip"
13720 esac
13721 else
13722 case `/usr/bin/file conftest.$ac_objext` in
13723 *32-bit*)
13724 LD="${LD-ld} -32"
13726 *N32*)
13727 LD="${LD-ld} -n32"
13729 *64-bit*)
13730 LD="${LD-ld} -64"
13732 esac
13735 rm -rf conftest*
13738 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13739 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13740 # Find out which ABI we are using.
13741 echo 'int i;' > conftest.$ac_ext
13742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13743 (eval $ac_compile) 2>&5
13744 ac_status=$?
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; }; then
13747 case `/usr/bin/file conftest.o` in
13748 *32-bit*)
13749 case $host in
13750 x86_64-*kfreebsd*-gnu)
13751 LD="${LD-ld} -m elf_i386_fbsd"
13753 x86_64-*linux*)
13754 case `/usr/bin/file conftest.o` in
13755 *x86-64*)
13756 LD="${LD-ld} -m elf32_x86_64"
13759 LD="${LD-ld} -m elf_i386"
13761 esac
13763 ppc64-*linux*|powerpc64-*linux*)
13764 LD="${LD-ld} -m elf32ppclinux"
13766 s390x-*linux*)
13767 LD="${LD-ld} -m elf_s390"
13769 sparc64-*linux*)
13770 LD="${LD-ld} -m elf32_sparc"
13772 esac
13774 *64-bit*)
13775 case $host in
13776 x86_64-*kfreebsd*-gnu)
13777 LD="${LD-ld} -m elf_x86_64_fbsd"
13779 x86_64-*linux*)
13780 LD="${LD-ld} -m elf_x86_64"
13782 ppc*-*linux*|powerpc*-*linux*)
13783 LD="${LD-ld} -m elf64ppc"
13785 s390*-*linux*|s390*-*tpf*)
13786 LD="${LD-ld} -m elf64_s390"
13788 sparc*-*linux*)
13789 LD="${LD-ld} -m elf64_sparc"
13791 esac
13793 esac
13795 rm -rf conftest*
13798 *-*-sco3.2v5*)
13799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13800 SAVE_CFLAGS="$CFLAGS"
13801 CFLAGS="$CFLAGS -belf"
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13803 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13804 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 ac_ext=c
13808 ac_cpp='$CPP $CPPFLAGS'
13809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13817 main ()
13821 return 0;
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 lt_cv_cc_needs_belf=yes
13826 else
13827 lt_cv_cc_needs_belf=no
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 ac_ext=c
13832 ac_cpp='$CPP $CPPFLAGS'
13833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13839 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13842 CFLAGS="$SAVE_CFLAGS"
13845 sparc*-*solaris*)
13846 # Find out which ABI we are using.
13847 echo 'int i;' > conftest.$ac_ext
13848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13849 (eval $ac_compile) 2>&5
13850 ac_status=$?
13851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852 test $ac_status = 0; }; then
13853 case `/usr/bin/file conftest.o` in
13854 *64-bit*)
13855 case $lt_cv_prog_gnu_ld in
13856 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13858 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13859 LD="${LD-ld} -64"
13862 esac
13864 esac
13866 rm -rf conftest*
13868 esac
13870 need_locks="$enable_libtool_lock"
13873 case $host_os in
13874 rhapsody* | darwin*)
13875 if test -n "$ac_tool_prefix"; then
13876 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13877 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 if test -n "$DSYMUTIL"; then
13884 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13885 else
13886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887 for as_dir in $PATH
13889 IFS=$as_save_IFS
13890 test -z "$as_dir" && as_dir=.
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13893 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13895 break 2
13897 done
13898 done
13899 IFS=$as_save_IFS
13903 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13904 if test -n "$DSYMUTIL"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13906 $as_echo "$DSYMUTIL" >&6; }
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13914 if test -z "$ac_cv_prog_DSYMUTIL"; then
13915 ac_ct_DSYMUTIL=$DSYMUTIL
13916 # Extract the first word of "dsymutil", so it can be a program name with args.
13917 set dummy dsymutil; ac_word=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919 $as_echo_n "checking for $ac_word... " >&6; }
13920 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 if test -n "$ac_ct_DSYMUTIL"; then
13924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13925 else
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in $PATH
13929 IFS=$as_save_IFS
13930 test -z "$as_dir" && as_dir=.
13931 for ac_exec_ext in '' $ac_executable_extensions; do
13932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13935 break 2
13937 done
13938 done
13939 IFS=$as_save_IFS
13943 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13944 if test -n "$ac_ct_DSYMUTIL"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13946 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13947 else
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13952 if test "x$ac_ct_DSYMUTIL" = x; then
13953 DSYMUTIL=":"
13954 else
13955 case $cross_compiling:$ac_tool_warned in
13956 yes:)
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13959 ac_tool_warned=yes ;;
13960 esac
13961 DSYMUTIL=$ac_ct_DSYMUTIL
13963 else
13964 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13967 if test -n "$ac_tool_prefix"; then
13968 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13969 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13971 $as_echo_n "checking for $ac_word... " >&6; }
13972 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 if test -n "$NMEDIT"; then
13976 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13977 else
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13981 IFS=$as_save_IFS
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13985 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13987 break 2
13989 done
13990 done
13991 IFS=$as_save_IFS
13995 NMEDIT=$ac_cv_prog_NMEDIT
13996 if test -n "$NMEDIT"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13998 $as_echo "$NMEDIT" >&6; }
13999 else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001 $as_echo "no" >&6; }
14006 if test -z "$ac_cv_prog_NMEDIT"; then
14007 ac_ct_NMEDIT=$NMEDIT
14008 # Extract the first word of "nmedit", so it can be a program name with args.
14009 set dummy nmedit; ac_word=$2
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011 $as_echo_n "checking for $ac_word... " >&6; }
14012 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 if test -n "$ac_ct_NMEDIT"; then
14016 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14017 else
14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 for as_dir in $PATH
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14025 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 break 2
14029 done
14030 done
14031 IFS=$as_save_IFS
14035 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14036 if test -n "$ac_ct_NMEDIT"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14038 $as_echo "$ac_ct_NMEDIT" >&6; }
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14044 if test "x$ac_ct_NMEDIT" = x; then
14045 NMEDIT=":"
14046 else
14047 case $cross_compiling:$ac_tool_warned in
14048 yes:)
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14051 ac_tool_warned=yes ;;
14052 esac
14053 NMEDIT=$ac_ct_NMEDIT
14055 else
14056 NMEDIT="$ac_cv_prog_NMEDIT"
14059 if test -n "$ac_tool_prefix"; then
14060 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14061 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14063 $as_echo_n "checking for $ac_word... " >&6; }
14064 if test "${ac_cv_prog_LIPO+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 if test -n "$LIPO"; then
14068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14069 else
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 for as_dir in $PATH
14073 IFS=$as_save_IFS
14074 test -z "$as_dir" && as_dir=.
14075 for ac_exec_ext in '' $ac_executable_extensions; do
14076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14077 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14079 break 2
14081 done
14082 done
14083 IFS=$as_save_IFS
14087 LIPO=$ac_cv_prog_LIPO
14088 if test -n "$LIPO"; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14090 $as_echo "$LIPO" >&6; }
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14098 if test -z "$ac_cv_prog_LIPO"; then
14099 ac_ct_LIPO=$LIPO
14100 # Extract the first word of "lipo", so it can be a program name with args.
14101 set dummy lipo; ac_word=$2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 if test -n "$ac_ct_LIPO"; then
14108 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14109 else
14110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111 for as_dir in $PATH
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
14115 for ac_exec_ext in '' $ac_executable_extensions; do
14116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14117 ac_cv_prog_ac_ct_LIPO="lipo"
14118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 break 2
14121 done
14122 done
14123 IFS=$as_save_IFS
14127 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14128 if test -n "$ac_ct_LIPO"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14130 $as_echo "$ac_ct_LIPO" >&6; }
14131 else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14136 if test "x$ac_ct_LIPO" = x; then
14137 LIPO=":"
14138 else
14139 case $cross_compiling:$ac_tool_warned in
14140 yes:)
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14143 ac_tool_warned=yes ;;
14144 esac
14145 LIPO=$ac_ct_LIPO
14147 else
14148 LIPO="$ac_cv_prog_LIPO"
14151 if test -n "$ac_tool_prefix"; then
14152 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14153 set dummy ${ac_tool_prefix}otool; ac_word=$2
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155 $as_echo_n "checking for $ac_word... " >&6; }
14156 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 if test -n "$OTOOL"; then
14160 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14161 else
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14165 IFS=$as_save_IFS
14166 test -z "$as_dir" && as_dir=.
14167 for ac_exec_ext in '' $ac_executable_extensions; do
14168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14169 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14171 break 2
14173 done
14174 done
14175 IFS=$as_save_IFS
14179 OTOOL=$ac_cv_prog_OTOOL
14180 if test -n "$OTOOL"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14182 $as_echo "$OTOOL" >&6; }
14183 else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14190 if test -z "$ac_cv_prog_OTOOL"; then
14191 ac_ct_OTOOL=$OTOOL
14192 # Extract the first word of "otool", so it can be a program name with args.
14193 set dummy otool; ac_word=$2
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14195 $as_echo_n "checking for $ac_word... " >&6; }
14196 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 if test -n "$ac_ct_OTOOL"; then
14200 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14201 else
14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14203 for as_dir in $PATH
14205 IFS=$as_save_IFS
14206 test -z "$as_dir" && as_dir=.
14207 for ac_exec_ext in '' $ac_executable_extensions; do
14208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14209 ac_cv_prog_ac_ct_OTOOL="otool"
14210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14211 break 2
14213 done
14214 done
14215 IFS=$as_save_IFS
14219 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14220 if test -n "$ac_ct_OTOOL"; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14222 $as_echo "$ac_ct_OTOOL" >&6; }
14223 else
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14228 if test "x$ac_ct_OTOOL" = x; then
14229 OTOOL=":"
14230 else
14231 case $cross_compiling:$ac_tool_warned in
14232 yes:)
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14235 ac_tool_warned=yes ;;
14236 esac
14237 OTOOL=$ac_ct_OTOOL
14239 else
14240 OTOOL="$ac_cv_prog_OTOOL"
14243 if test -n "$ac_tool_prefix"; then
14244 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14245 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 if test -n "$OTOOL64"; then
14252 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14253 else
14254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14255 for as_dir in $PATH
14257 IFS=$as_save_IFS
14258 test -z "$as_dir" && as_dir=.
14259 for ac_exec_ext in '' $ac_executable_extensions; do
14260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14261 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14263 break 2
14265 done
14266 done
14267 IFS=$as_save_IFS
14271 OTOOL64=$ac_cv_prog_OTOOL64
14272 if test -n "$OTOOL64"; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14274 $as_echo "$OTOOL64" >&6; }
14275 else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14282 if test -z "$ac_cv_prog_OTOOL64"; then
14283 ac_ct_OTOOL64=$OTOOL64
14284 # Extract the first word of "otool64", so it can be a program name with args.
14285 set dummy otool64; ac_word=$2
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14287 $as_echo_n "checking for $ac_word... " >&6; }
14288 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 if test -n "$ac_ct_OTOOL64"; then
14292 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14293 else
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14297 IFS=$as_save_IFS
14298 test -z "$as_dir" && as_dir=.
14299 for ac_exec_ext in '' $ac_executable_extensions; do
14300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14301 ac_cv_prog_ac_ct_OTOOL64="otool64"
14302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303 break 2
14305 done
14306 done
14307 IFS=$as_save_IFS
14311 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14312 if test -n "$ac_ct_OTOOL64"; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14314 $as_echo "$ac_ct_OTOOL64" >&6; }
14315 else
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14320 if test "x$ac_ct_OTOOL64" = x; then
14321 OTOOL64=":"
14322 else
14323 case $cross_compiling:$ac_tool_warned in
14324 yes:)
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14327 ac_tool_warned=yes ;;
14328 esac
14329 OTOOL64=$ac_ct_OTOOL64
14331 else
14332 OTOOL64="$ac_cv_prog_OTOOL64"
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14362 $as_echo_n "checking for -single_module linker flag... " >&6; }
14363 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 lt_cv_apple_cc_single_mod=no
14367 if test -z "${LT_MULTI_MODULE}"; then
14368 # By default we will add the -single_module flag. You can override
14369 # by either setting the environment variable LT_MULTI_MODULE
14370 # non-empty at configure time, or by adding -multi_module to the
14371 # link flags.
14372 rm -rf libconftest.dylib*
14373 echo "int foo(void){return 1;}" > conftest.c
14374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14375 -dynamiclib -Wl,-single_module conftest.c" >&5
14376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14378 _lt_result=$?
14379 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14380 lt_cv_apple_cc_single_mod=yes
14381 else
14382 cat conftest.err >&5
14384 rm -rf libconftest.dylib*
14385 rm -f conftest.*
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14389 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14391 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14392 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 lt_cv_ld_exported_symbols_list=no
14396 save_LDFLAGS=$LDFLAGS
14397 echo "_main" > conftest.sym
14398 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14403 main ()
14407 return 0;
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"; then :
14411 lt_cv_ld_exported_symbols_list=yes
14412 else
14413 lt_cv_ld_exported_symbols_list=no
14415 rm -f core conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LDFLAGS="$save_LDFLAGS"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14421 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14423 $as_echo_n "checking for -force_load linker flag... " >&6; }
14424 if test "${lt_cv_ld_force_load+set}" = set; then :
14425 $as_echo_n "(cached) " >&6
14426 else
14427 lt_cv_ld_force_load=no
14428 cat > conftest.c << _LT_EOF
14429 int forced_loaded() { return 2;}
14430 _LT_EOF
14431 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14432 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14433 echo "$AR cru libconftest.a conftest.o" >&5
14434 $AR cru libconftest.a conftest.o 2>&5
14435 cat > conftest.c << _LT_EOF
14436 int main() { return 0;}
14437 _LT_EOF
14438 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14439 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14440 _lt_result=$?
14441 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14442 lt_cv_ld_force_load=yes
14443 else
14444 cat conftest.err >&5
14446 rm -f conftest.err libconftest.a conftest conftest.c
14447 rm -rf conftest.dSYM
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14451 $as_echo "$lt_cv_ld_force_load" >&6; }
14452 case $host_os in
14453 rhapsody* | darwin1.[012])
14454 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14455 darwin1.*)
14456 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14457 darwin*) # darwin 5.x on
14458 # if running on 10.5 or later, the deployment target defaults
14459 # to the OS version, if on x86, and 10.4, the deployment
14460 # target defaults to 10.4. Don't you love it?
14461 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14462 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14463 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14464 10.[012]*)
14465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14466 10.*)
14467 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14468 esac
14470 esac
14471 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14472 _lt_dar_single_mod='$single_module'
14474 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14475 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14476 else
14477 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14479 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14480 _lt_dsymutil='~$DSYMUTIL $lib || :'
14481 else
14482 _lt_dsymutil=
14485 esac
14487 for ac_header in dlfcn.h
14488 do :
14489 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14490 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define HAVE_DLFCN_H 1
14493 _ACEOF
14496 done
14502 # Set options
14506 enable_dlopen=no
14509 enable_win32_dll=no
14512 # Check whether --enable-shared was given.
14513 if test "${enable_shared+set}" = set; then :
14514 enableval=$enable_shared; p=${PACKAGE-default}
14515 case $enableval in
14516 yes) enable_shared=yes ;;
14517 no) enable_shared=no ;;
14519 enable_shared=no
14520 # Look at the argument we got. We use all the common list separators.
14521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14522 for pkg in $enableval; do
14523 IFS="$lt_save_ifs"
14524 if test "X$pkg" = "X$p"; then
14525 enable_shared=yes
14527 done
14528 IFS="$lt_save_ifs"
14530 esac
14531 else
14532 enable_shared=yes
14543 # Check whether --enable-static was given.
14544 if test "${enable_static+set}" = set; then :
14545 enableval=$enable_static; p=${PACKAGE-default}
14546 case $enableval in
14547 yes) enable_static=yes ;;
14548 no) enable_static=no ;;
14550 enable_static=no
14551 # Look at the argument we got. We use all the common list separators.
14552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14553 for pkg in $enableval; do
14554 IFS="$lt_save_ifs"
14555 if test "X$pkg" = "X$p"; then
14556 enable_static=yes
14558 done
14559 IFS="$lt_save_ifs"
14561 esac
14562 else
14563 enable_static=yes
14575 # Check whether --with-pic was given.
14576 if test "${with_pic+set}" = set; then :
14577 withval=$with_pic; pic_mode="$withval"
14578 else
14579 pic_mode=default
14583 test -z "$pic_mode" && pic_mode=default
14591 # Check whether --enable-fast-install was given.
14592 if test "${enable_fast_install+set}" = set; then :
14593 enableval=$enable_fast_install; p=${PACKAGE-default}
14594 case $enableval in
14595 yes) enable_fast_install=yes ;;
14596 no) enable_fast_install=no ;;
14598 enable_fast_install=no
14599 # Look at the argument we got. We use all the common list separators.
14600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14601 for pkg in $enableval; do
14602 IFS="$lt_save_ifs"
14603 if test "X$pkg" = "X$p"; then
14604 enable_fast_install=yes
14606 done
14607 IFS="$lt_save_ifs"
14609 esac
14610 else
14611 enable_fast_install=yes
14624 # This can be used to rebuild libtool when needed
14625 LIBTOOL_DEPS="$ltmain"
14627 # Always use our own libtool.
14628 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14655 test -z "$LN_S" && LN_S="ln -s"
14670 if test -n "${ZSH_VERSION+set}" ; then
14671 setopt NO_GLOB_SUBST
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14675 $as_echo_n "checking for objdir... " >&6; }
14676 if test "${lt_cv_objdir+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 rm -f .libs 2>/dev/null
14680 mkdir .libs 2>/dev/null
14681 if test -d .libs; then
14682 lt_cv_objdir=.libs
14683 else
14684 # MS-DOS does not allow filenames that begin with a dot.
14685 lt_cv_objdir=_libs
14687 rmdir .libs 2>/dev/null
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14690 $as_echo "$lt_cv_objdir" >&6; }
14691 objdir=$lt_cv_objdir
14697 cat >>confdefs.h <<_ACEOF
14698 #define LT_OBJDIR "$lt_cv_objdir/"
14699 _ACEOF
14704 case $host_os in
14705 aix3*)
14706 # AIX sometimes has problems with the GCC collect2 program. For some
14707 # reason, if we set the COLLECT_NAMES environment variable, the problems
14708 # vanish in a puff of smoke.
14709 if test "X${COLLECT_NAMES+set}" != Xset; then
14710 COLLECT_NAMES=
14711 export COLLECT_NAMES
14714 esac
14716 # Global variables:
14717 ofile=libtool
14718 can_build_shared=yes
14720 # All known linkers require a `.a' archive for static linking (except MSVC,
14721 # which needs '.lib').
14722 libext=a
14724 with_gnu_ld="$lt_cv_prog_gnu_ld"
14726 old_CC="$CC"
14727 old_CFLAGS="$CFLAGS"
14729 # Set sane defaults for various variables
14730 test -z "$CC" && CC=cc
14731 test -z "$LTCC" && LTCC=$CC
14732 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14733 test -z "$LD" && LD=ld
14734 test -z "$ac_objext" && ac_objext=o
14736 for cc_temp in $compiler""; do
14737 case $cc_temp in
14738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14740 \-*) ;;
14741 *) break;;
14742 esac
14743 done
14744 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14747 # Only perform the check for file, if the check method requires it
14748 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14749 case $deplibs_check_method in
14750 file_magic*)
14751 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14753 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14754 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 case $MAGIC_CMD in
14758 [\\/*] | ?:[\\/]*)
14759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14762 lt_save_MAGIC_CMD="$MAGIC_CMD"
14763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14765 for ac_dir in $ac_dummy; do
14766 IFS="$lt_save_ifs"
14767 test -z "$ac_dir" && ac_dir=.
14768 if test -f $ac_dir/${ac_tool_prefix}file; then
14769 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14770 if test -n "$file_magic_test_file"; then
14771 case $deplibs_check_method in
14772 "file_magic "*)
14773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14776 $EGREP "$file_magic_regex" > /dev/null; then
14778 else
14779 cat <<_LT_EOF 1>&2
14781 *** Warning: the command libtool uses to detect shared libraries,
14782 *** $file_magic_cmd, produces output that libtool cannot recognize.
14783 *** The result is that libtool may fail to recognize shared libraries
14784 *** as such. This will affect the creation of libtool libraries that
14785 *** depend on shared libraries, but programs linked with such libtool
14786 *** libraries will work regardless of this problem. Nevertheless, you
14787 *** may want to report the problem to your system manager and/or to
14788 *** bug-libtool@gnu.org
14790 _LT_EOF
14791 fi ;;
14792 esac
14794 break
14796 done
14797 IFS="$lt_save_ifs"
14798 MAGIC_CMD="$lt_save_MAGIC_CMD"
14800 esac
14803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14804 if test -n "$MAGIC_CMD"; then
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14806 $as_echo "$MAGIC_CMD" >&6; }
14807 else
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809 $as_echo "no" >&6; }
14816 if test -z "$lt_cv_path_MAGIC_CMD"; then
14817 if test -n "$ac_tool_prefix"; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14819 $as_echo_n "checking for file... " >&6; }
14820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 case $MAGIC_CMD in
14824 [\\/*] | ?:[\\/]*)
14825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14828 lt_save_MAGIC_CMD="$MAGIC_CMD"
14829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14831 for ac_dir in $ac_dummy; do
14832 IFS="$lt_save_ifs"
14833 test -z "$ac_dir" && ac_dir=.
14834 if test -f $ac_dir/file; then
14835 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14836 if test -n "$file_magic_test_file"; then
14837 case $deplibs_check_method in
14838 "file_magic "*)
14839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14842 $EGREP "$file_magic_regex" > /dev/null; then
14844 else
14845 cat <<_LT_EOF 1>&2
14847 *** Warning: the command libtool uses to detect shared libraries,
14848 *** $file_magic_cmd, produces output that libtool cannot recognize.
14849 *** The result is that libtool may fail to recognize shared libraries
14850 *** as such. This will affect the creation of libtool libraries that
14851 *** depend on shared libraries, but programs linked with such libtool
14852 *** libraries will work regardless of this problem. Nevertheless, you
14853 *** may want to report the problem to your system manager and/or to
14854 *** bug-libtool@gnu.org
14856 _LT_EOF
14857 fi ;;
14858 esac
14860 break
14862 done
14863 IFS="$lt_save_ifs"
14864 MAGIC_CMD="$lt_save_MAGIC_CMD"
14866 esac
14869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14870 if test -n "$MAGIC_CMD"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14872 $as_echo "$MAGIC_CMD" >&6; }
14873 else
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 $as_echo "no" >&6; }
14879 else
14880 MAGIC_CMD=:
14886 esac
14888 # Use C for the default configuration in the libtool script
14890 lt_save_CC="$CC"
14891 ac_ext=c
14892 ac_cpp='$CPP $CPPFLAGS'
14893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14898 # Source file extension for C test sources.
14899 ac_ext=c
14901 # Object file extension for compiled C test sources.
14902 objext=o
14903 objext=$objext
14905 # Code to be used in simple compile tests
14906 lt_simple_compile_test_code="int some_variable = 0;"
14908 # Code to be used in simple link tests
14909 lt_simple_link_test_code='int main(){return(0);}'
14917 # If no C compiler was specified, use CC.
14918 LTCC=${LTCC-"$CC"}
14920 # If no C compiler flags were specified, use CFLAGS.
14921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14923 # Allow CC to be a program name with arguments.
14924 compiler=$CC
14926 # Save the default compiler, since it gets overwritten when the other
14927 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14928 compiler_DEFAULT=$CC
14930 # save warnings/boilerplate of simple test code
14931 ac_outfile=conftest.$ac_objext
14932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14934 _lt_compiler_boilerplate=`cat conftest.err`
14935 $RM conftest*
14937 ac_outfile=conftest.$ac_objext
14938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14940 _lt_linker_boilerplate=`cat conftest.err`
14941 $RM -r conftest*
14944 ## CAVEAT EMPTOR:
14945 ## There is no encapsulation within the following macros, do not change
14946 ## the running order or otherwise move them around unless you know exactly
14947 ## what you are doing...
14948 if test -n "$compiler"; then
14950 lt_prog_compiler_no_builtin_flag=
14952 if test "$GCC" = yes; then
14953 case $cc_basename in
14954 nvcc*)
14955 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14957 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14958 esac
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14961 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14962 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 lt_cv_prog_compiler_rtti_exceptions=no
14966 ac_outfile=conftest.$ac_objext
14967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968 lt_compiler_flag="-fno-rtti -fno-exceptions"
14969 # Insert the option either (1) after the last *FLAGS variable, or
14970 # (2) before a word containing "conftest.", or (3) at the end.
14971 # Note that $ac_compile itself does not contain backslashes and begins
14972 # with a dollar sign (not a hyphen), so the echo should work correctly.
14973 # The option is referenced via a variable to avoid confusing sed.
14974 lt_compile=`echo "$ac_compile" | $SED \
14975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977 -e 's:$: $lt_compiler_flag:'`
14978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14979 (eval "$lt_compile" 2>conftest.err)
14980 ac_status=$?
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 if (exit $ac_status) && test -s "$ac_outfile"; then
14984 # The compiler can only warn and ignore the option if not recognized
14985 # So say no if there are warnings other than the usual output.
14986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14989 lt_cv_prog_compiler_rtti_exceptions=yes
14992 $RM conftest*
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14996 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14998 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14999 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15000 else
15011 lt_prog_compiler_wl=
15012 lt_prog_compiler_pic=
15013 lt_prog_compiler_static=
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15016 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15018 if test "$GCC" = yes; then
15019 lt_prog_compiler_wl='-Wl,'
15020 lt_prog_compiler_static='-static'
15022 case $host_os in
15023 aix*)
15024 # All AIX code is PIC.
15025 if test "$host_cpu" = ia64; then
15026 # AIX 5 now supports IA64 processor
15027 lt_prog_compiler_static='-Bstatic'
15031 amigaos*)
15032 case $host_cpu in
15033 powerpc)
15034 # see comment about AmigaOS4 .so support
15035 lt_prog_compiler_pic='-fPIC'
15037 m68k)
15038 # FIXME: we need at least 68020 code to build shared libraries, but
15039 # adding the `-m68020' flag to GCC prevents building anything better,
15040 # like `-m68040'.
15041 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15043 esac
15046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15047 # PIC is the default for these OSes.
15050 mingw* | cygwin* | pw32* | os2* | cegcc*)
15051 # This hack is so that the source file can tell whether it is being
15052 # built for inclusion in a dll (and should export symbols for example).
15053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15054 # (--disable-auto-import) libraries
15055 lt_prog_compiler_pic='-DDLL_EXPORT'
15058 darwin* | rhapsody*)
15059 # PIC is the default on this platform
15060 # Common symbols not allowed in MH_DYLIB files
15061 lt_prog_compiler_pic='-fno-common'
15064 haiku*)
15065 # PIC is the default for Haiku.
15066 # The "-static" flag exists, but is broken.
15067 lt_prog_compiler_static=
15070 hpux*)
15071 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15072 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15073 # sets the default TLS model and affects inlining.
15074 case $host_cpu in
15075 hppa*64*)
15076 # +Z the default
15079 lt_prog_compiler_pic='-fPIC'
15081 esac
15084 interix[3-9]*)
15085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15086 # Instead, we relocate shared libraries at runtime.
15089 msdosdjgpp*)
15090 # Just because we use GCC doesn't mean we suddenly get shared libraries
15091 # on systems that don't support them.
15092 lt_prog_compiler_can_build_shared=no
15093 enable_shared=no
15096 *nto* | *qnx*)
15097 # QNX uses GNU C++, but need to define -shared option too, otherwise
15098 # it will coredump.
15099 lt_prog_compiler_pic='-fPIC -shared'
15102 sysv4*MP*)
15103 if test -d /usr/nec; then
15104 lt_prog_compiler_pic=-Kconform_pic
15109 lt_prog_compiler_pic='-fPIC'
15111 esac
15113 case $cc_basename in
15114 nvcc*) # Cuda Compiler Driver 2.2
15115 lt_prog_compiler_wl='-Xlinker '
15116 lt_prog_compiler_pic='-Xcompiler -fPIC'
15118 esac
15119 else
15120 # PORTME Check for flag to pass linker flags through the system compiler.
15121 case $host_os in
15122 aix*)
15123 lt_prog_compiler_wl='-Wl,'
15124 if test "$host_cpu" = ia64; then
15125 # AIX 5 now supports IA64 processor
15126 lt_prog_compiler_static='-Bstatic'
15127 else
15128 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15132 mingw* | cygwin* | pw32* | os2* | cegcc*)
15133 # This hack is so that the source file can tell whether it is being
15134 # built for inclusion in a dll (and should export symbols for example).
15135 lt_prog_compiler_pic='-DDLL_EXPORT'
15138 hpux9* | hpux10* | hpux11*)
15139 lt_prog_compiler_wl='-Wl,'
15140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15141 # not for PA HP-UX.
15142 case $host_cpu in
15143 hppa*64*|ia64*)
15144 # +Z the default
15147 lt_prog_compiler_pic='+Z'
15149 esac
15150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15151 lt_prog_compiler_static='${wl}-a ${wl}archive'
15154 irix5* | irix6* | nonstopux*)
15155 lt_prog_compiler_wl='-Wl,'
15156 # PIC (with -KPIC) is the default.
15157 lt_prog_compiler_static='-non_shared'
15160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15161 case $cc_basename in
15162 # old Intel for x86_64 which still supported -KPIC.
15163 ecc*)
15164 lt_prog_compiler_wl='-Wl,'
15165 lt_prog_compiler_pic='-KPIC'
15166 lt_prog_compiler_static='-static'
15168 # icc used to be incompatible with GCC.
15169 # ICC 10 doesn't accept -KPIC any more.
15170 icc* | ifort*)
15171 lt_prog_compiler_wl='-Wl,'
15172 lt_prog_compiler_pic='-fPIC'
15173 lt_prog_compiler_static='-static'
15175 # Lahey Fortran 8.1.
15176 lf95*)
15177 lt_prog_compiler_wl='-Wl,'
15178 lt_prog_compiler_pic='--shared'
15179 lt_prog_compiler_static='--static'
15181 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15182 # Portland Group compilers (*not* the Pentium gcc compiler,
15183 # which looks to be a dead project)
15184 lt_prog_compiler_wl='-Wl,'
15185 lt_prog_compiler_pic='-fpic'
15186 lt_prog_compiler_static='-Bstatic'
15188 ccc*)
15189 lt_prog_compiler_wl='-Wl,'
15190 # All Alpha code is PIC.
15191 lt_prog_compiler_static='-non_shared'
15193 xl* | bgxl* | bgf* | mpixl*)
15194 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15195 lt_prog_compiler_wl='-Wl,'
15196 lt_prog_compiler_pic='-qpic'
15197 lt_prog_compiler_static='-qstaticlink'
15200 case `$CC -V 2>&1 | sed 5q` in
15201 *Sun\ F* | *Sun*Fortran*)
15202 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15203 lt_prog_compiler_pic='-KPIC'
15204 lt_prog_compiler_static='-Bstatic'
15205 lt_prog_compiler_wl=''
15207 *Sun\ C*)
15208 # Sun C 5.9
15209 lt_prog_compiler_pic='-KPIC'
15210 lt_prog_compiler_static='-Bstatic'
15211 lt_prog_compiler_wl='-Wl,'
15213 esac
15215 esac
15218 newsos6)
15219 lt_prog_compiler_pic='-KPIC'
15220 lt_prog_compiler_static='-Bstatic'
15223 *nto* | *qnx*)
15224 # QNX uses GNU C++, but need to define -shared option too, otherwise
15225 # it will coredump.
15226 lt_prog_compiler_pic='-fPIC -shared'
15229 osf3* | osf4* | osf5*)
15230 lt_prog_compiler_wl='-Wl,'
15231 # All OSF/1 code is PIC.
15232 lt_prog_compiler_static='-non_shared'
15235 rdos*)
15236 lt_prog_compiler_static='-non_shared'
15239 solaris*)
15240 lt_prog_compiler_pic='-KPIC'
15241 lt_prog_compiler_static='-Bstatic'
15242 case $cc_basename in
15243 f77* | f90* | f95*)
15244 lt_prog_compiler_wl='-Qoption ld ';;
15246 lt_prog_compiler_wl='-Wl,';;
15247 esac
15250 sunos4*)
15251 lt_prog_compiler_wl='-Qoption ld '
15252 lt_prog_compiler_pic='-PIC'
15253 lt_prog_compiler_static='-Bstatic'
15256 sysv4 | sysv4.2uw2* | sysv4.3*)
15257 lt_prog_compiler_wl='-Wl,'
15258 lt_prog_compiler_pic='-KPIC'
15259 lt_prog_compiler_static='-Bstatic'
15262 sysv4*MP*)
15263 if test -d /usr/nec ;then
15264 lt_prog_compiler_pic='-Kconform_pic'
15265 lt_prog_compiler_static='-Bstatic'
15269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15270 lt_prog_compiler_wl='-Wl,'
15271 lt_prog_compiler_pic='-KPIC'
15272 lt_prog_compiler_static='-Bstatic'
15275 unicos*)
15276 lt_prog_compiler_wl='-Wl,'
15277 lt_prog_compiler_can_build_shared=no
15280 uts4*)
15281 lt_prog_compiler_pic='-pic'
15282 lt_prog_compiler_static='-Bstatic'
15286 lt_prog_compiler_can_build_shared=no
15288 esac
15291 case $host_os in
15292 # For platforms which do not support PIC, -DPIC is meaningless:
15293 *djgpp*)
15294 lt_prog_compiler_pic=
15297 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15299 esac
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15301 $as_echo "$lt_prog_compiler_pic" >&6; }
15309 # Check to make sure the PIC flag actually works.
15311 if test -n "$lt_prog_compiler_pic"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15313 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15314 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 lt_cv_prog_compiler_pic_works=no
15318 ac_outfile=conftest.$ac_objext
15319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15320 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15321 # Insert the option either (1) after the last *FLAGS variable, or
15322 # (2) before a word containing "conftest.", or (3) at the end.
15323 # Note that $ac_compile itself does not contain backslashes and begins
15324 # with a dollar sign (not a hyphen), so the echo should work correctly.
15325 # The option is referenced via a variable to avoid confusing sed.
15326 lt_compile=`echo "$ac_compile" | $SED \
15327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329 -e 's:$: $lt_compiler_flag:'`
15330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15331 (eval "$lt_compile" 2>conftest.err)
15332 ac_status=$?
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 if (exit $ac_status) && test -s "$ac_outfile"; then
15336 # The compiler can only warn and ignore the option if not recognized
15337 # So say no if there are warnings other than the usual output.
15338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15341 lt_cv_prog_compiler_pic_works=yes
15344 $RM conftest*
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15348 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15350 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15351 case $lt_prog_compiler_pic in
15352 "" | " "*) ;;
15353 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15354 esac
15355 else
15356 lt_prog_compiler_pic=
15357 lt_prog_compiler_can_build_shared=no
15368 # Check to make sure the static flag actually works.
15370 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15372 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15373 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376 lt_cv_prog_compiler_static_works=no
15377 save_LDFLAGS="$LDFLAGS"
15378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15381 # The linker can only warn and ignore the option if not recognized
15382 # So say no if there are warnings
15383 if test -s conftest.err; then
15384 # Append any errors to the config.log.
15385 cat conftest.err 1>&5
15386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15388 if diff conftest.exp conftest.er2 >/dev/null; then
15389 lt_cv_prog_compiler_static_works=yes
15391 else
15392 lt_cv_prog_compiler_static_works=yes
15395 $RM -r conftest*
15396 LDFLAGS="$save_LDFLAGS"
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15400 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15402 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15404 else
15405 lt_prog_compiler_static=
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15416 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419 lt_cv_prog_compiler_c_o=no
15420 $RM -r conftest 2>/dev/null
15421 mkdir conftest
15422 cd conftest
15423 mkdir out
15424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15426 lt_compiler_flag="-o out/conftest2.$ac_objext"
15427 # Insert the option either (1) after the last *FLAGS variable, or
15428 # (2) before a word containing "conftest.", or (3) at the end.
15429 # Note that $ac_compile itself does not contain backslashes and begins
15430 # with a dollar sign (not a hyphen), so the echo should work correctly.
15431 lt_compile=`echo "$ac_compile" | $SED \
15432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15434 -e 's:$: $lt_compiler_flag:'`
15435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15436 (eval "$lt_compile" 2>out/conftest.err)
15437 ac_status=$?
15438 cat out/conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15441 then
15442 # The compiler can only warn and ignore the option if not recognized
15443 # So say no if there are warnings
15444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15447 lt_cv_prog_compiler_c_o=yes
15450 chmod u+w . 2>&5
15451 $RM conftest*
15452 # SGI C++ compiler will create directory out/ii_files/ for
15453 # template instantiation
15454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15455 $RM out/* && rmdir out
15456 cd ..
15457 $RM -r conftest
15458 $RM conftest*
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15462 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15470 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15471 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474 lt_cv_prog_compiler_c_o=no
15475 $RM -r conftest 2>/dev/null
15476 mkdir conftest
15477 cd conftest
15478 mkdir out
15479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15481 lt_compiler_flag="-o out/conftest2.$ac_objext"
15482 # Insert the option either (1) after the last *FLAGS variable, or
15483 # (2) before a word containing "conftest.", or (3) at the end.
15484 # Note that $ac_compile itself does not contain backslashes and begins
15485 # with a dollar sign (not a hyphen), so the echo should work correctly.
15486 lt_compile=`echo "$ac_compile" | $SED \
15487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15489 -e 's:$: $lt_compiler_flag:'`
15490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15491 (eval "$lt_compile" 2>out/conftest.err)
15492 ac_status=$?
15493 cat out/conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15496 then
15497 # The compiler can only warn and ignore the option if not recognized
15498 # So say no if there are warnings
15499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15502 lt_cv_prog_compiler_c_o=yes
15505 chmod u+w . 2>&5
15506 $RM conftest*
15507 # SGI C++ compiler will create directory out/ii_files/ for
15508 # template instantiation
15509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15510 $RM out/* && rmdir out
15511 cd ..
15512 $RM -r conftest
15513 $RM conftest*
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15517 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15522 hard_links="nottested"
15523 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15524 # do not overwrite the value of need_locks provided by the user
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15526 $as_echo_n "checking if we can lock with hard links... " >&6; }
15527 hard_links=yes
15528 $RM conftest*
15529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15530 touch conftest.a
15531 ln conftest.a conftest.b 2>&5 || hard_links=no
15532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15534 $as_echo "$hard_links" >&6; }
15535 if test "$hard_links" = no; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15537 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15538 need_locks=warn
15540 else
15541 need_locks=no
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15550 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15552 runpath_var=
15553 allow_undefined_flag=
15554 always_export_symbols=no
15555 archive_cmds=
15556 archive_expsym_cmds=
15557 compiler_needs_object=no
15558 enable_shared_with_static_runtimes=no
15559 export_dynamic_flag_spec=
15560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15561 hardcode_automatic=no
15562 hardcode_direct=no
15563 hardcode_direct_absolute=no
15564 hardcode_libdir_flag_spec=
15565 hardcode_libdir_flag_spec_ld=
15566 hardcode_libdir_separator=
15567 hardcode_minus_L=no
15568 hardcode_shlibpath_var=unsupported
15569 inherit_rpath=no
15570 link_all_deplibs=unknown
15571 module_cmds=
15572 module_expsym_cmds=
15573 old_archive_from_new_cmds=
15574 old_archive_from_expsyms_cmds=
15575 thread_safe_flag_spec=
15576 whole_archive_flag_spec=
15577 # include_expsyms should be a list of space-separated symbols to be *always*
15578 # included in the symbol list
15579 include_expsyms=
15580 # exclude_expsyms can be an extended regexp of symbols to exclude
15581 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15582 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15583 # as well as any symbol that contains `d'.
15584 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15586 # platforms (ab)use it in PIC code, but their linkers get confused if
15587 # the symbol is explicitly referenced. Since portable code cannot
15588 # rely on this symbol name, it's probably fine to never include it in
15589 # preloaded symbol tables.
15590 # Exclude shared library initialization/finalization symbols.
15591 extract_expsyms_cmds=
15593 case $host_os in
15594 cygwin* | mingw* | pw32* | cegcc*)
15595 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15596 # When not using gcc, we currently assume that we are using
15597 # Microsoft Visual C++.
15598 if test "$GCC" != yes; then
15599 with_gnu_ld=no
15602 interix*)
15603 # we just hope/assume this is gcc and not c89 (= MSVC++)
15604 with_gnu_ld=yes
15606 openbsd*)
15607 with_gnu_ld=no
15609 esac
15611 ld_shlibs=yes
15613 # On some targets, GNU ld is compatible enough with the native linker
15614 # that we're better off using the native interface for both.
15615 lt_use_gnu_ld_interface=no
15616 if test "$with_gnu_ld" = yes; then
15617 case $host_os in
15618 aix*)
15619 # The AIX port of GNU ld has always aspired to compatibility
15620 # with the native linker. However, as the warning in the GNU ld
15621 # block says, versions before 2.19.5* couldn't really create working
15622 # shared libraries, regardless of the interface used.
15623 case `$LD -v 2>&1` in
15624 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15625 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15626 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15628 lt_use_gnu_ld_interface=yes
15630 esac
15633 lt_use_gnu_ld_interface=yes
15635 esac
15638 if test "$lt_use_gnu_ld_interface" = yes; then
15639 # If archive_cmds runs LD, not CC, wlarc should be empty
15640 wlarc='${wl}'
15642 # Set some defaults for GNU ld with shared library support. These
15643 # are reset later if shared libraries are not supported. Putting them
15644 # here allows them to be overridden if necessary.
15645 runpath_var=LD_RUN_PATH
15646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15647 export_dynamic_flag_spec='${wl}--export-dynamic'
15648 # ancient GNU ld didn't support --whole-archive et. al.
15649 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15650 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15651 else
15652 whole_archive_flag_spec=
15654 supports_anon_versioning=no
15655 case `$LD -v 2>&1` in
15656 *GNU\ gold*) supports_anon_versioning=yes ;;
15657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15660 *\ 2.11.*) ;; # other 2.11 versions
15661 *) supports_anon_versioning=yes ;;
15662 esac
15664 # See if GNU ld supports shared libraries.
15665 case $host_os in
15666 aix[3-9]*)
15667 # On AIX/PPC, the GNU linker is very broken
15668 if test "$host_cpu" != ia64; then
15669 ld_shlibs=no
15670 cat <<_LT_EOF 1>&2
15672 *** Warning: the GNU linker, at least up to release 2.19, is reported
15673 *** to be unable to reliably create shared libraries on AIX.
15674 *** Therefore, libtool is disabling shared libraries support. If you
15675 *** really care for shared libraries, you may want to install binutils
15676 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15677 *** You will then need to restart the configuration process.
15679 _LT_EOF
15683 amigaos*)
15684 case $host_cpu in
15685 powerpc)
15686 # see comment about AmigaOS4 .so support
15687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15688 archive_expsym_cmds=''
15690 m68k)
15691 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)'
15692 hardcode_libdir_flag_spec='-L$libdir'
15693 hardcode_minus_L=yes
15695 esac
15698 beos*)
15699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15700 allow_undefined_flag=unsupported
15701 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15702 # support --undefined. This deserves some investigation. FIXME
15703 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15704 else
15705 ld_shlibs=no
15709 cygwin* | mingw* | pw32* | cegcc*)
15710 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15711 # as there is no search path for DLLs.
15712 hardcode_libdir_flag_spec='-L$libdir'
15713 export_dynamic_flag_spec='${wl}--export-all-symbols'
15714 allow_undefined_flag=unsupported
15715 always_export_symbols=no
15716 enable_shared_with_static_runtimes=yes
15717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15721 # If the export-symbols file already is a .def file (1st line
15722 # is EXPORTS), use it as is; otherwise, prepend...
15723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15724 cp $export_symbols $output_objdir/$soname.def;
15725 else
15726 echo EXPORTS > $output_objdir/$soname.def;
15727 cat $export_symbols >> $output_objdir/$soname.def;
15729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15730 else
15731 ld_shlibs=no
15735 haiku*)
15736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15737 link_all_deplibs=yes
15740 interix[3-9]*)
15741 hardcode_direct=no
15742 hardcode_shlibpath_var=no
15743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15744 export_dynamic_flag_spec='${wl}-E'
15745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15746 # Instead, shared libraries are loaded at an image base (0x10000000 by
15747 # default) and relocated if they conflict, which is a slow very memory
15748 # consuming and fragmenting process. To avoid this, we pick a random,
15749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15752 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'
15755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15756 tmp_diet=no
15757 if test "$host_os" = linux-dietlibc; then
15758 case $cc_basename in
15759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15760 esac
15762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15763 && test "$tmp_diet" = no
15764 then
15765 tmp_addflag=
15766 tmp_sharedflag='-shared'
15767 case $cc_basename,$host_cpu in
15768 pgcc*) # Portland Group C compiler
15769 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'
15770 tmp_addflag=' $pic_flag'
15772 pgf77* | pgf90* | pgf95* | pgfortran*)
15773 # Portland Group f77 and f90 compilers
15774 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'
15775 tmp_addflag=' $pic_flag -Mnomain' ;;
15776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15777 tmp_addflag=' -i_dynamic' ;;
15778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15779 tmp_addflag=' -i_dynamic -nofor_main' ;;
15780 ifc* | ifort*) # Intel Fortran compiler
15781 tmp_addflag=' -nofor_main' ;;
15782 lf95*) # Lahey Fortran 8.1
15783 whole_archive_flag_spec=
15784 tmp_sharedflag='--shared' ;;
15785 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15786 tmp_sharedflag='-qmkshrobj'
15787 tmp_addflag= ;;
15788 nvcc*) # Cuda Compiler Driver 2.2
15789 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'
15790 compiler_needs_object=yes
15792 esac
15793 case `$CC -V 2>&1 | sed 5q` in
15794 *Sun\ C*) # Sun C 5.9
15795 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'
15796 compiler_needs_object=yes
15797 tmp_sharedflag='-G' ;;
15798 *Sun\ F*) # Sun Fortran 8.3
15799 tmp_sharedflag='-G' ;;
15800 esac
15801 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803 if test "x$supports_anon_versioning" = xyes; then
15804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15806 echo "local: *; };" >> $output_objdir/$libname.ver~
15807 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15810 case $cc_basename in
15811 xlf* | bgf* | bgxlf* | mpixlf*)
15812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15814 hardcode_libdir_flag_spec=
15815 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15816 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15817 if test "x$supports_anon_versioning" = xyes; then
15818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15820 echo "local: *; };" >> $output_objdir/$libname.ver~
15821 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15824 esac
15825 else
15826 ld_shlibs=no
15830 netbsd*)
15831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15832 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15833 wlarc=
15834 else
15835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15840 solaris*)
15841 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15842 ld_shlibs=no
15843 cat <<_LT_EOF 1>&2
15845 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15846 *** create shared libraries on Solaris systems. Therefore, libtool
15847 *** is disabling shared libraries support. We urge you to upgrade GNU
15848 *** binutils to release 2.9.1 or newer. Another option is to modify
15849 *** your PATH or compiler configuration so that the native linker is
15850 *** used, and then restart.
15852 _LT_EOF
15853 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15856 else
15857 ld_shlibs=no
15861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15862 case `$LD -v 2>&1` in
15863 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15864 ld_shlibs=no
15865 cat <<_LT_EOF 1>&2
15867 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15868 *** reliably create shared libraries on SCO systems. Therefore, libtool
15869 *** is disabling shared libraries support. We urge you to upgrade GNU
15870 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15871 *** your PATH or compiler configuration so that the native linker is
15872 *** used, and then restart.
15874 _LT_EOF
15877 # For security reasons, it is highly recommended that you always
15878 # use absolute paths for naming shared libraries, and exclude the
15879 # DT_RUNPATH tag from executables and libraries. But doing so
15880 # requires that you compile everything twice, which is a pain.
15881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15885 else
15886 ld_shlibs=no
15889 esac
15892 sunos4*)
15893 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15894 wlarc=
15895 hardcode_direct=yes
15896 hardcode_shlibpath_var=no
15900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15903 else
15904 ld_shlibs=no
15907 esac
15909 if test "$ld_shlibs" = no; then
15910 runpath_var=
15911 hardcode_libdir_flag_spec=
15912 export_dynamic_flag_spec=
15913 whole_archive_flag_spec=
15915 else
15916 # PORTME fill in a description of your system's linker (not GNU ld)
15917 case $host_os in
15918 aix3*)
15919 allow_undefined_flag=unsupported
15920 always_export_symbols=yes
15921 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'
15922 # Note: this linker hardcodes the directories in LIBPATH if there
15923 # are no directories specified by -L.
15924 hardcode_minus_L=yes
15925 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15926 # Neither direct hardcoding nor static linking is supported with a
15927 # broken collect2.
15928 hardcode_direct=unsupported
15932 aix[4-9]*)
15933 if test "$host_cpu" = ia64; then
15934 # On IA64, the linker does run time linking by default, so we don't
15935 # have to do anything special.
15936 aix_use_runtimelinking=no
15937 exp_sym_flag='-Bexport'
15938 no_entry_flag=""
15939 else
15940 # If we're using GNU nm, then we don't want the "-C" option.
15941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15942 # Also, AIX nm treats weak defined symbols like other global
15943 # defined symbols, whereas GNU nm marks them as "W".
15944 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15945 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'
15946 else
15947 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'
15949 aix_use_runtimelinking=no
15951 # Test if we are trying to use run time linking or normal
15952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15953 # need to do runtime linking.
15954 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15955 for ld_flag in $LDFLAGS; do
15956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15957 aix_use_runtimelinking=yes
15958 break
15960 done
15962 esac
15964 exp_sym_flag='-bexport'
15965 no_entry_flag='-bnoentry'
15968 # When large executables or shared objects are built, AIX ld can
15969 # have problems creating the table of contents. If linking a library
15970 # or program results in "error TOC overflow" add -mminimal-toc to
15971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15974 archive_cmds=''
15975 hardcode_direct=yes
15976 hardcode_direct_absolute=yes
15977 hardcode_libdir_separator=':'
15978 link_all_deplibs=yes
15979 file_list_spec='${wl}-f,'
15981 if test "$GCC" = yes; then
15982 case $host_os in aix4.[012]|aix4.[012].*)
15983 # We only want to do this on AIX 4.2 and lower, the check
15984 # below for broken collect2 doesn't work under 4.3+
15985 collect2name=`${CC} -print-prog-name=collect2`
15986 if test -f "$collect2name" &&
15987 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15988 then
15989 # We have reworked collect2
15991 else
15992 # We have old collect2
15993 hardcode_direct=unsupported
15994 # It fails to find uninstalled libraries when the uninstalled
15995 # path is not listed in the libpath. Setting hardcode_minus_L
15996 # to unsupported forces relinking
15997 hardcode_minus_L=yes
15998 hardcode_libdir_flag_spec='-L$libdir'
15999 hardcode_libdir_separator=
16002 esac
16003 shared_flag='-shared'
16004 if test "$aix_use_runtimelinking" = yes; then
16005 shared_flag="$shared_flag "'${wl}-G'
16007 else
16008 # not using gcc
16009 if test "$host_cpu" = ia64; then
16010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16011 # chokes on -Wl,-G. The following line is correct:
16012 shared_flag='-G'
16013 else
16014 if test "$aix_use_runtimelinking" = yes; then
16015 shared_flag='${wl}-G'
16016 else
16017 shared_flag='${wl}-bM:SRE'
16022 export_dynamic_flag_spec='${wl}-bexpall'
16023 # It seems that -bexpall does not export symbols beginning with
16024 # underscore (_), so it is better to generate a list of symbols to export.
16025 always_export_symbols=yes
16026 if test "$aix_use_runtimelinking" = yes; then
16027 # Warning - without using the other runtime loading flags (-brtl),
16028 # -berok will link without error, but may produce a broken library.
16029 allow_undefined_flag='-berok'
16030 # Determine the default libpath from the value encoded in an
16031 # empty executable.
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16036 main ()
16040 return 0;
16042 _ACEOF
16043 if ac_fn_c_try_link "$LINENO"; then :
16045 lt_aix_libpath_sed='
16046 /Import File Strings/,/^$/ {
16047 /^0/ {
16048 s/^0 *\(.*\)$/\1/
16052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16053 # Check for a 64-bit object if we didn't find anything.
16054 if test -z "$aix_libpath"; then
16055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16058 rm -f core conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
16060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16063 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"
16064 else
16065 if test "$host_cpu" = ia64; then
16066 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16067 allow_undefined_flag="-z nodefs"
16068 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"
16069 else
16070 # Determine the default libpath from the value encoded in an
16071 # empty executable.
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16076 main ()
16080 return 0;
16082 _ACEOF
16083 if ac_fn_c_try_link "$LINENO"; then :
16085 lt_aix_libpath_sed='
16086 /Import File Strings/,/^$/ {
16087 /^0/ {
16088 s/^0 *\(.*\)$/\1/
16092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16093 # Check for a 64-bit object if we didn't find anything.
16094 if test -z "$aix_libpath"; then
16095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16103 # Warning - without using the other run time loading flags,
16104 # -berok will link without error, but may produce a broken library.
16105 no_undefined_flag=' ${wl}-bernotok'
16106 allow_undefined_flag=' ${wl}-berok'
16107 if test "$with_gnu_ld" = yes; then
16108 # We only use this code for GNU lds that support --whole-archive.
16109 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16110 else
16111 # Exported symbols can be pulled into shared objects from archives
16112 whole_archive_flag_spec='$convenience'
16114 archive_cmds_need_lc=yes
16115 # This is similar to how AIX traditionally builds its shared libraries.
16116 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'
16121 amigaos*)
16122 case $host_cpu in
16123 powerpc)
16124 # see comment about AmigaOS4 .so support
16125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16126 archive_expsym_cmds=''
16128 m68k)
16129 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)'
16130 hardcode_libdir_flag_spec='-L$libdir'
16131 hardcode_minus_L=yes
16133 esac
16136 bsdi[45]*)
16137 export_dynamic_flag_spec=-rdynamic
16140 cygwin* | mingw* | pw32* | cegcc*)
16141 # When not using gcc, we currently assume that we are using
16142 # Microsoft Visual C++.
16143 # hardcode_libdir_flag_spec is actually meaningless, as there is
16144 # no search path for DLLs.
16145 hardcode_libdir_flag_spec=' '
16146 allow_undefined_flag=unsupported
16147 # Tell ltmain to make .lib files, not .a files.
16148 libext=lib
16149 # Tell ltmain to make .dll files, not .so files.
16150 shrext_cmds=".dll"
16151 # FIXME: Setting linknames here is a bad hack.
16152 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16153 # The linker will automatically build a .lib file if we build a DLL.
16154 old_archive_from_new_cmds='true'
16155 # FIXME: Should let the user specify the lib program.
16156 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16157 fix_srcfile_path='`cygpath -w "$srcfile"`'
16158 enable_shared_with_static_runtimes=yes
16161 darwin* | rhapsody*)
16164 archive_cmds_need_lc=no
16165 hardcode_direct=no
16166 hardcode_automatic=yes
16167 hardcode_shlibpath_var=unsupported
16168 if test "$lt_cv_ld_force_load" = "yes"; then
16169 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\"`'
16170 else
16171 whole_archive_flag_spec=''
16173 link_all_deplibs=yes
16174 allow_undefined_flag="$_lt_dar_allow_undefined"
16175 case $cc_basename in
16176 ifort*) _lt_dar_can_shared=yes ;;
16177 *) _lt_dar_can_shared=$GCC ;;
16178 esac
16179 if test "$_lt_dar_can_shared" = "yes"; then
16180 output_verbose_link_cmd=func_echo_all
16181 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16182 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16183 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}"
16184 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}"
16186 else
16187 ld_shlibs=no
16192 dgux*)
16193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194 hardcode_libdir_flag_spec='-L$libdir'
16195 hardcode_shlibpath_var=no
16198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16199 # support. Future versions do this automatically, but an explicit c++rt0.o
16200 # does not break anything, and helps significantly (at the cost of a little
16201 # extra space).
16202 freebsd2.2*)
16203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16204 hardcode_libdir_flag_spec='-R$libdir'
16205 hardcode_direct=yes
16206 hardcode_shlibpath_var=no
16209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16210 freebsd2.*)
16211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16212 hardcode_direct=yes
16213 hardcode_minus_L=yes
16214 hardcode_shlibpath_var=no
16217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16218 freebsd* | dragonfly*)
16219 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16220 hardcode_libdir_flag_spec='-R$libdir'
16221 hardcode_direct=yes
16222 hardcode_shlibpath_var=no
16225 hpux9*)
16226 if test "$GCC" = yes; then
16227 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'
16228 else
16229 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'
16231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16232 hardcode_libdir_separator=:
16233 hardcode_direct=yes
16235 # hardcode_minus_L: Not really in the search PATH,
16236 # but as the default location of the library.
16237 hardcode_minus_L=yes
16238 export_dynamic_flag_spec='${wl}-E'
16241 hpux10*)
16242 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16244 else
16245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16247 if test "$with_gnu_ld" = no; then
16248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16249 hardcode_libdir_flag_spec_ld='+b $libdir'
16250 hardcode_libdir_separator=:
16251 hardcode_direct=yes
16252 hardcode_direct_absolute=yes
16253 export_dynamic_flag_spec='${wl}-E'
16254 # hardcode_minus_L: Not really in the search PATH,
16255 # but as the default location of the library.
16256 hardcode_minus_L=yes
16260 hpux11*)
16261 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16262 case $host_cpu in
16263 hppa*64*)
16264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 ia64*)
16267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16270 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16272 esac
16273 else
16274 case $host_cpu in
16275 hppa*64*)
16276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16278 ia64*)
16279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16283 # Older versions of the 11.00 compiler do not understand -b yet
16284 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16286 $as_echo_n "checking if $CC understands -b... " >&6; }
16287 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 lt_cv_prog_compiler__b=no
16291 save_LDFLAGS="$LDFLAGS"
16292 LDFLAGS="$LDFLAGS -b"
16293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16295 # The linker can only warn and ignore the option if not recognized
16296 # So say no if there are warnings
16297 if test -s conftest.err; then
16298 # Append any errors to the config.log.
16299 cat conftest.err 1>&5
16300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16302 if diff conftest.exp conftest.er2 >/dev/null; then
16303 lt_cv_prog_compiler__b=yes
16305 else
16306 lt_cv_prog_compiler__b=yes
16309 $RM -r conftest*
16310 LDFLAGS="$save_LDFLAGS"
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16314 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16316 if test x"$lt_cv_prog_compiler__b" = xyes; then
16317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16318 else
16319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16323 esac
16325 if test "$with_gnu_ld" = no; then
16326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16327 hardcode_libdir_separator=:
16329 case $host_cpu in
16330 hppa*64*|ia64*)
16331 hardcode_direct=no
16332 hardcode_shlibpath_var=no
16335 hardcode_direct=yes
16336 hardcode_direct_absolute=yes
16337 export_dynamic_flag_spec='${wl}-E'
16339 # hardcode_minus_L: Not really in the search PATH,
16340 # but as the default location of the library.
16341 hardcode_minus_L=yes
16343 esac
16347 irix5* | irix6* | nonstopux*)
16348 if test "$GCC" = yes; then
16349 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'
16350 # Try to use the -exported_symbol ld option, if it does not
16351 # work, assume that -exports_file does not work either and
16352 # implicitly export all symbols.
16353 save_LDFLAGS="$LDFLAGS"
16354 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16357 int foo(void) {}
16358 _ACEOF
16359 if ac_fn_c_try_link "$LINENO"; then :
16360 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'
16363 rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LDFLAGS="$save_LDFLAGS"
16366 else
16367 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'
16368 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'
16370 archive_cmds_need_lc='no'
16371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16372 hardcode_libdir_separator=:
16373 inherit_rpath=yes
16374 link_all_deplibs=yes
16377 netbsd*)
16378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16380 else
16381 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16383 hardcode_libdir_flag_spec='-R$libdir'
16384 hardcode_direct=yes
16385 hardcode_shlibpath_var=no
16388 newsos6)
16389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_direct=yes
16391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16392 hardcode_libdir_separator=:
16393 hardcode_shlibpath_var=no
16396 *nto* | *qnx*)
16399 openbsd*)
16400 if test -f /usr/libexec/ld.so; then
16401 hardcode_direct=yes
16402 hardcode_shlibpath_var=no
16403 hardcode_direct_absolute=yes
16404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16406 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16407 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16408 export_dynamic_flag_spec='${wl}-E'
16409 else
16410 case $host_os in
16411 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16413 hardcode_libdir_flag_spec='-R$libdir'
16416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16419 esac
16421 else
16422 ld_shlibs=no
16426 os2*)
16427 hardcode_libdir_flag_spec='-L$libdir'
16428 hardcode_minus_L=yes
16429 allow_undefined_flag=unsupported
16430 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'
16431 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16434 osf3*)
16435 if test "$GCC" = yes; then
16436 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16437 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'
16438 else
16439 allow_undefined_flag=' -expect_unresolved \*'
16440 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'
16442 archive_cmds_need_lc='no'
16443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16444 hardcode_libdir_separator=:
16447 osf4* | osf5*) # as osf3* with the addition of -msym flag
16448 if test "$GCC" = yes; then
16449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16450 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'
16451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16452 else
16453 allow_undefined_flag=' -expect_unresolved \*'
16454 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'
16455 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~
16456 $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'
16458 # Both c and cxx compiler support -rpath directly
16459 hardcode_libdir_flag_spec='-rpath $libdir'
16461 archive_cmds_need_lc='no'
16462 hardcode_libdir_separator=:
16465 solaris*)
16466 no_undefined_flag=' -z defs'
16467 if test "$GCC" = yes; then
16468 wlarc='${wl}'
16469 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16470 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16471 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16472 else
16473 case `$CC -V 2>&1` in
16474 *"Compilers 5.0"*)
16475 wlarc=''
16476 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16481 wlarc='${wl}'
16482 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16484 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16486 esac
16488 hardcode_libdir_flag_spec='-R$libdir'
16489 hardcode_shlibpath_var=no
16490 case $host_os in
16491 solaris2.[0-5] | solaris2.[0-5].*) ;;
16493 # The compiler driver will combine and reorder linker options,
16494 # but understands `-z linker_flag'. GCC discards it without `$wl',
16495 # but is careful enough not to reorder.
16496 # Supported since Solaris 2.6 (maybe 2.5.1?)
16497 if test "$GCC" = yes; then
16498 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16499 else
16500 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16503 esac
16504 link_all_deplibs=yes
16507 sunos4*)
16508 if test "x$host_vendor" = xsequent; then
16509 # Use $CC to link under sequent, because it throws in some extra .o
16510 # files that make .init and .fini sections work.
16511 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16512 else
16513 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16515 hardcode_libdir_flag_spec='-L$libdir'
16516 hardcode_direct=yes
16517 hardcode_minus_L=yes
16518 hardcode_shlibpath_var=no
16521 sysv4)
16522 case $host_vendor in
16523 sni)
16524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16525 hardcode_direct=yes # is this really true???
16527 siemens)
16528 ## LD is ld it makes a PLAMLIB
16529 ## CC just makes a GrossModule.
16530 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16531 reload_cmds='$CC -r -o $output$reload_objs'
16532 hardcode_direct=no
16534 motorola)
16535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16536 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16538 esac
16539 runpath_var='LD_RUN_PATH'
16540 hardcode_shlibpath_var=no
16543 sysv4.3*)
16544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545 hardcode_shlibpath_var=no
16546 export_dynamic_flag_spec='-Bexport'
16549 sysv4*MP*)
16550 if test -d /usr/nec; then
16551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_shlibpath_var=no
16553 runpath_var=LD_RUN_PATH
16554 hardcode_runpath_var=yes
16555 ld_shlibs=yes
16559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16560 no_undefined_flag='${wl}-z,text'
16561 archive_cmds_need_lc=no
16562 hardcode_shlibpath_var=no
16563 runpath_var='LD_RUN_PATH'
16565 if test "$GCC" = yes; then
16566 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 else
16569 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 sysv5* | sco3.2v5* | sco5v6*)
16575 # Note: We can NOT use -z defs as we might desire, because we do not
16576 # link with -lc, and that would cause any symbols used from libc to
16577 # always be unresolved, which means just about no library would
16578 # ever link correctly. If we're not using GNU ld we use -z text
16579 # though, which does catch some bad symbols but isn't as heavy-handed
16580 # as -z defs.
16581 no_undefined_flag='${wl}-z,text'
16582 allow_undefined_flag='${wl}-z,nodefs'
16583 archive_cmds_need_lc=no
16584 hardcode_shlibpath_var=no
16585 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16586 hardcode_libdir_separator=':'
16587 link_all_deplibs=yes
16588 export_dynamic_flag_spec='${wl}-Bexport'
16589 runpath_var='LD_RUN_PATH'
16591 if test "$GCC" = yes; then
16592 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 else
16595 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 uts4*)
16601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_libdir_flag_spec='-L$libdir'
16603 hardcode_shlibpath_var=no
16607 ld_shlibs=no
16609 esac
16611 if test x$host_vendor = xsni; then
16612 case $host in
16613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16614 export_dynamic_flag_spec='${wl}-Blargedynsym'
16616 esac
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16621 $as_echo "$ld_shlibs" >&6; }
16622 test "$ld_shlibs" = no && can_build_shared=no
16624 with_gnu_ld=$with_gnu_ld
16641 # Do we need to explicitly link libc?
16643 case "x$archive_cmds_need_lc" in
16644 x|xyes)
16645 # Assume -lc should be added
16646 archive_cmds_need_lc=yes
16648 if test "$enable_shared" = yes && test "$GCC" = yes; then
16649 case $archive_cmds in
16650 *'~'*)
16651 # FIXME: we may have to deal with multi-command sequences.
16653 '$CC '*)
16654 # Test whether the compiler implicitly links with -lc since on some
16655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16656 # to ld, don't add -lc before -lgcc.
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16658 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16659 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 $RM conftest*
16663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16666 (eval $ac_compile) 2>&5
16667 ac_status=$?
16668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16669 test $ac_status = 0; } 2>conftest.err; then
16670 soname=conftest
16671 lib=conftest
16672 libobjs=conftest.$ac_objext
16673 deplibs=
16674 wl=$lt_prog_compiler_wl
16675 pic_flag=$lt_prog_compiler_pic
16676 compiler_flags=-v
16677 linker_flags=-v
16678 verstring=
16679 output_objdir=.
16680 libname=conftest
16681 lt_save_allow_undefined_flag=$allow_undefined_flag
16682 allow_undefined_flag=
16683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16684 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16685 ac_status=$?
16686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16687 test $ac_status = 0; }
16688 then
16689 lt_cv_archive_cmds_need_lc=no
16690 else
16691 lt_cv_archive_cmds_need_lc=yes
16693 allow_undefined_flag=$lt_save_allow_undefined_flag
16694 else
16695 cat conftest.err 1>&5
16697 $RM conftest*
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16701 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16702 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16704 esac
16707 esac
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16866 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16868 if test "$GCC" = yes; then
16869 case $host_os in
16870 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16871 *) lt_awk_arg="/^libraries:/" ;;
16872 esac
16873 case $host_os in
16874 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16875 *) lt_sed_strip_eq="s,=/,/,g" ;;
16876 esac
16877 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16878 case $lt_search_path_spec in
16879 *\;*)
16880 # if the path contains ";" then we assume it to be the separator
16881 # otherwise default to the standard path separator (i.e. ":") - it is
16882 # assumed that no part of a normal pathname contains ";" but that should
16883 # okay in the real world where ";" in dirpaths is itself problematic.
16884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16887 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16889 esac
16890 # Ok, now we have the path, separated by spaces, we can step through it
16891 # and add multilib dir if necessary.
16892 lt_tmp_lt_search_path_spec=
16893 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16894 for lt_sys_path in $lt_search_path_spec; do
16895 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16897 else
16898 test -d "$lt_sys_path" && \
16899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16901 done
16902 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16903 BEGIN {RS=" "; FS="/|\n";} {
16904 lt_foo="";
16905 lt_count=0;
16906 for (lt_i = NF; lt_i > 0; lt_i--) {
16907 if ($lt_i != "" && $lt_i != ".") {
16908 if ($lt_i == "..") {
16909 lt_count++;
16910 } else {
16911 if (lt_count == 0) {
16912 lt_foo="/" $lt_i lt_foo;
16913 } else {
16914 lt_count--;
16919 if (lt_foo != "") { lt_freq[lt_foo]++; }
16920 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16922 # AWK program above erroneously prepends '/' to C:/dos/paths
16923 # for these hosts.
16924 case $host_os in
16925 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16926 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16927 esac
16928 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16929 else
16930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16932 library_names_spec=
16933 libname_spec='lib$name'
16934 soname_spec=
16935 shrext_cmds=".so"
16936 postinstall_cmds=
16937 postuninstall_cmds=
16938 finish_cmds=
16939 finish_eval=
16940 shlibpath_var=
16941 shlibpath_overrides_runpath=unknown
16942 version_type=none
16943 dynamic_linker="$host_os ld.so"
16944 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16945 need_lib_prefix=unknown
16946 hardcode_into_libs=no
16948 # when you set need_version to no, make sure it does not cause -set_version
16949 # flags to be left without arguments
16950 need_version=unknown
16952 case $host_os in
16953 aix3*)
16954 version_type=linux
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16956 shlibpath_var=LIBPATH
16958 # AIX 3 has no versioning support, so we append a major version to the name.
16959 soname_spec='${libname}${release}${shared_ext}$major'
16962 aix[4-9]*)
16963 version_type=linux
16964 need_lib_prefix=no
16965 need_version=no
16966 hardcode_into_libs=yes
16967 if test "$host_cpu" = ia64; then
16968 # AIX 5 supports IA64
16969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 else
16972 # With GCC up to 2.95.x, collect2 would create an import file
16973 # for dependence libraries. The import file would start with
16974 # the line `#! .'. This would cause the generated library to
16975 # depend on `.', always an invalid library. This was fixed in
16976 # development snapshots of GCC prior to 3.0.
16977 case $host_os in
16978 aix4 | aix4.[01] | aix4.[01].*)
16979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16980 echo ' yes '
16981 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16983 else
16984 can_build_shared=no
16987 esac
16988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16989 # soname into executable. Probably we can add versioning support to
16990 # collect2, so additional links can be useful in future.
16991 if test "$aix_use_runtimelinking" = yes; then
16992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16993 # instead of lib<name>.a to let people know that these are not
16994 # typical AIX shared libraries.
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 else
16997 # We preserve .a as extension for shared libraries through AIX4.2
16998 # and later when we are not doing run time linking.
16999 library_names_spec='${libname}${release}.a $libname.a'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17002 shlibpath_var=LIBPATH
17006 amigaos*)
17007 case $host_cpu in
17008 powerpc)
17009 # Since July 2007 AmigaOS4 officially supports .so libraries.
17010 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 m68k)
17014 library_names_spec='$libname.ixlibrary $libname.a'
17015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17016 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'
17018 esac
17021 beos*)
17022 library_names_spec='${libname}${shared_ext}'
17023 dynamic_linker="$host_os ld.so"
17024 shlibpath_var=LIBRARY_PATH
17027 bsdi[45]*)
17028 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17035 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17036 # the default ld.so.conf also contains /usr/contrib/lib and
17037 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17038 # libtool to hard-code these into programs
17041 cygwin* | mingw* | pw32* | cegcc*)
17042 version_type=windows
17043 shrext_cmds=".dll"
17044 need_version=no
17045 need_lib_prefix=no
17047 case $GCC,$host_os in
17048 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17049 library_names_spec='$libname.dll.a'
17050 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17051 postinstall_cmds='base_file=`basename \${file}`~
17052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17053 dldir=$destdir/`dirname \$dlpath`~
17054 test -d \$dldir || mkdir -p \$dldir~
17055 $install_prog $dir/$dlname \$dldir/$dlname~
17056 chmod a+x \$dldir/$dlname~
17057 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17058 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17061 dlpath=$dir/\$dldll~
17062 $RM \$dlpath'
17063 shlibpath_overrides_runpath=yes
17065 case $host_os in
17066 cygwin*)
17067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17070 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17072 mingw* | cegcc*)
17073 # MinGW DLLs use traditional 'lib' prefix
17074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076 pw32*)
17077 # pw32 DLLs use 'pw' prefix rather than 'lib'
17078 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17080 esac
17084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17086 esac
17087 dynamic_linker='Win32 ld.exe'
17088 # FIXME: first we should search . and the directory the executable is in
17089 shlibpath_var=PATH
17092 darwin* | rhapsody*)
17093 dynamic_linker="$host_os dyld"
17094 version_type=darwin
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17098 soname_spec='${libname}${release}${major}$shared_ext'
17099 shlibpath_overrides_runpath=yes
17100 shlibpath_var=DYLD_LIBRARY_PATH
17101 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17104 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17107 dgux*)
17108 version_type=linux
17109 need_lib_prefix=no
17110 need_version=no
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 shlibpath_var=LD_LIBRARY_PATH
17116 freebsd* | dragonfly*)
17117 # DragonFly does not have aout. When/if they implement a new
17118 # versioning mechanism, adjust this.
17119 if test -x /usr/bin/objformat; then
17120 objformat=`/usr/bin/objformat`
17121 else
17122 case $host_os in
17123 freebsd[23].*) objformat=aout ;;
17124 *) objformat=elf ;;
17125 esac
17127 version_type=freebsd-$objformat
17128 case $version_type in
17129 freebsd-elf*)
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17131 need_version=no
17132 need_lib_prefix=no
17134 freebsd-*)
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17136 need_version=yes
17138 esac
17139 shlibpath_var=LD_LIBRARY_PATH
17140 case $host_os in
17141 freebsd2.*)
17142 shlibpath_overrides_runpath=yes
17144 freebsd3.[01]* | freebsdelf3.[01]*)
17145 shlibpath_overrides_runpath=yes
17146 hardcode_into_libs=yes
17148 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17149 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17150 shlibpath_overrides_runpath=no
17151 hardcode_into_libs=yes
17153 *) # from 4.6 on, and DragonFly
17154 shlibpath_overrides_runpath=yes
17155 hardcode_into_libs=yes
17157 esac
17160 gnu*)
17161 version_type=linux
17162 need_lib_prefix=no
17163 need_version=no
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 hardcode_into_libs=yes
17170 haiku*)
17171 version_type=linux
17172 need_lib_prefix=no
17173 need_version=no
17174 dynamic_linker="$host_os runtime_loader"
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 shlibpath_var=LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17180 hardcode_into_libs=yes
17183 hpux9* | hpux10* | hpux11*)
17184 # Give a soname corresponding to the major version so that dld.sl refuses to
17185 # link against other versions.
17186 version_type=sunos
17187 need_lib_prefix=no
17188 need_version=no
17189 case $host_cpu in
17190 ia64*)
17191 shrext_cmds='.so'
17192 hardcode_into_libs=yes
17193 dynamic_linker="$host_os dld.so"
17194 shlibpath_var=LD_LIBRARY_PATH
17195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197 soname_spec='${libname}${release}${shared_ext}$major'
17198 if test "X$HPUX_IA64_MODE" = X32; then
17199 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17200 else
17201 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17205 hppa*64*)
17206 shrext_cmds='.sl'
17207 hardcode_into_libs=yes
17208 dynamic_linker="$host_os dld.sl"
17209 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17217 shrext_cmds='.sl'
17218 dynamic_linker="$host_os dld.sl"
17219 shlibpath_var=SHLIB_PATH
17220 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17224 esac
17225 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17226 postinstall_cmds='chmod 555 $lib'
17227 # or fails outright, so override atomically:
17228 install_override_mode=555
17231 interix[3-9]*)
17232 version_type=linux
17233 need_lib_prefix=no
17234 need_version=no
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=no
17240 hardcode_into_libs=yes
17243 irix5* | irix6* | nonstopux*)
17244 case $host_os in
17245 nonstopux*) version_type=nonstopux ;;
17247 if test "$lt_cv_prog_gnu_ld" = yes; then
17248 version_type=linux
17249 else
17250 version_type=irix
17251 fi ;;
17252 esac
17253 need_lib_prefix=no
17254 need_version=no
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17257 case $host_os in
17258 irix5* | nonstopux*)
17259 libsuff= shlibsuff=
17262 case $LD in # libtool.m4 will add one of these switches to LD
17263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17264 libsuff= shlibsuff= libmagic=32-bit;;
17265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17266 libsuff=32 shlibsuff=N32 libmagic=N32;;
17267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17269 *) libsuff= shlibsuff= libmagic=never-match;;
17270 esac
17272 esac
17273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17274 shlibpath_overrides_runpath=no
17275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17277 hardcode_into_libs=yes
17280 # No shared lib support for Linux oldld, aout, or coff.
17281 linux*oldld* | linux*aout* | linux*coff*)
17282 dynamic_linker=no
17285 # This must be Linux ELF.
17286 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17287 version_type=linux
17288 need_lib_prefix=no
17289 need_version=no
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 soname_spec='${libname}${release}${shared_ext}$major'
17292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=no
17296 # Some binutils ld are patched to set DT_RUNPATH
17297 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17298 $as_echo_n "(cached) " >&6
17299 else
17300 lt_cv_shlibpath_overrides_runpath=no
17301 save_LDFLAGS=$LDFLAGS
17302 save_libdir=$libdir
17303 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17304 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h. */
17309 main ()
17313 return 0;
17315 _ACEOF
17316 if ac_fn_c_try_link "$LINENO"; then :
17317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17318 lt_cv_shlibpath_overrides_runpath=yes
17321 rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17323 LDFLAGS=$save_LDFLAGS
17324 libdir=$save_libdir
17328 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17330 # This implies no fast_install, which is unacceptable.
17331 # Some rework will be needed to allow for fast_install
17332 # before this can be enabled.
17333 hardcode_into_libs=yes
17335 # Append ld.so.conf contents to the search path
17336 if test -f /etc/ld.so.conf; then
17337 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' ' '`
17338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17341 # We used to test for /lib/ld.so.1 and disable shared libraries on
17342 # powerpc, because MkLinux only supported shared libraries with the
17343 # GNU dynamic linker. Since this was broken with cross compilers,
17344 # most powerpc-linux boxes support dynamic linking these days and
17345 # people can always --disable-shared, the test was removed, and we
17346 # assume the GNU/Linux dynamic linker is in use.
17347 dynamic_linker='GNU/Linux ld.so'
17350 netbsd*)
17351 version_type=sunos
17352 need_lib_prefix=no
17353 need_version=no
17354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17357 dynamic_linker='NetBSD (a.out) ld.so'
17358 else
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17360 soname_spec='${libname}${release}${shared_ext}$major'
17361 dynamic_linker='NetBSD ld.elf_so'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 shlibpath_overrides_runpath=yes
17365 hardcode_into_libs=yes
17368 newsos6)
17369 version_type=linux
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 shlibpath_overrides_runpath=yes
17375 *nto* | *qnx*)
17376 version_type=qnx
17377 need_lib_prefix=no
17378 need_version=no
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=no
17383 hardcode_into_libs=yes
17384 dynamic_linker='ldqnx.so'
17387 openbsd*)
17388 version_type=sunos
17389 sys_lib_dlsearch_path_spec="/usr/lib"
17390 need_lib_prefix=no
17391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17392 case $host_os in
17393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17394 *) need_version=no ;;
17395 esac
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17400 case $host_os in
17401 openbsd2.[89] | openbsd2.[89].*)
17402 shlibpath_overrides_runpath=no
17405 shlibpath_overrides_runpath=yes
17407 esac
17408 else
17409 shlibpath_overrides_runpath=yes
17413 os2*)
17414 libname_spec='$name'
17415 shrext_cmds=".dll"
17416 need_lib_prefix=no
17417 library_names_spec='$libname${shared_ext} $libname.a'
17418 dynamic_linker='OS/2 ld.exe'
17419 shlibpath_var=LIBPATH
17422 osf3* | osf4* | osf5*)
17423 version_type=osf
17424 need_lib_prefix=no
17425 need_version=no
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17433 rdos*)
17434 dynamic_linker=no
17437 solaris*)
17438 version_type=linux
17439 need_lib_prefix=no
17440 need_version=no
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=yes
17445 hardcode_into_libs=yes
17446 # ldd complains unless libraries are executable
17447 postinstall_cmds='chmod +x $lib'
17450 sunos4*)
17451 version_type=sunos
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 shlibpath_overrides_runpath=yes
17456 if test "$with_gnu_ld" = yes; then
17457 need_lib_prefix=no
17459 need_version=yes
17462 sysv4 | sysv4.3*)
17463 version_type=linux
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 case $host_vendor in
17468 sni)
17469 shlibpath_overrides_runpath=no
17470 need_lib_prefix=no
17471 runpath_var=LD_RUN_PATH
17473 siemens)
17474 need_lib_prefix=no
17476 motorola)
17477 need_lib_prefix=no
17478 need_version=no
17479 shlibpath_overrides_runpath=no
17480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17482 esac
17485 sysv4*MP*)
17486 if test -d /usr/nec ;then
17487 version_type=linux
17488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17489 soname_spec='$libname${shared_ext}.$major'
17490 shlibpath_var=LD_LIBRARY_PATH
17494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17495 version_type=freebsd-elf
17496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=yes
17502 hardcode_into_libs=yes
17503 if test "$with_gnu_ld" = yes; then
17504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17505 else
17506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17507 case $host_os in
17508 sco3.2v5*)
17509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17511 esac
17513 sys_lib_dlsearch_path_spec='/usr/lib'
17516 tpf*)
17517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17518 version_type=linux
17519 need_lib_prefix=no
17520 need_version=no
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 shlibpath_overrides_runpath=no
17524 hardcode_into_libs=yes
17527 uts4*)
17528 version_type=linux
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 soname_spec='${libname}${release}${shared_ext}$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17535 dynamic_linker=no
17537 esac
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17539 $as_echo "$dynamic_linker" >&6; }
17540 test "$dynamic_linker" = no && can_build_shared=no
17542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17543 if test "$GCC" = yes; then
17544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17647 hardcode_action=
17648 if test -n "$hardcode_libdir_flag_spec" ||
17649 test -n "$runpath_var" ||
17650 test "X$hardcode_automatic" = "Xyes" ; then
17652 # We can hardcode non-existent directories.
17653 if test "$hardcode_direct" != no &&
17654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17655 # have to relink, otherwise we might link with an installed library
17656 # when we should be linking with a yet-to-be-installed one
17657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17658 test "$hardcode_minus_L" != no; then
17659 # Linking always hardcodes the temporary library directory.
17660 hardcode_action=relink
17661 else
17662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17663 hardcode_action=immediate
17665 else
17666 # We cannot hardcode anything, or else we can only hardcode existing
17667 # directories.
17668 hardcode_action=unsupported
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17671 $as_echo "$hardcode_action" >&6; }
17673 if test "$hardcode_action" = relink ||
17674 test "$inherit_rpath" = yes; then
17675 # Fast installation is not supported
17676 enable_fast_install=no
17677 elif test "$shlibpath_overrides_runpath" = yes ||
17678 test "$enable_shared" = no; then
17679 # Fast installation is not necessary
17680 enable_fast_install=needless
17688 if test "x$enable_dlopen" != xyes; then
17689 enable_dlopen=unknown
17690 enable_dlopen_self=unknown
17691 enable_dlopen_self_static=unknown
17692 else
17693 lt_cv_dlopen=no
17694 lt_cv_dlopen_libs=
17696 case $host_os in
17697 beos*)
17698 lt_cv_dlopen="load_add_on"
17699 lt_cv_dlopen_libs=
17700 lt_cv_dlopen_self=yes
17703 mingw* | pw32* | cegcc*)
17704 lt_cv_dlopen="LoadLibrary"
17705 lt_cv_dlopen_libs=
17708 cygwin*)
17709 lt_cv_dlopen="dlopen"
17710 lt_cv_dlopen_libs=
17713 darwin*)
17714 # if libdl is installed we need to link against it
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17717 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 ac_check_lib_save_LIBS=$LIBS
17721 LIBS="-ldl $LIBS"
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17725 /* Override any GCC internal prototype to avoid an error.
17726 Use char because int might match the return type of a GCC
17727 builtin and then its argument prototype would still apply. */
17728 #ifdef __cplusplus
17729 extern "C"
17730 #endif
17731 char dlopen ();
17733 main ()
17735 return dlopen ();
17737 return 0;
17739 _ACEOF
17740 if ac_fn_c_try_link "$LINENO"; then :
17741 ac_cv_lib_dl_dlopen=yes
17742 else
17743 ac_cv_lib_dl_dlopen=no
17745 rm -f core conftest.err conftest.$ac_objext \
17746 conftest$ac_exeext conftest.$ac_ext
17747 LIBS=$ac_check_lib_save_LIBS
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17751 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17753 else
17755 lt_cv_dlopen="dyld"
17756 lt_cv_dlopen_libs=
17757 lt_cv_dlopen_self=yes
17764 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17765 if test "x$ac_cv_func_shl_load" = x""yes; then :
17766 lt_cv_dlopen="shl_load"
17767 else
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17770 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17771 $as_echo_n "(cached) " >&6
17772 else
17773 ac_check_lib_save_LIBS=$LIBS
17774 LIBS="-ldld $LIBS"
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17781 #ifdef __cplusplus
17782 extern "C"
17783 #endif
17784 char shl_load ();
17786 main ()
17788 return shl_load ();
17790 return 0;
17792 _ACEOF
17793 if ac_fn_c_try_link "$LINENO"; then :
17794 ac_cv_lib_dld_shl_load=yes
17795 else
17796 ac_cv_lib_dld_shl_load=no
17798 rm -f core conftest.err conftest.$ac_objext \
17799 conftest$ac_exeext conftest.$ac_ext
17800 LIBS=$ac_check_lib_save_LIBS
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17804 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17806 else
17807 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17808 if test "x$ac_cv_func_dlopen" = x""yes; then :
17809 lt_cv_dlopen="dlopen"
17810 else
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 ac_check_lib_save_LIBS=$LIBS
17817 LIBS="-ldl $LIBS"
17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 char dlopen ();
17829 main ()
17831 return dlopen ();
17833 return 0;
17835 _ACEOF
17836 if ac_fn_c_try_link "$LINENO"; then :
17837 ac_cv_lib_dl_dlopen=yes
17838 else
17839 ac_cv_lib_dl_dlopen=no
17841 rm -f core conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
17843 LIBS=$ac_check_lib_save_LIBS
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17847 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17849 else
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17852 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17853 $as_echo_n "(cached) " >&6
17854 else
17855 ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-lsvld $LIBS"
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char dlopen ();
17868 main ()
17870 return dlopen ();
17872 return 0;
17874 _ACEOF
17875 if ac_fn_c_try_link "$LINENO"; then :
17876 ac_cv_lib_svld_dlopen=yes
17877 else
17878 ac_cv_lib_svld_dlopen=no
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17882 LIBS=$ac_check_lib_save_LIBS
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17886 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17888 else
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17893 else
17894 ac_check_lib_save_LIBS=$LIBS
17895 LIBS="-ldld $LIBS"
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17899 /* Override any GCC internal prototype to avoid an error.
17900 Use char because int might match the return type of a GCC
17901 builtin and then its argument prototype would still apply. */
17902 #ifdef __cplusplus
17903 extern "C"
17904 #endif
17905 char dld_link ();
17907 main ()
17909 return dld_link ();
17911 return 0;
17913 _ACEOF
17914 if ac_fn_c_try_link "$LINENO"; then :
17915 ac_cv_lib_dld_dld_link=yes
17916 else
17917 ac_cv_lib_dld_dld_link=no
17919 rm -f core conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17925 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17945 esac
17947 if test "x$lt_cv_dlopen" != xno; then
17948 enable_dlopen=yes
17949 else
17950 enable_dlopen=no
17953 case $lt_cv_dlopen in
17954 dlopen)
17955 save_CPPFLAGS="$CPPFLAGS"
17956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17958 save_LDFLAGS="$LDFLAGS"
17959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17961 save_LIBS="$LIBS"
17962 LIBS="$lt_cv_dlopen_libs $LIBS"
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17966 if test "${lt_cv_dlopen_self+set}" = set; then :
17967 $as_echo_n "(cached) " >&6
17968 else
17969 if test "$cross_compiling" = yes; then :
17970 lt_cv_dlopen_self=cross
17971 else
17972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17973 lt_status=$lt_dlunknown
17974 cat > conftest.$ac_ext <<_LT_EOF
17975 #line 17975 "configure"
17976 #include "confdefs.h"
17978 #if HAVE_DLFCN_H
17979 #include <dlfcn.h>
17980 #endif
17982 #include <stdio.h>
17984 #ifdef RTLD_GLOBAL
17985 # define LT_DLGLOBAL RTLD_GLOBAL
17986 #else
17987 # ifdef DL_GLOBAL
17988 # define LT_DLGLOBAL DL_GLOBAL
17989 # else
17990 # define LT_DLGLOBAL 0
17991 # endif
17992 #endif
17994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17995 find out it does not work in some platform. */
17996 #ifndef LT_DLLAZY_OR_NOW
17997 # ifdef RTLD_LAZY
17998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17999 # else
18000 # ifdef DL_LAZY
18001 # define LT_DLLAZY_OR_NOW DL_LAZY
18002 # else
18003 # ifdef RTLD_NOW
18004 # define LT_DLLAZY_OR_NOW RTLD_NOW
18005 # else
18006 # ifdef DL_NOW
18007 # define LT_DLLAZY_OR_NOW DL_NOW
18008 # else
18009 # define LT_DLLAZY_OR_NOW 0
18010 # endif
18011 # endif
18012 # endif
18013 # endif
18014 #endif
18016 /* When -fvisbility=hidden is used, assume the code has been annotated
18017 correspondingly for the symbols needed. */
18018 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18019 void fnord () __attribute__((visibility("default")));
18020 #endif
18022 void fnord () { int i=42; }
18023 int main ()
18025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18026 int status = $lt_dlunknown;
18028 if (self)
18030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18031 else
18033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18034 else puts (dlerror ());
18036 /* dlclose (self); */
18038 else
18039 puts (dlerror ());
18041 return status;
18043 _LT_EOF
18044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18045 (eval $ac_link) 2>&5
18046 ac_status=$?
18047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18048 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18049 (./conftest; exit; ) >&5 2>/dev/null
18050 lt_status=$?
18051 case x$lt_status in
18052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18054 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18055 esac
18056 else :
18057 # compilation failed
18058 lt_cv_dlopen_self=no
18061 rm -fr conftest*
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18066 $as_echo "$lt_cv_dlopen_self" >&6; }
18068 if test "x$lt_cv_dlopen_self" = xyes; then
18069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18072 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18073 $as_echo_n "(cached) " >&6
18074 else
18075 if test "$cross_compiling" = yes; then :
18076 lt_cv_dlopen_self_static=cross
18077 else
18078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18079 lt_status=$lt_dlunknown
18080 cat > conftest.$ac_ext <<_LT_EOF
18081 #line 18081 "configure"
18082 #include "confdefs.h"
18084 #if HAVE_DLFCN_H
18085 #include <dlfcn.h>
18086 #endif
18088 #include <stdio.h>
18090 #ifdef RTLD_GLOBAL
18091 # define LT_DLGLOBAL RTLD_GLOBAL
18092 #else
18093 # ifdef DL_GLOBAL
18094 # define LT_DLGLOBAL DL_GLOBAL
18095 # else
18096 # define LT_DLGLOBAL 0
18097 # endif
18098 #endif
18100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18101 find out it does not work in some platform. */
18102 #ifndef LT_DLLAZY_OR_NOW
18103 # ifdef RTLD_LAZY
18104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18105 # else
18106 # ifdef DL_LAZY
18107 # define LT_DLLAZY_OR_NOW DL_LAZY
18108 # else
18109 # ifdef RTLD_NOW
18110 # define LT_DLLAZY_OR_NOW RTLD_NOW
18111 # else
18112 # ifdef DL_NOW
18113 # define LT_DLLAZY_OR_NOW DL_NOW
18114 # else
18115 # define LT_DLLAZY_OR_NOW 0
18116 # endif
18117 # endif
18118 # endif
18119 # endif
18120 #endif
18122 /* When -fvisbility=hidden is used, assume the code has been annotated
18123 correspondingly for the symbols needed. */
18124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18125 void fnord () __attribute__((visibility("default")));
18126 #endif
18128 void fnord () { int i=42; }
18129 int main ()
18131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18132 int status = $lt_dlunknown;
18134 if (self)
18136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18137 else
18139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18140 else puts (dlerror ());
18142 /* dlclose (self); */
18144 else
18145 puts (dlerror ());
18147 return status;
18149 _LT_EOF
18150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18151 (eval $ac_link) 2>&5
18152 ac_status=$?
18153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18155 (./conftest; exit; ) >&5 2>/dev/null
18156 lt_status=$?
18157 case x$lt_status in
18158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18161 esac
18162 else :
18163 # compilation failed
18164 lt_cv_dlopen_self_static=no
18167 rm -fr conftest*
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18175 CPPFLAGS="$save_CPPFLAGS"
18176 LDFLAGS="$save_LDFLAGS"
18177 LIBS="$save_LIBS"
18179 esac
18181 case $lt_cv_dlopen_self in
18182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18183 *) enable_dlopen_self=unknown ;;
18184 esac
18186 case $lt_cv_dlopen_self_static in
18187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18188 *) enable_dlopen_self_static=unknown ;;
18189 esac
18208 striplib=
18209 old_striplib=
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18212 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18213 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18214 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18216 $as_echo "yes" >&6; }
18217 else
18218 # FIXME - insert some real tests, host_os isn't really good enough
18219 case $host_os in
18220 darwin*)
18221 if test -n "$STRIP" ; then
18222 striplib="$STRIP -x"
18223 old_striplib="$STRIP -S"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18225 $as_echo "yes" >&6; }
18226 else
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18228 $as_echo "no" >&6; }
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18235 esac
18249 # Report which library types will actually be built
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18253 $as_echo "$can_build_shared" >&6; }
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18256 $as_echo_n "checking whether to build shared libraries... " >&6; }
18257 test "$can_build_shared" = "no" && enable_shared=no
18259 # On AIX, shared libraries and static libraries use the same namespace, and
18260 # are all built from PIC.
18261 case $host_os in
18262 aix3*)
18263 test "$enable_shared" = yes && enable_static=no
18264 if test -n "$RANLIB"; then
18265 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18266 postinstall_cmds='$RANLIB $lib'
18270 aix[4-9]*)
18271 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18272 test "$enable_shared" = yes && enable_static=no
18275 esac
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18277 $as_echo "$enable_shared" >&6; }
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18280 $as_echo_n "checking whether to build static libraries... " >&6; }
18281 # Make sure either enable_shared or enable_static is yes.
18282 test "$enable_shared" = yes || enable_static=yes
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18284 $as_echo "$enable_static" >&6; }
18290 ac_ext=c
18291 ac_cpp='$CPP $CPPFLAGS'
18292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18296 CC="$lt_save_CC"
18298 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18299 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18300 (test "X$CXX" != "Xg++"))) ; then
18301 ac_ext=cpp
18302 ac_cpp='$CXXCPP $CPPFLAGS'
18303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18307 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18308 if test -z "$CXXCPP"; then
18309 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18310 $as_echo_n "(cached) " >&6
18311 else
18312 # Double quotes because CXXCPP needs to be expanded
18313 for CXXCPP in "$CXX -E" "/lib/cpp"
18315 ac_preproc_ok=false
18316 for ac_cxx_preproc_warn_flag in '' yes
18318 # Use a header file that comes with gcc, so configuring glibc
18319 # with a fresh cross-compiler works.
18320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 # <limits.h> exists even on freestanding compilers.
18322 # On the NeXT, cc -E runs the code through the compiler's parser,
18323 # not just through cpp. "Syntax error" is here to catch this case.
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #ifdef __STDC__
18327 # include <limits.h>
18328 #else
18329 # include <assert.h>
18330 #endif
18331 Syntax error
18332 _ACEOF
18333 if ac_fn_cxx_try_cpp "$LINENO"; then :
18335 else
18336 # Broken: fails on valid input.
18337 continue
18339 rm -f conftest.err conftest.$ac_ext
18341 # OK, works on sane cases. Now check whether nonexistent headers
18342 # can be detected and how.
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <ac_nonexistent.h>
18346 _ACEOF
18347 if ac_fn_cxx_try_cpp "$LINENO"; then :
18348 # Broken: success on invalid input.
18349 continue
18350 else
18351 # Passes both tests.
18352 ac_preproc_ok=:
18353 break
18355 rm -f conftest.err conftest.$ac_ext
18357 done
18358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18359 rm -f conftest.err conftest.$ac_ext
18360 if $ac_preproc_ok; then :
18361 break
18364 done
18365 ac_cv_prog_CXXCPP=$CXXCPP
18368 CXXCPP=$ac_cv_prog_CXXCPP
18369 else
18370 ac_cv_prog_CXXCPP=$CXXCPP
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18373 $as_echo "$CXXCPP" >&6; }
18374 ac_preproc_ok=false
18375 for ac_cxx_preproc_warn_flag in '' yes
18377 # Use a header file that comes with gcc, so configuring glibc
18378 # with a fresh cross-compiler works.
18379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18380 # <limits.h> exists even on freestanding compilers.
18381 # On the NeXT, cc -E runs the code through the compiler's parser,
18382 # not just through cpp. "Syntax error" is here to catch this case.
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18385 #ifdef __STDC__
18386 # include <limits.h>
18387 #else
18388 # include <assert.h>
18389 #endif
18390 Syntax error
18391 _ACEOF
18392 if ac_fn_cxx_try_cpp "$LINENO"; then :
18394 else
18395 # Broken: fails on valid input.
18396 continue
18398 rm -f conftest.err conftest.$ac_ext
18400 # OK, works on sane cases. Now check whether nonexistent headers
18401 # can be detected and how.
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18404 #include <ac_nonexistent.h>
18405 _ACEOF
18406 if ac_fn_cxx_try_cpp "$LINENO"; then :
18407 # Broken: success on invalid input.
18408 continue
18409 else
18410 # Passes both tests.
18411 ac_preproc_ok=:
18412 break
18414 rm -f conftest.err conftest.$ac_ext
18416 done
18417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18418 rm -f conftest.err conftest.$ac_ext
18419 if $ac_preproc_ok; then :
18421 else
18422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18424 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18425 See \`config.log' for more details." "$LINENO" 5; }
18428 ac_ext=c
18429 ac_cpp='$CPP $CPPFLAGS'
18430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18434 else
18435 _lt_caught_CXX_error=yes
18438 ac_ext=cpp
18439 ac_cpp='$CXXCPP $CPPFLAGS'
18440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18444 archive_cmds_need_lc_CXX=no
18445 allow_undefined_flag_CXX=
18446 always_export_symbols_CXX=no
18447 archive_expsym_cmds_CXX=
18448 compiler_needs_object_CXX=no
18449 export_dynamic_flag_spec_CXX=
18450 hardcode_direct_CXX=no
18451 hardcode_direct_absolute_CXX=no
18452 hardcode_libdir_flag_spec_CXX=
18453 hardcode_libdir_flag_spec_ld_CXX=
18454 hardcode_libdir_separator_CXX=
18455 hardcode_minus_L_CXX=no
18456 hardcode_shlibpath_var_CXX=unsupported
18457 hardcode_automatic_CXX=no
18458 inherit_rpath_CXX=no
18459 module_cmds_CXX=
18460 module_expsym_cmds_CXX=
18461 link_all_deplibs_CXX=unknown
18462 old_archive_cmds_CXX=$old_archive_cmds
18463 reload_flag_CXX=$reload_flag
18464 reload_cmds_CXX=$reload_cmds
18465 no_undefined_flag_CXX=
18466 whole_archive_flag_spec_CXX=
18467 enable_shared_with_static_runtimes_CXX=no
18469 # Source file extension for C++ test sources.
18470 ac_ext=cpp
18472 # Object file extension for compiled C++ test sources.
18473 objext=o
18474 objext_CXX=$objext
18476 # No sense in running all these tests if we already determined that
18477 # the CXX compiler isn't working. Some variables (like enable_shared)
18478 # are currently assumed to apply to all compilers on this platform,
18479 # and will be corrupted by setting them based on a non-working compiler.
18480 if test "$_lt_caught_CXX_error" != yes; then
18481 # Code to be used in simple compile tests
18482 lt_simple_compile_test_code="int some_variable = 0;"
18484 # Code to be used in simple link tests
18485 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18494 # If no C compiler was specified, use CC.
18495 LTCC=${LTCC-"$CC"}
18497 # If no C compiler flags were specified, use CFLAGS.
18498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18500 # Allow CC to be a program name with arguments.
18501 compiler=$CC
18504 # save warnings/boilerplate of simple test code
18505 ac_outfile=conftest.$ac_objext
18506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18508 _lt_compiler_boilerplate=`cat conftest.err`
18509 $RM conftest*
18511 ac_outfile=conftest.$ac_objext
18512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18514 _lt_linker_boilerplate=`cat conftest.err`
18515 $RM -r conftest*
18518 # Allow CC to be a program name with arguments.
18519 lt_save_CC=$CC
18520 lt_save_LD=$LD
18521 lt_save_GCC=$GCC
18522 GCC=$GXX
18523 lt_save_with_gnu_ld=$with_gnu_ld
18524 lt_save_path_LD=$lt_cv_path_LD
18525 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18526 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18527 else
18528 $as_unset lt_cv_prog_gnu_ld
18530 if test -n "${lt_cv_path_LDCXX+set}"; then
18531 lt_cv_path_LD=$lt_cv_path_LDCXX
18532 else
18533 $as_unset lt_cv_path_LD
18535 test -z "${LDCXX+set}" || LD=$LDCXX
18536 CC=${CXX-"c++"}
18537 compiler=$CC
18538 compiler_CXX=$CC
18539 for cc_temp in $compiler""; do
18540 case $cc_temp in
18541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18543 \-*) ;;
18544 *) break;;
18545 esac
18546 done
18547 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18550 if test -n "$compiler"; then
18551 # We don't want -fno-exception when compiling C++ code, so set the
18552 # no_builtin_flag separately
18553 if test "$GXX" = yes; then
18554 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18555 else
18556 lt_prog_compiler_no_builtin_flag_CXX=
18559 if test "$GXX" = yes; then
18560 # Set up default GNU C++ configuration
18564 # Check whether --with-gnu-ld was given.
18565 if test "${with_gnu_ld+set}" = set; then :
18566 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18567 else
18568 with_gnu_ld=no
18571 ac_prog=ld
18572 if test "$GCC" = yes; then
18573 # Check if gcc -print-prog-name=ld gives a path.
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18575 $as_echo_n "checking for ld used by $CC... " >&6; }
18576 case $host in
18577 *-*-mingw*)
18578 # gcc leaves a trailing carriage return which upsets mingw
18579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18582 esac
18583 case $ac_prog in
18584 # Accept absolute paths.
18585 [\\/]* | ?:[\\/]*)
18586 re_direlt='/[^/][^/]*/\.\./'
18587 # Canonicalize the pathname of ld
18588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18591 done
18592 test -z "$LD" && LD="$ac_prog"
18595 # If it fails, then pretend we aren't using GCC.
18596 ac_prog=ld
18599 # If it is relative, then search for the first ld in PATH.
18600 with_gnu_ld=unknown
18602 esac
18603 elif test "$with_gnu_ld" = yes; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18605 $as_echo_n "checking for GNU ld... " >&6; }
18606 else
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18608 $as_echo_n "checking for non-GNU ld... " >&6; }
18610 if test "${lt_cv_path_LD+set}" = set; then :
18611 $as_echo_n "(cached) " >&6
18612 else
18613 if test -z "$LD"; then
18614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18615 for ac_dir in $PATH; do
18616 IFS="$lt_save_ifs"
18617 test -z "$ac_dir" && ac_dir=.
18618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18619 lt_cv_path_LD="$ac_dir/$ac_prog"
18620 # Check to see if the program is GNU ld. I'd rather use --version,
18621 # but apparently some variants of GNU ld only accept -v.
18622 # Break only if it was the GNU/non-GNU ld that we prefer.
18623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18624 *GNU* | *'with BFD'*)
18625 test "$with_gnu_ld" != no && break
18628 test "$with_gnu_ld" != yes && break
18630 esac
18632 done
18633 IFS="$lt_save_ifs"
18634 else
18635 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18639 LD="$lt_cv_path_LD"
18640 if test -n "$LD"; then
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18642 $as_echo "$LD" >&6; }
18643 else
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18647 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18649 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18650 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18651 $as_echo_n "(cached) " >&6
18652 else
18653 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18654 case `$LD -v 2>&1 </dev/null` in
18655 *GNU* | *'with BFD'*)
18656 lt_cv_prog_gnu_ld=yes
18659 lt_cv_prog_gnu_ld=no
18661 esac
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18664 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18665 with_gnu_ld=$lt_cv_prog_gnu_ld
18673 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18674 # archiving commands below assume that GNU ld is being used.
18675 if test "$with_gnu_ld" = yes; then
18676 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18677 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'
18679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18682 # If archive_cmds runs LD, not CC, wlarc should be empty
18683 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18684 # investigate it a little bit more. (MM)
18685 wlarc='${wl}'
18687 # ancient GNU ld didn't support --whole-archive et. al.
18688 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18689 $GREP 'no-whole-archive' > /dev/null; then
18690 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18691 else
18692 whole_archive_flag_spec_CXX=
18694 else
18695 with_gnu_ld=no
18696 wlarc=
18698 # A generic and very simple default shared library creation
18699 # command for GNU C++ for the case where it uses the native
18700 # linker, instead of GNU ld. If possible, this setting should
18701 # overridden to take advantage of the native linker features on
18702 # the platform it is being used on.
18703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18706 # Commands to make compiler produce verbose output that lists
18707 # what "hidden" libraries, object files and flags are used when
18708 # linking a shared library.
18709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18711 else
18712 GXX=no
18713 with_gnu_ld=no
18714 wlarc=
18717 # PORTME: fill in a description of your system's C++ link characteristics
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18719 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18720 ld_shlibs_CXX=yes
18721 case $host_os in
18722 aix3*)
18723 # FIXME: insert proper C++ library support
18724 ld_shlibs_CXX=no
18726 aix[4-9]*)
18727 if test "$host_cpu" = ia64; then
18728 # On IA64, the linker does run time linking by default, so we don't
18729 # have to do anything special.
18730 aix_use_runtimelinking=no
18731 exp_sym_flag='-Bexport'
18732 no_entry_flag=""
18733 else
18734 aix_use_runtimelinking=no
18736 # Test if we are trying to use run time linking or normal
18737 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18738 # need to do runtime linking.
18739 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18740 for ld_flag in $LDFLAGS; do
18741 case $ld_flag in
18742 *-brtl*)
18743 aix_use_runtimelinking=yes
18744 break
18746 esac
18747 done
18749 esac
18751 exp_sym_flag='-bexport'
18752 no_entry_flag='-bnoentry'
18755 # When large executables or shared objects are built, AIX ld can
18756 # have problems creating the table of contents. If linking a library
18757 # or program results in "error TOC overflow" add -mminimal-toc to
18758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18761 archive_cmds_CXX=''
18762 hardcode_direct_CXX=yes
18763 hardcode_direct_absolute_CXX=yes
18764 hardcode_libdir_separator_CXX=':'
18765 link_all_deplibs_CXX=yes
18766 file_list_spec_CXX='${wl}-f,'
18768 if test "$GXX" = yes; then
18769 case $host_os in aix4.[012]|aix4.[012].*)
18770 # We only want to do this on AIX 4.2 and lower, the check
18771 # below for broken collect2 doesn't work under 4.3+
18772 collect2name=`${CC} -print-prog-name=collect2`
18773 if test -f "$collect2name" &&
18774 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18775 then
18776 # We have reworked collect2
18778 else
18779 # We have old collect2
18780 hardcode_direct_CXX=unsupported
18781 # It fails to find uninstalled libraries when the uninstalled
18782 # path is not listed in the libpath. Setting hardcode_minus_L
18783 # to unsupported forces relinking
18784 hardcode_minus_L_CXX=yes
18785 hardcode_libdir_flag_spec_CXX='-L$libdir'
18786 hardcode_libdir_separator_CXX=
18788 esac
18789 shared_flag='-shared'
18790 if test "$aix_use_runtimelinking" = yes; then
18791 shared_flag="$shared_flag "'${wl}-G'
18793 else
18794 # not using gcc
18795 if test "$host_cpu" = ia64; then
18796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18797 # chokes on -Wl,-G. The following line is correct:
18798 shared_flag='-G'
18799 else
18800 if test "$aix_use_runtimelinking" = yes; then
18801 shared_flag='${wl}-G'
18802 else
18803 shared_flag='${wl}-bM:SRE'
18808 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18809 # It seems that -bexpall does not export symbols beginning with
18810 # underscore (_), so it is better to generate a list of symbols to
18811 # export.
18812 always_export_symbols_CXX=yes
18813 if test "$aix_use_runtimelinking" = yes; then
18814 # Warning - without using the other runtime loading flags (-brtl),
18815 # -berok will link without error, but may produce a broken library.
18816 allow_undefined_flag_CXX='-berok'
18817 # Determine the default libpath from the value encoded in an empty
18818 # executable.
18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18823 main ()
18827 return 0;
18829 _ACEOF
18830 if ac_fn_cxx_try_link "$LINENO"; then :
18832 lt_aix_libpath_sed='
18833 /Import File Strings/,/^$/ {
18834 /^0/ {
18835 s/^0 *\(.*\)$/\1/
18839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18840 # Check for a 64-bit object if we didn't find anything.
18841 if test -z "$aix_libpath"; then
18842 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18845 rm -f core conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18849 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18851 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"
18852 else
18853 if test "$host_cpu" = ia64; then
18854 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18855 allow_undefined_flag_CXX="-z nodefs"
18856 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"
18857 else
18858 # Determine the default libpath from the value encoded in an
18859 # empty executable.
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18864 main ()
18868 return 0;
18870 _ACEOF
18871 if ac_fn_cxx_try_link "$LINENO"; then :
18873 lt_aix_libpath_sed='
18874 /Import File Strings/,/^$/ {
18875 /^0/ {
18876 s/^0 *\(.*\)$/\1/
18880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 # Check for a 64-bit object if we didn't find anything.
18882 if test -z "$aix_libpath"; then
18883 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18886 rm -f core conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18891 # Warning - without using the other run time loading flags,
18892 # -berok will link without error, but may produce a broken library.
18893 no_undefined_flag_CXX=' ${wl}-bernotok'
18894 allow_undefined_flag_CXX=' ${wl}-berok'
18895 if test "$with_gnu_ld" = yes; then
18896 # We only use this code for GNU lds that support --whole-archive.
18897 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18898 else
18899 # Exported symbols can be pulled into shared objects from archives
18900 whole_archive_flag_spec_CXX='$convenience'
18902 archive_cmds_need_lc_CXX=yes
18903 # This is similar to how AIX traditionally builds its shared
18904 # libraries.
18905 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'
18910 beos*)
18911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18912 allow_undefined_flag_CXX=unsupported
18913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18914 # support --undefined. This deserves some investigation. FIXME
18915 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18916 else
18917 ld_shlibs_CXX=no
18921 chorus*)
18922 case $cc_basename in
18924 # FIXME: insert proper C++ library support
18925 ld_shlibs_CXX=no
18927 esac
18930 cygwin* | mingw* | pw32* | cegcc*)
18931 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18932 # as there is no search path for DLLs.
18933 hardcode_libdir_flag_spec_CXX='-L$libdir'
18934 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18935 allow_undefined_flag_CXX=unsupported
18936 always_export_symbols_CXX=no
18937 enable_shared_with_static_runtimes_CXX=yes
18939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18940 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'
18941 # If the export-symbols file already is a .def file (1st line
18942 # is EXPORTS), use it as is; otherwise, prepend...
18943 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18944 cp $export_symbols $output_objdir/$soname.def;
18945 else
18946 echo EXPORTS > $output_objdir/$soname.def;
18947 cat $export_symbols >> $output_objdir/$soname.def;
18949 $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'
18950 else
18951 ld_shlibs_CXX=no
18954 darwin* | rhapsody*)
18957 archive_cmds_need_lc_CXX=no
18958 hardcode_direct_CXX=no
18959 hardcode_automatic_CXX=yes
18960 hardcode_shlibpath_var_CXX=unsupported
18961 if test "$lt_cv_ld_force_load" = "yes"; then
18962 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\"`'
18963 else
18964 whole_archive_flag_spec_CXX=''
18966 link_all_deplibs_CXX=yes
18967 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18968 case $cc_basename in
18969 ifort*) _lt_dar_can_shared=yes ;;
18970 *) _lt_dar_can_shared=$GCC ;;
18971 esac
18972 if test "$_lt_dar_can_shared" = "yes"; then
18973 output_verbose_link_cmd=func_echo_all
18974 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}"
18975 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18976 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}"
18977 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}"
18978 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18979 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}"
18980 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}"
18983 else
18984 ld_shlibs_CXX=no
18989 dgux*)
18990 case $cc_basename in
18991 ec++*)
18992 # FIXME: insert proper C++ library support
18993 ld_shlibs_CXX=no
18995 ghcx*)
18996 # Green Hills C++ Compiler
18997 # FIXME: insert proper C++ library support
18998 ld_shlibs_CXX=no
19001 # FIXME: insert proper C++ library support
19002 ld_shlibs_CXX=no
19004 esac
19007 freebsd2.*)
19008 # C++ shared libraries reported to be fairly broken before
19009 # switch to ELF
19010 ld_shlibs_CXX=no
19013 freebsd-elf*)
19014 archive_cmds_need_lc_CXX=no
19017 freebsd* | dragonfly*)
19018 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19019 # conventions
19020 ld_shlibs_CXX=yes
19023 gnu*)
19026 haiku*)
19027 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19028 link_all_deplibs_CXX=yes
19031 hpux9*)
19032 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19033 hardcode_libdir_separator_CXX=:
19034 export_dynamic_flag_spec_CXX='${wl}-E'
19035 hardcode_direct_CXX=yes
19036 hardcode_minus_L_CXX=yes # Not in the search PATH,
19037 # but as the default
19038 # location of the library.
19040 case $cc_basename in
19041 CC*)
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19045 aCC*)
19046 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'
19047 # Commands to make compiler produce verbose output that lists
19048 # what "hidden" libraries, object files and flags are used when
19049 # linking a shared library.
19051 # There doesn't appear to be a way to prevent this compiler from
19052 # explicitly linking system object files so we need to strip them
19053 # from the output so that they don't get included in the library
19054 # dependencies.
19055 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"'
19058 if test "$GXX" = yes; then
19059 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'
19060 else
19061 # FIXME: insert proper C++ library support
19062 ld_shlibs_CXX=no
19065 esac
19068 hpux10*|hpux11*)
19069 if test $with_gnu_ld = no; then
19070 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19071 hardcode_libdir_separator_CXX=:
19073 case $host_cpu in
19074 hppa*64*|ia64*)
19077 export_dynamic_flag_spec_CXX='${wl}-E'
19079 esac
19081 case $host_cpu in
19082 hppa*64*|ia64*)
19083 hardcode_direct_CXX=no
19084 hardcode_shlibpath_var_CXX=no
19087 hardcode_direct_CXX=yes
19088 hardcode_direct_absolute_CXX=yes
19089 hardcode_minus_L_CXX=yes # Not in the search PATH,
19090 # but as the default
19091 # location of the library.
19093 esac
19095 case $cc_basename in
19096 CC*)
19097 # FIXME: insert proper C++ library support
19098 ld_shlibs_CXX=no
19100 aCC*)
19101 case $host_cpu in
19102 hppa*64*)
19103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19105 ia64*)
19106 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19111 esac
19112 # Commands to make compiler produce verbose output that lists
19113 # what "hidden" libraries, object files and flags are used when
19114 # linking a shared library.
19116 # There doesn't appear to be a way to prevent this compiler from
19117 # explicitly linking system object files so we need to strip them
19118 # from the output so that they don't get included in the library
19119 # dependencies.
19120 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"'
19123 if test "$GXX" = yes; then
19124 if test $with_gnu_ld = no; then
19125 case $host_cpu in
19126 hppa*64*)
19127 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19129 ia64*)
19130 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19133 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'
19135 esac
19137 else
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19142 esac
19145 interix[3-9]*)
19146 hardcode_direct_CXX=no
19147 hardcode_shlibpath_var_CXX=no
19148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19149 export_dynamic_flag_spec_CXX='${wl}-E'
19150 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19151 # Instead, shared libraries are loaded at an image base (0x10000000 by
19152 # default) and relocated if they conflict, which is a slow very memory
19153 # consuming and fragmenting process. To avoid this, we pick a random,
19154 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19155 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19156 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'
19157 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'
19159 irix5* | irix6*)
19160 case $cc_basename in
19161 CC*)
19162 # SGI C++
19163 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'
19165 # Archives containing C++ object files must be created using
19166 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19167 # necessary to make sure instantiated templates are included
19168 # in the archive.
19169 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19172 if test "$GXX" = yes; then
19173 if test "$with_gnu_ld" = no; then
19174 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'
19175 else
19176 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'
19179 link_all_deplibs_CXX=yes
19181 esac
19182 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19183 hardcode_libdir_separator_CXX=:
19184 inherit_rpath_CXX=yes
19187 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19188 case $cc_basename in
19189 KCC*)
19190 # Kuck and Associates, Inc. (KAI) C++ Compiler
19192 # KCC will only create a shared library if the output file
19193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19194 # to its proper name (with version) after linking.
19195 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'
19196 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'
19197 # Commands to make compiler produce verbose output that lists
19198 # what "hidden" libraries, object files and flags are used when
19199 # linking a shared library.
19201 # There doesn't appear to be a way to prevent this compiler from
19202 # explicitly linking system object files so we need to strip them
19203 # from the output so that they don't get included in the library
19204 # dependencies.
19205 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"'
19207 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19210 # Archives containing C++ object files must be created using
19211 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19212 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19214 icpc* | ecpc* )
19215 # Intel C++
19216 with_gnu_ld=yes
19217 # version 8.0 and above of icpc choke on multiply defined symbols
19218 # if we add $predep_objects and $postdep_objects, however 7.1 and
19219 # earlier do not add the objects themselves.
19220 case `$CC -V 2>&1` in
19221 *"Version 7."*)
19222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19223 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'
19225 *) # Version 8.0 or newer
19226 tmp_idyn=
19227 case $host_cpu in
19228 ia64*) tmp_idyn=' -i_dynamic';;
19229 esac
19230 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 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'
19233 esac
19234 archive_cmds_need_lc_CXX=no
19235 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19236 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19237 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19239 pgCC* | pgcpp*)
19240 # Portland Group C++ compiler
19241 case `$CC -V` in
19242 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19243 prelink_cmds_CXX='tpldir=Template.dir~
19244 rm -rf $tpldir~
19245 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19246 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19247 old_archive_cmds_CXX='tpldir=Template.dir~
19248 rm -rf $tpldir~
19249 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19250 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19251 $RANLIB $oldlib'
19252 archive_cmds_CXX='tpldir=Template.dir~
19253 rm -rf $tpldir~
19254 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19255 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19256 archive_expsym_cmds_CXX='tpldir=Template.dir~
19257 rm -rf $tpldir~
19258 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19259 $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'
19261 *) # Version 6 and above use weak symbols
19262 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19263 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'
19265 esac
19267 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19269 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'
19271 cxx*)
19272 # Compaq C++
19273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274 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'
19276 runpath_var=LD_RUN_PATH
19277 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19278 hardcode_libdir_separator_CXX=:
19280 # Commands to make compiler produce verbose output that lists
19281 # what "hidden" libraries, object files and flags are used when
19282 # linking a shared library.
19284 # There doesn't appear to be a way to prevent this compiler from
19285 # explicitly linking system object files so we need to strip them
19286 # from the output so that they don't get included in the library
19287 # dependencies.
19288 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'
19290 xl* | mpixl* | bgxl*)
19291 # IBM XL 8.0 on PPC, with GNU ld
19292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19293 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19294 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19295 if test "x$supports_anon_versioning" = xyes; then
19296 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19298 echo "local: *; };" >> $output_objdir/$libname.ver~
19299 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19303 case `$CC -V 2>&1 | sed 5q` in
19304 *Sun\ C*)
19305 # Sun C++ 5.9
19306 no_undefined_flag_CXX=' -zdefs'
19307 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19308 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'
19309 hardcode_libdir_flag_spec_CXX='-R$libdir'
19310 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'
19311 compiler_needs_object_CXX=yes
19313 # Not sure whether something based on
19314 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19315 # would be better.
19316 output_verbose_link_cmd='func_echo_all'
19318 # Archives containing C++ object files must be created using
19319 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19320 # necessary to make sure instantiated templates are included
19321 # in the archive.
19322 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19324 esac
19326 esac
19329 lynxos*)
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19334 m88k*)
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19339 mvs*)
19340 case $cc_basename in
19341 cxx*)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19349 esac
19352 netbsd*)
19353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19354 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19355 wlarc=
19356 hardcode_libdir_flag_spec_CXX='-R$libdir'
19357 hardcode_direct_CXX=yes
19358 hardcode_shlibpath_var_CXX=no
19360 # Workaround some broken pre-1.5 toolchains
19361 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19364 *nto* | *qnx*)
19365 ld_shlibs_CXX=yes
19368 openbsd2*)
19369 # C++ shared libraries are fairly broken
19370 ld_shlibs_CXX=no
19373 openbsd*)
19374 if test -f /usr/libexec/ld.so; then
19375 hardcode_direct_CXX=yes
19376 hardcode_shlibpath_var_CXX=no
19377 hardcode_direct_absolute_CXX=yes
19378 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19381 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19382 export_dynamic_flag_spec_CXX='${wl}-E'
19383 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19385 output_verbose_link_cmd=func_echo_all
19386 else
19387 ld_shlibs_CXX=no
19391 osf3* | osf4* | osf5*)
19392 case $cc_basename in
19393 KCC*)
19394 # Kuck and Associates, Inc. (KAI) C++ Compiler
19396 # KCC will only create a shared library if the output file
19397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19398 # to its proper name (with version) after linking.
19399 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'
19401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19402 hardcode_libdir_separator_CXX=:
19404 # Archives containing C++ object files must be created using
19405 # the KAI C++ compiler.
19406 case $host in
19407 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19408 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19409 esac
19411 RCC*)
19412 # Rational C++ 2.4.1
19413 # FIXME: insert proper C++ library support
19414 ld_shlibs_CXX=no
19416 cxx*)
19417 case $host in
19418 osf3*)
19419 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19420 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'
19421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19424 allow_undefined_flag_CXX=' -expect_unresolved \*'
19425 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'
19426 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19427 echo "-hidden">> $lib.exp~
19428 $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~
19429 $RM $lib.exp'
19430 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19432 esac
19434 hardcode_libdir_separator_CXX=:
19436 # Commands to make compiler produce verbose output that lists
19437 # what "hidden" libraries, object files and flags are used when
19438 # linking a shared library.
19440 # There doesn't appear to be a way to prevent this compiler from
19441 # explicitly linking system object files so we need to strip them
19442 # from the output so that they don't get included in the library
19443 # dependencies.
19444 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"'
19447 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19448 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19449 case $host in
19450 osf3*)
19451 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'
19454 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'
19456 esac
19458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19459 hardcode_libdir_separator_CXX=:
19461 # Commands to make compiler produce verbose output that lists
19462 # what "hidden" libraries, object files and flags are used when
19463 # linking a shared library.
19464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19466 else
19467 # FIXME: insert proper C++ library support
19468 ld_shlibs_CXX=no
19471 esac
19474 psos*)
19475 # FIXME: insert proper C++ library support
19476 ld_shlibs_CXX=no
19479 sunos4*)
19480 case $cc_basename in
19481 CC*)
19482 # Sun C++ 4.x
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19486 lcc*)
19487 # Lucid
19488 # FIXME: insert proper C++ library support
19489 ld_shlibs_CXX=no
19492 # FIXME: insert proper C++ library support
19493 ld_shlibs_CXX=no
19495 esac
19498 solaris*)
19499 case $cc_basename in
19500 CC*)
19501 # Sun C++ 4.2, 5.x and Centerline C++
19502 archive_cmds_need_lc_CXX=yes
19503 no_undefined_flag_CXX=' -zdefs'
19504 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19506 $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'
19508 hardcode_libdir_flag_spec_CXX='-R$libdir'
19509 hardcode_shlibpath_var_CXX=no
19510 case $host_os in
19511 solaris2.[0-5] | solaris2.[0-5].*) ;;
19513 # The compiler driver will combine and reorder linker options,
19514 # but understands `-z linker_flag'.
19515 # Supported since Solaris 2.6 (maybe 2.5.1?)
19516 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19518 esac
19519 link_all_deplibs_CXX=yes
19521 output_verbose_link_cmd='func_echo_all'
19523 # Archives containing C++ object files must be created using
19524 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19525 # necessary to make sure instantiated templates are included
19526 # in the archive.
19527 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19529 gcx*)
19530 # Green Hills C++ Compiler
19531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19533 # The C++ compiler must be used to create the archive.
19534 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19537 # GNU C++ compiler with Solaris linker
19538 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19539 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19540 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19541 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19542 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19543 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19545 # Commands to make compiler produce verbose output that lists
19546 # what "hidden" libraries, object files and flags are used when
19547 # linking a shared library.
19548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19549 else
19550 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19551 # platform.
19552 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19553 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19554 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19556 # Commands to make compiler produce verbose output that lists
19557 # what "hidden" libraries, object files and flags are used when
19558 # linking a shared library.
19559 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19562 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19563 case $host_os in
19564 solaris2.[0-5] | solaris2.[0-5].*) ;;
19566 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19568 esac
19571 esac
19574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19575 no_undefined_flag_CXX='${wl}-z,text'
19576 archive_cmds_need_lc_CXX=no
19577 hardcode_shlibpath_var_CXX=no
19578 runpath_var='LD_RUN_PATH'
19580 case $cc_basename in
19581 CC*)
19582 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 esac
19592 sysv5* | sco3.2v5* | sco5v6*)
19593 # Note: We can NOT use -z defs as we might desire, because we do not
19594 # link with -lc, and that would cause any symbols used from libc to
19595 # always be unresolved, which means just about no library would
19596 # ever link correctly. If we're not using GNU ld we use -z text
19597 # though, which does catch some bad symbols but isn't as heavy-handed
19598 # as -z defs.
19599 no_undefined_flag_CXX='${wl}-z,text'
19600 allow_undefined_flag_CXX='${wl}-z,nodefs'
19601 archive_cmds_need_lc_CXX=no
19602 hardcode_shlibpath_var_CXX=no
19603 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19604 hardcode_libdir_separator_CXX=':'
19605 link_all_deplibs_CXX=yes
19606 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19607 runpath_var='LD_RUN_PATH'
19609 case $cc_basename in
19610 CC*)
19611 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19613 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19614 '"$old_archive_cmds_CXX"
19615 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19616 '"$reload_cmds_CXX"
19619 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19620 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 esac
19625 tandem*)
19626 case $cc_basename in
19627 NCC*)
19628 # NonStop-UX NCC 3.20
19629 # FIXME: insert proper C++ library support
19630 ld_shlibs_CXX=no
19633 # FIXME: insert proper C++ library support
19634 ld_shlibs_CXX=no
19636 esac
19639 vxworks*)
19640 # FIXME: insert proper C++ library support
19641 ld_shlibs_CXX=no
19645 # FIXME: insert proper C++ library support
19646 ld_shlibs_CXX=no
19648 esac
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19651 $as_echo "$ld_shlibs_CXX" >&6; }
19652 test "$ld_shlibs_CXX" = no && can_build_shared=no
19654 GCC_CXX="$GXX"
19655 LD_CXX="$LD"
19657 ## CAVEAT EMPTOR:
19658 ## There is no encapsulation within the following macros, do not change
19659 ## the running order or otherwise move them around unless you know exactly
19660 ## what you are doing...
19661 # Dependencies to place before and after the object being linked:
19662 predep_objects_CXX=
19663 postdep_objects_CXX=
19664 predeps_CXX=
19665 postdeps_CXX=
19666 compiler_lib_search_path_CXX=
19668 cat > conftest.$ac_ext <<_LT_EOF
19669 class Foo
19671 public:
19672 Foo (void) { a = 0; }
19673 private:
19674 int a;
19676 _LT_EOF
19678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19679 (eval $ac_compile) 2>&5
19680 ac_status=$?
19681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19682 test $ac_status = 0; }; then
19683 # Parse the compiler output and extract the necessary
19684 # objects, libraries and library flags.
19686 # Sentinel used to keep track of whether or not we are before
19687 # the conftest object file.
19688 pre_test_object_deps_done=no
19690 for p in `eval "$output_verbose_link_cmd"`; do
19691 case $p in
19693 -L* | -R* | -l*)
19694 # Some compilers place space between "-{L,R}" and the path.
19695 # Remove the space.
19696 if test $p = "-L" ||
19697 test $p = "-R"; then
19698 prev=$p
19699 continue
19700 else
19701 prev=
19704 if test "$pre_test_object_deps_done" = no; then
19705 case $p in
19706 -L* | -R*)
19707 # Internal compiler library paths should come after those
19708 # provided the user. The postdeps already come after the
19709 # user supplied libs so there is no need to process them.
19710 if test -z "$compiler_lib_search_path_CXX"; then
19711 compiler_lib_search_path_CXX="${prev}${p}"
19712 else
19713 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19716 # The "-l" case would never come before the object being
19717 # linked, so don't bother handling this case.
19718 esac
19719 else
19720 if test -z "$postdeps_CXX"; then
19721 postdeps_CXX="${prev}${p}"
19722 else
19723 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19728 *.$objext)
19729 # This assumes that the test object file only shows up
19730 # once in the compiler output.
19731 if test "$p" = "conftest.$objext"; then
19732 pre_test_object_deps_done=yes
19733 continue
19736 if test "$pre_test_object_deps_done" = no; then
19737 if test -z "$predep_objects_CXX"; then
19738 predep_objects_CXX="$p"
19739 else
19740 predep_objects_CXX="$predep_objects_CXX $p"
19742 else
19743 if test -z "$postdep_objects_CXX"; then
19744 postdep_objects_CXX="$p"
19745 else
19746 postdep_objects_CXX="$postdep_objects_CXX $p"
19751 *) ;; # Ignore the rest.
19753 esac
19754 done
19756 # Clean up.
19757 rm -f a.out a.exe
19758 else
19759 echo "libtool.m4: error: problem compiling CXX test program"
19762 $RM -f confest.$objext
19764 # PORTME: override above test on systems where it is broken
19765 case $host_os in
19766 interix[3-9]*)
19767 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19768 # hack all around it, let's just trust "g++" to DTRT.
19769 predep_objects_CXX=
19770 postdep_objects_CXX=
19771 postdeps_CXX=
19774 linux*)
19775 case `$CC -V 2>&1 | sed 5q` in
19776 *Sun\ C*)
19777 # Sun C++ 5.9
19779 # The more standards-conforming stlport4 library is
19780 # incompatible with the Cstd library. Avoid specifying
19781 # it if it's in CXXFLAGS. Ignore libCrun as
19782 # -library=stlport4 depends on it.
19783 case " $CXX $CXXFLAGS " in
19784 *" -library=stlport4 "*)
19785 solaris_use_stlport4=yes
19787 esac
19789 if test "$solaris_use_stlport4" != yes; then
19790 postdeps_CXX='-library=Cstd -library=Crun'
19793 esac
19796 solaris*)
19797 case $cc_basename in
19798 CC*)
19799 # The more standards-conforming stlport4 library is
19800 # incompatible with the Cstd library. Avoid specifying
19801 # it if it's in CXXFLAGS. Ignore libCrun as
19802 # -library=stlport4 depends on it.
19803 case " $CXX $CXXFLAGS " in
19804 *" -library=stlport4 "*)
19805 solaris_use_stlport4=yes
19807 esac
19809 # Adding this requires a known-good setup of shared libraries for
19810 # Sun compiler versions before 5.6, else PIC objects from an old
19811 # archive will be linked into the output, leading to subtle bugs.
19812 if test "$solaris_use_stlport4" != yes; then
19813 postdeps_CXX='-library=Cstd -library=Crun'
19816 esac
19818 esac
19821 case " $postdeps_CXX " in
19822 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19823 esac
19824 compiler_lib_search_dirs_CXX=
19825 if test -n "${compiler_lib_search_path_CXX}"; then
19826 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19859 lt_prog_compiler_wl_CXX=
19860 lt_prog_compiler_pic_CXX=
19861 lt_prog_compiler_static_CXX=
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19864 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19866 # C++ specific cases for pic, static, wl, etc.
19867 if test "$GXX" = yes; then
19868 lt_prog_compiler_wl_CXX='-Wl,'
19869 lt_prog_compiler_static_CXX='-static'
19871 case $host_os in
19872 aix*)
19873 # All AIX code is PIC.
19874 if test "$host_cpu" = ia64; then
19875 # AIX 5 now supports IA64 processor
19876 lt_prog_compiler_static_CXX='-Bstatic'
19880 amigaos*)
19881 case $host_cpu in
19882 powerpc)
19883 # see comment about AmigaOS4 .so support
19884 lt_prog_compiler_pic_CXX='-fPIC'
19886 m68k)
19887 # FIXME: we need at least 68020 code to build shared libraries, but
19888 # adding the `-m68020' flag to GCC prevents building anything better,
19889 # like `-m68040'.
19890 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19892 esac
19895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19896 # PIC is the default for these OSes.
19898 mingw* | cygwin* | os2* | pw32* | cegcc*)
19899 # This hack is so that the source file can tell whether it is being
19900 # built for inclusion in a dll (and should export symbols for example).
19901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19902 # (--disable-auto-import) libraries
19903 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19905 darwin* | rhapsody*)
19906 # PIC is the default on this platform
19907 # Common symbols not allowed in MH_DYLIB files
19908 lt_prog_compiler_pic_CXX='-fno-common'
19910 *djgpp*)
19911 # DJGPP does not support shared libraries at all
19912 lt_prog_compiler_pic_CXX=
19914 haiku*)
19915 # PIC is the default for Haiku.
19916 # The "-static" flag exists, but is broken.
19917 lt_prog_compiler_static_CXX=
19919 interix[3-9]*)
19920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19921 # Instead, we relocate shared libraries at runtime.
19923 sysv4*MP*)
19924 if test -d /usr/nec; then
19925 lt_prog_compiler_pic_CXX=-Kconform_pic
19928 hpux*)
19929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19931 # sets the default TLS model and affects inlining.
19932 case $host_cpu in
19933 hppa*64*)
19936 lt_prog_compiler_pic_CXX='-fPIC'
19938 esac
19940 *qnx* | *nto*)
19941 # QNX uses GNU C++, but need to define -shared option too, otherwise
19942 # it will coredump.
19943 lt_prog_compiler_pic_CXX='-fPIC -shared'
19946 lt_prog_compiler_pic_CXX='-fPIC'
19948 esac
19949 else
19950 case $host_os in
19951 aix[4-9]*)
19952 # All AIX code is PIC.
19953 if test "$host_cpu" = ia64; then
19954 # AIX 5 now supports IA64 processor
19955 lt_prog_compiler_static_CXX='-Bstatic'
19956 else
19957 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19960 chorus*)
19961 case $cc_basename in
19962 cxch68*)
19963 # Green Hills C++ Compiler
19964 # _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"
19966 esac
19968 dgux*)
19969 case $cc_basename in
19970 ec++*)
19971 lt_prog_compiler_pic_CXX='-KPIC'
19973 ghcx*)
19974 # Green Hills C++ Compiler
19975 lt_prog_compiler_pic_CXX='-pic'
19979 esac
19981 freebsd* | dragonfly*)
19982 # FreeBSD uses GNU C++
19984 hpux9* | hpux10* | hpux11*)
19985 case $cc_basename in
19986 CC*)
19987 lt_prog_compiler_wl_CXX='-Wl,'
19988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19989 if test "$host_cpu" != ia64; then
19990 lt_prog_compiler_pic_CXX='+Z'
19993 aCC*)
19994 lt_prog_compiler_wl_CXX='-Wl,'
19995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19996 case $host_cpu in
19997 hppa*64*|ia64*)
19998 # +Z the default
20001 lt_prog_compiler_pic_CXX='+Z'
20003 esac
20007 esac
20009 interix*)
20010 # This is c89, which is MS Visual C++ (no shared libs)
20011 # Anyone wants to do a port?
20013 irix5* | irix6* | nonstopux*)
20014 case $cc_basename in
20015 CC*)
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_static_CXX='-non_shared'
20018 # CC pic flag -KPIC is the default.
20022 esac
20024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20025 case $cc_basename in
20026 KCC*)
20027 # KAI C++ Compiler
20028 lt_prog_compiler_wl_CXX='--backend -Wl,'
20029 lt_prog_compiler_pic_CXX='-fPIC'
20031 ecpc* )
20032 # old Intel C++ for x86_64 which still supported -KPIC.
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 lt_prog_compiler_pic_CXX='-KPIC'
20035 lt_prog_compiler_static_CXX='-static'
20037 icpc* )
20038 # Intel C++, used to be incompatible with GCC.
20039 # ICC 10 doesn't accept -KPIC any more.
20040 lt_prog_compiler_wl_CXX='-Wl,'
20041 lt_prog_compiler_pic_CXX='-fPIC'
20042 lt_prog_compiler_static_CXX='-static'
20044 pgCC* | pgcpp*)
20045 # Portland Group C++ compiler
20046 lt_prog_compiler_wl_CXX='-Wl,'
20047 lt_prog_compiler_pic_CXX='-fpic'
20048 lt_prog_compiler_static_CXX='-Bstatic'
20050 cxx*)
20051 # Compaq C++
20052 # Make sure the PIC flag is empty. It appears that all Alpha
20053 # Linux and Compaq Tru64 Unix objects are PIC.
20054 lt_prog_compiler_pic_CXX=
20055 lt_prog_compiler_static_CXX='-non_shared'
20057 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20058 # IBM XL 8.0, 9.0 on PPC and BlueGene
20059 lt_prog_compiler_wl_CXX='-Wl,'
20060 lt_prog_compiler_pic_CXX='-qpic'
20061 lt_prog_compiler_static_CXX='-qstaticlink'
20064 case `$CC -V 2>&1 | sed 5q` in
20065 *Sun\ C*)
20066 # Sun C++ 5.9
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 lt_prog_compiler_static_CXX='-Bstatic'
20069 lt_prog_compiler_wl_CXX='-Qoption ld '
20071 esac
20073 esac
20075 lynxos*)
20077 m88k*)
20079 mvs*)
20080 case $cc_basename in
20081 cxx*)
20082 lt_prog_compiler_pic_CXX='-W c,exportall'
20086 esac
20088 netbsd*)
20090 *qnx* | *nto*)
20091 # QNX uses GNU C++, but need to define -shared option too, otherwise
20092 # it will coredump.
20093 lt_prog_compiler_pic_CXX='-fPIC -shared'
20095 osf3* | osf4* | osf5*)
20096 case $cc_basename in
20097 KCC*)
20098 lt_prog_compiler_wl_CXX='--backend -Wl,'
20100 RCC*)
20101 # Rational C++ 2.4.1
20102 lt_prog_compiler_pic_CXX='-pic'
20104 cxx*)
20105 # Digital/Compaq C++
20106 lt_prog_compiler_wl_CXX='-Wl,'
20107 # Make sure the PIC flag is empty. It appears that all Alpha
20108 # Linux and Compaq Tru64 Unix objects are PIC.
20109 lt_prog_compiler_pic_CXX=
20110 lt_prog_compiler_static_CXX='-non_shared'
20114 esac
20116 psos*)
20118 solaris*)
20119 case $cc_basename in
20120 CC*)
20121 # Sun C++ 4.2, 5.x and Centerline C++
20122 lt_prog_compiler_pic_CXX='-KPIC'
20123 lt_prog_compiler_static_CXX='-Bstatic'
20124 lt_prog_compiler_wl_CXX='-Qoption ld '
20126 gcx*)
20127 # Green Hills C++ Compiler
20128 lt_prog_compiler_pic_CXX='-PIC'
20132 esac
20134 sunos4*)
20135 case $cc_basename in
20136 CC*)
20137 # Sun C++ 4.x
20138 lt_prog_compiler_pic_CXX='-pic'
20139 lt_prog_compiler_static_CXX='-Bstatic'
20141 lcc*)
20142 # Lucid
20143 lt_prog_compiler_pic_CXX='-pic'
20147 esac
20149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20150 case $cc_basename in
20151 CC*)
20152 lt_prog_compiler_wl_CXX='-Wl,'
20153 lt_prog_compiler_pic_CXX='-KPIC'
20154 lt_prog_compiler_static_CXX='-Bstatic'
20156 esac
20158 tandem*)
20159 case $cc_basename in
20160 NCC*)
20161 # NonStop-UX NCC 3.20
20162 lt_prog_compiler_pic_CXX='-KPIC'
20166 esac
20168 vxworks*)
20171 lt_prog_compiler_can_build_shared_CXX=no
20173 esac
20176 case $host_os in
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20178 *djgpp*)
20179 lt_prog_compiler_pic_CXX=
20182 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20184 esac
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20186 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20191 # Check to make sure the PIC flag actually works.
20193 if test -n "$lt_prog_compiler_pic_CXX"; then
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20195 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20196 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20197 $as_echo_n "(cached) " >&6
20198 else
20199 lt_cv_prog_compiler_pic_works_CXX=no
20200 ac_outfile=conftest.$ac_objext
20201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 # The option is referenced via a variable to avoid confusing sed.
20208 lt_compile=`echo "$ac_compile" | $SED \
20209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20211 -e 's:$: $lt_compiler_flag:'`
20212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20213 (eval "$lt_compile" 2>conftest.err)
20214 ac_status=$?
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 if (exit $ac_status) && test -s "$ac_outfile"; then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings other than the usual output.
20220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20223 lt_cv_prog_compiler_pic_works_CXX=yes
20226 $RM conftest*
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20230 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20232 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20233 case $lt_prog_compiler_pic_CXX in
20234 "" | " "*) ;;
20235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20236 esac
20237 else
20238 lt_prog_compiler_pic_CXX=
20239 lt_prog_compiler_can_build_shared_CXX=no
20247 # Check to make sure the static flag actually works.
20249 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20252 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 lt_cv_prog_compiler_static_works_CXX=no
20256 save_LDFLAGS="$LDFLAGS"
20257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20260 # The linker can only warn and ignore the option if not recognized
20261 # So say no if there are warnings
20262 if test -s conftest.err; then
20263 # Append any errors to the config.log.
20264 cat conftest.err 1>&5
20265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20267 if diff conftest.exp conftest.er2 >/dev/null; then
20268 lt_cv_prog_compiler_static_works_CXX=yes
20270 else
20271 lt_cv_prog_compiler_static_works_CXX=yes
20274 $RM -r conftest*
20275 LDFLAGS="$save_LDFLAGS"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20279 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20281 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20283 else
20284 lt_prog_compiler_static_CXX=
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20292 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 lt_cv_prog_compiler_c_o_CXX=no
20296 $RM -r conftest 2>/dev/null
20297 mkdir conftest
20298 cd conftest
20299 mkdir out
20300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20302 lt_compiler_flag="-o out/conftest2.$ac_objext"
20303 # Insert the option either (1) after the last *FLAGS variable, or
20304 # (2) before a word containing "conftest.", or (3) at the end.
20305 # Note that $ac_compile itself does not contain backslashes and begins
20306 # with a dollar sign (not a hyphen), so the echo should work correctly.
20307 lt_compile=`echo "$ac_compile" | $SED \
20308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20310 -e 's:$: $lt_compiler_flag:'`
20311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20312 (eval "$lt_compile" 2>out/conftest.err)
20313 ac_status=$?
20314 cat out/conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20317 then
20318 # The compiler can only warn and ignore the option if not recognized
20319 # So say no if there are warnings
20320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20323 lt_cv_prog_compiler_c_o_CXX=yes
20326 chmod u+w . 2>&5
20327 $RM conftest*
20328 # SGI C++ compiler will create directory out/ii_files/ for
20329 # template instantiation
20330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20331 $RM out/* && rmdir out
20332 cd ..
20333 $RM -r conftest
20334 $RM conftest*
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20338 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20344 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20347 lt_cv_prog_compiler_c_o_CXX=no
20348 $RM -r conftest 2>/dev/null
20349 mkdir conftest
20350 cd conftest
20351 mkdir out
20352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20354 lt_compiler_flag="-o out/conftest2.$ac_objext"
20355 # Insert the option either (1) after the last *FLAGS variable, or
20356 # (2) before a word containing "conftest.", or (3) at the end.
20357 # Note that $ac_compile itself does not contain backslashes and begins
20358 # with a dollar sign (not a hyphen), so the echo should work correctly.
20359 lt_compile=`echo "$ac_compile" | $SED \
20360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20362 -e 's:$: $lt_compiler_flag:'`
20363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20364 (eval "$lt_compile" 2>out/conftest.err)
20365 ac_status=$?
20366 cat out/conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20369 then
20370 # The compiler can only warn and ignore the option if not recognized
20371 # So say no if there are warnings
20372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20375 lt_cv_prog_compiler_c_o_CXX=yes
20378 chmod u+w . 2>&5
20379 $RM conftest*
20380 # SGI C++ compiler will create directory out/ii_files/ for
20381 # template instantiation
20382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20383 $RM out/* && rmdir out
20384 cd ..
20385 $RM -r conftest
20386 $RM conftest*
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20395 hard_links="nottested"
20396 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20397 # do not overwrite the value of need_locks provided by the user
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20399 $as_echo_n "checking if we can lock with hard links... " >&6; }
20400 hard_links=yes
20401 $RM conftest*
20402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20403 touch conftest.a
20404 ln conftest.a conftest.b 2>&5 || hard_links=no
20405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20407 $as_echo "$hard_links" >&6; }
20408 if test "$hard_links" = no; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20410 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20411 need_locks=warn
20413 else
20414 need_locks=no
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20422 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20423 case $host_os in
20424 aix[4-9]*)
20425 # If we're using GNU nm, then we don't want the "-C" option.
20426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20427 # Also, AIX nm treats weak defined symbols like other global defined
20428 # symbols, whereas GNU nm marks them as "W".
20429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20430 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'
20431 else
20432 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'
20435 pw32*)
20436 export_symbols_cmds_CXX="$ltdll_cmds"
20438 cygwin* | mingw* | cegcc*)
20439 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'
20442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20444 esac
20445 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20448 $as_echo "$ld_shlibs_CXX" >&6; }
20449 test "$ld_shlibs_CXX" = no && can_build_shared=no
20451 with_gnu_ld_CXX=$with_gnu_ld
20459 # Do we need to explicitly link libc?
20461 case "x$archive_cmds_need_lc_CXX" in
20462 x|xyes)
20463 # Assume -lc should be added
20464 archive_cmds_need_lc_CXX=yes
20466 if test "$enable_shared" = yes && test "$GCC" = yes; then
20467 case $archive_cmds_CXX in
20468 *'~'*)
20469 # FIXME: we may have to deal with multi-command sequences.
20471 '$CC '*)
20472 # Test whether the compiler implicitly links with -lc since on some
20473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20474 # to ld, don't add -lc before -lgcc.
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20476 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20477 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20478 $as_echo_n "(cached) " >&6
20479 else
20480 $RM conftest*
20481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20487 test $ac_status = 0; } 2>conftest.err; then
20488 soname=conftest
20489 lib=conftest
20490 libobjs=conftest.$ac_objext
20491 deplibs=
20492 wl=$lt_prog_compiler_wl_CXX
20493 pic_flag=$lt_prog_compiler_pic_CXX
20494 compiler_flags=-v
20495 linker_flags=-v
20496 verstring=
20497 output_objdir=.
20498 libname=conftest
20499 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20500 allow_undefined_flag_CXX=
20501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20502 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; }
20506 then
20507 lt_cv_archive_cmds_need_lc_CXX=no
20508 else
20509 lt_cv_archive_cmds_need_lc_CXX=yes
20511 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20512 else
20513 cat conftest.err 1>&5
20515 $RM conftest*
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20519 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20520 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20522 esac
20525 esac
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20593 library_names_spec=
20594 libname_spec='lib$name'
20595 soname_spec=
20596 shrext_cmds=".so"
20597 postinstall_cmds=
20598 postuninstall_cmds=
20599 finish_cmds=
20600 finish_eval=
20601 shlibpath_var=
20602 shlibpath_overrides_runpath=unknown
20603 version_type=none
20604 dynamic_linker="$host_os ld.so"
20605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20606 need_lib_prefix=unknown
20607 hardcode_into_libs=no
20609 # when you set need_version to no, make sure it does not cause -set_version
20610 # flags to be left without arguments
20611 need_version=unknown
20613 case $host_os in
20614 aix3*)
20615 version_type=linux
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20617 shlibpath_var=LIBPATH
20619 # AIX 3 has no versioning support, so we append a major version to the name.
20620 soname_spec='${libname}${release}${shared_ext}$major'
20623 aix[4-9]*)
20624 version_type=linux
20625 need_lib_prefix=no
20626 need_version=no
20627 hardcode_into_libs=yes
20628 if test "$host_cpu" = ia64; then
20629 # AIX 5 supports IA64
20630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 else
20633 # With GCC up to 2.95.x, collect2 would create an import file
20634 # for dependence libraries. The import file would start with
20635 # the line `#! .'. This would cause the generated library to
20636 # depend on `.', always an invalid library. This was fixed in
20637 # development snapshots of GCC prior to 3.0.
20638 case $host_os in
20639 aix4 | aix4.[01] | aix4.[01].*)
20640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20641 echo ' yes '
20642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20644 else
20645 can_build_shared=no
20648 esac
20649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20650 # soname into executable. Probably we can add versioning support to
20651 # collect2, so additional links can be useful in future.
20652 if test "$aix_use_runtimelinking" = yes; then
20653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20654 # instead of lib<name>.a to let people know that these are not
20655 # typical AIX shared libraries.
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657 else
20658 # We preserve .a as extension for shared libraries through AIX4.2
20659 # and later when we are not doing run time linking.
20660 library_names_spec='${libname}${release}.a $libname.a'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20663 shlibpath_var=LIBPATH
20667 amigaos*)
20668 case $host_cpu in
20669 powerpc)
20670 # Since July 2007 AmigaOS4 officially supports .so libraries.
20671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20674 m68k)
20675 library_names_spec='$libname.ixlibrary $libname.a'
20676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20677 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'
20679 esac
20682 beos*)
20683 library_names_spec='${libname}${shared_ext}'
20684 dynamic_linker="$host_os ld.so"
20685 shlibpath_var=LIBRARY_PATH
20688 bsdi[45]*)
20689 version_type=linux
20690 need_version=no
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20694 shlibpath_var=LD_LIBRARY_PATH
20695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20697 # the default ld.so.conf also contains /usr/contrib/lib and
20698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20699 # libtool to hard-code these into programs
20702 cygwin* | mingw* | pw32* | cegcc*)
20703 version_type=windows
20704 shrext_cmds=".dll"
20705 need_version=no
20706 need_lib_prefix=no
20708 case $GCC,$host_os in
20709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20710 library_names_spec='$libname.dll.a'
20711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20712 postinstall_cmds='base_file=`basename \${file}`~
20713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20714 dldir=$destdir/`dirname \$dlpath`~
20715 test -d \$dldir || mkdir -p \$dldir~
20716 $install_prog $dir/$dlname \$dldir/$dlname~
20717 chmod a+x \$dldir/$dlname~
20718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20722 dlpath=$dir/\$dldll~
20723 $RM \$dlpath'
20724 shlibpath_overrides_runpath=yes
20726 case $host_os in
20727 cygwin*)
20728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20732 mingw* | cegcc*)
20733 # MinGW DLLs use traditional 'lib' prefix
20734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20736 pw32*)
20737 # pw32 DLLs use 'pw' prefix rather than 'lib'
20738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20740 esac
20744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20746 esac
20747 dynamic_linker='Win32 ld.exe'
20748 # FIXME: first we should search . and the directory the executable is in
20749 shlibpath_var=PATH
20752 darwin* | rhapsody*)
20753 dynamic_linker="$host_os dyld"
20754 version_type=darwin
20755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20758 soname_spec='${libname}${release}${major}$shared_ext'
20759 shlibpath_overrides_runpath=yes
20760 shlibpath_var=DYLD_LIBRARY_PATH
20761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20766 dgux*)
20767 version_type=linux
20768 need_lib_prefix=no
20769 need_version=no
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20771 soname_spec='${libname}${release}${shared_ext}$major'
20772 shlibpath_var=LD_LIBRARY_PATH
20775 freebsd* | dragonfly*)
20776 # DragonFly does not have aout. When/if they implement a new
20777 # versioning mechanism, adjust this.
20778 if test -x /usr/bin/objformat; then
20779 objformat=`/usr/bin/objformat`
20780 else
20781 case $host_os in
20782 freebsd[23].*) objformat=aout ;;
20783 *) objformat=elf ;;
20784 esac
20786 version_type=freebsd-$objformat
20787 case $version_type in
20788 freebsd-elf*)
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20790 need_version=no
20791 need_lib_prefix=no
20793 freebsd-*)
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20795 need_version=yes
20797 esac
20798 shlibpath_var=LD_LIBRARY_PATH
20799 case $host_os in
20800 freebsd2.*)
20801 shlibpath_overrides_runpath=yes
20803 freebsd3.[01]* | freebsdelf3.[01]*)
20804 shlibpath_overrides_runpath=yes
20805 hardcode_into_libs=yes
20807 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20808 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20812 *) # from 4.6 on, and DragonFly
20813 shlibpath_overrides_runpath=yes
20814 hardcode_into_libs=yes
20816 esac
20819 gnu*)
20820 version_type=linux
20821 need_lib_prefix=no
20822 need_version=no
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 hardcode_into_libs=yes
20829 haiku*)
20830 version_type=linux
20831 need_lib_prefix=no
20832 need_version=no
20833 dynamic_linker="$host_os runtime_loader"
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20835 soname_spec='${libname}${release}${shared_ext}$major'
20836 shlibpath_var=LIBRARY_PATH
20837 shlibpath_overrides_runpath=yes
20838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20839 hardcode_into_libs=yes
20842 hpux9* | hpux10* | hpux11*)
20843 # Give a soname corresponding to the major version so that dld.sl refuses to
20844 # link against other versions.
20845 version_type=sunos
20846 need_lib_prefix=no
20847 need_version=no
20848 case $host_cpu in
20849 ia64*)
20850 shrext_cmds='.so'
20851 hardcode_into_libs=yes
20852 dynamic_linker="$host_os dld.so"
20853 shlibpath_var=LD_LIBRARY_PATH
20854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 soname_spec='${libname}${release}${shared_ext}$major'
20857 if test "X$HPUX_IA64_MODE" = X32; then
20858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20859 else
20860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20864 hppa*64*)
20865 shrext_cmds='.sl'
20866 hardcode_into_libs=yes
20867 dynamic_linker="$host_os dld.sl"
20868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20876 shrext_cmds='.sl'
20877 dynamic_linker="$host_os dld.sl"
20878 shlibpath_var=SHLIB_PATH
20879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 soname_spec='${libname}${release}${shared_ext}$major'
20883 esac
20884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20885 postinstall_cmds='chmod 555 $lib'
20886 # or fails outright, so override atomically:
20887 install_override_mode=555
20890 interix[3-9]*)
20891 version_type=linux
20892 need_lib_prefix=no
20893 need_version=no
20894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=no
20899 hardcode_into_libs=yes
20902 irix5* | irix6* | nonstopux*)
20903 case $host_os in
20904 nonstopux*) version_type=nonstopux ;;
20906 if test "$lt_cv_prog_gnu_ld" = yes; then
20907 version_type=linux
20908 else
20909 version_type=irix
20910 fi ;;
20911 esac
20912 need_lib_prefix=no
20913 need_version=no
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20916 case $host_os in
20917 irix5* | nonstopux*)
20918 libsuff= shlibsuff=
20921 case $LD in # libtool.m4 will add one of these switches to LD
20922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20923 libsuff= shlibsuff= libmagic=32-bit;;
20924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20925 libsuff=32 shlibsuff=N32 libmagic=N32;;
20926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20928 *) libsuff= shlibsuff= libmagic=never-match;;
20929 esac
20931 esac
20932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20933 shlibpath_overrides_runpath=no
20934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20936 hardcode_into_libs=yes
20939 # No shared lib support for Linux oldld, aout, or coff.
20940 linux*oldld* | linux*aout* | linux*coff*)
20941 dynamic_linker=no
20944 # This must be Linux ELF.
20945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20946 version_type=linux
20947 need_lib_prefix=no
20948 need_version=no
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20950 soname_spec='${libname}${release}${shared_ext}$major'
20951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath=no
20955 # Some binutils ld are patched to set DT_RUNPATH
20956 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 lt_cv_shlibpath_overrides_runpath=no
20960 save_LDFLAGS=$LDFLAGS
20961 save_libdir=$libdir
20962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20965 /* end confdefs.h. */
20968 main ()
20972 return 0;
20974 _ACEOF
20975 if ac_fn_cxx_try_link "$LINENO"; then :
20976 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20977 lt_cv_shlibpath_overrides_runpath=yes
20980 rm -f core conftest.err conftest.$ac_objext \
20981 conftest$ac_exeext conftest.$ac_ext
20982 LDFLAGS=$save_LDFLAGS
20983 libdir=$save_libdir
20987 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20989 # This implies no fast_install, which is unacceptable.
20990 # Some rework will be needed to allow for fast_install
20991 # before this can be enabled.
20992 hardcode_into_libs=yes
20994 # Append ld.so.conf contents to the search path
20995 if test -f /etc/ld.so.conf; then
20996 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' ' '`
20997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21000 # We used to test for /lib/ld.so.1 and disable shared libraries on
21001 # powerpc, because MkLinux only supported shared libraries with the
21002 # GNU dynamic linker. Since this was broken with cross compilers,
21003 # most powerpc-linux boxes support dynamic linking these days and
21004 # people can always --disable-shared, the test was removed, and we
21005 # assume the GNU/Linux dynamic linker is in use.
21006 dynamic_linker='GNU/Linux ld.so'
21009 netbsd*)
21010 version_type=sunos
21011 need_lib_prefix=no
21012 need_version=no
21013 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21016 dynamic_linker='NetBSD (a.out) ld.so'
21017 else
21018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21019 soname_spec='${libname}${release}${shared_ext}$major'
21020 dynamic_linker='NetBSD ld.elf_so'
21022 shlibpath_var=LD_LIBRARY_PATH
21023 shlibpath_overrides_runpath=yes
21024 hardcode_into_libs=yes
21027 newsos6)
21028 version_type=linux
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 shlibpath_var=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath=yes
21034 *nto* | *qnx*)
21035 version_type=qnx
21036 need_lib_prefix=no
21037 need_version=no
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21039 soname_spec='${libname}${release}${shared_ext}$major'
21040 shlibpath_var=LD_LIBRARY_PATH
21041 shlibpath_overrides_runpath=no
21042 hardcode_into_libs=yes
21043 dynamic_linker='ldqnx.so'
21046 openbsd*)
21047 version_type=sunos
21048 sys_lib_dlsearch_path_spec="/usr/lib"
21049 need_lib_prefix=no
21050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21051 case $host_os in
21052 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21053 *) need_version=no ;;
21054 esac
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21057 shlibpath_var=LD_LIBRARY_PATH
21058 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21059 case $host_os in
21060 openbsd2.[89] | openbsd2.[89].*)
21061 shlibpath_overrides_runpath=no
21064 shlibpath_overrides_runpath=yes
21066 esac
21067 else
21068 shlibpath_overrides_runpath=yes
21072 os2*)
21073 libname_spec='$name'
21074 shrext_cmds=".dll"
21075 need_lib_prefix=no
21076 library_names_spec='$libname${shared_ext} $libname.a'
21077 dynamic_linker='OS/2 ld.exe'
21078 shlibpath_var=LIBPATH
21081 osf3* | osf4* | osf5*)
21082 version_type=osf
21083 need_lib_prefix=no
21084 need_version=no
21085 soname_spec='${libname}${release}${shared_ext}$major'
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21087 shlibpath_var=LD_LIBRARY_PATH
21088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21092 rdos*)
21093 dynamic_linker=no
21096 solaris*)
21097 version_type=linux
21098 need_lib_prefix=no
21099 need_version=no
21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec='${libname}${release}${shared_ext}$major'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath=yes
21104 hardcode_into_libs=yes
21105 # ldd complains unless libraries are executable
21106 postinstall_cmds='chmod +x $lib'
21109 sunos4*)
21110 version_type=sunos
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21112 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 shlibpath_overrides_runpath=yes
21115 if test "$with_gnu_ld" = yes; then
21116 need_lib_prefix=no
21118 need_version=yes
21121 sysv4 | sysv4.3*)
21122 version_type=linux
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124 soname_spec='${libname}${release}${shared_ext}$major'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 case $host_vendor in
21127 sni)
21128 shlibpath_overrides_runpath=no
21129 need_lib_prefix=no
21130 runpath_var=LD_RUN_PATH
21132 siemens)
21133 need_lib_prefix=no
21135 motorola)
21136 need_lib_prefix=no
21137 need_version=no
21138 shlibpath_overrides_runpath=no
21139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21141 esac
21144 sysv4*MP*)
21145 if test -d /usr/nec ;then
21146 version_type=linux
21147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21148 soname_spec='$libname${shared_ext}.$major'
21149 shlibpath_var=LD_LIBRARY_PATH
21153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21154 version_type=freebsd-elf
21155 need_lib_prefix=no
21156 need_version=no
21157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21158 soname_spec='${libname}${release}${shared_ext}$major'
21159 shlibpath_var=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath=yes
21161 hardcode_into_libs=yes
21162 if test "$with_gnu_ld" = yes; then
21163 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21164 else
21165 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21166 case $host_os in
21167 sco3.2v5*)
21168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21170 esac
21172 sys_lib_dlsearch_path_spec='/usr/lib'
21175 tpf*)
21176 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21177 version_type=linux
21178 need_lib_prefix=no
21179 need_version=no
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 shlibpath_var=LD_LIBRARY_PATH
21182 shlibpath_overrides_runpath=no
21183 hardcode_into_libs=yes
21186 uts4*)
21187 version_type=linux
21188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 soname_spec='${libname}${release}${shared_ext}$major'
21190 shlibpath_var=LD_LIBRARY_PATH
21194 dynamic_linker=no
21196 esac
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21198 $as_echo "$dynamic_linker" >&6; }
21199 test "$dynamic_linker" = no && can_build_shared=no
21201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21202 if test "$GCC" = yes; then
21203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21206 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21207 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21209 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21210 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21252 hardcode_action_CXX=
21253 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21254 test -n "$runpath_var_CXX" ||
21255 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21257 # We can hardcode non-existent directories.
21258 if test "$hardcode_direct_CXX" != no &&
21259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21260 # have to relink, otherwise we might link with an installed library
21261 # when we should be linking with a yet-to-be-installed one
21262 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21263 test "$hardcode_minus_L_CXX" != no; then
21264 # Linking always hardcodes the temporary library directory.
21265 hardcode_action_CXX=relink
21266 else
21267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21268 hardcode_action_CXX=immediate
21270 else
21271 # We cannot hardcode anything, or else we can only hardcode existing
21272 # directories.
21273 hardcode_action_CXX=unsupported
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21276 $as_echo "$hardcode_action_CXX" >&6; }
21278 if test "$hardcode_action_CXX" = relink ||
21279 test "$inherit_rpath_CXX" = yes; then
21280 # Fast installation is not supported
21281 enable_fast_install=no
21282 elif test "$shlibpath_overrides_runpath" = yes ||
21283 test "$enable_shared" = no; then
21284 # Fast installation is not necessary
21285 enable_fast_install=needless
21294 fi # test -n "$compiler"
21296 CC=$lt_save_CC
21297 LDCXX=$LD
21298 LD=$lt_save_LD
21299 GCC=$lt_save_GCC
21300 with_gnu_ld=$lt_save_with_gnu_ld
21301 lt_cv_path_LDCXX=$lt_cv_path_LD
21302 lt_cv_path_LD=$lt_save_path_LD
21303 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21304 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21305 fi # test "$_lt_caught_CXX_error" != yes
21307 ac_ext=c
21308 ac_cpp='$CPP $CPPFLAGS'
21309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328 # Only expand once:
21334 # Identify the assembler which will work hand-in-glove with the newly
21335 # built GCC, so that we can examine its features. This is the assembler
21336 # which will be driven by the driver program.
21338 # If build != host, and we aren't building gas in-tree, we identify a
21339 # build->target assembler and hope that it will have the same features
21340 # as the host->target assembler we'll be using.
21341 gcc_cv_gas_major_version=
21342 gcc_cv_gas_minor_version=
21343 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21345 if test "${gcc_cv_as+set}" = set; then :
21347 else
21349 if test -x "$DEFAULT_ASSEMBLER"; then
21350 gcc_cv_as="$DEFAULT_ASSEMBLER"
21351 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21352 && test -f ../gas/Makefile \
21353 && test x$build = x$host; then
21354 gcc_cv_as=../gas/as-new$build_exeext
21355 elif test -x as$build_exeext; then
21356 # Build using assembler in the current directory.
21357 gcc_cv_as=./as$build_exeext
21358 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21359 gcc_cv_as="$AS_FOR_TARGET"
21360 else
21361 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21362 set dummy $AS_FOR_TARGET; ac_word=$2
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21364 $as_echo_n "checking for $ac_word... " >&6; }
21365 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 case $gcc_cv_as in
21369 [\\/]* | ?:[\\/]*)
21370 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21374 for as_dir in $PATH
21376 IFS=$as_save_IFS
21377 test -z "$as_dir" && as_dir=.
21378 for ac_exec_ext in '' $ac_executable_extensions; do
21379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21380 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21382 break 2
21384 done
21385 done
21386 IFS=$as_save_IFS
21389 esac
21391 gcc_cv_as=$ac_cv_path_gcc_cv_as
21392 if test -n "$gcc_cv_as"; then
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21394 $as_echo "$gcc_cv_as" >&6; }
21395 else
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21397 $as_echo "no" >&6; }
21404 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21406 case "$ORIGINAL_AS_FOR_TARGET" in
21407 ./as | ./as$build_exeext) ;;
21408 *) ac_config_files="$ac_config_files as:exec-tool.in"
21410 esac
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21413 $as_echo_n "checking what assembler to use... " >&6; }
21414 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21415 # Single tree build which includes gas. We want to prefer it
21416 # over whatever linker top-level may have detected, since
21417 # we'll use what we're building after installation anyway.
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21419 $as_echo "newly built gas" >&6; }
21420 in_tree_gas=yes
21421 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21422 for f in $gcc_cv_as_bfd_srcdir/configure \
21423 $gcc_cv_as_gas_srcdir/configure \
21424 $gcc_cv_as_gas_srcdir/configure.in \
21425 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21426 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21427 if test x$gcc_cv_gas_version != x; then
21428 break
21430 done
21431 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21432 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21433 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21434 case $gcc_cv_gas_patch_version in
21435 "") gcc_cv_gas_patch_version="0" ;;
21436 esac
21437 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21438 + $gcc_cv_gas_minor_version \) \* 1000 \
21439 + $gcc_cv_gas_patch_version`
21441 in_tree_gas_is_elf=no
21442 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21443 || (grep 'obj_format = multi' ../gas/Makefile \
21444 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21445 then
21446 in_tree_gas_is_elf=yes
21448 else
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21450 $as_echo "$gcc_cv_as" >&6; }
21451 in_tree_gas=no
21454 # Identify the linker which will work hand-in-glove with the newly
21455 # built GCC, so that we can examine its features. This is the linker
21456 # which will be driven by the driver program.
21458 # If build != host, and we aren't building gas in-tree, we identify a
21459 # build->target linker and hope that it will have the same features
21460 # as the host->target linker we'll be using.
21461 gcc_cv_gld_major_version=
21462 gcc_cv_gld_minor_version=
21463 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21464 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21466 if test "${gcc_cv_ld+set}" = set; then :
21468 else
21470 if test -x "$DEFAULT_LINKER"; then
21471 gcc_cv_ld="$DEFAULT_LINKER"
21472 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21473 && test -f ../ld/Makefile \
21474 && test x$build = x$host; then
21475 gcc_cv_ld=../ld/ld-new$build_exeext
21476 elif test -x collect-ld$build_exeext; then
21477 # Build using linker in the current directory.
21478 gcc_cv_ld=./collect-ld$build_exeext
21479 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21480 gcc_cv_ld="$LD_FOR_TARGET"
21481 else
21482 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21483 set dummy $LD_FOR_TARGET; ac_word=$2
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21485 $as_echo_n "checking for $ac_word... " >&6; }
21486 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21487 $as_echo_n "(cached) " >&6
21488 else
21489 case $gcc_cv_ld in
21490 [\\/]* | ?:[\\/]*)
21491 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21495 for as_dir in $PATH
21497 IFS=$as_save_IFS
21498 test -z "$as_dir" && as_dir=.
21499 for ac_exec_ext in '' $ac_executable_extensions; do
21500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21501 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21503 break 2
21505 done
21506 done
21507 IFS=$as_save_IFS
21510 esac
21512 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21513 if test -n "$gcc_cv_ld"; then
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21515 $as_echo "$gcc_cv_ld" >&6; }
21516 else
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21518 $as_echo "no" >&6; }
21525 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21526 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21528 # Check whether --with-plugin-ld was given.
21529 if test "${with_plugin_ld+set}" = set; then :
21530 withval=$with_plugin_ld; if test x"$withval" != x; then
21531 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21532 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21538 cat >>confdefs.h <<_ACEOF
21539 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21540 _ACEOF
21543 # Check to see if we are using gold instead of ld
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21545 $as_echo_n "checking whether we are using gold... " >&6; }
21546 ld_is_gold=no
21547 if test x$gcc_cv_ld != x; then
21548 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21549 | grep "GNU gold" > /dev/null; then
21550 ld_is_gold=yes
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21554 $as_echo "$ld_is_gold" >&6; }
21556 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21558 case "$ORIGINAL_LD_FOR_TARGET" in
21559 ./collect-ld | ./collect-ld$build_exeext) ;;
21560 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21562 esac
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21565 $as_echo_n "checking what linker to use... " >&6; }
21566 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21567 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21568 # Single tree build which includes ld. We want to prefer it
21569 # over whatever linker top-level may have detected, since
21570 # we'll use what we're building after installation anyway.
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21572 $as_echo "newly built ld" >&6; }
21573 in_tree_ld=yes
21574 in_tree_ld_is_elf=no
21575 if (grep 'EMUL = .*elf' ../ld/Makefile \
21576 || grep 'EMUL = .*linux' ../ld/Makefile \
21577 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21578 in_tree_ld_is_elf=yes
21579 elif test "$ld_is_gold" = yes; then
21580 in_tree_ld_is_elf=yes
21582 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
21584 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21585 if test x$gcc_cv_gld_version != x; then
21586 break
21588 done
21589 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21590 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21591 else
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21593 $as_echo "$gcc_cv_ld" >&6; }
21594 in_tree_ld=no
21597 # Figure out what nm we will be using.
21598 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21599 if test "${gcc_cv_nm+set}" = set; then :
21601 else
21603 if test -f $gcc_cv_binutils_srcdir/configure.in \
21604 && test -f ../binutils/Makefile \
21605 && test x$build = x$host; then
21606 gcc_cv_nm=../binutils/nm-new$build_exeext
21607 elif test -x nm$build_exeext; then
21608 gcc_cv_nm=./nm$build_exeext
21609 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21610 gcc_cv_nm="$NM_FOR_TARGET"
21611 else
21612 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21613 set dummy $NM_FOR_TARGET; ac_word=$2
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21615 $as_echo_n "checking for $ac_word... " >&6; }
21616 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21617 $as_echo_n "(cached) " >&6
21618 else
21619 case $gcc_cv_nm in
21620 [\\/]* | ?:[\\/]*)
21621 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21625 for as_dir in $PATH
21627 IFS=$as_save_IFS
21628 test -z "$as_dir" && as_dir=.
21629 for ac_exec_ext in '' $ac_executable_extensions; do
21630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21631 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21633 break 2
21635 done
21636 done
21637 IFS=$as_save_IFS
21640 esac
21642 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21643 if test -n "$gcc_cv_nm"; then
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21645 $as_echo "$gcc_cv_nm" >&6; }
21646 else
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21648 $as_echo "no" >&6; }
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21656 $as_echo_n "checking what nm to use... " >&6; }
21657 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21658 # Single tree build which includes binutils.
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21660 $as_echo "newly built nm" >&6; }
21661 in_tree_nm=yes
21662 else
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21664 $as_echo "$gcc_cv_nm" >&6; }
21665 in_tree_nm=no
21668 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21670 case "$ORIGINAL_NM_FOR_TARGET" in
21671 ./nm | ./nm$build_exeext) ;;
21672 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21674 esac
21677 # Figure out what objdump we will be using.
21678 if test "${gcc_cv_objdump+set}" = set; then :
21680 else
21682 if test -f $gcc_cv_binutils_srcdir/configure.in \
21683 && test -f ../binutils/Makefile \
21684 && test x$build = x$host; then
21685 # Single tree build which includes binutils.
21686 gcc_cv_objdump=../binutils/objdump$build_exeext
21687 elif test -x objdump$build_exeext; then
21688 gcc_cv_objdump=./objdump$build_exeext
21689 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21690 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21691 else
21692 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21693 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21695 $as_echo_n "checking for $ac_word... " >&6; }
21696 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21697 $as_echo_n "(cached) " >&6
21698 else
21699 case $gcc_cv_objdump in
21700 [\\/]* | ?:[\\/]*)
21701 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21705 for as_dir in $PATH
21707 IFS=$as_save_IFS
21708 test -z "$as_dir" && as_dir=.
21709 for ac_exec_ext in '' $ac_executable_extensions; do
21710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21711 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21713 break 2
21715 done
21716 done
21717 IFS=$as_save_IFS
21720 esac
21722 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21723 if test -n "$gcc_cv_objdump"; then
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21725 $as_echo "$gcc_cv_objdump" >&6; }
21726 else
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21728 $as_echo "no" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21736 $as_echo_n "checking what objdump to use... " >&6; }
21737 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21738 # Single tree build which includes binutils.
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21740 $as_echo "newly built objdump" >&6; }
21741 elif test x$gcc_cv_objdump = x; then
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21743 $as_echo "not found" >&6; }
21744 else
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21746 $as_echo "$gcc_cv_objdump" >&6; }
21749 # Figure out what readelf we will be using.
21750 if test "${gcc_cv_readelf+set}" = set; then :
21752 else
21754 if test -f $gcc_cv_binutils_srcdir/configure.in \
21755 && test -f ../binutils/Makefile \
21756 && test x$build = x$host; then
21757 # Single tree build which includes binutils.
21758 gcc_cv_readelf=../binutils/readelf$build_exeext
21759 elif test -x readelf$build_exeext; then
21760 gcc_cv_readelf=./readelf$build_exeext
21761 else
21762 # Extract the first word of "readelf", so it can be a program name with args.
21763 set dummy readelf; ac_word=$2
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21765 $as_echo_n "checking for $ac_word... " >&6; }
21766 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21767 $as_echo_n "(cached) " >&6
21768 else
21769 case $gcc_cv_readelf in
21770 [\\/]* | ?:[\\/]*)
21771 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21775 for as_dir in $PATH
21777 IFS=$as_save_IFS
21778 test -z "$as_dir" && as_dir=.
21779 for ac_exec_ext in '' $ac_executable_extensions; do
21780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21781 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21783 break 2
21785 done
21786 done
21787 IFS=$as_save_IFS
21790 esac
21792 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21793 if test -n "$gcc_cv_readelf"; then
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21795 $as_echo "$gcc_cv_readelf" >&6; }
21796 else
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21798 $as_echo "no" >&6; }
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21806 $as_echo_n "checking what readelf to use... " >&6; }
21807 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21808 # Single tree build which includes binutils.
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21810 $as_echo "newly built readelf" >&6; }
21811 elif test x$gcc_cv_readelf = x; then
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21813 $as_echo "not found" >&6; }
21814 else
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21816 $as_echo "$gcc_cv_readelf" >&6; }
21819 # Figure out what assembler alignment features are present.
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21821 $as_echo_n "checking assembler flags... " >&6; }
21822 if test "${gcc_cv_as_flags+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 case "$target" in
21826 i[34567]86-*-linux*)
21827 gcc_cv_as_flags="--32"
21829 powerpc*-*-darwin*)
21830 gcc_cv_as_flags="-arch ppc"
21833 gcc_cv_as_flags=" "
21835 esac
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21838 $as_echo "$gcc_cv_as_flags" >&6; }
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21841 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21842 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21845 gcc_cv_as_balign_and_p2align=no
21846 if test $in_tree_gas = yes; then
21847 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21848 then gcc_cv_as_balign_and_p2align=yes
21850 elif test x$gcc_cv_as != x; then
21851 $as_echo '.balign 4
21852 .p2align 2' > conftest.s
21853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21858 test $ac_status = 0; }; }
21859 then
21860 gcc_cv_as_balign_and_p2align=yes
21861 else
21862 echo "configure: failed program was" >&5
21863 cat conftest.s >&5
21865 rm -f conftest.o conftest.s
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21869 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21870 if test $gcc_cv_as_balign_and_p2align = yes; then
21872 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21877 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21878 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21880 else
21881 gcc_cv_as_max_skip_p2align=no
21882 if test $in_tree_gas = yes; then
21883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21884 then gcc_cv_as_max_skip_p2align=yes
21886 elif test x$gcc_cv_as != x; then
21887 $as_echo '.p2align 4,,7' > conftest.s
21888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21894 then
21895 gcc_cv_as_max_skip_p2align=yes
21896 else
21897 echo "configure: failed program was" >&5
21898 cat conftest.s >&5
21900 rm -f conftest.o conftest.s
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21904 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21905 if test $gcc_cv_as_max_skip_p2align = yes; then
21907 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21912 $as_echo_n "checking assembler for .literal16... " >&6; }
21913 if test "${gcc_cv_as_literal16+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21915 else
21916 gcc_cv_as_literal16=no
21917 if test $in_tree_gas = yes; then
21918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21919 then gcc_cv_as_literal16=yes
21921 elif test x$gcc_cv_as != x; then
21922 $as_echo '.literal16' > conftest.s
21923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21928 test $ac_status = 0; }; }
21929 then
21930 gcc_cv_as_literal16=yes
21931 else
21932 echo "configure: failed program was" >&5
21933 cat conftest.s >&5
21935 rm -f conftest.o conftest.s
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21939 $as_echo "$gcc_cv_as_literal16" >&6; }
21940 if test $gcc_cv_as_literal16 = yes; then
21942 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21947 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21948 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21949 $as_echo_n "(cached) " >&6
21950 else
21951 gcc_cv_as_subsection_m1=no
21952 if test $in_tree_gas = yes; then
21953 if test $in_tree_gas_is_elf = yes \
21954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21955 then gcc_cv_as_subsection_m1=yes
21957 elif test x$gcc_cv_as != x; then
21958 $as_echo 'conftest_label1: .word 0
21959 .subsection -1
21960 conftest_label2: .word 0
21961 .previous' > conftest.s
21962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967 test $ac_status = 0; }; }
21968 then
21969 if test x$gcc_cv_nm != x; then
21970 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21971 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21972 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21973 then :
21974 else gcc_cv_as_subsection_m1=yes
21976 rm -f conftest.nm1 conftest.nm2
21978 else
21979 echo "configure: failed program was" >&5
21980 cat conftest.s >&5
21982 rm -f conftest.o conftest.s
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21986 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21987 if test $gcc_cv_as_subsection_m1 = yes; then
21989 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21994 $as_echo_n "checking assembler for .weak... " >&6; }
21995 if test "${gcc_cv_as_weak+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 gcc_cv_as_weak=no
21999 if test $in_tree_gas = yes; then
22000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22001 then gcc_cv_as_weak=yes
22003 elif test x$gcc_cv_as != x; then
22004 $as_echo ' .weak foobar' > conftest.s
22005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22010 test $ac_status = 0; }; }
22011 then
22012 gcc_cv_as_weak=yes
22013 else
22014 echo "configure: failed program was" >&5
22015 cat conftest.s >&5
22017 rm -f conftest.o conftest.s
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22021 $as_echo "$gcc_cv_as_weak" >&6; }
22022 if test $gcc_cv_as_weak = yes; then
22024 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22029 $as_echo_n "checking assembler for .weakref... " >&6; }
22030 if test "${gcc_cv_as_weakref+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22032 else
22033 gcc_cv_as_weakref=no
22034 if test $in_tree_gas = yes; then
22035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22036 then gcc_cv_as_weakref=yes
22038 elif test x$gcc_cv_as != x; then
22039 $as_echo ' .weakref foobar, barfnot' > conftest.s
22040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22042 (eval $ac_try) 2>&5
22043 ac_status=$?
22044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22045 test $ac_status = 0; }; }
22046 then
22047 gcc_cv_as_weakref=yes
22048 else
22049 echo "configure: failed program was" >&5
22050 cat conftest.s >&5
22052 rm -f conftest.o conftest.s
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22056 $as_echo "$gcc_cv_as_weakref" >&6; }
22057 if test $gcc_cv_as_weakref = yes; then
22059 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22064 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22065 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22066 $as_echo_n "(cached) " >&6
22067 else
22068 gcc_cv_as_nsubspa_comdat=no
22069 if test $in_tree_gas = yes; then
22070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22071 then gcc_cv_as_nsubspa_comdat=yes
22073 elif test x$gcc_cv_as != x; then
22074 $as_echo ' .SPACE $TEXT$
22075 .NSUBSPA $CODE$,COMDAT' > conftest.s
22076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22081 test $ac_status = 0; }; }
22082 then
22083 gcc_cv_as_nsubspa_comdat=yes
22084 else
22085 echo "configure: failed program was" >&5
22086 cat conftest.s >&5
22088 rm -f conftest.o conftest.s
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22092 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22093 if test $gcc_cv_as_nsubspa_comdat = yes; then
22095 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22099 # .hidden needs to be supported in both the assembler and the linker,
22100 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22101 # This is irritatingly difficult to feature test for; we have to check the
22102 # date string after the version number. If we've got an in-tree
22103 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22104 # to be safe.
22105 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22107 $as_echo_n "checking assembler for .hidden... " >&6; }
22108 if test "${gcc_cv_as_hidden+set}" = set; then :
22109 $as_echo_n "(cached) " >&6
22110 else
22111 gcc_cv_as_hidden=no
22112 if test $in_tree_gas = yes; then
22113 if test $in_tree_gas_is_elf = yes \
22114 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22115 then gcc_cv_as_hidden=yes
22117 elif test x$gcc_cv_as != x; then
22118 $as_echo ' .hidden foobar
22119 foobar:' > conftest.s
22120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }; }
22126 then
22128 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22129 # STV_HIDDEN, so disable .hidden support if so.
22130 case "${target}" in
22131 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22132 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22133 cat > conftest.s <<EOF
22134 .globl hidden
22135 .hidden hidden
22136 hidden:
22137 .globl default
22138 .set default,hidden
22140 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22141 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22142 grep '\.hidden default' > /dev/null; then
22143 gcc_cv_as_hidden=no
22144 else
22145 gcc_cv_as_hidden=yes
22147 else
22148 # Assume bug is present if objdump is missing.
22149 gcc_cv_as_hidden=no
22153 gcc_cv_as_hidden=yes
22155 esac
22156 else
22157 echo "configure: failed program was" >&5
22158 cat conftest.s >&5
22160 rm -f conftest.o conftest.s
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22164 $as_echo "$gcc_cv_as_hidden" >&6; }
22166 case "${target}" in
22167 *-*-darwin*)
22168 # Darwin as has some visibility support, though with a different syntax.
22169 gcc_cv_as_hidden=yes
22171 esac
22173 # gnu_indirect_function type is an extension proposed at
22174 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22175 # selection of function implementation
22176 # Check whether --enable-gnu-indirect-function was given.
22177 if test "${enable_gnu_indirect_function+set}" = set; then :
22178 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22179 yes | no) ;;
22180 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22181 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22182 esac
22183 else
22184 enable_gnu_indirect_function="$default_gnu_indirect_function"
22187 if test x$enable_gnu_indirect_function = xyes; then
22189 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22193 if test $in_tree_ld != yes ; then
22194 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22195 if echo "$ld_ver" | grep GNU > /dev/null; then
22196 if test x"$ld_is_gold" = xyes; then
22197 # GNU gold --version looks like this:
22199 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22201 # We extract the binutils version which is more familiar and specific
22202 # than the gold version.
22203 ld_vers=`echo $ld_ver | sed -n \
22204 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22205 else
22206 # GNU ld --version looks like this:
22208 # GNU ld (GNU Binutils) 2.21.51.20110225
22209 ld_vers=`echo $ld_ver | sed -n \
22210 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22212 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'`
22213 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22214 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22215 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22216 else
22217 case "${target}" in
22218 *-*-solaris2*)
22219 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22220 # format.
22222 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22223 # /usr/ccs/bin/ld has been configured.
22224 ld_ver=`$gcc_cv_ld -V 2>&1`
22225 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22226 ld_vers=`echo $ld_ver | sed -n \
22227 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22228 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22229 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22232 esac
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22237 $as_echo_n "checking linker for .hidden support... " >&6; }
22238 if test "${gcc_cv_ld_hidden+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22240 else
22241 if test $in_tree_ld = yes ; then
22242 gcc_cv_ld_hidden=no
22243 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 \
22244 && test $in_tree_ld_is_elf = yes; then
22245 gcc_cv_ld_hidden=yes
22247 else
22248 gcc_cv_ld_hidden=yes
22249 if test x"$ld_is_gold" = xyes; then
22251 elif echo "$ld_ver" | grep GNU > /dev/null; then
22252 if test 0"$ld_date" -lt 20020404; then
22253 if test -n "$ld_date"; then
22254 # If there was date string, but was earlier than 2002-04-04, fail
22255 gcc_cv_ld_hidden=no
22256 elif test -z "$ld_vers"; then
22257 # If there was no date string nor ld version number, something is wrong
22258 gcc_cv_ld_hidden=no
22259 else
22260 test -z "$ld_vers_patch" && ld_vers_patch=0
22261 if test "$ld_vers_major" -lt 2; then
22262 gcc_cv_ld_hidden=no
22263 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22264 gcc_cv_ld_hidden="no"
22265 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22266 gcc_cv_ld_hidden=no
22270 else
22271 case "${target}" in
22272 *-*-darwin*)
22273 # Darwin ld has some visibility support.
22274 gcc_cv_ld_hidden=yes
22276 hppa64*-*-hpux* | ia64*-*-hpux*)
22277 gcc_cv_ld_hidden=yes
22279 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22280 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22281 # .symbolic was only added in Solaris 9 12/02.
22282 gcc_cv_ld_hidden=yes
22285 gcc_cv_ld_hidden=no
22287 esac
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22292 $as_echo "$gcc_cv_ld_hidden" >&6; }
22293 libgcc_visibility=no
22296 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22297 libgcc_visibility=yes
22299 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22304 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22305 gcc_cv_ld_ro_rw_mix=unknown
22306 if test $in_tree_ld = yes ; then
22307 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 \
22308 && test $in_tree_ld_is_elf = yes; then
22309 gcc_cv_ld_ro_rw_mix=read-write
22311 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22312 echo '.section myfoosect, "a"' > conftest1.s
22313 echo '.section myfoosect, "aw"' > conftest2.s
22314 echo '.byte 1' >> conftest2.s
22315 echo '.section myfoosect, "a"' > conftest3.s
22316 echo '.byte 0' >> conftest3.s
22317 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22318 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22319 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22320 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22321 conftest2.o conftest3.o > /dev/null 2>&1; then
22322 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22323 | sed -e '/myfoosect/!d' -e N`
22324 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22325 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22326 gcc_cv_ld_ro_rw_mix=read-only
22327 else
22328 gcc_cv_ld_ro_rw_mix=read-write
22332 rm -f conftest.* conftest[123].*
22334 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22336 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22340 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22342 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22343 case "${target}" in
22344 *-*-solaris2*)
22346 # Solaris 2 ld -V output looks like this for a regular version:
22348 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22350 # but test versions add stuff at the end:
22352 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22354 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22355 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22356 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22357 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22358 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22359 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22362 esac
22365 # Check whether --enable-initfini-array was given.
22366 if test "${enable_initfini_array+set}" = set; then :
22367 enableval=$enable_initfini_array;
22368 else
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22371 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22372 if test "${gcc_cv_initfini_array+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
22374 else
22375 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22376 case "${target}" in
22377 ia64-*)
22378 if test "$cross_compiling" = yes; then :
22379 gcc_cv_initfini_array=no
22380 else
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22384 #ifndef __ELF__
22385 #error Not an ELF OS
22386 #endif
22387 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22388 if it can be used. */
22389 static int x = -1;
22390 int main (void) { return x; }
22391 int foo (void) { x = 0; }
22392 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22394 _ACEOF
22395 if ac_fn_c_try_run "$LINENO"; then :
22396 gcc_cv_initfini_array=yes
22397 else
22398 gcc_cv_initfini_array=no
22400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22401 conftest.$ac_objext conftest.beam conftest.$ac_ext
22405 gcc_cv_initfini_array=no
22406 if test $in_tree_ld = yes ; then
22407 if test "$gcc_cv_gld_major_version" -eq 2 \
22408 -a "$gcc_cv_gld_minor_version" -ge 22 \
22409 -o "$gcc_cv_gld_major_version" -gt 2 \
22410 && test $in_tree_ld_is_elf = yes; then
22411 gcc_cv_initfini_array=yes
22413 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22414 cat > conftest.s <<\EOF
22415 .section .dtors,"a",%progbits
22416 .balign 4
22417 .byte 'A', 'A', 'A', 'A'
22418 .section .ctors,"a",%progbits
22419 .balign 4
22420 .byte 'B', 'B', 'B', 'B'
22421 .section .fini_array.65530,"a",%progbits
22422 .balign 4
22423 .byte 'C', 'C', 'C', 'C'
22424 .section .init_array.65530,"a",%progbits
22425 .balign 4
22426 .byte 'D', 'D', 'D', 'D'
22427 .section .dtors.64528,"a",%progbits
22428 .balign 4
22429 .byte 'E', 'E', 'E', 'E'
22430 .section .ctors.64528,"a",%progbits
22431 .balign 4
22432 .byte 'F', 'F', 'F', 'F'
22433 .section .fini_array.01005,"a",%progbits
22434 .balign 4
22435 .byte 'G', 'G', 'G', 'G'
22436 .section .init_array.01005,"a",%progbits
22437 .balign 4
22438 .byte 'H', 'H', 'H', 'H'
22439 .text
22440 .globl _start
22441 _start:
22443 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22444 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22445 && $gcc_cv_objdump -s -j .init_array conftest \
22446 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22447 && $gcc_cv_objdump -s -j .fini_array conftest \
22448 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22449 gcc_cv_initfini_array=yes
22451 rm -f conftest conftest.*
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22456 #ifndef __ELF__
22457 # error Not an ELF OS
22458 #endif
22459 #include <stdlib.h>
22460 #if defined __GLIBC_PREREQ
22461 # if __GLIBC_PREREQ (2, 4)
22462 # else
22463 # error GLIBC 2.4 required
22464 # endif
22465 #else
22466 # if defined __sun__ && defined __svr4__
22467 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22468 # else
22469 # error The C library not known to support .init_array/.fini_array
22470 # endif
22471 #endif
22473 _ACEOF
22474 if ac_fn_c_try_cpp "$LINENO"; then :
22476 else
22477 gcc_cv_initfini_array=no
22479 rm -f conftest.err conftest.$ac_ext;;
22480 esac
22481 else
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22483 $as_echo_n "checking cross compile... guessing... " >&6; }
22484 gcc_cv_initfini_array=no
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22488 $as_echo "$gcc_cv_initfini_array" >&6; }
22489 enable_initfini_array=$gcc_cv_initfini_array
22493 if test $enable_initfini_array = yes; then
22495 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22499 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22501 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22502 if test "${gcc_cv_as_leb128+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22504 else
22505 gcc_cv_as_leb128=no
22506 if test $in_tree_gas = yes; then
22507 if test $in_tree_gas_is_elf = yes \
22508 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22509 then gcc_cv_as_leb128=yes
22511 elif test x$gcc_cv_as != x; then
22512 $as_echo ' .data
22513 .uleb128 L2 - L1
22515 .uleb128 1280
22516 .sleb128 -1010
22517 L2:' > conftest.s
22518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22520 (eval $ac_try) 2>&5
22521 ac_status=$?
22522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22523 test $ac_status = 0; }; }
22524 then
22525 # GAS versions before 2.11 do not support uleb128,
22526 # despite appearing to.
22527 # ??? There exists an elf-specific test that will crash
22528 # the assembler. Perhaps it's better to figure out whether
22529 # arbitrary sections are supported and try the test.
22530 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22531 if echo "$as_ver" | grep GNU > /dev/null; then
22532 as_vers=`echo $as_ver | sed -n \
22533 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22534 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22535 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22536 if test $as_major -eq 2 && test $as_minor -lt 11
22537 then :
22538 else gcc_cv_as_leb128=yes
22541 else
22542 echo "configure: failed program was" >&5
22543 cat conftest.s >&5
22545 rm -f conftest.o conftest.s
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22549 $as_echo "$gcc_cv_as_leb128" >&6; }
22550 if test $gcc_cv_as_leb128 = yes; then
22552 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22556 # Check if we have assembler support for unwind directives.
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22558 $as_echo_n "checking assembler for cfi directives... " >&6; }
22559 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22561 else
22562 gcc_cv_as_cfi_directive=no
22563 if test x$gcc_cv_as != x; then
22564 $as_echo ' .text
22565 .cfi_startproc
22566 .cfi_offset 0, 0
22567 .cfi_same_value 1
22568 .cfi_def_cfa 1, 2
22569 .cfi_escape 1, 2, 3, 4, 5
22570 .cfi_endproc' > conftest.s
22571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }
22577 then
22578 case "$target" in
22579 *-*-solaris*)
22580 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22581 # read-only and read-write sections, we need to make sure that the
22582 # assembler used emits read-write .eh_frame sections.
22583 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22584 if test "x$gcc_cv_objdump" != x; then
22585 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22586 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22587 gcc_cv_as_cfi_directive=no
22588 else
22589 case "$target" in
22590 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22591 # On Solaris/x86, make sure that GCC and gas agree on using
22592 # read-only .eh_frame sections for 64-bit.
22593 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22594 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22595 sed -e /.eh_frame/!d -e N | \
22596 grep READONLY > /dev/null; then
22597 gcc_cv_as_cfi_directive=yes
22598 else
22599 gcc_cv_as_cfi_directive=no
22603 gcc_cv_as_cfi_directive=yes
22605 esac
22607 else
22608 # no objdump, err on the side of caution
22609 gcc_cv_as_cfi_directive=no
22611 else
22612 gcc_cv_as_cfi_directive=yes
22615 *-*-*)
22616 gcc_cv_as_cfi_directive=yes
22618 esac
22619 else
22620 echo "configure: failed program was" >&5
22621 cat conftest.s >&5
22623 rm -f conftest.o conftest.s
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22627 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22629 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22631 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22632 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22633 $as_echo_n "(cached) " >&6
22634 else
22635 gcc_cv_as_cfi_advance_working=no
22636 if test x$gcc_cv_as != x; then
22637 $as_echo ' .text
22638 .cfi_startproc
22639 .cfi_adjust_cfa_offset 64
22640 .skip 75040, 0
22641 .cfi_adjust_cfa_offset 128
22642 .cfi_endproc' > conftest.s
22643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22648 test $ac_status = 0; }; }
22649 then
22651 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22652 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22653 gcc_cv_as_cfi_advance_working=yes
22656 else
22657 echo "configure: failed program was" >&5
22658 cat conftest.s >&5
22660 rm -f conftest.o conftest.s
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22664 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22666 else
22667 # no objdump, err on the side of caution
22668 gcc_cv_as_cfi_advance_working=no
22672 cat >>confdefs.h <<_ACEOF
22673 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22674 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22675 _ACEOF
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22680 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22681 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22682 $as_echo_n "(cached) " >&6
22683 else
22684 gcc_cv_as_cfi_personality_directive=no
22685 if test x$gcc_cv_as != x; then
22686 $as_echo ' .text
22687 .cfi_startproc
22688 .cfi_personality 0, symbol
22689 .cfi_endproc' > conftest.s
22690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695 test $ac_status = 0; }; }
22696 then
22697 gcc_cv_as_cfi_personality_directive=yes
22698 else
22699 echo "configure: failed program was" >&5
22700 cat conftest.s >&5
22702 rm -f conftest.o conftest.s
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22706 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22711 then echo 1; else echo 0; fi`
22712 _ACEOF
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22716 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22717 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22719 else
22720 gcc_cv_as_cfi_sections_directive=no
22721 if test x$gcc_cv_as != x; then
22722 $as_echo ' .text
22723 .cfi_sections .debug_frame, .eh_frame
22724 .cfi_startproc
22725 .cfi_endproc' > conftest.s
22726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22731 test $ac_status = 0; }; }
22732 then
22733 case $target_os in
22734 win32 | pe | cygwin* | mingw32* | uwin*)
22735 # Need to check that we generated the correct relocation for the
22736 # .debug_frame section. This was fixed for binutils 2.21.
22737 gcc_cv_as_cfi_sections_directive=no
22738 if test "x$gcc_cv_objdump" != x; then
22739 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22740 grep secrel > /dev/null; then
22741 gcc_cv_as_cfi_sections_directive=yes
22746 gcc_cv_as_cfi_sections_directive=yes
22748 esac
22749 else
22750 echo "configure: failed program was" >&5
22751 cat conftest.s >&5
22753 rm -f conftest.o conftest.s
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22757 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22761 cat >>confdefs.h <<_ACEOF
22762 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22763 then echo 1; else echo 0; fi`
22764 _ACEOF
22767 # GAS versions up to and including 2.11.0 may mis-optimize
22768 # .eh_frame data.
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22770 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22771 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22773 else
22774 gcc_cv_as_eh_frame=no
22775 if test $in_tree_gas = yes; then
22776 if test $in_tree_gas_is_elf = yes \
22777 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22778 then gcc_cv_as_eh_frame=yes
22780 elif test x$gcc_cv_as != x; then
22781 $as_echo ' .text
22782 .LFB1:
22783 .4byte 0
22784 .L1:
22785 .4byte 0
22786 .LFE1:
22787 .section .eh_frame,"aw",@progbits
22788 __FRAME_BEGIN__:
22789 .4byte .LECIE1-.LSCIE1
22790 .LSCIE1:
22791 .4byte 0x0
22792 .byte 0x1
22793 .ascii "z\0"
22794 .byte 0x1
22795 .byte 0x78
22796 .byte 0x1a
22797 .byte 0x0
22798 .byte 0x4
22799 .4byte 1
22800 .p2align 1
22801 .LECIE1:
22802 .LSFDE1:
22803 .4byte .LEFDE1-.LASFDE1
22804 .LASFDE1:
22805 .4byte .LASFDE1-__FRAME_BEGIN__
22806 .4byte .LFB1
22807 .4byte .LFE1-.LFB1
22808 .byte 0x4
22809 .4byte .LFE1-.LFB1
22810 .byte 0x4
22811 .4byte .L1-.LFB1
22812 .LEFDE1:' > conftest.s
22813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815 (eval $ac_try) 2>&5
22816 ac_status=$?
22817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818 test $ac_status = 0; }; }
22819 then
22820 cat > conftest.lit <<EOF
22821 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22822 0010 01000000 12000000 18000000 00000000 ................
22823 0020 08000000 04080000 0044 .........D
22825 cat > conftest.big <<EOF
22826 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22827 0010 00000001 00000012 00000018 00000000 ................
22828 0020 00000008 04000000 0844 .........D
22830 # If the assembler didn't choke, and we can objdump,
22831 # and we got the correct data, then succeed.
22832 # The text in the here-document typically retains its unix-style line
22833 # endings, while the output of objdump will use host line endings.
22834 # Therefore, use diff -b for the comparisons.
22835 if test x$gcc_cv_objdump != x \
22836 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22837 | tail -3 > conftest.got \
22838 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22839 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22840 then
22841 gcc_cv_as_eh_frame=yes
22842 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22844 (eval $ac_try) 2>&5
22845 ac_status=$?
22846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22847 test $ac_status = 0; }; }; then
22848 gcc_cv_as_eh_frame=buggy
22849 else
22850 # Uh oh, what do we do now?
22851 gcc_cv_as_eh_frame=no
22853 else
22854 echo "configure: failed program was" >&5
22855 cat conftest.s >&5
22857 rm -f conftest.o conftest.s
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22861 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22864 if test $gcc_cv_as_eh_frame = buggy; then
22866 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22871 $as_echo_n "checking assembler for section merging support... " >&6; }
22872 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22873 $as_echo_n "(cached) " >&6
22874 else
22875 gcc_cv_as_shf_merge=no
22876 if test $in_tree_gas = yes; then
22877 if test $in_tree_gas_is_elf = yes \
22878 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22879 then gcc_cv_as_shf_merge=yes
22881 elif test x$gcc_cv_as != x; then
22882 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888 test $ac_status = 0; }; }
22889 then
22890 gcc_cv_as_shf_merge=yes
22891 else
22892 echo "configure: failed program was" >&5
22893 cat conftest.s >&5
22895 rm -f conftest.o conftest.s
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22899 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22901 if test $gcc_cv_as_shf_merge = no; then
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22903 $as_echo_n "checking assembler for section merging support... " >&6; }
22904 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22905 $as_echo_n "(cached) " >&6
22906 else
22907 gcc_cv_as_shf_merge=no
22908 if test $in_tree_gas = yes; then
22909 if test $in_tree_gas_is_elf = yes \
22910 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22911 then gcc_cv_as_shf_merge=yes
22913 elif test x$gcc_cv_as != x; then
22914 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22917 (eval $ac_try) 2>&5
22918 ac_status=$?
22919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22920 test $ac_status = 0; }; }
22921 then
22922 gcc_cv_as_shf_merge=yes
22923 else
22924 echo "configure: failed program was" >&5
22925 cat conftest.s >&5
22927 rm -f conftest.o conftest.s
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22931 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22937 _ACEOF
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22941 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22942 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 gcc_cv_as_comdat_group=no
22946 if test $in_tree_gas = yes; then
22947 if test $in_tree_gas_is_elf = yes \
22948 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22949 then gcc_cv_as_comdat_group=yes
22951 elif test x$gcc_cv_as != x; then
22952 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22955 (eval $ac_try) 2>&5
22956 ac_status=$?
22957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22958 test $ac_status = 0; }; }
22959 then
22960 gcc_cv_as_comdat_group=yes
22961 else
22962 echo "configure: failed program was" >&5
22963 cat conftest.s >&5
22965 rm -f conftest.o conftest.s
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22969 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22971 if test $gcc_cv_as_comdat_group = yes; then
22972 gcc_cv_as_comdat_group_percent=no
22973 gcc_cv_as_comdat_group_group=no
22974 else
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22976 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22977 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22978 $as_echo_n "(cached) " >&6
22979 else
22980 gcc_cv_as_comdat_group_percent=no
22981 if test $in_tree_gas = yes; then
22982 if test $in_tree_gas_is_elf = yes \
22983 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22984 then gcc_cv_as_comdat_group_percent=yes
22986 elif test x$gcc_cv_as != x; then
22987 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22994 then
22995 gcc_cv_as_comdat_group_percent=yes
22996 else
22997 echo "configure: failed program was" >&5
22998 cat conftest.s >&5
23000 rm -f conftest.o conftest.s
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23004 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23006 if test $gcc_cv_as_comdat_group_percent = yes; then
23007 gcc_cv_as_comdat_group_group=no
23008 else
23009 case "${target}" in
23010 # Sun as uses a completely different syntax.
23011 *-*-solaris2*)
23012 case "${target}" in
23013 sparc*-*-solaris2*)
23014 conftest_s='
23015 .group foo,".text%foo",#comdat
23016 .section ".text%foo", #alloc,#execinstr,#progbits
23017 .globl foo
23018 foo:
23021 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23022 conftest_s='
23023 .group foo,.text%foo,#comdat
23024 .section .text%foo, "ax", @progbits
23025 .globl foo
23026 foo:
23029 esac
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23031 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23032 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23033 $as_echo_n "(cached) " >&6
23034 else
23035 gcc_cv_as_comdat_group_group=no
23036 if test x$gcc_cv_as != x; then
23037 $as_echo "$conftest_s" > conftest.s
23038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23040 (eval $ac_try) 2>&5
23041 ac_status=$?
23042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23043 test $ac_status = 0; }; }
23044 then
23045 gcc_cv_as_comdat_group_group=yes
23046 else
23047 echo "configure: failed program was" >&5
23048 cat conftest.s >&5
23050 rm -f conftest.o conftest.s
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23054 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23057 esac
23060 if test x"$ld_is_gold" = xyes; then
23061 comdat_group=yes
23062 elif test $in_tree_ld = yes ; then
23063 comdat_group=no
23064 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 \
23065 && test $in_tree_ld_is_elf = yes; then
23066 comdat_group=yes
23068 elif echo "$ld_ver" | grep GNU > /dev/null; then
23069 comdat_group=yes
23070 if test 0"$ld_date" -lt 20050308; then
23071 if test -n "$ld_date"; then
23072 # If there was date string, but was earlier than 2005-03-08, fail
23073 comdat_group=no
23074 elif test "$ld_vers_major" -lt 2; then
23075 comdat_group=no
23076 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23077 comdat_group=no
23080 else
23081 case "${target}" in
23082 *-*-solaris2.1[1-9]*)
23083 comdat_group=no
23084 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23085 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23086 # version 1.688.
23088 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23089 # least ld version 1.2267.
23090 if test "$ld_vers_major" -gt 1; then
23091 comdat_group=yes
23092 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23093 comdat_group=yes
23094 elif test "$ld_vers_minor" -ge 2267; then
23095 comdat_group=yes
23099 # Assume linkers other than GNU ld don't support COMDAT group.
23100 comdat_group=no
23102 esac
23104 # Allow overriding the automatic COMDAT group tests above.
23105 # Check whether --enable-comdat was given.
23106 if test "${enable_comdat+set}" = set; then :
23107 enableval=$enable_comdat; comdat_group="$enable_comdat"
23110 if test $comdat_group = no; then
23111 gcc_cv_as_comdat_group=no
23112 gcc_cv_as_comdat_group_percent=no
23113 gcc_cv_as_comdat_group_group=no
23116 cat >>confdefs.h <<_ACEOF
23117 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23118 || test $gcc_cv_as_comdat_group_percent = yes \
23119 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23120 _ACEOF
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23124 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23125 if test "${gcc_cv_as_discriminator+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23127 else
23128 gcc_cv_as_discriminator=no
23129 if test $in_tree_gas = yes; then
23130 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23131 then gcc_cv_as_discriminator=yes
23133 elif test x$gcc_cv_as != x; then
23134 $as_echo ' .text
23135 .file 1 "conf.c"
23136 .loc 1 1 0 discriminator 1' > conftest.s
23137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23142 test $ac_status = 0; }; }
23143 then
23144 gcc_cv_as_discriminator=yes
23145 else
23146 echo "configure: failed program was" >&5
23147 cat conftest.s >&5
23149 rm -f conftest.o conftest.s
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23153 $as_echo "$gcc_cv_as_discriminator" >&6; }
23154 if test $gcc_cv_as_discriminator = yes; then
23156 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23160 # Thread-local storage - the check is heavily parameterized.
23161 conftest_s=
23162 tls_first_major=
23163 tls_first_minor=
23164 tls_as_opt=
23165 case "$target" in
23166 alpha*-*-*)
23167 conftest_s='
23168 .section ".tdata","awT",@progbits
23169 foo: .long 25
23170 .text
23171 ldq $27,__tls_get_addr($29) !literal!1
23172 lda $16,foo($29) !tlsgd!1
23173 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23174 ldq $27,__tls_get_addr($29) !literal!2
23175 lda $16,foo($29) !tlsldm!2
23176 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23177 ldq $1,foo($29) !gotdtprel
23178 ldah $2,foo($29) !dtprelhi
23179 lda $3,foo($2) !dtprello
23180 lda $4,foo($29) !dtprel
23181 ldq $1,foo($29) !gottprel
23182 ldah $2,foo($29) !tprelhi
23183 lda $3,foo($2) !tprello
23184 lda $4,foo($29) !tprel'
23185 tls_first_major=2
23186 tls_first_minor=13
23187 tls_as_opt=--fatal-warnings
23189 cris-*-*|crisv32-*-*)
23190 conftest_s='
23191 .section ".tdata","awT",@progbits
23192 x: .long 25
23193 .text
23194 move.d x:IE,$r10
23195 nop'
23196 tls_first_major=2
23197 tls_first_minor=20
23198 tls_as_opt=--fatal-warnings
23200 frv*-*-*)
23201 conftest_s='
23202 .section ".tdata","awT",@progbits
23203 x: .long 25
23204 .text
23205 call #gettlsoff(x)'
23206 tls_first_major=2
23207 tls_first_minor=14
23209 hppa*-*-linux*)
23210 conftest_s='
23211 t1: .reg %r20
23212 t2: .reg %r21
23213 gp: .reg %r19
23214 .section ".tdata","awT",@progbits
23215 foo: .long 25
23216 .text
23217 .align 4
23218 addil LT%foo-$tls_gdidx$,gp
23219 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23220 b __tls_get_addr
23222 addil LT%foo-$tls_ldidx$,gp
23223 b __tls_get_addr
23224 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23225 addil LR%foo-$tls_dtpoff$,%ret0
23226 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23227 mfctl %cr27,%t1
23228 addil LT%foo-$tls_ieoff$,gp
23229 ldw RT%foo-$tls_ieoff$(%r1),%t2
23230 add %t1,%t2,%t3
23231 mfctl %cr27,%t1
23232 addil LR%foo-$tls_leoff$,%t1
23233 ldo RR%foo-$tls_leoff$(%r1),%t2'
23234 tls_first_major=2
23235 tls_first_minor=15
23236 tls_as_opt=--fatal-warnings
23238 arm*-*-*)
23239 conftest_s='
23240 .section ".tdata","awT",%progbits
23241 foo: .long 25
23242 .text
23243 .word foo(gottpoff)
23244 .word foo(tpoff)
23245 .word foo(tlsgd)
23246 .word foo(tlsldm)
23247 .word foo(tlsldo)'
23248 tls_first_major=2
23249 tls_first_minor=17
23251 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23252 case "$target" in
23253 i[34567]86-*-solaris2.*)
23254 on_solaris=yes
23255 tga_func=___tls_get_addr
23257 x86_64-*-solaris2.1[0-9]*)
23258 on_solaris=yes
23259 tga_func=__tls_get_addr
23262 on_solaris=no
23264 esac
23265 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23266 conftest_s='
23267 .section .tdata,"awt",@progbits'
23268 tls_first_major=0
23269 tls_first_minor=0
23271 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23273 else
23274 conftest_s='
23275 .section ".tdata","awT",@progbits'
23276 tls_first_major=2
23277 tls_first_minor=14
23278 tls_as_opt="--fatal-warnings"
23280 conftest_s="$conftest_s
23281 foo: .long 25
23282 .text
23283 movl %gs:0, %eax
23284 leal foo@tlsgd(,%ebx,1), %eax
23285 leal foo@tlsldm(%ebx), %eax
23286 leal foo@dtpoff(%eax), %edx
23287 movl foo@gottpoff(%ebx), %eax
23288 subl foo@gottpoff(%ebx), %eax
23289 addl foo@gotntpoff(%ebx), %eax
23290 movl foo@indntpoff, %eax
23291 movl \$foo@tpoff, %eax
23292 subl \$foo@tpoff, %eax
23293 leal foo@ntpoff(%ecx), %eax"
23295 x86_64-*-*)
23296 conftest_s='
23297 .section ".tdata","awT",@progbits
23298 foo: .long 25
23299 .text
23300 movq %fs:0, %rax
23301 leaq foo@TLSGD(%rip), %rdi
23302 leaq foo@TLSLD(%rip), %rdi
23303 leaq foo@DTPOFF(%rax), %rdx
23304 movq foo@GOTTPOFF(%rip), %rax
23305 movq $foo@TPOFF, %rax'
23306 tls_first_major=2
23307 tls_first_minor=14
23308 tls_as_opt=--fatal-warnings
23310 ia64-*-*)
23311 conftest_s='
23312 .section ".tdata","awT",@progbits
23313 foo: data8 25
23314 .text
23315 addl r16 = @ltoff(@dtpmod(foo#)), gp
23316 addl r17 = @ltoff(@dtprel(foo#)), gp
23317 addl r18 = @ltoff(@tprel(foo#)), gp
23318 addl r19 = @dtprel(foo#), gp
23319 adds r21 = @dtprel(foo#), r13
23320 movl r23 = @dtprel(foo#)
23321 addl r20 = @tprel(foo#), gp
23322 adds r22 = @tprel(foo#), r13
23323 movl r24 = @tprel(foo#)'
23324 tls_first_major=2
23325 tls_first_minor=13
23326 tls_as_opt=--fatal-warnings
23328 mips*-*-*)
23329 conftest_s='
23330 .section .tdata,"awT",@progbits
23332 .word 2
23333 .text
23334 addiu $4, $28, %tlsgd(x)
23335 addiu $4, $28, %tlsldm(x)
23336 lui $4, %dtprel_hi(x)
23337 addiu $4, $4, %dtprel_lo(x)
23338 lw $4, %gottprel(x)($28)
23339 lui $4, %tprel_hi(x)
23340 addiu $4, $4, %tprel_lo(x)'
23341 tls_first_major=2
23342 tls_first_minor=16
23343 tls_as_opt='-32 --fatal-warnings'
23345 m68k-*-*)
23346 conftest_s='
23347 .section .tdata,"awT",@progbits
23349 .word 2
23350 .text
23351 foo:
23352 move.l x@TLSGD(%a5),%a0
23353 move.l x@TLSLDM(%a5),%a0
23354 move.l x@TLSLDO(%a5),%a0
23355 move.l x@TLSIE(%a5),%a0
23356 move.l x@TLSLE(%a5),%a0'
23357 tls_first_major=2
23358 tls_first_minor=19
23359 tls_as_opt='--fatal-warnings'
23361 powerpc-*-*)
23362 conftest_s='
23363 .section ".tdata","awT",@progbits
23364 .align 2
23365 ld0: .space 4
23366 ld1: .space 4
23367 x1: .space 4
23368 x2: .space 4
23369 x3: .space 4
23370 .text
23371 addi 3,31,ld0@got@tlsgd
23372 bl __tls_get_addr
23373 addi 3,31,x1@got@tlsld
23374 bl __tls_get_addr
23375 addi 9,3,x1@dtprel
23376 addis 9,3,x2@dtprel@ha
23377 addi 9,9,x2@dtprel@l
23378 lwz 9,x3@got@tprel(31)
23379 add 9,9,x@tls
23380 addi 9,2,x1@tprel
23381 addis 9,2,x2@tprel@ha
23382 addi 9,9,x2@tprel@l'
23383 tls_first_major=2
23384 tls_first_minor=14
23385 tls_as_opt="-a32 --fatal-warnings"
23387 powerpc64-*-*)
23388 conftest_s='
23389 .section ".tdata","awT",@progbits
23390 .align 3
23391 ld0: .space 8
23392 ld1: .space 8
23393 x1: .space 8
23394 x2: .space 8
23395 x3: .space 8
23396 .text
23397 addi 3,2,ld0@got@tlsgd
23398 bl .__tls_get_addr
23400 addi 3,2,ld1@toc
23401 bl .__tls_get_addr
23403 addi 3,2,x1@got@tlsld
23404 bl .__tls_get_addr
23406 addi 9,3,x1@dtprel
23407 bl .__tls_get_addr
23409 addis 9,3,x2@dtprel@ha
23410 addi 9,9,x2@dtprel@l
23411 bl .__tls_get_addr
23413 ld 9,x3@got@dtprel(2)
23414 add 9,9,3
23415 bl .__tls_get_addr
23416 nop'
23417 tls_first_major=2
23418 tls_first_minor=14
23419 tls_as_opt="-a64 --fatal-warnings"
23421 s390-*-*)
23422 conftest_s='
23423 .section ".tdata","awT",@progbits
23424 foo: .long 25
23425 .text
23426 .long foo@TLSGD
23427 .long foo@TLSLDM
23428 .long foo@DTPOFF
23429 .long foo@NTPOFF
23430 .long foo@GOTNTPOFF
23431 .long foo@INDNTPOFF
23432 l %r1,foo@GOTNTPOFF(%r12)
23433 l %r1,0(%r1):tls_load:foo
23434 bas %r14,0(%r1,%r13):tls_gdcall:foo
23435 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23436 tls_first_major=2
23437 tls_first_minor=14
23438 tls_as_opt="-m31 --fatal-warnings"
23440 s390x-*-*)
23441 conftest_s='
23442 .section ".tdata","awT",@progbits
23443 foo: .long 25
23444 .text
23445 .quad foo@TLSGD
23446 .quad foo@TLSLDM
23447 .quad foo@DTPOFF
23448 .quad foo@NTPOFF
23449 .quad foo@GOTNTPOFF
23450 lg %r1,foo@GOTNTPOFF(%r12)
23451 larl %r1,foo@INDNTPOFF
23452 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23453 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23454 tls_first_major=2
23455 tls_first_minor=14
23456 tls_as_opt="-m64 -Aesame --fatal-warnings"
23458 sh-*-* | sh[34]-*-*)
23459 conftest_s='
23460 .section ".tdata","awT",@progbits
23461 foo: .long 25
23462 .text
23463 .long foo@TLSGD
23464 .long foo@TLSLDM
23465 .long foo@DTPOFF
23466 .long foo@GOTTPOFF
23467 .long foo@TPOFF'
23468 tls_first_major=2
23469 tls_first_minor=13
23470 tls_as_opt=--fatal-warnings
23472 sparc*-*-*)
23473 case "$target" in
23474 sparc*-sun-solaris2.*)
23475 on_solaris=yes
23476 tga_func=__tls_get_addr
23479 on_solaris=no
23481 esac
23482 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23483 conftest_s='
23484 .section ".tdata",#alloc,#write,#tls'
23485 tls_first_major=0
23486 tls_first_minor=0
23487 else
23488 conftest_s='
23489 .section ".tdata","awT",@progbits'
23490 tls_first_major=2
23491 tls_first_minor=14
23492 tls_as_opt="-32 --fatal-warnings"
23494 conftest_s="$conftest_s
23495 foo: .long 25
23496 .text
23497 sethi %tgd_hi22(foo), %o0
23498 add %o0, %tgd_lo10(foo), %o1
23499 add %l7, %o1, %o0, %tgd_add(foo)
23500 call __tls_get_addr, %tgd_call(foo)
23501 sethi %tldm_hi22(foo), %l1
23502 add %l1, %tldm_lo10(foo), %l2
23503 add %l7, %l2, %o0, %tldm_add(foo)
23504 call __tls_get_addr, %tldm_call(foo)
23505 sethi %tldo_hix22(foo), %l3
23506 xor %l3, %tldo_lox10(foo), %l4
23507 add %o0, %l4, %l5, %tldo_add(foo)
23508 sethi %tie_hi22(foo), %o3
23509 add %o3, %tie_lo10(foo), %o3
23510 ld [%l7 + %o3], %o2, %tie_ld(foo)
23511 add %g7, %o2, %o4, %tie_add(foo)
23512 sethi %tle_hix22(foo), %l1
23513 xor %l1, %tle_lox10(foo), %o5
23514 ld [%g7 + %o5], %o1"
23516 tilepro*-*-*)
23517 conftest_s='
23518 .section ".tdata","awT",@progbits
23519 foo: .long 25
23520 .text
23521 addli r0, zero, tls_gd(foo)
23522 auli r0, zero, tls_gd_ha16(foo)
23523 addli r0, r0, tls_gd_lo16(foo)
23524 jal __tls_get_addr
23525 addli r0, zero, tls_ie(foo)
23526 auli r0, r0, tls_ie_ha16(foo)
23527 addli r0, r0, tls_ie_lo16(foo)'
23528 tls_first_major=2
23529 tls_first_minor=22
23530 tls_as_opt="--fatal-warnings"
23532 tilegx*-*-*)
23533 conftest_s='
23534 .section ".tdata","awT",@progbits
23535 foo: .long 25
23536 .text
23537 shl16insli r0, zero, hw0_last_tls_gd(foo)
23538 shl16insli r0, zero, hw1_last_tls_gd(foo)
23539 shl16insli r0, r0, hw0_tls_gd(foo)
23540 jal __tls_get_addr
23541 shl16insli r0, zero, hw1_last_tls_ie(foo)
23542 shl16insli r0, r0, hw0_tls_ie(foo)'
23543 tls_first_major=2
23544 tls_first_minor=22
23545 tls_as_opt="--fatal-warnings"
23547 xtensa*-*-*)
23548 conftest_s='
23549 .section ".tdata","awT",@progbits
23550 foo: .long 25
23551 .text
23552 movi a8, foo@TLSFUNC
23553 movi a10, foo@TLSARG
23554 callx8.tls a8, foo@TLSCALL'
23555 tls_first_major=2
23556 tls_first_minor=19
23558 esac
23559 set_have_as_tls=no
23560 if test "x$enable_tls" = xno ; then
23561 : # TLS explicitly disabled.
23562 elif test "x$enable_tls" = xyes ; then
23563 set_have_as_tls=yes # TLS explicitly enabled.
23564 elif test -z "$tls_first_major"; then
23565 : # If we don't have a check, assume no support.
23566 else
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23568 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23569 if test "${gcc_cv_as_tls+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23571 else
23572 gcc_cv_as_tls=no
23573 if test $in_tree_gas = yes; then
23574 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23575 then gcc_cv_as_tls=yes
23577 elif test x$gcc_cv_as != x; then
23578 $as_echo "$conftest_s" > conftest.s
23579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23585 then
23586 gcc_cv_as_tls=yes
23587 else
23588 echo "configure: failed program was" >&5
23589 cat conftest.s >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23595 $as_echo "$gcc_cv_as_tls" >&6; }
23596 if test $gcc_cv_as_tls = yes; then
23597 set_have_as_tls=yes
23600 case "$target" in
23601 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23602 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23603 # Sun style that Sun ld and GCC don't support any longer.
23604 *-*-solaris2.*)
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23606 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23607 ld_tls_support=no
23608 # Check ld and ld.so.1 TLS support.
23609 if echo "$ld_ver" | grep GNU > /dev/null; then
23610 # Assume all interesting versions of GNU ld have TLS support.
23611 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23612 ld_tls_support=yes
23613 else
23614 case "$target" in
23615 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23616 i?86-*-solaris2.9)
23617 min_tls_ld_vers_minor=374
23619 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23620 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23621 min_tls_ld_vers_minor=343
23623 esac
23624 if test "$ld_vers_major" -gt 1 || \
23625 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23626 ld_tls_support=yes
23627 else
23628 set_have_as_tls=no
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23632 $as_echo "$ld_tls_support" >&6; }
23634 save_LIBS="$LIBS"
23635 save_LDFLAGS="$LDFLAGS"
23636 LIBS=
23637 LDFLAGS=
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23640 $as_echo_n "checking library containing $tga_func... " >&6; }
23641 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23642 # (32-bit x86) only lived in libthread, so check for that. Keep
23643 # set_have_as_tls if found, disable if not.
23644 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23646 $as_echo_n "checking for library containing $tga_func... " >&6; }
23647 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23648 $as_echo_n "(cached) " >&6
23649 else
23650 ac_func_search_save_LIBS=$LIBS
23651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23652 /* end confdefs.h. */
23654 /* Override any GCC internal prototype to avoid an error.
23655 Use char because int might match the return type of a GCC
23656 builtin and then its argument prototype would still apply. */
23657 #ifdef __cplusplus
23658 extern "C"
23659 #endif
23660 char $tga_func ();
23662 main ()
23664 return $tga_func ();
23666 return 0;
23668 _ACEOF
23669 for ac_lib in '' thread; do
23670 if test -z "$ac_lib"; then
23671 ac_res="none required"
23672 else
23673 ac_res=-l$ac_lib
23674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23676 if ac_fn_c_try_link "$LINENO"; then :
23677 eval "$as_ac_Search=\$ac_res"
23679 rm -f core conftest.err conftest.$ac_objext \
23680 conftest$ac_exeext
23681 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23682 break
23684 done
23685 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23687 else
23688 eval "$as_ac_Search=no"
23690 rm conftest.$ac_ext
23691 LIBS=$ac_func_search_save_LIBS
23693 eval ac_res=\$$as_ac_Search
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23695 $as_echo "$ac_res" >&6; }
23696 eval ac_res=\$$as_ac_Search
23697 if test "$ac_res" != no; then :
23698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23700 else
23701 set_have_as_tls=no
23704 # Clear LIBS if we cannot support TLS.
23705 if test $set_have_as_tls = no; then
23706 LIBS=
23708 # Always define LIB_TLS_SPEC, even without TLS support.
23710 cat >>confdefs.h <<_ACEOF
23711 #define LIB_TLS_SPEC "$LIBS"
23712 _ACEOF
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23715 $as_echo "$LIBS" >&6; }
23717 LIBS="$save_LIBS"
23718 LDFLAGS="$save_LDFLAGS"
23720 esac
23721 if test $set_have_as_tls = yes ; then
23723 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23727 # Target-specific assembler checks.
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23730 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23731 gcc_cv_ld_static_dynamic=no
23732 gcc_cv_ld_static_option='-Bstatic'
23733 gcc_cv_ld_dynamic_option='-Bdynamic'
23734 if test $in_tree_ld = yes ; then
23735 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
23736 gcc_cv_ld_static_dynamic=yes
23738 elif test x$gcc_cv_ld != x; then
23739 # Check if linker supports -Bstatic/-Bdynamic option
23740 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23741 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23742 gcc_cv_ld_static_dynamic=yes
23743 else
23744 case "$target" in
23745 # HP-UX ld uses -a flags to select between shared and archive.
23746 *-*-hpux*)
23747 if test x"$gnu_ld" = xno; then
23748 gcc_cv_ld_static_dynamic=yes
23749 gcc_cv_ld_static_option="-aarchive_shared"
23750 gcc_cv_ld_dynamic_option="-adefault"
23753 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23754 *-*-solaris2*)
23755 gcc_cv_ld_static_dynamic=yes
23757 esac
23760 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23762 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23765 cat >>confdefs.h <<_ACEOF
23766 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23767 _ACEOF
23770 cat >>confdefs.h <<_ACEOF
23771 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23772 _ACEOF
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23776 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23778 if test x"$demangler_in_ld" = xyes; then
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23780 $as_echo_n "checking linker --demangle support... " >&6; }
23781 gcc_cv_ld_demangle=no
23782 if test $in_tree_ld = yes; then
23783 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 \
23784 gcc_cv_ld_demangle=yes
23786 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23787 # Check if the GNU linker supports --demangle option
23788 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23789 gcc_cv_ld_demangle=yes
23792 if test x"$gcc_cv_ld_demangle" = xyes; then
23794 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23798 $as_echo "$gcc_cv_ld_demangle" >&6; }
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23802 $as_echo_n "checking linker plugin support... " >&6; }
23803 gcc_cv_lto_plugin=0
23804 if test -f liblto_plugin.la; then
23805 save_ld_ver="$ld_ver"
23806 save_ld_vers_major="$ld_vers_major"
23807 save_ld_vers_minor="$ld_vers_minor"
23808 save_ld_is_gold="$ld_is_gold"
23810 ld_is_gold=no
23812 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23813 ld_ver="GNU ld"
23814 # FIXME: ld_is_gold?
23815 ld_vers_major="$gcc_cv_gld_major_version"
23816 ld_vers_minor="$gcc_cv_gld_minor_version"
23817 else
23818 # Determine plugin linker version.
23819 # FIXME: Partial duplicate from above, generalize.
23820 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23821 if echo "$ld_ver" | grep GNU > /dev/null; then
23822 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23823 ld_is_gold=yes
23824 ld_vers=`echo $ld_ver | sed -n \
23825 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23826 else
23827 ld_vers=`echo $ld_ver | sed -n \
23828 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23830 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23831 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23835 # Determine plugin support.
23836 if echo "$ld_ver" | grep GNU > /dev/null; then
23837 # Require GNU ld or gold 2.21+ for plugin support by default.
23838 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23839 gcc_cv_lto_plugin=2
23840 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23841 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23842 gcc_cv_lto_plugin=1
23846 ld_ver="$save_ld_ver"
23847 ld_vers_major="$save_ld_vers_major"
23848 ld_vers_minor="$save_ld_vers_minor"
23849 ld_is_gold="$save_ld_is_gold"
23852 cat >>confdefs.h <<_ACEOF
23853 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23854 _ACEOF
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23857 $as_echo "$gcc_cv_lto_plugin" >&6; }
23859 case "$target" in
23860 # All TARGET_ABI_OSF targets.
23861 alpha*-*-linux* | alpha*-*-*bsd*)
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23863 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23864 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23865 $as_echo_n "(cached) " >&6
23866 else
23867 gcc_cv_as_alpha_explicit_relocs=no
23868 if test $in_tree_gas = yes; then
23869 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23870 then gcc_cv_as_alpha_explicit_relocs=yes
23872 elif test x$gcc_cv_as != x; then
23873 $as_echo ' .set nomacro
23874 .text
23875 extbl $3, $2, $3 !lituse_bytoff!1
23876 ldq $2, a($29) !literal!1
23877 ldq $4, b($29) !literal!2
23878 ldq_u $3, 0($2) !lituse_base!1
23879 ldq $27, f($29) !literal!5
23880 jsr $26, ($27), f !lituse_jsr!5
23881 ldah $29, 0($26) !gpdisp!3
23882 lda $0, c($29) !gprel
23883 ldah $1, d($29) !gprelhigh
23884 lda $1, d($1) !gprellow
23885 lda $29, 0($29) !gpdisp!3' > conftest.s
23886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23891 test $ac_status = 0; }; }
23892 then
23893 gcc_cv_as_alpha_explicit_relocs=yes
23894 else
23895 echo "configure: failed program was" >&5
23896 cat conftest.s >&5
23898 rm -f conftest.o conftest.s
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23902 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23903 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23905 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23909 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23910 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23911 $as_echo_n "(cached) " >&6
23912 else
23913 gcc_cv_as_alpha_jsrdirect_relocs=no
23914 if test $in_tree_gas = yes; then
23915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23916 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23918 elif test x$gcc_cv_as != x; then
23919 $as_echo ' .set nomacro
23920 .text
23921 ldq $27, a($29) !literal!1
23922 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925 (eval $ac_try) 2>&5
23926 ac_status=$?
23927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928 test $ac_status = 0; }; }
23929 then
23930 gcc_cv_as_alpha_jsrdirect_relocs=yes
23931 else
23932 echo "configure: failed program was" >&5
23933 cat conftest.s >&5
23935 rm -f conftest.o conftest.s
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23939 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23940 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23942 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23947 cris-*-*)
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23949 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23950 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23951 $as_echo_n "(cached) " >&6
23952 else
23953 gcc_cv_as_cris_no_mul_bug=no
23954 if test $in_tree_gas = yes; then
23955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23956 then gcc_cv_as_cris_no_mul_bug=yes
23958 elif test x$gcc_cv_as != x; then
23959 $as_echo '.text' > conftest.s
23960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23966 then
23967 gcc_cv_as_cris_no_mul_bug=yes
23968 else
23969 echo "configure: failed program was" >&5
23970 cat conftest.s >&5
23972 rm -f conftest.o conftest.s
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23976 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23977 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23979 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23984 sparc*-*-*)
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23986 $as_echo_n "checking assembler for .register... " >&6; }
23987 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23988 $as_echo_n "(cached) " >&6
23989 else
23990 gcc_cv_as_sparc_register_op=no
23991 if test x$gcc_cv_as != x; then
23992 $as_echo '.register %g2, #scratch' > conftest.s
23993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23998 test $ac_status = 0; }; }
23999 then
24000 gcc_cv_as_sparc_register_op=yes
24001 else
24002 echo "configure: failed program was" >&5
24003 cat conftest.s >&5
24005 rm -f conftest.o conftest.s
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24009 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24010 if test $gcc_cv_as_sparc_register_op = yes; then
24012 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24017 $as_echo_n "checking assembler for -relax option... " >&6; }
24018 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24019 $as_echo_n "(cached) " >&6
24020 else
24021 gcc_cv_as_sparc_relax=no
24022 if test x$gcc_cv_as != x; then
24023 $as_echo '.text' > conftest.s
24024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24026 (eval $ac_try) 2>&5
24027 ac_status=$?
24028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24029 test $ac_status = 0; }; }
24030 then
24031 gcc_cv_as_sparc_relax=yes
24032 else
24033 echo "configure: failed program was" >&5
24034 cat conftest.s >&5
24036 rm -f conftest.o conftest.s
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24040 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24041 if test $gcc_cv_as_sparc_relax = yes; then
24043 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24048 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24049 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24051 else
24052 gcc_cv_as_sparc_gotdata_op=no
24053 if test x$gcc_cv_as != x; then
24054 $as_echo '.text
24055 .align 4
24056 foo:
24058 bar:
24059 sethi %gdop_hix22(foo), %g1
24060 xor %g1, %gdop_lox10(foo), %g1
24061 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24064 (eval $ac_try) 2>&5
24065 ac_status=$?
24066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24067 test $ac_status = 0; }; }
24068 then
24069 if test x$gcc_cv_ld != x \
24070 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24071 if test x$gcc_cv_objdump != x; then
24072 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24073 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24074 gcc_cv_as_sparc_gotdata_op=no
24075 else
24076 gcc_cv_as_sparc_gotdata_op=yes
24080 rm -f conftest
24081 else
24082 echo "configure: failed program was" >&5
24083 cat conftest.s >&5
24085 rm -f conftest.o conftest.s
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24089 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24090 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24092 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24097 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24098 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 gcc_cv_as_sparc_ua_pcrel=no
24102 if test x$gcc_cv_as != x; then
24103 $as_echo '.text
24104 foo:
24106 .data
24107 .align 4
24108 .byte 0
24109 .uaword %r_disp32(foo)' > conftest.s
24110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24115 test $ac_status = 0; }; }
24116 then
24117 if test x$gcc_cv_ld != x \
24118 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24119 gcc_cv_as_sparc_ua_pcrel=yes
24121 rm -f conftest
24122 else
24123 echo "configure: failed program was" >&5
24124 cat conftest.s >&5
24126 rm -f conftest.o conftest.s
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24130 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24131 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24133 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24137 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24138 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24141 gcc_cv_as_sparc_ua_pcrel_hidden=no
24142 if test x$gcc_cv_as != x; then
24143 $as_echo '.data
24144 .align 4
24145 .byte 0x31
24146 .uaword %r_disp32(foo)
24147 .byte 0x32, 0x33, 0x34
24148 .global foo
24149 .hidden foo
24150 foo:
24151 .skip 4' > conftest.s
24152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157 test $ac_status = 0; }; }
24158 then
24159 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24160 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24161 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24162 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24163 if $gcc_cv_objdump -R conftest 2> /dev/null \
24164 | grep 'DISP32' > /dev/null 2>&1; then
24166 else
24167 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24170 rm -f conftest
24171 else
24172 echo "configure: failed program was" >&5
24173 cat conftest.s >&5
24175 rm -f conftest.o conftest.s
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24179 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24180 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24182 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24186 fi # unaligned pcrel relocs
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24189 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24190 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 gcc_cv_as_sparc_offsetable_lo10=no
24194 if test x$gcc_cv_as != x; then
24195 $as_echo '.text
24196 or %g1, %lo(ab) + 12, %g1
24197 or %g1, %lo(ab + 12), %g1' > conftest.s
24198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }; }
24204 then
24205 if test x$gcc_cv_objdump != x \
24206 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24207 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24208 gcc_cv_as_sparc_offsetable_lo10=yes
24210 else
24211 echo "configure: failed program was" >&5
24212 cat conftest.s >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24218 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24219 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24221 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24226 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24227 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 gcc_cv_as_sparc_fmaf=no
24231 if test x$gcc_cv_as != x; then
24232 $as_echo '.text
24233 .register %g2, #scratch
24234 .register %g3, #scratch
24235 .align 4
24236 fmaddd %f0, %f2, %f4, %f6
24237 addxccc %g1, %g2, %g3
24238 fsrl32 %f2, %f4, %f8
24239 fnaddd %f10, %f12, %f14' > conftest.s
24240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24246 then
24247 gcc_cv_as_sparc_fmaf=yes
24248 else
24249 echo "configure: failed program was" >&5
24250 cat conftest.s >&5
24252 rm -f conftest.o conftest.s
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24256 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24257 if test $gcc_cv_as_sparc_fmaf = yes; then
24259 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24264 i[34567]86-*-* | x86_64-*-*)
24265 case $target_os in
24266 cygwin*)
24267 # Full C++ conformance when using a shared libstdc++-v3 requires some
24268 # support from the Cygwin DLL, which in more recent versions exports
24269 # wrappers to aid in interposing and redirecting operators new, delete,
24270 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24271 # are configuring for a version of Cygwin that exports the wrappers.
24272 if test x$host = x$target; then
24273 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24274 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24275 gcc_ac_cygwin_dll_wrappers=yes
24276 else
24277 gcc_ac_cygwin_dll_wrappers=no
24280 else
24281 # Can't check presence of libc functions during cross-compile, so
24282 # we just have to assume we're building for an up-to-date target.
24283 gcc_ac_cygwin_dll_wrappers=yes
24286 cat >>confdefs.h <<_ACEOF
24287 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24288 _ACEOF
24290 esac
24291 case $target_os in
24292 cygwin* | pe | mingw32* | interix*)
24293 # Recent binutils allows the three-operand form of ".comm" on PE. This
24294 # definition is used unconditionally to initialise the default state of
24295 # the target option variable that governs usage of the feature.
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24297 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24298 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24299 $as_echo_n "(cached) " >&6
24300 else
24301 gcc_cv_as_comm_has_align=no
24302 if test $in_tree_gas = yes; then
24303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24304 then gcc_cv_as_comm_has_align=yes
24306 elif test x$gcc_cv_as != x; then
24307 $as_echo '.comm foo,1,32' > conftest.s
24308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24310 (eval $ac_try) 2>&5
24311 ac_status=$?
24312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24313 test $ac_status = 0; }; }
24314 then
24315 gcc_cv_as_comm_has_align=yes
24316 else
24317 echo "configure: failed program was" >&5
24318 cat conftest.s >&5
24320 rm -f conftest.o conftest.s
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24324 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24327 cat >>confdefs.h <<_ACEOF
24328 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24329 _ACEOF
24331 # Used for DWARF 2 in PE
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24333 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24334 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24335 $as_echo_n "(cached) " >&6
24336 else
24337 gcc_cv_as_ix86_pe_secrel32=no
24338 if test $in_tree_gas = yes; then
24339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24340 then gcc_cv_as_ix86_pe_secrel32=yes
24342 elif test x$gcc_cv_as != x; then
24343 $as_echo '.text
24344 foo: nop
24345 .data
24346 .secrel32 foo' > conftest.s
24347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24349 (eval $ac_try) 2>&5
24350 ac_status=$?
24351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24352 test $ac_status = 0; }; }
24353 then
24354 if test x$gcc_cv_ld != x \
24355 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24356 gcc_cv_as_ix86_pe_secrel32=yes
24358 rm -f conftest
24359 else
24360 echo "configure: failed program was" >&5
24361 cat conftest.s >&5
24363 rm -f conftest.o conftest.s
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24367 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24368 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24370 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24373 # Test if the assembler supports the extended form of the .section
24374 # directive that specifies section alignment. LTO support uses this,
24375 # but normally only after installation, so we warn but don't fail the
24376 # configure if LTO is enabled but the assembler does not support it.
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24378 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24379 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24380 $as_echo_n "(cached) " >&6
24381 else
24382 gcc_cv_as_section_has_align=no
24383 if test $in_tree_gas = yes; then
24384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24385 then gcc_cv_as_section_has_align=yes
24387 elif test x$gcc_cv_as != x; then
24388 $as_echo '.section lto_test,"dr0"' > conftest.s
24389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24391 (eval $ac_try) 2>&5
24392 ac_status=$?
24393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24394 test $ac_status = 0; }; }
24395 then
24396 gcc_cv_as_section_has_align=yes
24397 else
24398 echo "configure: failed program was" >&5
24399 cat conftest.s >&5
24401 rm -f conftest.o conftest.s
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24405 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24407 if test x$gcc_cv_as_section_has_align != xyes; then
24408 case ",$enable_languages," in
24409 *,lto,*)
24410 { $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
24411 $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;}
24413 esac
24415 # Test if the assembler supports the section flag 'e' for specifying
24416 # an excluded section.
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24418 $as_echo_n "checking assembler for .section with e... " >&6; }
24419 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24420 $as_echo_n "(cached) " >&6
24421 else
24422 gcc_cv_as_section_has_e=no
24423 if test $in_tree_gas = yes; then
24424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24425 then gcc_cv_as_section_has_e=yes
24427 elif test x$gcc_cv_as != x; then
24428 $as_echo '.section foo1,"e"
24429 .byte 0,0,0,0' > conftest.s
24430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24435 test $ac_status = 0; }; }
24436 then
24437 gcc_cv_as_section_has_e=yes
24438 else
24439 echo "configure: failed program was" >&5
24440 cat conftest.s >&5
24442 rm -f conftest.o conftest.s
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24446 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24449 cat >>confdefs.h <<_ACEOF
24450 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24451 _ACEOF
24454 esac
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24457 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24458 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24459 $as_echo_n "(cached) " >&6
24460 else
24461 gcc_cv_as_ix86_filds=no
24462 if test x$gcc_cv_as != x; then
24463 $as_echo 'filds mem; fists mem' > conftest.s
24464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; }
24470 then
24471 gcc_cv_as_ix86_filds=yes
24472 else
24473 echo "configure: failed program was" >&5
24474 cat conftest.s >&5
24476 rm -f conftest.o conftest.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24480 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24481 if test $gcc_cv_as_ix86_filds = yes; then
24483 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24488 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24489 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24490 $as_echo_n "(cached) " >&6
24491 else
24492 gcc_cv_as_ix86_fildq=no
24493 if test x$gcc_cv_as != x; then
24494 $as_echo 'fildq mem; fistpq mem' > conftest.s
24495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }
24501 then
24502 gcc_cv_as_ix86_fildq=yes
24503 else
24504 echo "configure: failed program was" >&5
24505 cat conftest.s >&5
24507 rm -f conftest.o conftest.s
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24511 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24512 if test $gcc_cv_as_ix86_fildq = yes; then
24514 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24519 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24520 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24521 $as_echo_n "(cached) " >&6
24522 else
24523 gcc_cv_as_ix86_cmov_sun_syntax=no
24524 if test x$gcc_cv_as != x; then
24525 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24531 test $ac_status = 0; }; }
24532 then
24533 gcc_cv_as_ix86_cmov_sun_syntax=yes
24534 else
24535 echo "configure: failed program was" >&5
24536 cat conftest.s >&5
24538 rm -f conftest.o conftest.s
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24542 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24543 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24545 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24550 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24551 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24553 else
24554 gcc_cv_as_ix86_ffreep=no
24555 if test x$gcc_cv_as != x; then
24556 $as_echo 'ffreep %st(1)' > conftest.s
24557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24563 then
24564 gcc_cv_as_ix86_ffreep=yes
24565 else
24566 echo "configure: failed program was" >&5
24567 cat conftest.s >&5
24569 rm -f conftest.o conftest.s
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24573 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24574 if test $gcc_cv_as_ix86_ffreep = yes; then
24576 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24581 $as_echo_n "checking assembler for .quad directive... " >&6; }
24582 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24583 $as_echo_n "(cached) " >&6
24584 else
24585 gcc_cv_as_ix86_quad=no
24586 if test x$gcc_cv_as != x; then
24587 $as_echo '.quad 0' > conftest.s
24588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24593 test $ac_status = 0; }; }
24594 then
24595 gcc_cv_as_ix86_quad=yes
24596 else
24597 echo "configure: failed program was" >&5
24598 cat conftest.s >&5
24600 rm -f conftest.o conftest.s
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24604 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24605 if test $gcc_cv_as_ix86_quad = yes; then
24607 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24612 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24613 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24615 else
24616 gcc_cv_as_ix86_sahf=no
24617 if test x$gcc_cv_as != x; then
24618 $as_echo '.code64
24619 sahf' > conftest.s
24620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622 (eval $ac_try) 2>&5
24623 ac_status=$?
24624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625 test $ac_status = 0; }; }
24626 then
24627 gcc_cv_as_ix86_sahf=yes
24628 else
24629 echo "configure: failed program was" >&5
24630 cat conftest.s >&5
24632 rm -f conftest.o conftest.s
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24636 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24637 if test $gcc_cv_as_ix86_sahf = yes; then
24639 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24644 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24645 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24646 $as_echo_n "(cached) " >&6
24647 else
24648 gcc_cv_as_ix86_hle=no
24649 if test x$gcc_cv_as != x; then
24650 $as_echo '.code64
24651 lock xacquire cmpxchg %esi, (%rcx)
24652 ' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_ix86_hle=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24669 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24670 if test $gcc_cv_as_ix86_hle = yes; then
24672 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24677 $as_echo_n "checking assembler for swap suffix... " >&6; }
24678 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24680 else
24681 gcc_cv_as_ix86_swap=no
24682 if test x$gcc_cv_as != x; then
24683 $as_echo 'movl.s %esp, %ebp' > conftest.s
24684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24690 then
24691 gcc_cv_as_ix86_swap=yes
24692 else
24693 echo "configure: failed program was" >&5
24694 cat conftest.s >&5
24696 rm -f conftest.o conftest.s
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24700 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24701 if test $gcc_cv_as_ix86_swap = yes; then
24703 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24708 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24709 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_ix86_diff_sect_delta=no
24713 if test x$gcc_cv_as != x; then
24714 $as_echo '.section .rodata
24715 .L1:
24716 .long .L2-.L1
24717 .long .L3-.L1
24718 .text
24719 .L3: nop
24720 .L2: nop' > conftest.s
24721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24726 test $ac_status = 0; }; }
24727 then
24728 gcc_cv_as_ix86_diff_sect_delta=yes
24729 else
24730 echo "configure: failed program was" >&5
24731 cat conftest.s >&5
24733 rm -f conftest.o conftest.s
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24737 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24738 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24740 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24744 # These two are used unconditionally by i386.[ch]; it is to be defined
24745 # to 1 if the feature is present, 0 otherwise.
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24747 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24748 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24750 else
24751 gcc_cv_as_ix86_gotoff_in_data=no
24752 if test $in_tree_gas = yes; then
24753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24754 then gcc_cv_as_ix86_gotoff_in_data=yes
24756 elif test x$gcc_cv_as != x; then
24757 $as_echo ' .text
24758 .L0:
24760 .data
24761 .long .L0@GOTOFF' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 gcc_cv_as_ix86_gotoff_in_data=yes
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24778 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24781 cat >>confdefs.h <<_ACEOF
24782 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24783 _ACEOF
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24787 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24788 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24790 else
24791 gcc_cv_as_ix86_rep_lock_prefix=no
24792 if test x$gcc_cv_as != x; then
24793 $as_echo 'rep movsl
24794 rep ret
24795 rep nop
24796 rep bsf %ecx, %eax
24797 rep bsr %ecx, %eax
24798 lock addl %edi, (%eax,%esi)
24799 lock orl $0, (%esp)' > conftest.s
24800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }
24806 then
24807 gcc_cv_as_ix86_rep_lock_prefix=yes
24808 else
24809 echo "configure: failed program was" >&5
24810 cat conftest.s >&5
24812 rm -f conftest.o conftest.s
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24816 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24817 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24819 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24824 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24825 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24826 $as_echo_n "(cached) " >&6
24827 else
24828 gcc_cv_as_ix86_tlsgdplt=no
24829 if test x$gcc_cv_as != x; then
24830 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833 (eval $ac_try) 2>&5
24834 ac_status=$?
24835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836 test $ac_status = 0; }; }
24837 then
24838 if test x$gcc_cv_ld != x \
24839 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24840 gcc_cv_as_ix86_tlsgdplt=yes
24842 rm -f conftest
24843 else
24844 echo "configure: failed program was" >&5
24845 cat conftest.s >&5
24847 rm -f conftest.o conftest.s
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24851 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24852 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24854 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24859 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24860 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 gcc_cv_as_ix86_tlsldmplt=no
24864 if test x$gcc_cv_as != x; then
24865 $as_echo 'tls_ld:
24866 call tls_ld@tlsldmplt' > conftest.s
24867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 then
24874 if test x$gcc_cv_ld != x \
24875 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24876 gcc_cv_as_ix86_tlsldmplt=yes
24878 rm -f conftest
24879 else
24880 echo "configure: failed program was" >&5
24881 cat conftest.s >&5
24883 rm -f conftest.o conftest.s
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24887 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24888 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24890 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24896 ia64*-*-*)
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24898 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24899 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24900 $as_echo_n "(cached) " >&6
24901 else
24902 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24903 if test $in_tree_gas = yes; then
24904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24905 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24907 elif test x$gcc_cv_as != x; then
24908 $as_echo ' .text
24909 addl r15 = @ltoffx(x#), gp
24911 ld8.mov r16 = [r15], x#' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24920 else
24921 echo "configure: failed program was" >&5
24922 cat conftest.s >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24928 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24929 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24931 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24937 powerpc*-*-*)
24938 case $target in
24939 *-*-aix*) conftest_s=' .machine "pwr5"
24940 .csect .text[PR]
24941 mfcr 3,128';;
24942 *-*-darwin*)
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24944 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24945 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948 gcc_cv_as_machine_directive=no
24949 if test x$gcc_cv_as != x; then
24950 $as_echo ' .machine ppc7400' > 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 gcc_cv_as_machine_directive=yes
24959 else
24960 echo "configure: failed program was" >&5
24961 cat conftest.s >&5
24963 rm -f conftest.o conftest.s
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24967 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24969 if test x$gcc_cv_as_machine_directive != xyes; then
24970 echo "*** This target requires an assembler supporting \".machine\"" >&2
24971 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24972 test x$build = x$target && exit 1
24974 conftest_s=' .text
24975 mfcr r3,128';;
24976 *) conftest_s=' .machine power4
24977 .text
24978 mfcr 3,128';;
24979 esac
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24982 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24983 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 gcc_cv_as_powerpc_mfcrf=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_powerpc_mfcrf=yes
24991 elif test x$gcc_cv_as != x; then
24992 $as_echo "$conftest_s" > conftest.s
24993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24996 ac_status=$?
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
24999 then
25000 gcc_cv_as_powerpc_mfcrf=yes
25001 else
25002 echo "configure: failed program was" >&5
25003 cat conftest.s >&5
25005 rm -f conftest.o conftest.s
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25009 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25010 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25012 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25016 case $target in
25017 *-*-aix*) conftest_s=' .machine "pwr5"
25018 .csect .text[PR]
25019 popcntb 3,3';;
25020 *) conftest_s=' .machine power5
25021 .text
25022 popcntb 3,3';;
25023 esac
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25026 $as_echo_n "checking assembler for popcntb support... " >&6; }
25027 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25028 $as_echo_n "(cached) " >&6
25029 else
25030 gcc_cv_as_powerpc_popcntb=no
25031 if test $in_tree_gas = yes; then
25032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25033 then gcc_cv_as_powerpc_popcntb=yes
25035 elif test x$gcc_cv_as != x; then
25036 $as_echo "$conftest_s" > conftest.s
25037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25042 test $ac_status = 0; }; }
25043 then
25044 gcc_cv_as_powerpc_popcntb=yes
25045 else
25046 echo "configure: failed program was" >&5
25047 cat conftest.s >&5
25049 rm -f conftest.o conftest.s
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25053 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25054 if test $gcc_cv_as_powerpc_popcntb = yes; then
25056 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25060 case $target in
25061 *-*-aix*) conftest_s=' .machine "pwr5x"
25062 .csect .text[PR]
25063 frin 1,1';;
25064 *) conftest_s=' .machine power5
25065 .text
25066 frin 1,1';;
25067 esac
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25070 $as_echo_n "checking assembler for fp round support... " >&6; }
25071 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25072 $as_echo_n "(cached) " >&6
25073 else
25074 gcc_cv_as_powerpc_fprnd=no
25075 if test $in_tree_gas = yes; then
25076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25077 then gcc_cv_as_powerpc_fprnd=yes
25079 elif test x$gcc_cv_as != x; then
25080 $as_echo "$conftest_s" > conftest.s
25081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25087 then
25088 gcc_cv_as_powerpc_fprnd=yes
25089 else
25090 echo "configure: failed program was" >&5
25091 cat conftest.s >&5
25093 rm -f conftest.o conftest.s
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25097 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25098 if test $gcc_cv_as_powerpc_fprnd = yes; then
25100 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25104 case $target in
25105 *-*-aix*) conftest_s=' .machine "pwr6"
25106 .csect .text[PR]
25107 mffgpr 1,3';;
25108 *) conftest_s=' .machine power6
25109 .text
25110 mffgpr 1,3';;
25111 esac
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25114 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25115 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_powerpc_mfpgpr=no
25119 if test $in_tree_gas = yes; then
25120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25121 then gcc_cv_as_powerpc_mfpgpr=yes
25123 elif test x$gcc_cv_as != x; then
25124 $as_echo "$conftest_s" > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25131 then
25132 gcc_cv_as_powerpc_mfpgpr=yes
25133 else
25134 echo "configure: failed program was" >&5
25135 cat conftest.s >&5
25137 rm -f conftest.o conftest.s
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25141 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25142 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25144 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25148 case $target in
25149 *-*-aix*) conftest_s=' .csect .text[PR]
25150 LCF..0:
25151 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25152 *-*-darwin*)
25153 conftest_s=' .text
25154 LCF0:
25155 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25156 *) conftest_s=' .text
25157 .LCF0:
25158 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25159 esac
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25162 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25163 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25164 $as_echo_n "(cached) " >&6
25165 else
25166 gcc_cv_as_powerpc_rel16=no
25167 if test $in_tree_gas = yes; then
25168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25169 then gcc_cv_as_powerpc_rel16=yes
25171 elif test x$gcc_cv_as != x; then
25172 $as_echo "$conftest_s" > conftest.s
25173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25178 test $ac_status = 0; }; }
25179 then
25180 gcc_cv_as_powerpc_rel16=yes
25181 else
25182 echo "configure: failed program was" >&5
25183 cat conftest.s >&5
25185 rm -f conftest.o conftest.s
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25189 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25190 if test $gcc_cv_as_powerpc_rel16 = yes; then
25192 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25196 case $target in
25197 *-*-aix*) conftest_s=' .machine "pwr6"
25198 .csect .text[PR]
25199 cmpb 3,4,5';;
25200 *) conftest_s=' .machine power6
25201 .text
25202 cmpb 3,4,5';;
25203 esac
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25206 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25207 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25210 gcc_cv_as_powerpc_cmpb=no
25211 if test $in_tree_gas = yes; then
25212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25213 then gcc_cv_as_powerpc_cmpb=yes
25215 elif test x$gcc_cv_as != x; then
25216 $as_echo "$conftest_s" > conftest.s
25217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222 test $ac_status = 0; }; }
25223 then
25224 gcc_cv_as_powerpc_cmpb=yes
25225 else
25226 echo "configure: failed program was" >&5
25227 cat conftest.s >&5
25229 rm -f conftest.o conftest.s
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25233 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25234 if test $gcc_cv_as_powerpc_cmpb = yes; then
25236 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25240 case $target in
25241 *-*-aix*) conftest_s=' .machine "pwr6"
25242 .csect .text[PR]
25243 dadd 1,2,3';;
25244 *) conftest_s=' .machine power6
25245 .text
25246 dadd 1,2,3';;
25247 esac
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25250 $as_echo_n "checking assembler for decimal float support... " >&6; }
25251 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 gcc_cv_as_powerpc_dfp=no
25255 if test $in_tree_gas = yes; then
25256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25257 then gcc_cv_as_powerpc_dfp=yes
25259 elif test x$gcc_cv_as != x; then
25260 $as_echo "$conftest_s" > conftest.s
25261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25267 then
25268 gcc_cv_as_powerpc_dfp=yes
25269 else
25270 echo "configure: failed program was" >&5
25271 cat conftest.s >&5
25273 rm -f conftest.o conftest.s
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25277 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25278 if test $gcc_cv_as_powerpc_dfp = yes; then
25280 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25284 case $target in
25285 *-*-aix*) conftest_s=' .machine "pwr7"
25286 .csect .text[PR]
25287 lxvd2x 1,2,3';;
25288 *) conftest_s=' .machine power7
25289 .text
25290 lxvd2x 1,2,3';;
25291 esac
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25294 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25295 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25296 $as_echo_n "(cached) " >&6
25297 else
25298 gcc_cv_as_powerpc_vsx=no
25299 if test $in_tree_gas = yes; then
25300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25301 then gcc_cv_as_powerpc_vsx=yes
25303 elif test x$gcc_cv_as != x; then
25304 $as_echo "$conftest_s" > conftest.s
25305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25310 test $ac_status = 0; }; }
25311 then
25312 gcc_cv_as_powerpc_vsx=yes
25313 else
25314 echo "configure: failed program was" >&5
25315 cat conftest.s >&5
25317 rm -f conftest.o conftest.s
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25321 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25322 if test $gcc_cv_as_powerpc_vsx = yes; then
25324 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25328 case $target in
25329 *-*-aix*) conftest_s=' .machine "pwr7"
25330 .csect .text[PR]
25331 popcntd 3,3';;
25332 *) conftest_s=' .machine power7
25333 .text
25334 popcntd 3,3';;
25335 esac
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25338 $as_echo_n "checking assembler for popcntd support... " >&6; }
25339 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 gcc_cv_as_powerpc_popcntd=no
25343 if test $in_tree_gas = yes; then
25344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25345 then gcc_cv_as_powerpc_popcntd=yes
25347 elif test x$gcc_cv_as != x; then
25348 $as_echo "$conftest_s" > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 gcc_cv_as_powerpc_popcntd=yes
25357 else
25358 echo "configure: failed program was" >&5
25359 cat conftest.s >&5
25361 rm -f conftest.o conftest.s
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25365 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25366 if test $gcc_cv_as_powerpc_popcntd = yes; then
25368 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25372 case $target in
25373 *-*-aix*) conftest_s=' .csect .text[PR]
25374 lwsync';;
25375 *) conftest_s=' .text
25376 lwsync';;
25377 esac
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25380 $as_echo_n "checking assembler for lwsync support... " >&6; }
25381 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25383 else
25384 gcc_cv_as_powerpc_lwsync=no
25385 if test $in_tree_gas = yes; then
25386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25387 then gcc_cv_as_powerpc_lwsync=yes
25389 elif test x$gcc_cv_as != x; then
25390 $as_echo "$conftest_s" > conftest.s
25391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25397 then
25398 gcc_cv_as_powerpc_lwsync=yes
25399 else
25400 echo "configure: failed program was" >&5
25401 cat conftest.s >&5
25403 rm -f conftest.o conftest.s
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25407 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25408 if test $gcc_cv_as_powerpc_lwsync = yes; then
25410 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25414 case $target in
25415 *-*-aix*) conftest_s=' .machine "476"
25416 .csect .text[PR]
25417 dci 0';;
25418 *) conftest_s=' .machine "476"
25419 .text
25420 dci 0';;
25421 esac
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25424 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25425 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25426 $as_echo_n "(cached) " >&6
25427 else
25428 gcc_cv_as_powerpc_dci=no
25429 if test $in_tree_gas = yes; then
25430 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25431 then gcc_cv_as_powerpc_dci=yes
25433 elif test x$gcc_cv_as != x; then
25434 $as_echo "$conftest_s" > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_powerpc_dci=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25451 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25452 if test $gcc_cv_as_powerpc_dci = yes; then
25454 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25459 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25460 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25462 else
25463 gcc_cv_as_powerpc_gnu_attribute=no
25464 if test $in_tree_gas = yes; then
25465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25466 then gcc_cv_as_powerpc_gnu_attribute=yes
25468 elif test x$gcc_cv_as != x; then
25469 $as_echo '.gnu_attribute 4,1' > conftest.s
25470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25476 then
25477 gcc_cv_as_powerpc_gnu_attribute=yes
25478 else
25479 echo "configure: failed program was" >&5
25480 cat conftest.s >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25486 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25487 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25489 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25494 $as_echo_n "checking assembler for tls marker support... " >&6; }
25495 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25496 $as_echo_n "(cached) " >&6
25497 else
25498 gcc_cv_as_powerpc_tls_markers=no
25499 if test $in_tree_gas = yes; then
25500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25501 then gcc_cv_as_powerpc_tls_markers=yes
25503 elif test x$gcc_cv_as != x; then
25504 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25507 (eval $ac_try) 2>&5
25508 ac_status=$?
25509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25510 test $ac_status = 0; }; }
25511 then
25512 gcc_cv_as_powerpc_tls_markers=yes
25513 else
25514 echo "configure: failed program was" >&5
25515 cat conftest.s >&5
25517 rm -f conftest.o conftest.s
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25521 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25522 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25524 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25528 case $target in
25529 *-*-aix*)
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25531 $as_echo_n "checking assembler for .ref support... " >&6; }
25532 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 gcc_cv_as_aix_ref=no
25536 if test $in_tree_gas = yes; then
25537 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25538 then :
25540 elif test x$gcc_cv_as != x; then
25541 $as_echo ' .csect stuff[rw]
25542 stuff:
25543 .long 1
25544 .extern sym
25545 .ref sym
25546 ' > conftest.s
25547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25549 (eval $ac_try) 2>&5
25550 ac_status=$?
25551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25552 test $ac_status = 0; }; }
25553 then
25554 gcc_cv_as_aix_ref=yes
25555 else
25556 echo "configure: failed program was" >&5
25557 cat conftest.s >&5
25559 rm -f conftest.o conftest.s
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25563 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25564 if test $gcc_cv_as_aix_ref = yes; then
25566 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25570 esac
25573 mips*-*-*)
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25575 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25576 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25578 else
25579 gcc_cv_as_mips_explicit_relocs=no
25580 if test $in_tree_gas = yes; then
25581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25582 then gcc_cv_as_mips_explicit_relocs=yes
25584 elif test x$gcc_cv_as != x; then
25585 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25592 then
25593 gcc_cv_as_mips_explicit_relocs=yes
25594 else
25595 echo "configure: failed program was" >&5
25596 cat conftest.s >&5
25598 rm -f conftest.o conftest.s
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25602 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25603 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25604 if test x$target_cpu_default = x
25605 then target_cpu_default=MASK_EXPLICIT_RELOCS
25606 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25610 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25611 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25613 else
25614 gcc_cv_as_mips_no_shared=no
25615 if test $in_tree_gas = yes; then
25616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25617 then gcc_cv_as_mips_no_shared=yes
25619 elif test x$gcc_cv_as != x; then
25620 $as_echo 'nop' > conftest.s
25621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25623 (eval $ac_try) 2>&5
25624 ac_status=$?
25625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25626 test $ac_status = 0; }; }
25627 then
25628 gcc_cv_as_mips_no_shared=yes
25629 else
25630 echo "configure: failed program was" >&5
25631 cat conftest.s >&5
25633 rm -f conftest.o conftest.s
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25637 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25638 if test $gcc_cv_as_mips_no_shared = yes; then
25640 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25645 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25646 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25647 $as_echo_n "(cached) " >&6
25648 else
25649 gcc_cv_as_mips_gnu_attribute=no
25650 if test $in_tree_gas = yes; then
25651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25652 then gcc_cv_as_mips_gnu_attribute=yes
25654 elif test x$gcc_cv_as != x; then
25655 $as_echo '.gnu_attribute 4,1' > conftest.s
25656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25661 test $ac_status = 0; }; }
25662 then
25663 gcc_cv_as_mips_gnu_attribute=yes
25664 else
25665 echo "configure: failed program was" >&5
25666 cat conftest.s >&5
25668 rm -f conftest.o conftest.s
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25672 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25673 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25675 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25680 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25681 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25682 $as_echo_n "(cached) " >&6
25683 else
25684 gcc_cv_as_mips_dtprelword=no
25685 if test $in_tree_gas = yes; then
25686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25687 then gcc_cv_as_mips_dtprelword=yes
25689 elif test x$gcc_cv_as != x; then
25690 $as_echo '.section .tdata,"awT",@progbits
25692 .word 2
25693 .text
25694 .dtprelword x+0x8000' > conftest.s
25695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25701 then
25702 gcc_cv_as_mips_dtprelword=yes
25703 else
25704 echo "configure: failed program was" >&5
25705 cat conftest.s >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25711 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25712 if test $gcc_cv_as_mips_dtprelword = yes; then
25714 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25719 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25720 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25721 $as_echo_n "(cached) " >&6
25722 else
25723 gcc_cv_as_mips_dspr1_mult=no
25724 if test x$gcc_cv_as != x; then
25725 $as_echo ' .set mips32r2
25726 .set nodspr2
25727 .set dsp
25728 madd $ac3,$4,$5
25729 maddu $ac3,$4,$5
25730 msub $ac3,$4,$5
25731 msubu $ac3,$4,$5
25732 mult $ac3,$4,$5
25733 multu $ac3,$4,$5' > conftest.s
25734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25736 (eval $ac_try) 2>&5
25737 ac_status=$?
25738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25739 test $ac_status = 0; }; }
25740 then
25741 gcc_cv_as_mips_dspr1_mult=yes
25742 else
25743 echo "configure: failed program was" >&5
25744 cat conftest.s >&5
25746 rm -f conftest.o conftest.s
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25750 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25751 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25753 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25758 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25759 gcc_cv_as_ld_jalr_reloc=no
25760 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25761 if test $in_tree_ld = yes ; then
25762 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 \
25763 && test $in_tree_ld_is_elf = yes; then
25764 gcc_cv_as_ld_jalr_reloc=yes
25766 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25767 echo ' .ent x' > conftest.s
25768 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25769 echo ' ld $25,%call16(y)($28)' >> conftest.s
25770 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25771 echo '1: jalr $25' >> conftest.s
25772 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25773 echo '1: jalr $25' >> conftest.s
25774 echo ' .end x' >> conftest.s
25775 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25776 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25777 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25778 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25779 gcc_cv_as_ld_jalr_reloc=yes
25782 rm -f conftest.*
25785 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25786 if test x$target_cpu_default = x; then
25787 target_cpu_default=MASK_RELAX_PIC_CALLS
25788 else
25789 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25793 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25796 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25797 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25798 $as_echo_n "(cached) " >&6
25799 else
25800 gcc_cv_ld_mips_personality_relaxation=no
25801 if test $in_tree_ld = yes ; then
25802 if test "$gcc_cv_gld_major_version" -eq 2 \
25803 -a "$gcc_cv_gld_minor_version" -ge 21 \
25804 -o "$gcc_cv_gld_major_version" -gt 2; then
25805 gcc_cv_ld_mips_personality_relaxation=yes
25807 elif test x$gcc_cv_as != x \
25808 -a x$gcc_cv_ld != x \
25809 -a x$gcc_cv_readelf != x ; then
25810 cat > conftest.s <<EOF
25811 .cfi_startproc
25812 .cfi_personality 0x80,indirect_ptr
25813 .ent test
25814 test:
25816 .end test
25817 .cfi_endproc
25819 .section .data,"aw",@progbits
25820 indirect_ptr:
25821 .dc.a personality
25823 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25824 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25825 if $gcc_cv_readelf -d conftest 2>&1 \
25826 | grep TEXTREL > /dev/null 2>&1; then
25828 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25829 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25831 else
25832 gcc_cv_ld_mips_personality_relaxation=yes
25836 rm -f conftest.s conftest.o conftest
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25839 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25840 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25842 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25846 esac
25848 # Mips and HP-UX need the GNU assembler.
25849 # Linux on IA64 might be able to use the Intel assembler.
25851 case "$target" in
25852 mips*-*-* | *-*-hpux* )
25853 if test x$gas_flag = xyes \
25854 || test x"$host" != x"$build" \
25855 || test ! -x "$gcc_cv_as" \
25856 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25858 else
25859 echo "*** This configuration requires the GNU assembler" >&2
25860 exit 1
25863 esac
25865 # ??? Not all targets support dwarf2 debug_line, even within a version
25866 # of gas. Moreover, we need to emit a valid instruction to trigger any
25867 # info to the output file. So, as supported targets are added to gas 2.11,
25868 # add some instruction here to (also) show we expect this might work.
25869 # ??? Once 2.11 is released, probably need to add first known working
25870 # version to the per-target configury.
25871 case "$cpu_type" in
25872 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25873 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25874 insn="nop"
25876 ia64 | s390)
25877 insn="nop 0"
25879 mmix)
25880 insn="swym 0"
25882 esac
25883 if test x"$insn" != x; then
25884 conftest_s="\
25885 .file 1 \"conftest.s\"
25886 .loc 1 3 0
25887 $insn"
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25889 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25890 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_dwarf2_debug_line=no
25894 if test $in_tree_gas = yes; then
25895 if test $in_tree_gas_is_elf = yes \
25896 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25897 then gcc_cv_as_dwarf2_debug_line=yes
25899 elif test x$gcc_cv_as != x; then
25900 $as_echo "$conftest_s" > conftest.s
25901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }
25907 then
25908 if test x$gcc_cv_objdump != x \
25909 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25910 | grep debug_line > /dev/null 2>&1; then
25911 gcc_cv_as_dwarf2_debug_line=yes
25913 else
25914 echo "configure: failed program was" >&5
25915 cat conftest.s >&5
25917 rm -f conftest.o conftest.s
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25921 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25924 # The .debug_line file table must be in the exact order that
25925 # we specified the files, since these indices are also used
25926 # by DW_AT_decl_file. Approximate this test by testing if
25927 # the assembler bitches if the same index is assigned twice.
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25929 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25930 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25931 $as_echo_n "(cached) " >&6
25932 else
25933 gcc_cv_as_dwarf2_file_buggy=no
25934 if test x$gcc_cv_as != x; then
25935 $as_echo ' .file 1 "foo.s"
25936 .file 1 "bar.s"' > conftest.s
25937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25939 (eval $ac_try) 2>&5
25940 ac_status=$?
25941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25942 test $ac_status = 0; }; }
25943 then
25944 gcc_cv_as_dwarf2_file_buggy=yes
25945 else
25946 echo "configure: failed program was" >&5
25947 cat conftest.s >&5
25949 rm -f conftest.o conftest.s
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25953 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25956 if test $gcc_cv_as_dwarf2_debug_line = yes \
25957 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25959 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25964 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25965 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25966 $as_echo_n "(cached) " >&6
25967 else
25968 gcc_cv_as_gdwarf2_flag=no
25969 if test $in_tree_gas = yes; then
25970 if test $in_tree_gas_is_elf = yes \
25971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25972 then gcc_cv_as_gdwarf2_flag=yes
25974 elif test x$gcc_cv_as != x; then
25975 $as_echo "$insn" > conftest.s
25976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25981 test $ac_status = 0; }; }
25982 then
25983 gcc_cv_as_gdwarf2_flag=yes
25984 else
25985 echo "configure: failed program was" >&5
25986 cat conftest.s >&5
25988 rm -f conftest.o conftest.s
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25992 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25993 if test $gcc_cv_as_gdwarf2_flag = yes; then
25995 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26000 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26001 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26002 $as_echo_n "(cached) " >&6
26003 else
26004 gcc_cv_as_gstabs_flag=no
26005 if test $in_tree_gas = yes; then
26006 if test $in_tree_gas_is_elf = yes \
26007 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26008 then gcc_cv_as_gstabs_flag=yes
26010 elif test x$gcc_cv_as != x; then
26011 $as_echo "$insn" > conftest.s
26012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26018 then
26019 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26020 # and warns about it, but still exits successfully. So check for
26021 # this.
26022 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26027 test $ac_status = 0; }; }
26028 then :
26029 else gcc_cv_as_gstabs_flag=yes
26031 else
26032 echo "configure: failed program was" >&5
26033 cat conftest.s >&5
26035 rm -f conftest.o conftest.s
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26039 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26040 if test $gcc_cv_as_gstabs_flag = yes; then
26042 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26047 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26048 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26049 $as_echo_n "(cached) " >&6
26050 else
26051 gcc_cv_as_debug_prefix_map_flag=no
26052 if test $in_tree_gas = yes; then
26053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26054 then gcc_cv_as_debug_prefix_map_flag=yes
26056 elif test x$gcc_cv_as != x; then
26057 $as_echo "$insn" > conftest.s
26058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }; }
26064 then
26065 gcc_cv_as_debug_prefix_map_flag=yes
26066 else
26067 echo "configure: failed program was" >&5
26068 cat conftest.s >&5
26070 rm -f conftest.o conftest.s
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26074 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26075 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26077 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26083 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26084 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26086 else
26087 gcc_cv_as_lcomm_with_alignment=no
26088 if test x$gcc_cv_as != x; then
26089 $as_echo '.lcomm bar,4,16' > conftest.s
26090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26092 (eval $ac_try) 2>&5
26093 ac_status=$?
26094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; }
26096 then
26097 gcc_cv_as_lcomm_with_alignment=yes
26098 else
26099 echo "configure: failed program was" >&5
26100 cat conftest.s >&5
26102 rm -f conftest.o conftest.s
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26106 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26107 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26109 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26113 # Check whether --enable-gnu-unique-object was given.
26114 if test "${enable_gnu_unique_object+set}" = set; then :
26115 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26116 yes | no) ;;
26117 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26118 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26119 esac
26120 else
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26122 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26123 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26125 else
26126 gcc_cv_as_gnu_unique_object=no
26127 if test $in_tree_gas = yes; then
26128 if test $in_tree_gas_is_elf = yes \
26129 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26130 then gcc_cv_as_gnu_unique_object=yes
26132 elif test x$gcc_cv_as != x; then
26133 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
26138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139 test $ac_status = 0; }; }
26140 then
26141 gcc_cv_as_gnu_unique_object=yes
26142 else
26143 echo "configure: failed program was" >&5
26144 cat conftest.s >&5
26146 rm -f conftest.o conftest.s
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26150 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26151 if test $gcc_cv_as_gnu_unique_object = yes; then
26152 # We need to unquote above to to use the definition from config.gcc.
26153 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26154 if test x$host = x$build -a x$host = x$target &&
26155 ldd --version 2>/dev/null &&
26156 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26157 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26158 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26159 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26160 if test "$glibcnum" -ge 2011 ; then
26161 enable_gnu_unique_object=yes
26167 if test x$enable_gnu_unique_object = xyes; then
26169 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26174 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26175 if test "${gcc_cv_as_line_zero+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_line_zero=no
26179 if test $in_tree_gas = yes; then
26180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26181 then gcc_cv_as_line_zero=yes
26183 elif test "x$gcc_cv_as" != x; then
26184 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26185 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26190 test $ac_status = 0; }; } &&
26191 test "x`cat conftest.out`" = x
26192 then
26193 gcc_cv_as_line_zero=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26197 echo "configure: error output was" >&5
26198 cat conftest.out >&5
26200 rm -f conftest.o conftest.s conftest.out
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26204 $as_echo "$gcc_cv_as_line_zero" >&6; }
26205 if test "x$gcc_cv_as_line_zero" = xyes; then
26207 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26212 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26213 gcc_cv_ld_eh_frame_hdr=no
26214 if test $in_tree_ld = yes ; then
26215 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 \
26216 && test $in_tree_ld_is_elf = yes; then
26217 gcc_cv_ld_eh_frame_hdr=yes
26219 elif test x$gcc_cv_ld != x; then
26220 if echo "$ld_ver" | grep GNU > /dev/null; then
26221 # Check if linker supports --eh-frame-hdr option
26222 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26223 gcc_cv_ld_eh_frame_hdr=yes
26225 else
26226 case "$target" in
26227 *-*-solaris2*)
26228 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26229 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26230 gcc_cv_ld_eh_frame_hdr=yes
26233 esac
26237 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26239 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26243 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26246 $as_echo_n "checking linker position independent executable support... " >&6; }
26247 gcc_cv_ld_pie=no
26248 if test $in_tree_ld = yes ; then
26249 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 \
26250 && test $in_tree_ld_is_elf = yes; then
26251 gcc_cv_ld_pie=yes
26253 elif test x$gcc_cv_ld != x; then
26254 # Check if linker supports -pie option
26255 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26256 gcc_cv_ld_pie=yes
26259 if test x"$gcc_cv_ld_pie" = xyes; then
26261 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26265 $as_echo "$gcc_cv_ld_pie" >&6; }
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26268 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26269 gcc_cv_ld_eh_gc_sections=no
26270 if test $in_tree_ld = yes ; then
26271 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 \
26272 && test $in_tree_ld_is_elf = yes; then
26273 gcc_cv_ld_eh_gc_sections=yes
26275 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26276 cat > conftest.s <<EOF
26277 .section .text
26278 .globl _start
26279 .type _start, @function
26280 _start:
26281 .long foo
26282 .size _start, .-_start
26283 .section .text.foo,"ax",@progbits
26284 .type foo, @function
26285 foo:
26286 .long 0
26287 .size foo, .-foo
26288 .section .gcc_except_table.foo,"a",@progbits
26289 .L0:
26290 .long 0
26291 .section .eh_frame,"a",@progbits
26292 .long .L0
26294 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26295 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26296 | grep "gc-sections option ignored" > /dev/null; then
26297 gcc_cv_ld_eh_gc_sections=no
26298 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26299 | grep gcc_except_table > /dev/null; then
26300 gcc_cv_ld_eh_gc_sections=yes
26301 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26302 if test x$gcc_cv_as_comdat_group != xyes; then
26303 gcc_cv_ld_eh_gc_sections=no
26304 cat > conftest.s <<EOF
26305 .section .text
26306 .globl _start
26307 .type _start, @function
26308 _start:
26309 .long foo
26310 .size _start, .-_start
26311 .section .gnu.linkonce.t.foo,"ax",@progbits
26312 .type foo, @function
26313 foo:
26314 .long 0
26315 .size foo, .-foo
26316 .section .gcc_except_table.foo,"a",@progbits
26317 .L0:
26318 .long 0
26319 .section .eh_frame,"a",@progbits
26320 .long .L0
26322 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26323 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26324 | grep "gc-sections option ignored" > /dev/null; then
26325 gcc_cv_ld_eh_gc_sections=no
26326 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26327 | grep gcc_except_table > /dev/null; then
26328 gcc_cv_ld_eh_gc_sections=yes
26334 rm -f conftest.s conftest.o conftest
26336 case "$target" in
26337 hppa*-*-linux*)
26338 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26339 gcc_cv_ld_eh_gc_sections=no
26341 esac
26342 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26344 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26348 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26351 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26352 gcc_cv_ld_eh_gc_sections_bug=no
26353 if test $in_tree_ld = yes ; then
26354 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 \
26355 && test $in_tree_ld_is_elf = yes; then
26356 gcc_cv_ld_eh_gc_sections_bug=yes
26358 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
26359 gcc_cv_ld_eh_gc_sections_bug=yes
26360 cat > conftest.s <<EOF
26361 .section .text
26362 .globl _start
26363 .type _start, @function
26364 _start:
26365 .long foo
26366 .size _start, .-_start
26367 .section .text.startup.foo,"ax",@progbits
26368 .type foo, @function
26369 foo:
26370 .long 0
26371 .size foo, .-foo
26372 .section .gcc_except_table.foo,"a",@progbits
26373 .L0:
26374 .long 0
26375 .section .eh_frame,"a",@progbits
26376 .long .L0
26378 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26379 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26380 | grep "gc-sections option ignored" > /dev/null; then
26382 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26383 | grep gcc_except_table > /dev/null; then
26384 gcc_cv_ld_eh_gc_sections_bug=no
26387 rm -f conftest.s conftest.o conftest
26389 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26391 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26395 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26397 # --------
26398 # UNSORTED
26399 # --------
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26402 $as_echo_n "checking linker --as-needed support... " >&6; }
26403 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26404 $as_echo_n "(cached) " >&6
26405 else
26406 gcc_cv_ld_as_needed=no
26407 if test $in_tree_ld = yes ; then
26408 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 \
26409 && test $in_tree_ld_is_elf = yes; then
26410 gcc_cv_ld_as_needed=yes
26412 elif test x$gcc_cv_ld != x; then
26413 # Check if linker supports --as-needed and --no-as-needed options
26414 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26415 gcc_cv_ld_as_needed=yes
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26421 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26422 if test x"$gcc_cv_ld_as_needed" = xyes; then
26424 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26428 case "$target:$tm_file" in
26429 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26430 case "$target" in
26431 *-*-linux*)
26432 emul_name="-melf64ppc"
26434 *-*-freebsd*)
26435 emul_name="-melf64ppc_fbsd"
26437 esac
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26439 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26440 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26441 $as_echo_n "(cached) " >&6
26442 else
26443 gcc_cv_ld_no_dot_syms=no
26444 if test $in_tree_ld = yes ; then
26445 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
26446 gcc_cv_ld_no_dot_syms=yes
26448 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26449 cat > conftest1.s <<EOF
26450 .text
26451 bl .foo
26453 cat > conftest2.s <<EOF
26454 .section ".opd","aw"
26455 .align 3
26456 .globl foo
26457 .type foo,@function
26458 foo:
26459 .quad .LEfoo,.TOC.@tocbase,0
26460 .text
26461 .LEfoo:
26463 .size foo,.-.LEfoo
26465 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26466 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26467 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26468 gcc_cv_ld_no_dot_syms=yes
26470 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26475 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26476 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26478 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26483 $as_echo_n "checking linker large toc support... " >&6; }
26484 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26485 $as_echo_n "(cached) " >&6
26486 else
26487 gcc_cv_ld_large_toc=no
26488 if test $in_tree_ld = yes ; then
26489 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
26490 gcc_cv_ld_large_toc=yes
26492 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26493 cat > conftest.s <<EOF
26494 .section ".tbss","awT",@nobits
26495 .align 3
26496 ie0: .space 8
26497 .global _start
26498 .text
26499 _start:
26500 addis 9,13,ie0@got@tprel@ha
26501 ld 9,ie0@got@tprel@l(9)
26503 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26504 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26505 gcc_cv_ld_large_toc=yes
26507 rm -f conftest conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26512 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26513 if test x"$gcc_cv_ld_large_toc" = xyes; then
26515 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26519 esac
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26522 $as_echo_n "checking linker --build-id support... " >&6; }
26523 if test "${gcc_cv_ld_buildid+set}" = set; then :
26524 $as_echo_n "(cached) " >&6
26525 else
26526 gcc_cv_ld_buildid=no
26527 if test $in_tree_ld = yes ; then
26528 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26529 "$gcc_cv_gld_minor_version" -ge 18 -o \
26530 "$gcc_cv_gld_major_version" -gt 2 \
26531 && test $in_tree_ld_is_elf = yes; then
26532 gcc_cv_ld_buildid=yes
26534 elif test x$gcc_cv_ld != x; then
26535 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26536 gcc_cv_ld_buildid=yes
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26541 $as_echo "$gcc_cv_ld_buildid" >&6; }
26542 if test x"$gcc_cv_ld_buildid" = xyes; then
26544 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26548 # Check whether --enable-linker-build-id was given.
26549 if test "${enable_linker_build_id+set}" = set; then :
26550 enableval=$enable_linker_build_id;
26551 else
26552 enable_linker_build_id=no
26556 if test x"$enable_linker_build_id" = xyes; then
26557 if test x"$gcc_cv_ld_buildid" = xyes; then
26559 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26561 else
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26563 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26567 # In binutils 2.21, GNU ld gained support for new emulations fully
26568 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26570 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26571 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26572 $as_echo_n "(cached) " >&6
26573 else
26574 gcc_cv_ld_sol2_emulation=no
26575 if test $in_tree_ld = yes ; then
26576 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26577 "$gcc_cv_gld_minor_version" -ge 21 -o \
26578 "$gcc_cv_gld_major_version" -gt 2 \
26579 && test $in_tree_ld_is_elf = yes; then
26580 gcc_cv_ld_sol2_emulation=yes
26582 elif test x$gcc_cv_ld != x; then
26583 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26584 grep _sol2 > /dev/null; then
26585 gcc_cv_ld_sol2_emulation=yes
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26590 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26591 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26593 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26598 $as_echo_n "checking linker --sysroot support... " >&6; }
26599 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_ld_sysroot=no
26603 if test $in_tree_ld = yes ; then
26604 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
26605 gcc_cv_ld_sysroot=yes
26607 elif test x$gcc_cv_ld != x; then
26608 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26609 gcc_cv_ld_sysroot=yes
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26614 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26615 if test x"$gcc_cv_ld_sysroot" = xyes; then
26617 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26621 if test x$with_sysroot = x && test x$host = x$target \
26622 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26623 && test "$prefix" != "NONE"; then
26625 cat >>confdefs.h <<_ACEOF
26626 #define PREFIX_INCLUDE_DIR "$prefix/include"
26627 _ACEOF
26631 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26632 if test "x$with_headers" != x; then
26633 target_header_dir=$with_headers
26634 elif test "x$with_sysroot" = x; then
26635 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26636 elif test "x$with_build_sysroot" != "x"; then
26637 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26638 elif test "x$with_sysroot" = xyes; then
26639 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26640 else
26641 target_header_dir="${with_sysroot}${native_system_header_dir}"
26643 else
26644 target_header_dir=${native_system_header_dir}
26647 # Test for stack protector support in target C library.
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26649 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26650 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26651 $as_echo_n "(cached) " >&6
26652 else
26653 gcc_cv_libc_provides_ssp=no
26654 case "$target" in
26655 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26656 # glibc 2.4 and later provides __stack_chk_fail and
26657 # either __stack_chk_guard, or TLS access to stack guard canary.
26658 if test -f $target_header_dir/features.h \
26659 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26660 $target_header_dir/features.h > /dev/null; then
26661 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26662 $target_header_dir/features.h > /dev/null; then
26663 gcc_cv_libc_provides_ssp=yes
26664 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26665 $target_header_dir/features.h > /dev/null \
26666 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26667 $target_header_dir/features.h > /dev/null; then
26668 gcc_cv_libc_provides_ssp=yes
26669 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26670 $target_header_dir/features.h > /dev/null && \
26671 test -f $target_header_dir/bits/uClibc_config.h && \
26672 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26673 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26674 gcc_cv_libc_provides_ssp=yes
26676 # all versions of Bionic support stack protector
26677 elif test -f $target_header_dir/sys/cdefs.h \
26678 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26679 $target_header_dir/sys/cdefs.h > /dev/null; then
26680 gcc_cv_libc_provides_ssp=yes
26683 *-*-gnu*)
26684 # Avoid complicated tests (see
26685 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26686 # simply assert that glibc does provide this, which is true for all
26687 # realistically usable GNU/Hurd configurations.
26688 gcc_cv_libc_provides_ssp=yes;;
26689 *-*-darwin* | *-*-freebsd*)
26690 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26691 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26692 gcc_cv_libc_provides_ssp=yes
26693 else
26694 echo "no __stack_chk_fail on this target"
26698 *) gcc_cv_libc_provides_ssp=no ;;
26699 esac
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26702 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26704 if test x$gcc_cv_libc_provides_ssp = xyes; then
26706 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26710 # Test for <sys/sdt.h> on the target.
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26713 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26714 have_sys_sdt_h=no
26715 if test -f $target_header_dir/sys/sdt.h; then
26716 have_sys_sdt_h=yes
26718 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26722 $as_echo "$have_sys_sdt_h" >&6; }
26724 # Check if TFmode long double should be used by default or not.
26725 # Some glibc targets used DFmode long double, but with glibc 2.4
26726 # and later they can use TFmode.
26727 case "$target" in
26728 powerpc*-*-linux* | \
26729 sparc*-*-linux* | \
26730 s390*-*-linux* | \
26731 alpha*-*-linux*)
26733 # Check whether --with-long-double-128 was given.
26734 if test "${with_long_double_128+set}" = set; then :
26735 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26736 else
26737 gcc_cv_target_ldbl128=no
26738 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26739 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26740 && gcc_cv_target_ldbl128=yes
26745 esac
26746 if test x$gcc_cv_target_ldbl128 = xyes; then
26748 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26753 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26754 gcc_cv_target_dl_iterate_phdr=unknown
26755 case "$target" in
26756 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26757 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26758 # libdl there, both complicating its use and breaking compatibility
26759 # between Solaris 10 updates.
26760 *-*-solaris2.1[1-9]*)
26761 # <link.h> needs both a dl_iterate_phdr declaration and support for
26762 # compilation with largefile support.
26763 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26764 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26765 gcc_cv_target_dl_iterate_phdr=yes
26766 else
26767 gcc_cv_target_dl_iterate_phdr=no
26770 esac
26772 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26774 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26778 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26780 # Find out what GC implementation we want, or may, use.
26782 # Check whether --with-gc was given.
26783 if test "${with_gc+set}" = set; then :
26784 withval=$with_gc; case "$withval" in
26785 page)
26786 GGC=ggc-$withval
26788 zone)
26789 GGC=ggc-$withval
26791 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26795 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26797 esac
26798 else
26799 GGC=ggc-page
26803 echo "Using $GGC for garbage collection."
26805 # Libraries to use on the host. This will normally be set by the top
26806 # level Makefile. Here we simply capture the value for our Makefile.
26807 if test -z "${HOST_LIBS+set}"; then
26808 HOST_LIBS=
26812 # Use the system's zlib library.
26813 zlibdir=-L../zlib
26814 zlibinc="-I\$(srcdir)/../zlib"
26816 # Check whether --with-system-zlib was given.
26817 if test "${with_system_zlib+set}" = set; then :
26818 withval=$with_system_zlib; zlibdir=
26819 zlibinc=
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26828 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26829 # Check whether --enable-maintainer-mode was given.
26830 if test "${enable_maintainer_mode+set}" = set; then :
26831 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26832 else
26833 maintainer_mode=no
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26838 $as_echo "$maintainer_mode" >&6; }
26840 if test "$maintainer_mode" = "yes"; then
26841 MAINT=''
26842 else
26843 MAINT='#'
26846 # --------------
26847 # Language hooks
26848 # --------------
26850 # Make empty files to contain the specs and options for each language.
26851 # Then add #include lines to for a compiler that has specs and/or options.
26853 subdirs=
26854 lang_opt_files=
26855 lang_specs_files=
26856 lang_tree_files=
26857 # These (without "all_") are set in each config-lang.in.
26858 # `language' must be a single word so is spelled singularly.
26859 all_languages=
26860 all_compilers=
26861 all_outputs='Makefile'
26862 # List of language makefile fragments.
26863 all_lang_makefrags=
26864 # Additional files for gengtype
26865 all_gtfiles="$target_gtfiles"
26867 # These are the languages that are set in --enable-languages,
26868 # and are available in the GCC tree.
26869 all_selected_languages=
26871 # Add the language fragments.
26872 # Languages are added via two mechanisms. Some information must be
26873 # recorded in makefile variables, these are defined in config-lang.in.
26874 # We accumulate them and plug them into the main Makefile.
26875 # The other mechanism is a set of hooks for each of the main targets
26876 # like `clean', `install', etc.
26878 language_hooks="Make-hooks"
26880 for lang in ${srcdir}/*/config-lang.in
26882 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26884 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26885 if test "x$lang_alias" = x
26886 then
26887 echo "$lang doesn't set \$language." 1>&2
26888 exit 1
26890 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26891 subdirs="$subdirs $subdir"
26893 # $gcc_subdir is where the gcc integration files are to be found
26894 # for a language, both for internal compiler purposes (compiler
26895 # sources implementing front-end to GCC tree converters), and for
26896 # build infrastructure purposes (Make-lang.in, etc.)
26898 # This will be <subdir> (relative to $srcdir) if a line like
26899 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26900 # is found in <langdir>/config-lang.in, and will remain <langdir>
26901 # otherwise.
26903 # Except for the language alias (fetched above), the regular
26904 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26905 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26906 # only this and the language alias.
26908 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26909 if [ "$gcc_subdir" = "" ]; then
26910 gcc_subdir="$subdir"
26913 case ",$enable_languages," in
26914 *,$lang_alias,*)
26915 all_selected_languages="$all_selected_languages $lang_alias"
26916 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26917 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26920 esac
26922 language=
26923 boot_language=
26924 compilers=
26925 outputs=
26926 gtfiles=
26927 subdir_requires=
26928 . ${srcdir}/$gcc_subdir/config-lang.in
26929 if test "x$language" = x
26930 then
26931 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26932 exit 1
26935 ok=:
26936 case ",$enable_languages," in
26937 *,$lang_alias,*) ;;
26939 for i in $subdir_requires; do
26940 test -f "${srcdir}/$i/config-lang.in" && continue
26941 ok=false
26942 break
26943 done
26945 esac
26946 $ok || continue
26948 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26949 if test -f $srcdir/$gcc_subdir/lang.opt; then
26950 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26951 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26953 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26954 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26956 all_languages="$all_languages $language"
26957 all_compilers="$all_compilers $compilers"
26958 all_outputs="$all_outputs $outputs"
26959 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26960 case ",$enable_languages," in
26961 *,lto,*)
26963 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26965 enable_lto=yes
26968 *) ;;
26969 esac
26970 done
26972 check_languages=
26973 for language in $all_selected_languages
26975 check_languages="$check_languages check-$language"
26976 done
26978 # We link each language in with a set of hooks, reached indirectly via
26979 # lang.${target}. Only do so for selected languages.
26981 rm -f Make-hooks
26982 touch Make-hooks
26983 target_list="all.cross start.encap rest.encap tags \
26984 install-common install-man install-info install-pdf install-html dvi \
26985 pdf html uninstall info man srcextra srcman srcinfo \
26986 mostlyclean clean distclean maintainer-clean install-plugin"
26988 for t in $target_list
26991 for lang in $all_selected_languages
26993 x="$x $lang.$t"
26994 done
26995 echo "lang.$t: $x" >> Make-hooks
26996 done
26998 # --------
26999 # Option include files
27000 # --------
27002 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27003 option_includes="option-includes.mk"
27006 # --------
27007 # UNSORTED
27008 # --------
27010 # Create .gdbinit.
27012 echo "dir ." > .gdbinit
27013 echo "dir ${srcdir}" >> .gdbinit
27014 if test x$gdb_needs_out_file_path = xyes
27015 then
27016 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27018 if test "x$subdirs" != x; then
27019 for s in $subdirs
27021 echo "dir ${srcdir}/$s" >> .gdbinit
27022 done
27024 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27026 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27030 # Find a directory in which to install a shared libgcc.
27032 # Check whether --enable-version-specific-runtime-libs was given.
27033 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27034 enableval=$enable_version_specific_runtime_libs;
27038 # Substitute configuration variables
27101 # Echo link setup.
27102 if test x${build} = x${host} ; then
27103 if test x${host} = x${target} ; then
27104 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27105 else
27106 echo "Links are now set up to build a cross-compiler" 1>&2
27107 echo " from ${host} to ${target}." 1>&2
27109 else
27110 if test x${host} = x${target} ; then
27111 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27112 echo " for ${target}." 1>&2
27113 else
27114 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27115 echo " from ${host} to ${target}." 1>&2
27127 if test "x${CLOOGLIBS}" != "x" ; then
27129 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27133 # Check for plugin support
27134 # Check whether --enable-plugin was given.
27135 if test "${enable_plugin+set}" = set; then :
27136 enableval=$enable_plugin; enable_plugin=$enableval
27137 else
27138 enable_plugin=yes; default_plugin=yes
27142 pluginlibs=
27144 case "${host}" in
27145 *-*-darwin*)
27146 if test x$build = x$host; then
27147 export_sym_check="nm${exeext} -g"
27148 elif test x$host = x$target; then
27149 export_sym_check="$gcc_cv_nm -g"
27150 else
27151 export_sym_check=
27155 if test x$build = x$host; then
27156 export_sym_check="objdump${exeext} -T"
27157 elif test x$host = x$target; then
27158 export_sym_check="$gcc_cv_objdump -T"
27159 else
27160 export_sym_check=
27163 esac
27165 if test x"$enable_plugin" = x"yes"; then
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27168 $as_echo_n "checking for exported symbols... " >&6; }
27169 if test "x$export_sym_check" != x; then
27170 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27171 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27172 if $export_sym_check conftest | grep foobar > /dev/null; then
27173 : # No need to use a flag
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27175 $as_echo "yes" >&6; }
27176 else
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27178 $as_echo "yes" >&6; }
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27180 $as_echo_n "checking for -rdynamic... " >&6; }
27181 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27182 if $export_sym_check conftest | grep foobar > /dev/null; then
27183 plugin_rdynamic=yes
27184 pluginlibs="-rdynamic"
27185 else
27186 plugin_rdynamic=no
27187 enable_plugin=no
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27190 $as_echo "$plugin_rdynamic" >&6; }
27192 else
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27194 $as_echo "unable to check" >&6; }
27197 # Check -ldl
27198 saved_LIBS="$LIBS"
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27200 $as_echo_n "checking for library containing dlopen... " >&6; }
27201 if test "${ac_cv_search_dlopen+set}" = set; then :
27202 $as_echo_n "(cached) " >&6
27203 else
27204 ac_func_search_save_LIBS=$LIBS
27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27208 /* Override any GCC internal prototype to avoid an error.
27209 Use char because int might match the return type of a GCC
27210 builtin and then its argument prototype would still apply. */
27211 #ifdef __cplusplus
27212 extern "C"
27213 #endif
27214 char dlopen ();
27216 main ()
27218 return dlopen ();
27220 return 0;
27222 _ACEOF
27223 for ac_lib in '' dl; do
27224 if test -z "$ac_lib"; then
27225 ac_res="none required"
27226 else
27227 ac_res=-l$ac_lib
27228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27230 if ac_fn_c_try_link "$LINENO"; then :
27231 ac_cv_search_dlopen=$ac_res
27233 rm -f core conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext
27235 if test "${ac_cv_search_dlopen+set}" = set; then :
27236 break
27238 done
27239 if test "${ac_cv_search_dlopen+set}" = set; then :
27241 else
27242 ac_cv_search_dlopen=no
27244 rm conftest.$ac_ext
27245 LIBS=$ac_func_search_save_LIBS
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27248 $as_echo "$ac_cv_search_dlopen" >&6; }
27249 ac_res=$ac_cv_search_dlopen
27250 if test "$ac_res" != no; then :
27251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27255 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27256 pluginlibs="$pluginlibs -ldl"
27258 LIBS="$saved_LIBS"
27260 # Check that we can build shared objects with -fPIC -shared
27261 saved_LDFLAGS="$LDFLAGS"
27262 saved_CFLAGS="$CFLAGS"
27263 case "${host}" in
27264 *-*-darwin*)
27265 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27266 CFLAGS="$CFLAGS -fPIC"
27267 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27270 CFLAGS="$CFLAGS -fPIC"
27271 LDFLAGS="$LDFLAGS -fPIC -shared"
27273 esac
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27275 $as_echo_n "checking for -fPIC -shared... " >&6; }
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h. */
27278 extern int X;
27280 main ()
27282 return X == 0;
27284 return 0;
27286 _ACEOF
27287 if ac_fn_c_try_link "$LINENO"; then :
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27289 $as_echo "yes" >&6; }; have_pic_shared=yes
27290 else
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27292 $as_echo "no" >&6; }; have_pic_shared=no
27294 rm -f core conftest.err conftest.$ac_objext \
27295 conftest$ac_exeext conftest.$ac_ext
27296 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27297 pluginlibs=
27298 enable_plugin=no
27300 LDFLAGS="$saved_LDFLAGS"
27301 CFLAGS="$saved_CFLAGS"
27303 # If plugin support had been requested but not available, fail.
27304 if test x"$enable_plugin" = x"no" ; then
27305 if test x"$default_plugin" != x"yes"; then
27306 as_fn_error "
27307 Building GCC with plugin support requires a host that supports
27308 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27315 if test x"$enable_plugin" = x"yes"; then
27317 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27322 # Check whether --enable-libquadmath-support was given.
27323 if test "${enable_libquadmath_support+set}" = set; then :
27324 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27325 else
27326 ENABLE_LIBQUADMATH_SUPPORT=yes
27329 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27331 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27336 # Specify what hash style to use by default.
27338 # Check whether --with-linker-hash-style was given.
27339 if test "${with_linker_hash_style+set}" = set; then :
27340 withval=$with_linker_hash_style; case x"$withval" in
27341 xsysv)
27342 LINKER_HASH_STYLE=sysv
27344 xgnu)
27345 LINKER_HASH_STYLE=gnu
27347 xboth)
27348 LINKER_HASH_STYLE=both
27351 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27353 esac
27354 else
27355 LINKER_HASH_STYLE=''
27358 if test x"${LINKER_HASH_STYLE}" != x; then
27360 cat >>confdefs.h <<_ACEOF
27361 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27362 _ACEOF
27366 # Configure the subdirectories
27367 # AC_CONFIG_SUBDIRS($subdirs)
27369 # Create the Makefile
27370 # and configure language subdirectories
27371 ac_config_files="$ac_config_files $all_outputs"
27374 ac_config_commands="$ac_config_commands default"
27376 cat >confcache <<\_ACEOF
27377 # This file is a shell script that caches the results of configure
27378 # tests run on this system so they can be shared between configure
27379 # scripts and configure runs, see configure's option --config-cache.
27380 # It is not useful on other systems. If it contains results you don't
27381 # want to keep, you may remove or edit it.
27383 # config.status only pays attention to the cache file if you give it
27384 # the --recheck option to rerun configure.
27386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27388 # following values.
27390 _ACEOF
27392 # The following way of writing the cache mishandles newlines in values,
27393 # but we know of no workaround that is simple, portable, and efficient.
27394 # So, we kill variables containing newlines.
27395 # Ultrix sh set writes to stderr and can't be redirected directly,
27396 # and sets the high bit in the cache file unless we assign to the vars.
27398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27399 eval ac_val=\$$ac_var
27400 case $ac_val in #(
27401 *${as_nl}*)
27402 case $ac_var in #(
27403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27405 esac
27406 case $ac_var in #(
27407 _ | IFS | as_nl) ;; #(
27408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27409 *) { eval $ac_var=; unset $ac_var;} ;;
27410 esac ;;
27411 esac
27412 done
27414 (set) 2>&1 |
27415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27416 *${as_nl}ac_space=\ *)
27417 # `set' does not quote correctly, so add quotes: double-quote
27418 # substitution turns \\\\ into \\, and sed turns \\ into \.
27419 sed -n \
27420 "s/'/'\\\\''/g;
27421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27422 ;; #(
27424 # `set' quotes correctly as required by POSIX, so do not add quotes.
27425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27427 esac |
27428 sort
27430 sed '
27431 /^ac_cv_env_/b end
27432 t clear
27433 :clear
27434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27435 t end
27436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27437 :end' >>confcache
27438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27439 if test -w "$cache_file"; then
27440 test "x$cache_file" != "x/dev/null" &&
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27442 $as_echo "$as_me: updating cache $cache_file" >&6;}
27443 cat confcache >$cache_file
27444 else
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27446 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27449 rm -f confcache
27451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27452 # Let make expand exec_prefix.
27453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27455 DEFS=-DHAVE_CONFIG_H
27457 ac_libobjs=
27458 ac_ltlibobjs=
27459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27460 # 1. Remove the extension, and $U if already installed.
27461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27464 # will be set to the directory where LIBOBJS objects are built.
27465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27467 done
27468 LIBOBJS=$ac_libobjs
27470 LTLIBOBJS=$ac_ltlibobjs
27475 : ${CONFIG_STATUS=./config.status}
27476 ac_write_fail=0
27477 ac_clean_files_save=$ac_clean_files
27478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27480 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27481 as_write_fail=0
27482 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27483 #! $SHELL
27484 # Generated by $as_me.
27485 # Run this file to recreate the current configuration.
27486 # Compiler output produced by configure, useful for debugging
27487 # configure, is in config.log if it exists.
27489 debug=false
27490 ac_cs_recheck=false
27491 ac_cs_silent=false
27493 SHELL=\${CONFIG_SHELL-$SHELL}
27494 export SHELL
27495 _ASEOF
27496 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27497 ## -------------------- ##
27498 ## M4sh Initialization. ##
27499 ## -------------------- ##
27501 # Be more Bourne compatible
27502 DUALCASE=1; export DUALCASE # for MKS sh
27503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27504 emulate sh
27505 NULLCMD=:
27506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27507 # is contrary to our usage. Disable this feature.
27508 alias -g '${1+"$@"}'='"$@"'
27509 setopt NO_GLOB_SUBST
27510 else
27511 case `(set -o) 2>/dev/null` in #(
27512 *posix*) :
27513 set -o posix ;; #(
27514 *) :
27516 esac
27520 as_nl='
27522 export as_nl
27523 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27524 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27527 # Prefer a ksh shell builtin over an external printf program on Solaris,
27528 # but without wasting forks for bash or zsh.
27529 if test -z "$BASH_VERSION$ZSH_VERSION" \
27530 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27531 as_echo='print -r --'
27532 as_echo_n='print -rn --'
27533 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27534 as_echo='printf %s\n'
27535 as_echo_n='printf %s'
27536 else
27537 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27538 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27539 as_echo_n='/usr/ucb/echo -n'
27540 else
27541 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27542 as_echo_n_body='eval
27543 arg=$1;
27544 case $arg in #(
27545 *"$as_nl"*)
27546 expr "X$arg" : "X\\(.*\\)$as_nl";
27547 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27548 esac;
27549 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27551 export as_echo_n_body
27552 as_echo_n='sh -c $as_echo_n_body as_echo'
27554 export as_echo_body
27555 as_echo='sh -c $as_echo_body as_echo'
27558 # The user is always right.
27559 if test "${PATH_SEPARATOR+set}" != set; then
27560 PATH_SEPARATOR=:
27561 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27562 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27563 PATH_SEPARATOR=';'
27568 # IFS
27569 # We need space, tab and new line, in precisely that order. Quoting is
27570 # there to prevent editors from complaining about space-tab.
27571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27572 # splitting by setting IFS to empty value.)
27573 IFS=" "" $as_nl"
27575 # Find who we are. Look in the path if we contain no directory separator.
27576 case $0 in #((
27577 *[\\/]* ) as_myself=$0 ;;
27578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27579 for as_dir in $PATH
27581 IFS=$as_save_IFS
27582 test -z "$as_dir" && as_dir=.
27583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27584 done
27585 IFS=$as_save_IFS
27588 esac
27589 # We did not find ourselves, most probably we were run as `sh COMMAND'
27590 # in which case we are not to be found in the path.
27591 if test "x$as_myself" = x; then
27592 as_myself=$0
27594 if test ! -f "$as_myself"; then
27595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27596 exit 1
27599 # Unset variables that we do not need and which cause bugs (e.g. in
27600 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27601 # suppresses any "Segmentation fault" message there. '((' could
27602 # trigger a bug in pdksh 5.2.14.
27603 for as_var in BASH_ENV ENV MAIL MAILPATH
27604 do eval test x\${$as_var+set} = xset \
27605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27606 done
27607 PS1='$ '
27608 PS2='> '
27609 PS4='+ '
27611 # NLS nuisances.
27612 LC_ALL=C
27613 export LC_ALL
27614 LANGUAGE=C
27615 export LANGUAGE
27617 # CDPATH.
27618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27621 # as_fn_error ERROR [LINENO LOG_FD]
27622 # ---------------------------------
27623 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27624 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27625 # script with status $?, using 1 if that was 0.
27626 as_fn_error ()
27628 as_status=$?; test $as_status -eq 0 && as_status=1
27629 if test "$3"; then
27630 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27633 $as_echo "$as_me: error: $1" >&2
27634 as_fn_exit $as_status
27635 } # as_fn_error
27638 # as_fn_set_status STATUS
27639 # -----------------------
27640 # Set $? to STATUS, without forking.
27641 as_fn_set_status ()
27643 return $1
27644 } # as_fn_set_status
27646 # as_fn_exit STATUS
27647 # -----------------
27648 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27649 as_fn_exit ()
27651 set +e
27652 as_fn_set_status $1
27653 exit $1
27654 } # as_fn_exit
27656 # as_fn_unset VAR
27657 # ---------------
27658 # Portably unset VAR.
27659 as_fn_unset ()
27661 { eval $1=; unset $1;}
27663 as_unset=as_fn_unset
27664 # as_fn_append VAR VALUE
27665 # ----------------------
27666 # Append the text in VALUE to the end of the definition contained in VAR. Take
27667 # advantage of any shell optimizations that allow amortized linear growth over
27668 # repeated appends, instead of the typical quadratic growth present in naive
27669 # implementations.
27670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27671 eval 'as_fn_append ()
27673 eval $1+=\$2
27675 else
27676 as_fn_append ()
27678 eval $1=\$$1\$2
27680 fi # as_fn_append
27682 # as_fn_arith ARG...
27683 # ------------------
27684 # Perform arithmetic evaluation on the ARGs, and store the result in the
27685 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27686 # must be portable across $(()) and expr.
27687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27688 eval 'as_fn_arith ()
27690 as_val=$(( $* ))
27692 else
27693 as_fn_arith ()
27695 as_val=`expr "$@" || test $? -eq 1`
27697 fi # as_fn_arith
27700 if expr a : '\(a\)' >/dev/null 2>&1 &&
27701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27702 as_expr=expr
27703 else
27704 as_expr=false
27707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27708 as_basename=basename
27709 else
27710 as_basename=false
27713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27714 as_dirname=dirname
27715 else
27716 as_dirname=false
27719 as_me=`$as_basename -- "$0" ||
27720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27721 X"$0" : 'X\(//\)$' \| \
27722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27723 $as_echo X/"$0" |
27724 sed '/^.*\/\([^/][^/]*\)\/*$/{
27725 s//\1/
27728 /^X\/\(\/\/\)$/{
27729 s//\1/
27732 /^X\/\(\/\).*/{
27733 s//\1/
27736 s/.*/./; q'`
27738 # Avoid depending upon Character Ranges.
27739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27742 as_cr_digits='0123456789'
27743 as_cr_alnum=$as_cr_Letters$as_cr_digits
27745 ECHO_C= ECHO_N= ECHO_T=
27746 case `echo -n x` in #(((((
27747 -n*)
27748 case `echo 'xy\c'` in
27749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27750 xy) ECHO_C='\c';;
27751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27752 ECHO_T=' ';;
27753 esac;;
27755 ECHO_N='-n';;
27756 esac
27758 rm -f conf$$ conf$$.exe conf$$.file
27759 if test -d conf$$.dir; then
27760 rm -f conf$$.dir/conf$$.file
27761 else
27762 rm -f conf$$.dir
27763 mkdir conf$$.dir 2>/dev/null
27765 if (echo >conf$$.file) 2>/dev/null; then
27766 if ln -s conf$$.file conf$$ 2>/dev/null; then
27767 as_ln_s='ln -s'
27768 # ... but there are two gotchas:
27769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27771 # In both cases, we have to default to `cp -p'.
27772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27773 as_ln_s='cp -p'
27774 elif ln conf$$.file conf$$ 2>/dev/null; then
27775 as_ln_s=ln
27776 else
27777 as_ln_s='cp -p'
27779 else
27780 as_ln_s='cp -p'
27782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27783 rmdir conf$$.dir 2>/dev/null
27786 # as_fn_mkdir_p
27787 # -------------
27788 # Create "$as_dir" as a directory, including parents if necessary.
27789 as_fn_mkdir_p ()
27792 case $as_dir in #(
27793 -*) as_dir=./$as_dir;;
27794 esac
27795 test -d "$as_dir" || eval $as_mkdir_p || {
27796 as_dirs=
27797 while :; do
27798 case $as_dir in #(
27799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27800 *) as_qdir=$as_dir;;
27801 esac
27802 as_dirs="'$as_qdir' $as_dirs"
27803 as_dir=`$as_dirname -- "$as_dir" ||
27804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27805 X"$as_dir" : 'X\(//\)[^/]' \| \
27806 X"$as_dir" : 'X\(//\)$' \| \
27807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27808 $as_echo X"$as_dir" |
27809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27810 s//\1/
27813 /^X\(\/\/\)[^/].*/{
27814 s//\1/
27817 /^X\(\/\/\)$/{
27818 s//\1/
27821 /^X\(\/\).*/{
27822 s//\1/
27825 s/.*/./; q'`
27826 test -d "$as_dir" && break
27827 done
27828 test -z "$as_dirs" || eval "mkdir $as_dirs"
27829 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27832 } # as_fn_mkdir_p
27833 if mkdir -p . 2>/dev/null; then
27834 as_mkdir_p='mkdir -p "$as_dir"'
27835 else
27836 test -d ./-p && rmdir ./-p
27837 as_mkdir_p=false
27840 if test -x / >/dev/null 2>&1; then
27841 as_test_x='test -x'
27842 else
27843 if ls -dL / >/dev/null 2>&1; then
27844 as_ls_L_option=L
27845 else
27846 as_ls_L_option=
27848 as_test_x='
27849 eval sh -c '\''
27850 if test -d "$1"; then
27851 test -d "$1/.";
27852 else
27853 case $1 in #(
27854 -*)set "./$1";;
27855 esac;
27856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27857 ???[sx]*):;;*)false;;esac;fi
27858 '\'' sh
27861 as_executable_p=$as_test_x
27863 # Sed expression to map a string onto a valid CPP name.
27864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27866 # Sed expression to map a string onto a valid variable name.
27867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27870 exec 6>&1
27871 ## ----------------------------------- ##
27872 ## Main body of $CONFIG_STATUS script. ##
27873 ## ----------------------------------- ##
27874 _ASEOF
27875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27878 # Save the log message, to keep $0 and so on meaningful, and to
27879 # report actual input values of CONFIG_FILES etc. instead of their
27880 # values after options handling.
27881 ac_log="
27882 This file was extended by $as_me, which was
27883 generated by GNU Autoconf 2.64. Invocation command line was
27885 CONFIG_FILES = $CONFIG_FILES
27886 CONFIG_HEADERS = $CONFIG_HEADERS
27887 CONFIG_LINKS = $CONFIG_LINKS
27888 CONFIG_COMMANDS = $CONFIG_COMMANDS
27889 $ $0 $@
27891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27894 _ACEOF
27896 case $ac_config_files in *"
27897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27898 esac
27900 case $ac_config_headers in *"
27901 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27902 esac
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 # Files that config.status was made for.
27907 config_files="$ac_config_files"
27908 config_headers="$ac_config_headers"
27909 config_commands="$ac_config_commands"
27911 _ACEOF
27913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27914 ac_cs_usage="\
27915 \`$as_me' instantiates files and other configuration actions
27916 from templates according to the current configuration. Unless the files
27917 and actions are specified as TAGs, all are instantiated by default.
27919 Usage: $0 [OPTION]... [TAG]...
27921 -h, --help print this help, then exit
27922 -V, --version print version number and configuration settings, then exit
27923 -q, --quiet, --silent
27924 do not print progress messages
27925 -d, --debug don't remove temporary files
27926 --recheck update $as_me by reconfiguring in the same conditions
27927 --file=FILE[:TEMPLATE]
27928 instantiate the configuration file FILE
27929 --header=FILE[:TEMPLATE]
27930 instantiate the configuration header FILE
27932 Configuration files:
27933 $config_files
27935 Configuration headers:
27936 $config_headers
27938 Configuration commands:
27939 $config_commands
27941 Report bugs to the package provider."
27943 _ACEOF
27944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27945 ac_cs_version="\\
27946 config.status
27947 configured by $0, generated by GNU Autoconf 2.64,
27948 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27950 Copyright (C) 2009 Free Software Foundation, Inc.
27951 This config.status script is free software; the Free Software Foundation
27952 gives unlimited permission to copy, distribute and modify it."
27954 ac_pwd='$ac_pwd'
27955 srcdir='$srcdir'
27956 AWK='$AWK'
27957 test -n "\$AWK" || AWK=awk
27958 _ACEOF
27960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27961 # The default lists apply if the user does not specify any file.
27962 ac_need_defaults=:
27963 while test $# != 0
27965 case $1 in
27966 --*=*)
27967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27969 ac_shift=:
27972 ac_option=$1
27973 ac_optarg=$2
27974 ac_shift=shift
27976 esac
27978 case $ac_option in
27979 # Handling of the options.
27980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27981 ac_cs_recheck=: ;;
27982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27983 $as_echo "$ac_cs_version"; exit ;;
27984 --debug | --debu | --deb | --de | --d | -d )
27985 debug=: ;;
27986 --file | --fil | --fi | --f )
27987 $ac_shift
27988 case $ac_optarg in
27989 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27990 esac
27991 as_fn_append CONFIG_FILES " '$ac_optarg'"
27992 ac_need_defaults=false;;
27993 --header | --heade | --head | --hea )
27994 $ac_shift
27995 case $ac_optarg in
27996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27997 esac
27998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27999 ac_need_defaults=false;;
28000 --he | --h)
28001 # Conflict between --help and --header
28002 as_fn_error "ambiguous option: \`$1'
28003 Try \`$0 --help' for more information.";;
28004 --help | --hel | -h )
28005 $as_echo "$ac_cs_usage"; exit ;;
28006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28008 ac_cs_silent=: ;;
28010 # This is an error.
28011 -*) as_fn_error "unrecognized option: \`$1'
28012 Try \`$0 --help' for more information." ;;
28014 *) as_fn_append ac_config_targets " $1"
28015 ac_need_defaults=false ;;
28017 esac
28018 shift
28019 done
28021 ac_configure_extra_args=
28023 if $ac_cs_silent; then
28024 exec 6>/dev/null
28025 ac_configure_extra_args="$ac_configure_extra_args --silent"
28028 _ACEOF
28029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28030 if \$ac_cs_recheck; then
28031 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28032 shift
28033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28034 CONFIG_SHELL='$SHELL'
28035 export CONFIG_SHELL
28036 exec "\$@"
28039 _ACEOF
28040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28041 exec 5>>config.log
28043 echo
28044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28045 ## Running $as_me. ##
28046 _ASBOX
28047 $as_echo "$ac_log"
28048 } >&5
28050 _ACEOF
28051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28053 # INIT-COMMANDS
28055 subdirs='$subdirs'
28057 _ACEOF
28059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28061 # Handling of arguments.
28062 for ac_config_target in $ac_config_targets
28064 case $ac_config_target in
28065 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28066 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28067 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28068 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28069 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28070 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28072 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28073 esac
28074 done
28077 # If the user did not use the arguments to specify the items to instantiate,
28078 # then the envvar interface is used. Set only those that are not.
28079 # We use the long form for the default assignment because of an extremely
28080 # bizarre bug on SunOS 4.1.3.
28081 if $ac_need_defaults; then
28082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28087 # Have a temporary directory for convenience. Make it in the build tree
28088 # simply because there is no reason against having it here, and in addition,
28089 # creating and moving files from /tmp can sometimes cause problems.
28090 # Hook for its removal unless debugging.
28091 # Note that there is a small window in which the directory will not be cleaned:
28092 # after its creation but before its name has been assigned to `$tmp'.
28093 $debug ||
28095 tmp=
28096 trap 'exit_status=$?
28097 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28099 trap 'as_fn_exit 1' 1 2 13 15
28101 # Create a (secure) tmp directory for tmp files.
28104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28105 test -n "$tmp" && test -d "$tmp"
28106 } ||
28108 tmp=./conf$$-$RANDOM
28109 (umask 077 && mkdir "$tmp")
28110 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28112 # Set up the scripts for CONFIG_FILES section.
28113 # No need to generate them if there are no CONFIG_FILES.
28114 # This happens for instance with `./config.status config.h'.
28115 if test -n "$CONFIG_FILES"; then
28117 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28118 ac_cs_awk_getline=:
28119 ac_cs_awk_pipe_init=
28120 ac_cs_awk_read_file='
28121 while ((getline aline < (F[key])) > 0)
28122 print(aline)
28123 close(F[key])'
28124 ac_cs_awk_pipe_fini=
28125 else
28126 ac_cs_awk_getline=false
28127 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28128 ac_cs_awk_read_file='
28129 print "|#_!!_#|"
28130 print "cat " F[key] " &&"
28131 '$ac_cs_awk_pipe_init
28132 # The final `:' finishes the AND list.
28133 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28135 ac_cr=`echo X | tr X '\015'`
28136 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28137 # But we know of no other shell where ac_cr would be empty at this
28138 # point, so we can use a bashism as a fallback.
28139 if test "x$ac_cr" = x; then
28140 eval ac_cr=\$\'\\r\'
28142 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28143 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28144 ac_cs_awk_cr='\r'
28145 else
28146 ac_cs_awk_cr=$ac_cr
28149 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28150 _ACEOF
28152 # Create commands to substitute file output variables.
28154 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28155 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28156 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28157 echo "_ACAWK" &&
28158 echo "_ACEOF"
28159 } >conf$$files.sh &&
28160 . ./conf$$files.sh ||
28161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28162 rm -f conf$$files.sh
28165 echo "cat >conf$$subs.awk <<_ACEOF" &&
28166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28167 echo "_ACEOF"
28168 } >conf$$subs.sh ||
28169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28171 ac_delim='%!_!# '
28172 for ac_last_try in false false false false false :; do
28173 . ./conf$$subs.sh ||
28174 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28176 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28177 if test $ac_delim_n = $ac_delim_num; then
28178 break
28179 elif $ac_last_try; then
28180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28181 else
28182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28184 done
28185 rm -f conf$$subs.sh
28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28188 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28189 _ACEOF
28190 sed -n '
28192 s/^/S["/; s/!.*/"]=/
28195 s/^[^!]*!//
28196 :repl
28197 t repl
28198 s/'"$ac_delim"'$//
28199 t delim
28202 s/\(.\{148\}\).*/\1/
28203 t more1
28204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28207 b repl
28208 :more1
28209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28212 s/.\{148\}//
28213 t nl
28214 :delim
28216 s/\(.\{148\}\).*/\1/
28217 t more2
28218 s/["\\]/\\&/g; s/^/"/; s/$/"/
28221 :more2
28222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28225 s/.\{148\}//
28226 t delim
28227 ' <conf$$subs.awk | sed '
28228 /^[^""]/{
28230 s/\n//
28232 ' >>$CONFIG_STATUS || ac_write_fail=1
28233 rm -f conf$$subs.awk
28234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28235 _ACAWK
28236 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28237 for (key in S) S_is_set[key] = 1
28238 FS = "\a"
28239 \$ac_cs_awk_pipe_init
28242 line = $ 0
28243 nfields = split(line, field, "@")
28244 substed = 0
28245 len = length(field[1])
28246 for (i = 2; i < nfields; i++) {
28247 key = field[i]
28248 keylen = length(key)
28249 if (S_is_set[key]) {
28250 value = S[key]
28251 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28252 len += length(value) + length(field[++i])
28253 substed = 1
28254 } else
28255 len += 1 + keylen
28257 if (nfields == 3 && !substed) {
28258 key = field[2]
28259 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28260 \$ac_cs_awk_read_file
28261 next
28264 print line
28266 \$ac_cs_awk_pipe_fini
28267 _ACAWK
28268 _ACEOF
28269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28272 else
28274 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28275 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28276 _ACEOF
28278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28280 # trailing colons and then remove the whole line if VPATH becomes empty
28281 # (actually we leave an empty line to preserve line numbers).
28282 if test "x$srcdir" = x.; then
28283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28284 s/:*\$(srcdir):*/:/
28285 s/:*\${srcdir}:*/:/
28286 s/:*@srcdir@:*/:/
28287 s/^\([^=]*=[ ]*\):*/\1/
28288 s/:*$//
28289 s/^[^=]*=[ ]*$//
28293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28294 fi # test -n "$CONFIG_FILES"
28296 # Set up the scripts for CONFIG_HEADERS section.
28297 # No need to generate them if there are no CONFIG_HEADERS.
28298 # This happens for instance with `./config.status Makefile'.
28299 if test -n "$CONFIG_HEADERS"; then
28300 cat >"$tmp/defines.awk" <<\_ACAWK ||
28301 BEGIN {
28302 _ACEOF
28304 # Transform confdefs.h into an awk script `defines.awk', embedded as
28305 # here-document in config.status, that substitutes the proper values into
28306 # config.h.in to produce config.h.
28308 # Create a delimiter string that does not exist in confdefs.h, to ease
28309 # handling of long lines.
28310 ac_delim='%!_!# '
28311 for ac_last_try in false false :; do
28312 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28313 if test -z "$ac_t"; then
28314 break
28315 elif $ac_last_try; then
28316 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28317 else
28318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28320 done
28322 # For the awk script, D is an array of macro values keyed by name,
28323 # likewise P contains macro parameters if any. Preserve backslash
28324 # newline sequences.
28326 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28327 sed -n '
28328 s/.\{148\}/&'"$ac_delim"'/g
28329 t rset
28330 :rset
28331 s/^[ ]*#[ ]*define[ ][ ]*/ /
28332 t def
28334 :def
28335 s/\\$//
28336 t bsnl
28337 s/["\\]/\\&/g
28338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28339 D["\1"]=" \3"/p
28340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28342 :bsnl
28343 s/["\\]/\\&/g
28344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28345 D["\1"]=" \3\\\\\\n"\\/p
28346 t cont
28347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28348 t cont
28350 :cont
28352 s/.\{148\}/&'"$ac_delim"'/g
28353 t clear
28354 :clear
28355 s/\\$//
28356 t bsnlc
28357 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28359 :bsnlc
28360 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28361 b cont
28362 ' <confdefs.h | sed '
28363 s/'"$ac_delim"'/"\\\
28364 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28367 for (key in D) D_is_set[key] = 1
28368 FS = "\a"
28370 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28371 line = \$ 0
28372 split(line, arg, " ")
28373 if (arg[1] == "#") {
28374 defundef = arg[2]
28375 mac1 = arg[3]
28376 } else {
28377 defundef = substr(arg[1], 2)
28378 mac1 = arg[2]
28380 split(mac1, mac2, "(") #)
28381 macro = mac2[1]
28382 prefix = substr(line, 1, index(line, defundef) - 1)
28383 if (D_is_set[macro]) {
28384 # Preserve the white space surrounding the "#".
28385 print prefix "define", macro P[macro] D[macro]
28386 next
28387 } else {
28388 # Replace #undef with comments. This is necessary, for example,
28389 # in the case of _POSIX_SOURCE, which is predefined and required
28390 # on some systems where configure will not decide to define it.
28391 if (defundef == "undef") {
28392 print "/*", prefix defundef, macro, "*/"
28393 next
28397 { print }
28398 _ACAWK
28399 _ACEOF
28400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28401 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28402 fi # test -n "$CONFIG_HEADERS"
28405 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28406 shift
28407 for ac_tag
28409 case $ac_tag in
28410 :[FHLC]) ac_mode=$ac_tag; continue;;
28411 esac
28412 case $ac_mode$ac_tag in
28413 :[FHL]*:*);;
28414 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28415 :[FH]-) ac_tag=-:-;;
28416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28417 esac
28418 ac_save_IFS=$IFS
28419 IFS=:
28420 set x $ac_tag
28421 IFS=$ac_save_IFS
28422 shift
28423 ac_file=$1
28424 shift
28426 case $ac_mode in
28427 :L) ac_source=$1;;
28428 :[FH])
28429 ac_file_inputs=
28430 for ac_f
28432 case $ac_f in
28433 -) ac_f="$tmp/stdin";;
28434 *) # Look for the file first in the build tree, then in the source tree
28435 # (if the path is not absolute). The absolute path cannot be DOS-style,
28436 # because $ac_f cannot contain `:'.
28437 test -f "$ac_f" ||
28438 case $ac_f in
28439 [\\/$]*) false;;
28440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28441 esac ||
28442 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28443 esac
28444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28445 as_fn_append ac_file_inputs " '$ac_f'"
28446 done
28448 # Let's still pretend it is `configure' which instantiates (i.e., don't
28449 # use $as_me), people would be surprised to read:
28450 # /* config.h. Generated by config.status. */
28451 configure_input='Generated from '`
28452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28453 `' by configure.'
28454 if test x"$ac_file" != x-; then
28455 configure_input="$ac_file. $configure_input"
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28457 $as_echo "$as_me: creating $ac_file" >&6;}
28459 # Neutralize special characters interpreted by sed in replacement strings.
28460 case $configure_input in #(
28461 *\&* | *\|* | *\\* )
28462 ac_sed_conf_input=`$as_echo "$configure_input" |
28463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28464 *) ac_sed_conf_input=$configure_input;;
28465 esac
28467 case $ac_tag in
28468 *:-:* | *:-) cat >"$tmp/stdin" \
28469 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28470 esac
28472 esac
28474 ac_dir=`$as_dirname -- "$ac_file" ||
28475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28476 X"$ac_file" : 'X\(//\)[^/]' \| \
28477 X"$ac_file" : 'X\(//\)$' \| \
28478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28479 $as_echo X"$ac_file" |
28480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28481 s//\1/
28484 /^X\(\/\/\)[^/].*/{
28485 s//\1/
28488 /^X\(\/\/\)$/{
28489 s//\1/
28492 /^X\(\/\).*/{
28493 s//\1/
28496 s/.*/./; q'`
28497 as_dir="$ac_dir"; as_fn_mkdir_p
28498 ac_builddir=.
28500 case "$ac_dir" in
28501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28504 # A ".." for each directory in $ac_dir_suffix.
28505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28506 case $ac_top_builddir_sub in
28507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28509 esac ;;
28510 esac
28511 ac_abs_top_builddir=$ac_pwd
28512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28513 # for backward compatibility:
28514 ac_top_builddir=$ac_top_build_prefix
28516 case $srcdir in
28517 .) # We are building in place.
28518 ac_srcdir=.
28519 ac_top_srcdir=$ac_top_builddir_sub
28520 ac_abs_top_srcdir=$ac_pwd ;;
28521 [\\/]* | ?:[\\/]* ) # Absolute name.
28522 ac_srcdir=$srcdir$ac_dir_suffix;
28523 ac_top_srcdir=$srcdir
28524 ac_abs_top_srcdir=$srcdir ;;
28525 *) # Relative name.
28526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28527 ac_top_srcdir=$ac_top_build_prefix$srcdir
28528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28529 esac
28530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28533 case $ac_mode in
28536 # CONFIG_FILE
28539 _ACEOF
28541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28542 # If the template does not know about datarootdir, expand it.
28543 # FIXME: This hack should be removed a few years after 2.60.
28544 ac_datarootdir_hack=; ac_datarootdir_seen=
28545 ac_sed_dataroot='
28546 /datarootdir/ {
28550 /@datadir@/p
28551 /@docdir@/p
28552 /@infodir@/p
28553 /@localedir@/p
28554 /@mandir@/p'
28555 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28556 *datarootdir*) ac_datarootdir_seen=yes;;
28557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28559 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28560 _ACEOF
28561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28562 ac_datarootdir_hack='
28563 s&@datadir@&$datadir&g
28564 s&@docdir@&$docdir&g
28565 s&@infodir@&$infodir&g
28566 s&@localedir@&$localedir&g
28567 s&@mandir@&$mandir&g
28568 s&\\\${datarootdir}&$datarootdir&g' ;;
28569 esac
28570 _ACEOF
28572 # Neutralize VPATH when `$srcdir' = `.'.
28573 # Shell code in configure.ac might set extrasub.
28574 # FIXME: do we really want to maintain this feature?
28575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28576 ac_sed_extra="$ac_vpsub
28577 $extrasub
28578 _ACEOF
28579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28582 s|@configure_input@|$ac_sed_conf_input|;t t
28583 s&@top_builddir@&$ac_top_builddir_sub&;t t
28584 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28585 s&@srcdir@&$ac_srcdir&;t t
28586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28587 s&@top_srcdir@&$ac_top_srcdir&;t t
28588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28589 s&@builddir@&$ac_builddir&;t t
28590 s&@abs_builddir@&$ac_abs_builddir&;t t
28591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28592 $ac_datarootdir_hack
28594 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28595 if $ac_cs_awk_getline; then
28596 $AWK -f "$tmp/subs.awk"
28597 else
28598 $AWK -f "$tmp/subs.awk" | $SHELL
28599 fi >$tmp/out \
28600 || as_fn_error "could not create $ac_file" "$LINENO" 5
28602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28606 which seems to be undefined. Please make sure it is defined." >&5
28607 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28608 which seems to be undefined. Please make sure it is defined." >&2;}
28610 rm -f "$tmp/stdin"
28611 case $ac_file in
28612 -) cat "$tmp/out" && rm -f "$tmp/out";;
28613 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28614 esac \
28615 || as_fn_error "could not create $ac_file" "$LINENO" 5
28619 # CONFIG_HEADER
28621 if test x"$ac_file" != x-; then
28623 $as_echo "/* $configure_input */" \
28624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28625 } >"$tmp/config.h" \
28626 || as_fn_error "could not create $ac_file" "$LINENO" 5
28627 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28629 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28630 else
28631 rm -f "$ac_file"
28632 mv "$tmp/config.h" "$ac_file" \
28633 || as_fn_error "could not create $ac_file" "$LINENO" 5
28635 else
28636 $as_echo "/* $configure_input */" \
28637 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28638 || as_fn_error "could not create -" "$LINENO" 5
28642 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28643 $as_echo "$as_me: executing $ac_file commands" >&6;}
28645 esac
28648 case $ac_file$ac_mode in
28649 "as":F) chmod +x as ;;
28650 "collect-ld":F) chmod +x collect-ld ;;
28651 "nm":F) chmod +x nm ;;
28652 "default":C)
28653 case ${CONFIG_HEADERS} in
28654 *auto-host.h:config.in*)
28655 echo > cstamp-h ;;
28656 esac
28657 # Make sure all the subdirs exist.
28658 for d in $subdirs doc build common c-family
28660 test -d $d || mkdir $d
28661 done
28664 esac
28665 done # for ac_tag
28668 as_fn_exit 0
28669 _ACEOF
28670 ac_clean_files=$ac_clean_files_save
28672 test $ac_write_fail = 0 ||
28673 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28676 # configure is writing to config.log, and then calls config.status.
28677 # config.status does its own redirection, appending to config.log.
28678 # Unfortunately, on DOS this fails, as config.log is still kept open
28679 # by configure, so config.status won't be able to write to it; its
28680 # output is simply discarded. So we exec the FD to /dev/null,
28681 # effectively closing config.log, so it can be properly (re)opened and
28682 # appended to by config.status. When coming back to configure, we
28683 # need to make the FD available again.
28684 if test "$no_create" != yes; then
28685 ac_cs_success=:
28686 ac_config_status_args=
28687 test "$silent" = yes &&
28688 ac_config_status_args="$ac_config_status_args --quiet"
28689 exec 5>/dev/null
28690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28691 exec 5>>config.log
28692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28693 # would make configure fail if this is the last instruction.
28694 $ac_cs_success || as_fn_exit $?
28696 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28698 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}