2011-05-31 Gabriel Charette <gchare@google.com>
[official-gcc.git] / gcc / configure
blobaeb73b69bcc2dd44fc908d60ab0535552bba88eb
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 PPLINC
608 PPLLIBS
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 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 enable_lto
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 gcc_cv_ld
689 ORIGINAL_AS_FOR_TARGET
690 gcc_cv_as
691 enable_fast_install
692 objdir
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
703 FGREP
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 objext
731 manext
732 LIBICONV_DEP
733 LTLIBICONV
734 LIBICONV
735 LDEXP_LIB
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 RUNTIME_ROOT_PREFIX_DEFINE
766 NATIVE_SYSTEM_HEADER_DIR
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
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_runtime_root_prefix
890 with_sysroot
891 with_specs
892 with_pkgversion
893 with_bugurl
894 enable_languages
895 with_multilib_list
896 enable_rpath
897 with_libiconv_prefix
898 enable_initfini_array
899 enable_sjlj_exceptions
900 with_system_libunwind
901 enable_secureplt
902 enable_leading_mingw64_underscores
903 enable_cld
904 enable_frame_pointer
905 enable_win32_registry
906 enable_static
907 with_pic
908 enable_fast_install
909 enable_libtool_lock
910 with_plugin_ld
911 enable_gnu_indirect_function
912 enable_comdat
913 enable_gnu_unique_object
914 enable_linker_build_id
915 with_long_double_128
916 with_gc
917 with_system_zlib
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
920 with_slibdir
921 enable_canonical_prefixes
922 enable_plugin
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
935 CXXFLAGS
938 CXXCPP
939 GMPLIBS
940 GMPINC
941 PPLLIBS
942 PPLINC
943 CLOOGLIBS
944 CLOOGINC'
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
995 ac_prev=
996 ac_dashdash=
997 for ac_option
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1015 ac_dashdash=yes ;;
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 esac
1352 done
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1438 /^X\(\/\/\)$/{
1439 s//\1/
1442 /^X\(\/\).*/{
1443 s//\1/
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1451 else
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 --target=TARGET configure for building compilers for TARGET [HOST]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files in source dir intended
1565 for creating source tarballs for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST]
1570 enable expensive run-time checks. With LIST, enable
1571 only specific categories of checks. Categories are:
1572 yes,no,all,none,release. Flags are:
1573 assert,df,fold,gc,gcac,gimple,misc,
1574 rtlflag,rtl,runtime,tree,valgrind,types
1575 --enable-coverage[=LEVEL]
1576 enable compiler's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-build-with-cxx build with C++ compiler instead of C compiler
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1588 to use
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1591 package
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-initfini-array use .init_array/.fini_array sections
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1610 on Windows hosts
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1614 of the registry key
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1622 glibc systems
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-version-specific-runtime-libs
1633 specify that runtime libraries should be installed
1634 in a compiler-specific directory
1635 --enable-canonical-prefixes
1636 enable or disable prefix canonicalization
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1641 Optional Packages:
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-runtime-root-prefix=prefix
1664 prepend prefix to paths used by the compiler to
1665 name the dynamic linker and other files used at
1666 runtime. Defaults to empty (no prefix).
1667 --with-build-sysroot=SYSROOT
1668 use sysroot as the system root during the build
1669 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1670 --with-specs=SPECS add SPECS to driver command-line processing
1671 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1672 --with-bugurl=URL Direct users to URL to report a bug
1673 --with-multilib-list select multilibs (SH only)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-system-libunwind use installed libunwind
1678 --with-pic try to use only PIC/non-PIC objects [default=use
1679 both]
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-plugin-ld=[ARG] specify the plugin linker
1682 --with-long-double-128 use 128-bit long double by default
1683 --with-gc={page,zone} choose the garbage collection mechanism to use with
1684 the compiler
1685 --with-system-zlib use installed libz
1686 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1687 --with-linker-hash-style={sysv,gnu,both}
1688 specify the linker hash style
1690 Some influential environment variables:
1691 CC C compiler command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1694 nonstandard directory <lib dir>
1695 LIBS libraries to pass to the linker, e.g. -l<library>
1696 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1697 you have headers in a nonstandard directory <include dir>
1698 CXX C++ compiler command
1699 CXXFLAGS C++ compiler flags
1700 CPP C preprocessor
1701 CXXCPP C++ preprocessor
1702 GMPLIBS How to link GMP
1703 GMPINC How to find GMP include files
1704 PPLLIBS How to link PPL
1705 PPLINC How to find PPL include files
1706 CLOOGLIBS How to link CLOOG
1707 CLOOGINC How to find CLOOG include files
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1712 Report bugs to the package provider.
1713 _ACEOF
1714 ac_status=$?
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1723 ac_builddir=.
1725 case "$ac_dir" in
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735 esac
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1741 case $srcdir in
1742 .) # We are building in place.
1743 ac_srcdir=.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 esac
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1765 else
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1769 done
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1774 cat <<\_ACEOF
1775 configure
1776 generated by GNU Autoconf 2.64
1778 Copyright (C) 2009 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781 _ACEOF
1782 exit
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 return $ac_retval
1825 } # ac_fn_c_try_compile
1827 # ac_fn_cxx_try_compile LINENO
1828 # ----------------------------
1829 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_compile ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext
1834 if { { ac_try="$ac_compile"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=1
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1863 } # ac_fn_cxx_try_compile
1865 # ac_fn_c_try_cpp LINENO
1866 # ----------------------
1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_cpp ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_cpp conftest.$ac_ext"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } >/dev/null && {
1887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=1
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 return $ac_retval
1900 } # ac_fn_c_try_cpp
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1906 # accordingly.
1907 ac_fn_c_check_header_mongrel ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 else
1920 # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_header_compiler=yes
1930 else
1931 ac_header_compiler=no
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_cpp "$LINENO"; then :
1945 ac_header_preproc=yes
1946 else
1947 ac_header_preproc=no
1949 rm -f conftest.err conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1953 # So? What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955 yes:no: )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 no:yes:* )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 esac
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=\$ac_header_compiler"
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_c_check_header_mongrel
1989 # ac_fn_c_try_run LINENO
1990 # ----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1992 # that executables *can* be run.
1993 ac_fn_c_try_run ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>&5
2004 ac_status=$?
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2007 { { case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_try") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; }; }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: program exited with status $ac_status" >&5
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 ac_retval=$ac_status
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 return $ac_retval
2029 } # ac_fn_c_try_run
2031 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists and can be compiled using the include files in
2034 # INCLUDES, setting the cache variable VAR accordingly.
2035 ac_fn_c_check_header_compile ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_check_header_compile
2062 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2063 # --------------------------------------------
2064 # Tries to find the compile-time value of EXPR in a program that includes
2065 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2066 # computed
2067 ac_fn_c_compute_int ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if test "$cross_compiling" = yes; then
2071 # Depending upon the size, compute the lo and hi bounds.
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 static int test_array [1 - 2 * !(($2) >= 0)];
2079 test_array [0] = 0
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=0 ac_mid=0
2087 while :; do
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 test_array [0] = 0
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_hi=$ac_mid; break
2103 else
2104 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2105 if test $ac_lo -le $ac_mid; then
2106 ac_lo= ac_hi=
2107 break
2109 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 done
2113 else
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 main ()
2120 static int test_array [1 - 2 * !(($2) < 0)];
2121 test_array [0] = 0
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=-1 ac_mid=-1
2129 while :; do
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 main ()
2136 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137 test_array [0] = 0
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_lo=$ac_mid; break
2145 else
2146 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2147 if test $ac_mid -le $ac_hi; then
2148 ac_lo= ac_hi=
2149 break
2151 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 else
2156 ac_lo= ac_hi=
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 # Binary search between lo and hi bounds.
2162 while test "x$ac_lo" != "x$ac_hi"; do
2163 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171 test_array [0] = 0
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=$ac_mid
2179 else
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 done
2184 case $ac_lo in #((
2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 '') ac_retval=1 ;;
2187 esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2192 static long int longval () { return $2; }
2193 static unsigned long int ulongval () { return $2; }
2194 #include <stdio.h>
2195 #include <stdlib.h>
2197 main ()
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2210 else
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_run "$LINENO"; then :
2226 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227 else
2228 ac_retval=1
2230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2231 conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 rm -f conftest.val
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 return $ac_retval
2238 } # ac_fn_c_compute_int
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 eval "$3=no"
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 main ()
2259 if (sizeof ($2))
2260 return 0;
2262 return 0;
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof (($2)))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2280 else
2281 eval "$3=yes"
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292 } # ac_fn_c_check_type
2294 # ac_fn_c_find_intX_t LINENO BITS VAR
2295 # -----------------------------------
2296 # Finds a signed integer type with width BITS, setting cache variable VAR
2297 # accordingly.
2298 ac_fn_c_find_intX_t ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2302 $as_echo_n "checking for int$2_t... " >&6; }
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 eval "$3=no"
2307 for ac_type in int$2_t 'int' 'long int' \
2308 'long long int' 'short int' 'signed char'; do
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 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2316 test_array [0] = 0
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2325 $ac_includes_default
2327 main ()
2329 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2330 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2331 test_array [0] = 0
2334 return 0;
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2339 else
2340 case $ac_type in #(
2341 int$2_t) :
2342 eval "$3=yes" ;; #(
2343 *) :
2344 eval "$3=\$ac_type" ;;
2345 esac
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 eval as_val=\$$3
2351 if test "x$as_val" = x""no; then :
2353 else
2354 break
2356 done
2358 eval ac_res=\$$3
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363 } # ac_fn_c_find_intX_t
2365 # ac_fn_c_try_link LINENO
2366 # -----------------------
2367 # Try to link conftest.$ac_ext, and return whether this succeeded.
2368 ac_fn_c_try_link ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 rm -f conftest.$ac_objext conftest$ac_exeext
2372 if { { ac_try="$ac_link"
2373 case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_link") 2>conftest.err
2380 ac_status=$?
2381 if test -s conftest.err; then
2382 grep -v '^ *+' conftest.err >conftest.er1
2383 cat conftest.er1 >&5
2384 mv -f conftest.er1 conftest.err
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } && {
2388 test -z "$ac_c_werror_flag" ||
2389 test ! -s conftest.err
2390 } && test -s conftest$ac_exeext && {
2391 test "$cross_compiling" = yes ||
2392 $as_test_x conftest$ac_exeext
2393 }; then :
2394 ac_retval=0
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2399 ac_retval=1
2401 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2402 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2403 # interfere with the next link command; also delete a directory that is
2404 # left behind by Apple's compiler. We do this before executing the actions.
2405 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 return $ac_retval
2409 } # ac_fn_c_try_link
2411 # ac_fn_c_find_uintX_t LINENO BITS VAR
2412 # ------------------------------------
2413 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2414 # accordingly.
2415 ac_fn_c_find_uintX_t ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2419 $as_echo_n "checking for uint$2_t... " >&6; }
2420 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 eval "$3=no"
2424 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2425 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428 $ac_includes_default
2430 main ()
2432 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2433 test_array [0] = 0
2436 return 0;
2438 _ACEOF
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440 case $ac_type in #(
2441 uint$2_t) :
2442 eval "$3=yes" ;; #(
2443 *) :
2444 eval "$3=\$ac_type" ;;
2445 esac
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 eval as_val=\$$3
2449 if test "x$as_val" = x""no; then :
2451 else
2452 break
2454 done
2456 eval ac_res=\$$3
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 } # ac_fn_c_find_uintX_t
2463 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2464 # ----------------------------------------------
2465 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2466 ac_fn_c_check_header_preproc ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 #include <$2>
2477 _ACEOF
2478 if ac_fn_c_try_cpp "$LINENO"; then :
2479 eval "$3=yes"
2480 else
2481 eval "$3=no"
2483 rm -f conftest.err conftest.$ac_ext
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2490 } # ac_fn_c_check_header_preproc
2492 # ac_fn_cxx_try_cpp LINENO
2493 # ------------------------
2494 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2495 ac_fn_cxx_try_cpp ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 if { { ac_try="$ac_cpp conftest.$ac_ext"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2506 ac_status=$?
2507 if test -s conftest.err; then
2508 grep -v '^ *+' conftest.err >conftest.er1
2509 cat conftest.er1 >&5
2510 mv -f conftest.er1 conftest.err
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; } >/dev/null && {
2514 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2515 test ! -s conftest.err
2516 }; then :
2517 ac_retval=0
2518 else
2519 $as_echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2522 ac_retval=1
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2525 return $ac_retval
2527 } # ac_fn_cxx_try_cpp
2529 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2530 # ------------------------------------------------
2531 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2532 ac_fn_cxx_check_header_preproc ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 #include <$2>
2543 _ACEOF
2544 if ac_fn_cxx_try_cpp "$LINENO"; then :
2545 eval "$3=yes"
2546 else
2547 eval "$3=no"
2549 rm -f conftest.err conftest.$ac_ext
2551 eval ac_res=\$$3
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556 } # ac_fn_cxx_check_header_preproc
2558 # ac_fn_c_check_func LINENO FUNC VAR
2559 # ----------------------------------
2560 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2561 ac_fn_c_check_func ()
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2565 $as_echo_n "checking for $2... " >&6; }
2566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2571 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2573 #define $2 innocuous_$2
2575 /* System header to define __stub macros and hopefully few prototypes,
2576 which can conflict with char $2 (); below.
2577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2578 <limits.h> exists even on freestanding compilers. */
2580 #ifdef __STDC__
2581 # include <limits.h>
2582 #else
2583 # include <assert.h>
2584 #endif
2586 #undef $2
2588 /* Override any GCC internal prototype to avoid an error.
2589 Use char because int might match the return type of a GCC
2590 builtin and then its argument prototype would still apply. */
2591 #ifdef __cplusplus
2592 extern "C"
2593 #endif
2594 char $2 ();
2595 /* The GNU C library defines this for functions which it implements
2596 to always fail with ENOSYS. Some functions are actually named
2597 something starting with __ and the normal name is an alias. */
2598 #if defined __stub_$2 || defined __stub___$2
2599 choke me
2600 #endif
2603 main ()
2605 return $2 ();
2607 return 0;
2609 _ACEOF
2610 if ac_fn_c_try_link "$LINENO"; then :
2611 eval "$3=yes"
2612 else
2613 eval "$3=no"
2615 rm -f core conftest.err conftest.$ac_objext \
2616 conftest$ac_exeext conftest.$ac_ext
2618 eval ac_res=\$$3
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2623 } # ac_fn_c_check_func
2625 # ac_fn_cxx_try_link LINENO
2626 # -------------------------
2627 # Try to link conftest.$ac_ext, and return whether this succeeded.
2628 ac_fn_cxx_try_link ()
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 rm -f conftest.$ac_objext conftest$ac_exeext
2632 if { { ac_try="$ac_link"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_link") 2>conftest.err
2640 ac_status=$?
2641 if test -s conftest.err; then
2642 grep -v '^ *+' conftest.err >conftest.er1
2643 cat conftest.er1 >&5
2644 mv -f conftest.er1 conftest.err
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; } && {
2648 test -z "$ac_cxx_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest$ac_exeext && {
2651 test "$cross_compiling" = yes ||
2652 $as_test_x conftest$ac_exeext
2653 }; then :
2654 ac_retval=0
2655 else
2656 $as_echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 ac_retval=1
2661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2663 # interfere with the next link command; also delete a directory that is
2664 # left behind by Apple's compiler. We do this before executing the actions.
2665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2667 return $ac_retval
2669 } # ac_fn_cxx_try_link
2670 cat >config.log <<_ACEOF
2671 This file contains any messages produced by compilers while
2672 running configure, to aid debugging if configure makes a mistake.
2674 It was created by $as_me, which was
2675 generated by GNU Autoconf 2.64. Invocation command line was
2677 $ $0 $@
2679 _ACEOF
2680 exec 5>>config.log
2682 cat <<_ASUNAME
2683 ## --------- ##
2684 ## Platform. ##
2685 ## --------- ##
2687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2704 _ASUNAME
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 $as_echo "PATH: $as_dir"
2712 done
2713 IFS=$as_save_IFS
2715 } >&5
2717 cat >&5 <<_ACEOF
2720 ## ----------- ##
2721 ## Core tests. ##
2722 ## ----------- ##
2724 _ACEOF
2727 # Keep a trace of the command line.
2728 # Strip out --no-create and --no-recursion so they do not pile up.
2729 # Strip out --silent because we don't want to record it for future runs.
2730 # Also quote any args containing shell meta-characters.
2731 # Make two passes to allow for proper duplicate-argument suppression.
2732 ac_configure_args=
2733 ac_configure_args0=
2734 ac_configure_args1=
2735 ac_must_keep_next=false
2736 for ac_pass in 1 2
2738 for ac_arg
2740 case $ac_arg in
2741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2743 | -silent | --silent | --silen | --sile | --sil)
2744 continue ;;
2745 *\'*)
2746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2747 esac
2748 case $ac_pass in
2749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2751 as_fn_append ac_configure_args1 " '$ac_arg'"
2752 if test $ac_must_keep_next = true; then
2753 ac_must_keep_next=false # Got value, back to normal.
2754 else
2755 case $ac_arg in
2756 *=* | --config-cache | -C | -disable-* | --disable-* \
2757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2759 | -with-* | --with-* | -without-* | --without-* | --x)
2760 case "$ac_configure_args0 " in
2761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2762 esac
2764 -* ) ac_must_keep_next=true ;;
2765 esac
2767 as_fn_append ac_configure_args " '$ac_arg'"
2769 esac
2770 done
2771 done
2772 { ac_configure_args0=; unset ac_configure_args0;}
2773 { ac_configure_args1=; unset ac_configure_args1;}
2775 # When interrupted or exit'd, cleanup temporary files, and complete
2776 # config.log. We remove comments because anyway the quotes in there
2777 # would cause problems or look ugly.
2778 # WARNING: Use '\'' to represent an apostrophe within the trap.
2779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2780 trap 'exit_status=$?
2781 # Save into config.log some information that might help in debugging.
2783 echo
2785 cat <<\_ASBOX
2786 ## ---------------- ##
2787 ## Cache variables. ##
2788 ## ---------------- ##
2789 _ASBOX
2790 echo
2791 # The following way of writing the cache mishandles newlines in values,
2793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2794 eval ac_val=\$$ac_var
2795 case $ac_val in #(
2796 *${as_nl}*)
2797 case $ac_var in #(
2798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2800 esac
2801 case $ac_var in #(
2802 _ | IFS | as_nl) ;; #(
2803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2804 *) { eval $ac_var=; unset $ac_var;} ;;
2805 esac ;;
2806 esac
2807 done
2808 (set) 2>&1 |
2809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2810 *${as_nl}ac_space=\ *)
2811 sed -n \
2812 "s/'\''/'\''\\\\'\'''\''/g;
2813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2814 ;; #(
2816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2818 esac |
2819 sort
2821 echo
2823 cat <<\_ASBOX
2824 ## ----------------- ##
2825 ## Output variables. ##
2826 ## ----------------- ##
2827 _ASBOX
2828 echo
2829 for ac_var in $ac_subst_vars
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2839 if test -n "$ac_subst_files"; then
2840 cat <<\_ASBOX
2841 ## ------------------- ##
2842 ## File substitutions. ##
2843 ## ------------------- ##
2844 _ASBOX
2845 echo
2846 for ac_var in $ac_subst_files
2848 eval ac_val=\$$ac_var
2849 case $ac_val in
2850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2851 esac
2852 $as_echo "$ac_var='\''$ac_val'\''"
2853 done | sort
2854 echo
2857 if test -s confdefs.h; then
2858 cat <<\_ASBOX
2859 ## ----------- ##
2860 ## confdefs.h. ##
2861 ## ----------- ##
2862 _ASBOX
2863 echo
2864 cat confdefs.h
2865 echo
2867 test "$ac_signal" != 0 &&
2868 $as_echo "$as_me: caught signal $ac_signal"
2869 $as_echo "$as_me: exit $exit_status"
2870 } >&5
2871 rm -f core *.core core.conftest.* &&
2872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2873 exit $exit_status
2875 for ac_signal in 1 2 13 15; do
2876 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2877 done
2878 ac_signal=0
2880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2881 rm -f -r conftest* confdefs.h
2883 $as_echo "/* confdefs.h */" > confdefs.h
2885 # Predefined preprocessor variables.
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_NAME "$PACKAGE_NAME"
2889 _ACEOF
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2893 _ACEOF
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2897 _ACEOF
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_STRING "$PACKAGE_STRING"
2901 _ACEOF
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2905 _ACEOF
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE_URL "$PACKAGE_URL"
2909 _ACEOF
2912 # Let the site file select an alternate cache file if it wants to.
2913 # Prefer an explicitly selected file to automatically selected ones.
2914 ac_site_file1=NONE
2915 ac_site_file2=NONE
2916 if test -n "$CONFIG_SITE"; then
2917 ac_site_file1=$CONFIG_SITE
2918 elif test "x$prefix" != xNONE; then
2919 ac_site_file1=$prefix/share/config.site
2920 ac_site_file2=$prefix/etc/config.site
2921 else
2922 ac_site_file1=$ac_default_prefix/share/config.site
2923 ac_site_file2=$ac_default_prefix/etc/config.site
2925 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2927 test "x$ac_site_file" = xNONE && continue
2928 if test -r "$ac_site_file"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2930 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2931 sed 's/^/| /' "$ac_site_file" >&5
2932 . "$ac_site_file"
2934 done
2936 if test -r "$cache_file"; then
2937 # Some versions of bash will fail to source /dev/null (special
2938 # files actually), so we avoid doing that.
2939 if test -f "$cache_file"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2942 case $cache_file in
2943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2944 *) . "./$cache_file";;
2945 esac
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2949 $as_echo "$as_me: creating cache $cache_file" >&6;}
2950 >$cache_file
2953 # Check that the precious variables saved in the cache have kept the same
2954 # value.
2955 ac_cache_corrupted=false
2956 for ac_var in $ac_precious_vars; do
2957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2958 eval ac_new_set=\$ac_env_${ac_var}_set
2959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2960 eval ac_new_val=\$ac_env_${ac_var}_value
2961 case $ac_old_set,$ac_new_set in
2962 set,)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2965 ac_cache_corrupted=: ;;
2966 ,set)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2969 ac_cache_corrupted=: ;;
2970 ,);;
2972 if test "x$ac_old_val" != "x$ac_new_val"; then
2973 # differences in whitespace do not lead to failure.
2974 ac_old_val_w=`echo x $ac_old_val`
2975 ac_new_val_w=`echo x $ac_new_val`
2976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2979 ac_cache_corrupted=:
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2983 eval $ac_var=\$ac_old_val
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2989 fi;;
2990 esac
2991 # Pass precious variables to config.status.
2992 if test "$ac_new_set" = set; then
2993 case $ac_new_val in
2994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2995 *) ac_arg=$ac_var=$ac_new_val ;;
2996 esac
2997 case " $ac_configure_args " in
2998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2999 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3000 esac
3002 done
3003 if $ac_cache_corrupted; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3008 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3010 ## -------------------- ##
3011 ## Main body of script. ##
3012 ## -------------------- ##
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3028 gcc_version=`cat $srcdir/BASE-VER`
3030 # Determine the host, build, and target systems
3031 ac_aux_dir=
3032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3033 for ac_t in install-sh install.sh shtool; do
3034 if test -f "$ac_dir/$ac_t"; then
3035 ac_aux_dir=$ac_dir
3036 ac_install_sh="$ac_aux_dir/$ac_t -c"
3037 break 2
3039 done
3040 done
3041 if test -z "$ac_aux_dir"; then
3042 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3045 # These three variables are undocumented and unsupported,
3046 # and are intended to be withdrawn in a future Autoconf release.
3047 # They can cause serious problems if a builder's source tree is in a directory
3048 # whose full name contains unusual characters.
3049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3054 # Make sure we can run config.sub.
3055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3056 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3059 $as_echo_n "checking build system type... " >&6; }
3060 if test "${ac_cv_build+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 ac_build_alias=$build_alias
3064 test "x$ac_build_alias" = x &&
3065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3066 test "x$ac_build_alias" = x &&
3067 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3069 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3073 $as_echo "$ac_cv_build" >&6; }
3074 case $ac_cv_build in
3075 *-*-*) ;;
3076 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3077 esac
3078 build=$ac_cv_build
3079 ac_save_IFS=$IFS; IFS='-'
3080 set x $ac_cv_build
3081 shift
3082 build_cpu=$1
3083 build_vendor=$2
3084 shift; shift
3085 # Remember, the first character of IFS is used to create $*,
3086 # except with old shells:
3087 build_os=$*
3088 IFS=$ac_save_IFS
3089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3093 $as_echo_n "checking host system type... " >&6; }
3094 if test "${ac_cv_host+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test "x$host_alias" = x; then
3098 ac_cv_host=$ac_cv_build
3099 else
3100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3101 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3106 $as_echo "$ac_cv_host" >&6; }
3107 case $ac_cv_host in
3108 *-*-*) ;;
3109 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3110 esac
3111 host=$ac_cv_host
3112 ac_save_IFS=$IFS; IFS='-'
3113 set x $ac_cv_host
3114 shift
3115 host_cpu=$1
3116 host_vendor=$2
3117 shift; shift
3118 # Remember, the first character of IFS is used to create $*,
3119 # except with old shells:
3120 host_os=$*
3121 IFS=$ac_save_IFS
3122 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3126 $as_echo_n "checking target system type... " >&6; }
3127 if test "${ac_cv_target+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test "x$target_alias" = x; then
3131 ac_cv_target=$ac_cv_host
3132 else
3133 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3134 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3139 $as_echo "$ac_cv_target" >&6; }
3140 case $ac_cv_target in
3141 *-*-*) ;;
3142 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3143 esac
3144 target=$ac_cv_target
3145 ac_save_IFS=$IFS; IFS='-'
3146 set x $ac_cv_target
3147 shift
3148 target_cpu=$1
3149 target_vendor=$2
3150 shift; shift
3151 # Remember, the first character of IFS is used to create $*,
3152 # except with old shells:
3153 target_os=$*
3154 IFS=$ac_save_IFS
3155 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3158 # The aliases save the names the user supplied, while $host etc.
3159 # will get canonicalized.
3160 test -n "$target_alias" &&
3161 test "$program_prefix$program_suffix$program_transform_name" = \
3162 NONENONEs,x,x, &&
3163 program_prefix=${target_alias}-
3165 # Determine the noncanonical target name, for directory use.
3166 case ${build_alias} in
3167 "") build_noncanonical=${build} ;;
3168 *) build_noncanonical=${build_alias} ;;
3169 esac
3171 case ${host_alias} in
3172 "") host_noncanonical=${build_noncanonical} ;;
3173 *) host_noncanonical=${host_alias} ;;
3174 esac
3176 case ${target_alias} in
3177 "") target_noncanonical=${host_noncanonical} ;;
3178 *) target_noncanonical=${target_alias} ;;
3179 esac
3184 # Determine the target- and build-specific subdirectories
3186 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3187 # have matching libraries, they should use host libraries: Makefile.tpl
3188 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3189 # However, they still use the build modules, because the corresponding
3190 # host modules (e.g. bison) are only built for the host when bootstrap
3191 # finishes. So:
3192 # - build_subdir is where we find build modules, and never changes.
3193 # - build_libsubdir is where we find build libraries, and can be overridden.
3195 # Prefix 'build-' so this never conflicts with target_subdir.
3196 build_subdir="build-${build_noncanonical}"
3198 # Check whether --with-build-libsubdir was given.
3199 if test "${with_build_libsubdir+set}" = set; then :
3200 withval=$with_build_libsubdir; build_libsubdir="$withval"
3201 else
3202 build_libsubdir="$build_subdir"
3205 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3206 if ( test $srcdir = . && test -d gcc ) \
3207 || test -d $srcdir/../host-${host_noncanonical}; then
3208 host_subdir="host-${host_noncanonical}"
3209 else
3210 host_subdir=.
3212 # No prefix.
3213 target_subdir=${target_noncanonical}
3216 # Set program_transform_name
3217 test "$program_prefix" != NONE &&
3218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3219 # Use a double $ so make ignores it.
3220 test "$program_suffix" != NONE &&
3221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3222 # Double any \ or $.
3223 # By default was `s,x,x', remove it if useless.
3224 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3225 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3228 # Check for bogus environment variables.
3229 # Test if LIBRARY_PATH contains the notation for the current directory
3230 # since this would lead to problems installing/building glibc.
3231 # LIBRARY_PATH contains the current directory if one of the following
3232 # is true:
3233 # - one of the terminals (":" and ";") is the first or last sign
3234 # - two terminals occur directly after each other
3235 # - the path contains an element with a dot in it
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3237 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3238 case ${LIBRARY_PATH} in
3239 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3240 library_path_setting="contains current directory"
3243 library_path_setting="ok"
3245 esac
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3247 $as_echo "$library_path_setting" >&6; }
3248 if test "$library_path_setting" != "ok"; then
3249 as_fn_error "
3250 *** LIBRARY_PATH shouldn't contain the current directory when
3251 *** building gcc. Please change the environment variable
3252 *** and run configure again." "$LINENO" 5
3255 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3256 # since this would lead to problems installing/building glibc.
3257 # GCC_EXEC_PREFIX contains the current directory if one of the following
3258 # is true:
3259 # - one of the terminals (":" and ";") is the first or last sign
3260 # - two terminals occur directly after each other
3261 # - the path contains an element with a dot in it
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3263 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3264 case ${GCC_EXEC_PREFIX} in
3265 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3266 gcc_exec_prefix_setting="contains current directory"
3269 gcc_exec_prefix_setting="ok"
3271 esac
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3273 $as_echo "$gcc_exec_prefix_setting" >&6; }
3274 if test "$gcc_exec_prefix_setting" != "ok"; then
3275 as_fn_error "
3276 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3277 *** building gcc. Please change the environment variable
3278 *** and run configure again." "$LINENO" 5
3281 # -----------
3282 # Directories
3283 # -----------
3285 # Specify the local prefix
3286 local_prefix=
3288 # Check whether --with-local-prefix was given.
3289 if test "${with_local_prefix+set}" = set; then :
3290 withval=$with_local_prefix; case "${withval}" in
3291 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3292 no) ;;
3293 *) local_prefix=$with_local_prefix ;;
3294 esac
3298 # Default local prefix if it is empty
3299 if test x$local_prefix = x; then
3300 local_prefix=/usr/local
3303 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3304 # passed in by the toplevel make and thus we'd get different behavior
3305 # depending on where we built the sources.
3306 gcc_gxx_include_dir=
3307 # Specify the g++ header file directory
3309 # Check whether --with-gxx-include-dir was given.
3310 if test "${with_gxx_include_dir+set}" = set; then :
3311 withval=$with_gxx_include_dir; case "${withval}" in
3312 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3313 no) ;;
3314 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3315 esac
3319 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3320 if test x${gcc_gxx_include_dir} = x; then
3321 if test x${enable_version_specific_runtime_libs} = xyes; then
3322 gcc_gxx_include_dir='${libsubdir}/include/c++'
3323 else
3324 libstdcxx_incdir='include/c++/$(version)'
3325 if test x$host != x$target; then
3326 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3328 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 # Check whether --with-cpp_install_dir was given.
3334 if test "${with_cpp_install_dir+set}" = set; then :
3335 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3336 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3337 elif test x$withval != xno; then
3338 cpp_install_dir=$withval
3343 # We would like to our source tree to be readonly. However when releases or
3344 # pre-releases are generated, the flex/bison generated files as well as the
3345 # various formats of manuals need to be included along with the rest of the
3346 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3347 # just that.
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3350 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3351 # Check whether --enable-generated-files-in-srcdir was given.
3352 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3353 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3354 else
3355 generated_files_in_srcdir=no
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3360 $as_echo "$generated_files_in_srcdir" >&6; }
3362 if test "$generated_files_in_srcdir" = "yes"; then
3363 GENINSRC=''
3364 else
3365 GENINSRC='#'
3369 # -------------------
3370 # Find default linker
3371 # -------------------
3373 # With GNU ld
3375 # Check whether --with-gnu-ld was given.
3376 if test "${with_gnu_ld+set}" = set; then :
3377 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3378 else
3379 gnu_ld_flag=no
3383 # With pre-defined ld
3385 # Check whether --with-ld was given.
3386 if test "${with_ld+set}" = set; then :
3387 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3390 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3391 if test ! -x "$DEFAULT_LINKER"; then
3392 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3393 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3394 gnu_ld_flag=yes
3397 cat >>confdefs.h <<_ACEOF
3398 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3399 _ACEOF
3403 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3405 cat >>confdefs.h <<_ACEOF
3406 #define HAVE_GNU_LD $gnu_ld
3407 _ACEOF
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test x"$gnu_ld_flag" = x"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3430 else
3431 demangler_in_ld=no
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3439 # With GNU as
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3444 else
3445 gas_flag=no
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3459 gas_flag=yes
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3464 _ACEOF
3468 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3470 cat >>confdefs.h <<_ACEOF
3471 #define HAVE_GNU_AS $gnu_as
3472 _ACEOF
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3476 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3477 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3478 if test x"$gas_flag" = x"no"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3480 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3483 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3490 # ---------------
3491 # Find C compiler
3492 # ---------------
3494 # If a non-executable a.out is present (e.g. created by GNU as above even if
3495 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3496 # file, even when creating an executable, so an execution test fails.
3497 # Remove possible default executable files to avoid this.
3499 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3500 # Autoconf includes it.
3501 rm -f a.out a.exe b.out
3503 # Find the native compiler
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 if test -n "$ac_tool_prefix"; then
3510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_CC+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3531 done
3532 done
3533 IFS=$as_save_IFS
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3548 if test -z "$ac_cv_prog_CC"; then
3549 ac_ct_CC=$CC
3550 # Extract the first word of "gcc", so it can be a program name with args.
3551 set dummy gcc; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_ac_ct_CC="gcc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3571 done
3572 done
3573 IFS=$as_save_IFS
3577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3578 if test -n "$ac_ct_CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3580 $as_echo "$ac_ct_CC" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3586 if test "x$ac_ct_CC" = x; then
3587 CC=""
3588 else
3589 case $cross_compiling:$ac_tool_warned in
3590 yes:)
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned=yes ;;
3594 esac
3595 CC=$ac_ct_CC
3597 else
3598 CC="$ac_cv_prog_CC"
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}cc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_CC+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 ac_cv_prog_CC="${ac_tool_prefix}cc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3624 done
3625 done
3626 IFS=$as_save_IFS
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 # Extract the first word of "cc", so it can be a program name with args.
3644 set dummy cc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if test "${ac_cv_prog_CC+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 ac_prog_rejected=no
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3662 ac_prog_rejected=yes
3663 continue
3665 ac_cv_prog_CC="cc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3673 if test $ac_prog_rejected = yes; then
3674 # We found a bogon in the path, so make sure we never use it.
3675 set dummy $ac_cv_prog_CC
3676 shift
3677 if test $# != 0; then
3678 # We chose a different compiler from the bogus one.
3679 # However, it has the same basename, so the bogon will be chosen
3680 # first if we set CC to just the basename; use the full file name.
3681 shift
3682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3687 CC=$ac_cv_prog_CC
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3698 if test -z "$CC"; then
3699 if test -n "$ac_tool_prefix"; then
3700 for ac_prog in cl.exe
3702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if test "${ac_cv_prog_CC+set}" = set; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC="$CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3723 done
3724 done
3725 IFS=$as_save_IFS
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3739 test -n "$CC" && break
3740 done
3742 if test -z "$CC"; then
3743 ac_ct_CC=$CC
3744 for ac_prog in cl.exe
3746 # Extract the first word of "$ac_prog", so it can be a program name with args.
3747 set dummy $ac_prog; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763 ac_cv_prog_ac_ct_CC="$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3767 done
3768 done
3769 IFS=$as_save_IFS
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3777 else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3783 test -n "$ac_ct_CC" && break
3784 done
3786 if test "x$ac_ct_CC" = x; then
3787 CC=""
3788 else
3789 case $cross_compiling:$ac_tool_warned in
3790 yes:)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned=yes ;;
3794 esac
3795 CC=$ac_ct_CC
3802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error "no acceptable C compiler found in \$PATH
3805 See \`config.log' for more details." "$LINENO" 5; }
3807 # Provide some information about the compiler.
3808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809 set X $ac_compile
3810 ac_compiler=$2
3811 for ac_option in --version -v -V -qversion; do
3812 { { ac_try="$ac_compiler $ac_option >&5"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3820 ac_status=$?
3821 if test -s conftest.err; then
3822 sed '10a\
3823 ... rest of stderr output deleted ...
3824 10q' conftest.err >conftest.er1
3825 cat conftest.er1 >&5
3826 rm -f conftest.er1 conftest.err
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }
3830 done
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3836 main ()
3840 return 0;
3842 _ACEOF
3843 ac_clean_files_save=$ac_clean_files
3844 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3845 # Try to create an executable without -o first, disregard a.out.
3846 # It will help us diagnose broken compilers, and finding out an intuition
3847 # of exeext.
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3849 $as_echo_n "checking for C compiler default output file name... " >&6; }
3850 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3852 # The possible output files:
3853 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3855 ac_rmfiles=
3856 for ac_file in $ac_files
3858 case $ac_file in
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861 esac
3862 done
3863 rm -f $ac_rmfiles
3865 if { { ac_try="$ac_link_default"
3866 case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link_default") 2>&5
3873 ac_status=$?
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3877 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3879 # so that the user can short-circuit this test for compilers unknown to
3880 # Autoconf.
3881 for ac_file in $ac_files ''
3883 test -f "$ac_file" || continue
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3887 [ab].out )
3888 # We found the default executable, but exeext='' is most
3889 # certainly right.
3890 break;;
3891 *.* )
3892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3893 then :; else
3894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3896 # We set ac_cv_exeext here because the later test for it is not
3897 # safe: cross compilers may not add the suffix if given an `-o'
3898 # argument, so we may need to know it at that point already.
3899 # Even if this section looks crufty: it has the advantage of
3900 # actually working.
3901 break;;
3903 break;;
3904 esac
3905 done
3906 test "$ac_cv_exeext" = no && ac_cv_exeext=
3908 else
3909 ac_file=''
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3912 $as_echo "$ac_file" >&6; }
3913 if test -z "$ac_file"; then :
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 { as_fn_set_status 77
3920 as_fn_error "C compiler cannot create executables
3921 See \`config.log' for more details." "$LINENO" 5; }; }
3923 ac_exeext=$ac_cv_exeext
3925 # Check that the compiler produces executables we can run. If not, either
3926 # the compiler is broken, or we cross compile.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3928 $as_echo_n "checking whether the C compiler works... " >&6; }
3929 # If not cross compiling, check that we can run a simple program.
3930 if test "$cross_compiling" != yes; then
3931 if { ac_try='./$ac_file'
3932 { { case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_try") 2>&5
3939 ac_status=$?
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; }; then
3942 cross_compiling=no
3943 else
3944 if test "$cross_compiling" = maybe; then
3945 cross_compiling=yes
3946 else
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error "cannot run C compiled programs.
3950 If you meant to cross compile, use \`--host'.
3951 See \`config.log' for more details." "$LINENO" 5; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3959 ac_clean_files=$ac_clean_files_save
3960 # Check that the compiler produces executables we can run. If not, either
3961 # the compiler is broken, or we cross compile.
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3963 $as_echo_n "checking whether we are cross compiling... " >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3965 $as_echo "$cross_compiling" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3968 $as_echo_n "checking for suffix of executables... " >&6; }
3969 if { { ac_try="$ac_link"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_link") 2>&5
3977 ac_status=$?
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; then :
3980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3982 # work properly (i.e., refer to `conftest.exe'), while it won't with
3983 # `rm'.
3984 for ac_file in conftest.exe conftest conftest.*; do
3985 test -f "$ac_file" || continue
3986 case $ac_file in
3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3989 break;;
3990 * ) break;;
3991 esac
3992 done
3993 else
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of executables: cannot compile and link
3997 See \`config.log' for more details." "$LINENO" 5; }
3999 rm -f conftest$ac_cv_exeext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4001 $as_echo "$ac_cv_exeext" >&6; }
4003 rm -f conftest.$ac_ext
4004 EXEEXT=$ac_cv_exeext
4005 ac_exeext=$EXEEXT
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4007 $as_echo_n "checking for suffix of object files... " >&6; }
4008 if test "${ac_cv_objext+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4015 main ()
4019 return 0;
4021 _ACEOF
4022 rm -f conftest.o conftest.obj
4023 if { { ac_try="$ac_compile"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_compile") 2>&5
4031 ac_status=$?
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }; then :
4034 for ac_file in conftest.o conftest.obj conftest.*; do
4035 test -f "$ac_file" || continue;
4036 case $ac_file in
4037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4039 break;;
4040 esac
4041 done
4042 else
4043 $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "cannot compute suffix of object files: cannot compile
4049 See \`config.log' for more details." "$LINENO" 5; }
4051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4054 $as_echo "$ac_cv_objext" >&6; }
4055 OBJEXT=$ac_cv_objext
4056 ac_objext=$OBJEXT
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4059 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4068 #ifndef __GNUC__
4069 choke me
4070 #endif
4073 return 0;
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_compiler_gnu=yes
4078 else
4079 ac_compiler_gnu=no
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4087 if test $ac_compiler_gnu = yes; then
4088 GCC=yes
4089 else
4090 GCC=
4092 ac_test_CFLAGS=${CFLAGS+set}
4093 ac_save_CFLAGS=$CFLAGS
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4096 if test "${ac_cv_prog_cc_g+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 ac_save_c_werror_flag=$ac_c_werror_flag
4100 ac_c_werror_flag=yes
4101 ac_cv_prog_cc_g=no
4102 CFLAGS="-g"
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4111 return 0;
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_cv_prog_cc_g=yes
4116 else
4117 CFLAGS=""
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4122 main ()
4126 return 0;
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4131 else
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4133 CFLAGS="-g"
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4142 return 0;
4144 _ACEOF
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_prog_cc_g=yes
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4156 $as_echo "$ac_cv_prog_cc_g" >&6; }
4157 if test "$ac_test_CFLAGS" = set; then
4158 CFLAGS=$ac_save_CFLAGS
4159 elif test $ac_cv_prog_cc_g = yes; then
4160 if test "$GCC" = yes; then
4161 CFLAGS="-g -O2"
4162 else
4163 CFLAGS="-g"
4165 else
4166 if test "$GCC" = yes; then
4167 CFLAGS="-O2"
4168 else
4169 CFLAGS=
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4174 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 ac_cv_prog_cc_c89=no
4178 ac_save_CC=$CC
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #include <stdarg.h>
4182 #include <stdio.h>
4183 #include <sys/types.h>
4184 #include <sys/stat.h>
4185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4186 struct buf { int x; };
4187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4188 static char *e (p, i)
4189 char **p;
4190 int i;
4192 return p[i];
4194 static char *f (char * (*g) (char **, int), char **p, ...)
4196 char *s;
4197 va_list v;
4198 va_start (v,p);
4199 s = g (p, va_arg (v,int));
4200 va_end (v);
4201 return s;
4204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4205 function prototypes and stuff, but not '\xHH' hex character constants.
4206 These don't provoke an error unfortunately, instead are silently treated
4207 as 'x'. The following induces an error, until -std is added to get
4208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4209 array size at least. It's necessary to write '\x00'==0 to get something
4210 that's true only with -std. */
4211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4214 inside strings and character constants. */
4215 #define FOO(x) 'x'
4216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4222 int argc;
4223 char **argv;
4225 main ()
4227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4229 return 0;
4231 _ACEOF
4232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4235 CC="$ac_save_CC $ac_arg"
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_prog_cc_c89=$ac_arg
4239 rm -f core conftest.err conftest.$ac_objext
4240 test "x$ac_cv_prog_cc_c89" != "xno" && break
4241 done
4242 rm -f conftest.$ac_ext
4243 CC=$ac_save_CC
4246 # AC_CACHE_VAL
4247 case "x$ac_cv_prog_cc_c89" in
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4250 $as_echo "none needed" >&6; } ;;
4251 xno)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4253 $as_echo "unsupported" >&6; } ;;
4255 CC="$CC $ac_cv_prog_cc_c89"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4257 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4258 esac
4259 if test "x$ac_cv_prog_cc_c89" != xno; then :
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 if test "x$CC" != xcc; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4271 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4274 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4276 set dummy $CC; ac_cc=`$as_echo "$2" |
4277 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4278 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4285 main ()
4289 return 0;
4291 _ACEOF
4292 # Make sure it works both with $CC and with simple cc.
4293 # We do the test twice because some compilers refuse to overwrite an
4294 # existing .o file with -o, though they will create one.
4295 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4296 rm -f conftest2.*
4297 if { { case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; } &&
4307 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; };
4317 then
4318 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4319 if test "x$CC" != xcc; then
4320 # Test first that cc exists at all.
4321 if { ac_try='cc -c conftest.$ac_ext >&5'
4322 { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }; }; then
4332 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4333 rm -f conftest2.*
4334 if { { case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_try") 2>&5
4341 ac_status=$?
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; } &&
4344 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; };
4354 then
4355 # cc works too.
4357 else
4358 # cc exists but doesn't like -o.
4359 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4363 else
4364 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4366 rm -f core conftest*
4369 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371 $as_echo "yes" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4376 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4380 # expand $ac_aux_dir to an absolute path
4381 am_aux_dir=`cd $ac_aux_dir && pwd`
4383 # FIXME: we rely on the cache variable name because
4384 # there is no other way.
4385 set dummy $CC
4386 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4387 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4388 if test "$am_t" != yes; then
4389 # Losing compiler, so override with the script.
4390 # FIXME: It is wrong to rewrite CC.
4391 # But if we don't then we get into trouble of one sort or another.
4392 # A longer-term fix would be to have automake use am__CC in this case,
4393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4394 CC="$am_aux_dir/compile $CC"
4398 ac_ext=cpp
4399 ac_cpp='$CXXCPP $CPPFLAGS'
4400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4403 if test -z "$CXX"; then
4404 if test -n "$CCC"; then
4405 CXX=$CCC
4406 else
4407 if test -n "$ac_tool_prefix"; then
4408 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if test "${ac_cv_prog_CXX+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -n "$CXX"; then
4418 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4431 done
4432 done
4433 IFS=$as_save_IFS
4437 CXX=$ac_cv_prog_CXX
4438 if test -n "$CXX"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4440 $as_echo "$CXX" >&6; }
4441 else
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4447 test -n "$CXX" && break
4448 done
4450 if test -z "$CXX"; then
4451 ac_ct_CXX=$CXX
4452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy $ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_CXX"; then
4462 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_CXX="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4482 if test -n "$ac_ct_CXX"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4484 $as_echo "$ac_ct_CXX" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$ac_ct_CXX" && break
4492 done
4494 if test "x$ac_ct_CXX" = x; then
4495 CXX="g++"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 CXX=$ac_ct_CXX
4509 # Provide some information about the compiler.
4510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4511 set X $ac_compile
4512 ac_compiler=$2
4513 for ac_option in --version -v -V -qversion; do
4514 { { ac_try="$ac_compiler $ac_option >&5"
4515 case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4522 ac_status=$?
4523 if test -s conftest.err; then
4524 sed '10a\
4525 ... rest of stderr output deleted ...
4526 10q' conftest.err >conftest.er1
4527 cat conftest.er1 >&5
4528 rm -f conftest.er1 conftest.err
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }
4532 done
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4535 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4536 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4543 main ()
4545 #ifndef __GNUC__
4546 choke me
4547 #endif
4550 return 0;
4552 _ACEOF
4553 if ac_fn_cxx_try_compile "$LINENO"; then :
4554 ac_compiler_gnu=yes
4555 else
4556 ac_compiler_gnu=no
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4563 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4564 if test $ac_compiler_gnu = yes; then
4565 GXX=yes
4566 else
4567 GXX=
4569 ac_test_CXXFLAGS=${CXXFLAGS+set}
4570 ac_save_CXXFLAGS=$CXXFLAGS
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4572 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4573 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4577 ac_cxx_werror_flag=yes
4578 ac_cv_prog_cxx_g=no
4579 CXXFLAGS="-g"
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 main ()
4588 return 0;
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cv_prog_cxx_g=yes
4593 else
4594 CXXFLAGS=""
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4599 main ()
4603 return 0;
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 else
4609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4610 CXXFLAGS="-g"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4619 return 0;
4621 _ACEOF
4622 if ac_fn_cxx_try_compile "$LINENO"; then :
4623 ac_cv_prog_cxx_g=yes
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4633 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4634 if test "$ac_test_CXXFLAGS" = set; then
4635 CXXFLAGS=$ac_save_CXXFLAGS
4636 elif test $ac_cv_prog_cxx_g = yes; then
4637 if test "$GXX" = yes; then
4638 CXXFLAGS="-g -O2"
4639 else
4640 CXXFLAGS="-g"
4642 else
4643 if test "$GXX" = yes; then
4644 CXXFLAGS="-O2"
4645 else
4646 CXXFLAGS=
4649 ac_ext=c
4650 ac_cpp='$CPP $CPPFLAGS'
4651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$GNATBIND"; then
4667 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 GNATBIND=$ac_cv_prog_GNATBIND
4687 if test -n "$GNATBIND"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4689 $as_echo "$GNATBIND" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$ac_cv_prog_GNATBIND"; then
4698 ac_ct_GNATBIND=$GNATBIND
4699 # Extract the first word of "gnatbind", so it can be a program name with args.
4700 set dummy gnatbind; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$ac_ct_GNATBIND"; then
4707 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4722 IFS=$as_save_IFS
4726 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4727 if test -n "$ac_ct_GNATBIND"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4729 $as_echo "$ac_ct_GNATBIND" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4735 if test "x$ac_ct_GNATBIND" = x; then
4736 GNATBIND="no"
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744 GNATBIND=$ac_ct_GNATBIND
4746 else
4747 GNATBIND="$ac_cv_prog_GNATBIND"
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$GNATMAKE"; then
4759 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 GNATMAKE=$ac_cv_prog_GNATMAKE
4779 if test -n "$GNATMAKE"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4781 $as_echo "$GNATMAKE" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4789 if test -z "$ac_cv_prog_GNATMAKE"; then
4790 ac_ct_GNATMAKE=$GNATMAKE
4791 # Extract the first word of "gnatmake", so it can be a program name with args.
4792 set dummy gnatmake; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_GNATMAKE"; then
4799 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4819 if test -n "$ac_ct_GNATMAKE"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4821 $as_echo "$ac_ct_GNATMAKE" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4827 if test "x$ac_ct_GNATMAKE" = x; then
4828 GNATMAKE="no"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 GNATMAKE=$ac_ct_GNATMAKE
4838 else
4839 GNATMAKE="$ac_cv_prog_GNATMAKE"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4843 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4844 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat >conftest.adb <<EOF
4848 procedure conftest is begin null; end conftest;
4850 acx_cv_cc_gcc_supports_ada=no
4851 # There is a bug in old released versions of GCC which causes the
4852 # driver to exit successfully when the appropriate language module
4853 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4854 # Therefore we must check for the error message as well as an
4855 # unsuccessful exit.
4856 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4857 # given a .adb file, but produce no object file. So we must check
4858 # if an object file was really produced to guard against this.
4859 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4860 if test x"$errors" = x && test -f conftest.$ac_objext; then
4861 acx_cv_cc_gcc_supports_ada=yes
4863 rm -f conftest.*
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4866 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4868 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4869 have_gnat=yes
4870 else
4871 have_gnat=no
4875 # autoconf is lame and doesn't give us any substitution variable for this.
4876 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4877 NO_MINUS_C_MINUS_O=yes
4878 else
4879 OUTPUT_OPTION='-o $@'
4884 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4885 # optimizations to be activated explicitly by the toplevel.
4886 case "$CC" in
4887 */prev-gcc/xgcc*) ;;
4888 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4889 esac
4892 # -------------------------
4893 # Check C compiler features
4894 # -------------------------
4897 ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4904 # On Suns, sometimes $CPP names a directory.
4905 if test -n "$CPP" && test -d "$CPP"; then
4906 CPP=
4908 if test -z "$CPP"; then
4909 if test "${ac_cv_prog_CPP+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 # Double quotes because CPP needs to be expanded
4913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4915 ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #ifdef __STDC__
4927 # include <limits.h>
4928 #else
4929 # include <assert.h>
4930 #endif
4931 Syntax error
4932 _ACEOF
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4935 else
4936 # Broken: fails on valid input.
4937 continue
4939 rm -f conftest.err conftest.$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <ac_nonexistent.h>
4946 _ACEOF
4947 if ac_fn_c_try_cpp "$LINENO"; then :
4948 # Broken: success on invalid input.
4949 continue
4950 else
4951 # Passes both tests.
4952 ac_preproc_ok=:
4953 break
4955 rm -f conftest.err conftest.$ac_ext
4957 done
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.err conftest.$ac_ext
4960 if $ac_preproc_ok; then :
4961 break
4964 done
4965 ac_cv_prog_CPP=$CPP
4968 CPP=$ac_cv_prog_CPP
4969 else
4970 ac_cv_prog_CPP=$CPP
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4973 $as_echo "$CPP" >&6; }
4974 ac_preproc_ok=false
4975 for ac_c_preproc_warn_flag in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #ifdef __STDC__
4986 # include <limits.h>
4987 #else
4988 # include <assert.h>
4989 #endif
4990 Syntax error
4991 _ACEOF
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4994 else
4995 # Broken: fails on valid input.
4996 continue
4998 rm -f conftest.err conftest.$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <ac_nonexistent.h>
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: success on invalid input.
5008 continue
5009 else
5010 # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5014 rm -f conftest.err conftest.$ac_ext
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then :
5021 else
5022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5024 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5025 See \`config.log' for more details." "$LINENO" 5; }
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5036 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5037 if test "${ac_cv_path_GREP+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -z "$GREP"; then
5041 ac_path_GREP_found=false
5042 # Loop through the user's path and test for each of PROGNAME-LIST
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_prog in grep ggrep; do
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5051 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5052 # Check for GNU ac_path_GREP and select it if it is found.
5053 # Check for GNU $ac_path_GREP
5054 case `"$ac_path_GREP" --version 2>&1` in
5055 *GNU*)
5056 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5058 ac_count=0
5059 $as_echo_n 0123456789 >"conftest.in"
5060 while :
5062 cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 mv "conftest.tmp" "conftest.in"
5064 cp "conftest.in" "conftest.nl"
5065 $as_echo 'GREP' >> "conftest.nl"
5066 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5068 as_fn_arith $ac_count + 1 && ac_count=$as_val
5069 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5070 # Best one so far, save it but keep looking for a better one
5071 ac_cv_path_GREP="$ac_path_GREP"
5072 ac_path_GREP_max=$ac_count
5074 # 10*(2^10) chars as input seems more than enough
5075 test $ac_count -gt 10 && break
5076 done
5077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5078 esac
5080 $ac_path_GREP_found && break 3
5081 done
5082 done
5083 done
5084 IFS=$as_save_IFS
5085 if test -z "$ac_cv_path_GREP"; then
5086 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088 else
5089 ac_cv_path_GREP=$GREP
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5094 $as_echo "$ac_cv_path_GREP" >&6; }
5095 GREP="$ac_cv_path_GREP"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5099 $as_echo_n "checking for egrep... " >&6; }
5100 if test "${ac_cv_path_EGREP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5104 then ac_cv_path_EGREP="$GREP -E"
5105 else
5106 if test -z "$EGREP"; then
5107 ac_path_EGREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in egrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5118 # Check for GNU ac_path_EGREP and select it if it is found.
5119 # Check for GNU $ac_path_EGREP
5120 case `"$ac_path_EGREP" --version 2>&1` in
5121 *GNU*)
5122 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5124 ac_count=0
5125 $as_echo_n 0123456789 >"conftest.in"
5126 while :
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'EGREP' >> "conftest.nl"
5132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134 as_fn_arith $ac_count + 1 && ac_count=$as_val
5135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_EGREP="$ac_path_EGREP"
5138 ac_path_EGREP_max=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5142 done
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5146 $ac_path_EGREP_found && break 3
5147 done
5148 done
5149 done
5150 IFS=$as_save_IFS
5151 if test -z "$ac_cv_path_EGREP"; then
5152 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 else
5155 ac_cv_path_EGREP=$EGREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5161 $as_echo "$ac_cv_path_EGREP" >&6; }
5162 EGREP="$ac_cv_path_EGREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5166 $as_echo_n "checking for ANSI C header files... " >&6; }
5167 if test "${ac_cv_header_stdc+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <stdlib.h>
5173 #include <stdarg.h>
5174 #include <string.h>
5175 #include <float.h>
5178 main ()
5182 return 0;
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"; then :
5186 ac_cv_header_stdc=yes
5187 else
5188 ac_cv_header_stdc=no
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 if test $ac_cv_header_stdc = yes; then
5193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <string.h>
5198 _ACEOF
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "memchr" >/dev/null 2>&1; then :
5202 else
5203 ac_cv_header_stdc=no
5205 rm -f conftest*
5209 if test $ac_cv_header_stdc = yes; then
5210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <stdlib.h>
5215 _ACEOF
5216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5217 $EGREP "free" >/dev/null 2>&1; then :
5219 else
5220 ac_cv_header_stdc=no
5222 rm -f conftest*
5226 if test $ac_cv_header_stdc = yes; then
5227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5228 if test "$cross_compiling" = yes; then :
5230 else
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 #include <ctype.h>
5234 #include <stdlib.h>
5235 #if ((' ' & 0x0FF) == 0x020)
5236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5238 #else
5239 # define ISLOWER(c) \
5240 (('a' <= (c) && (c) <= 'i') \
5241 || ('j' <= (c) && (c) <= 'r') \
5242 || ('s' <= (c) && (c) <= 'z'))
5243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5244 #endif
5246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5248 main ()
5250 int i;
5251 for (i = 0; i < 256; i++)
5252 if (XOR (islower (i), ISLOWER (i))
5253 || toupper (i) != TOUPPER (i))
5254 return 2;
5255 return 0;
5257 _ACEOF
5258 if ac_fn_c_try_run "$LINENO"; then :
5260 else
5261 ac_cv_header_stdc=no
5263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5264 conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5270 $as_echo "$ac_cv_header_stdc" >&6; }
5271 if test $ac_cv_header_stdc = yes; then
5273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5279 inttypes.h stdint.h unistd.h
5280 do :
5281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5284 eval as_val=\$$as_ac_Header
5285 if test "x$as_val" = x""yes; then :
5286 cat >>confdefs.h <<_ACEOF
5287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5288 _ACEOF
5292 done
5296 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5297 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5298 MINIX=yes
5299 else
5300 MINIX=
5304 if test "$MINIX" = yes; then
5306 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5309 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5312 $as_echo "#define _MINIX 1" >>confdefs.h
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5318 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5319 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5325 # define __EXTENSIONS__ 1
5326 $ac_includes_default
5328 main ()
5332 return 0;
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_safe_to_define___extensions__=yes
5337 else
5338 ac_cv_safe_to_define___extensions__=no
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5343 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5344 test $ac_cv_safe_to_define___extensions__ = yes &&
5345 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5347 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5349 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5351 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5353 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5362 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5363 # On Suns, sometimes $CPP names a directory.
5364 if test -n "$CPP" && test -d "$CPP"; then
5365 CPP=
5367 if test -z "$CPP"; then
5368 if test "${ac_cv_prog_CPP+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 # Double quotes because CPP needs to be expanded
5372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5374 ac_preproc_ok=false
5375 for ac_c_preproc_warn_flag in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390 Syntax error
5391 _ACEOF
5392 if ac_fn_c_try_cpp "$LINENO"; then :
5394 else
5395 # Broken: fails on valid input.
5396 continue
5398 rm -f conftest.err conftest.$ac_ext
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <ac_nonexistent.h>
5405 _ACEOF
5406 if ac_fn_c_try_cpp "$LINENO"; then :
5407 # Broken: success on invalid input.
5408 continue
5409 else
5410 # Passes both tests.
5411 ac_preproc_ok=:
5412 break
5414 rm -f conftest.err conftest.$ac_ext
5416 done
5417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5418 rm -f conftest.err conftest.$ac_ext
5419 if $ac_preproc_ok; then :
5420 break
5423 done
5424 ac_cv_prog_CPP=$CPP
5427 CPP=$ac_cv_prog_CPP
5428 else
5429 ac_cv_prog_CPP=$CPP
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5432 $as_echo "$CPP" >&6; }
5433 ac_preproc_ok=false
5434 for ac_c_preproc_warn_flag in '' yes
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5449 Syntax error
5450 _ACEOF
5451 if ac_fn_c_try_cpp "$LINENO"; then :
5453 else
5454 # Broken: fails on valid input.
5455 continue
5457 rm -f conftest.err conftest.$ac_ext
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ac_nonexistent.h>
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466 # Broken: success on invalid input.
5467 continue
5468 else
5469 # Passes both tests.
5470 ac_preproc_ok=:
5471 break
5473 rm -f conftest.err conftest.$ac_ext
5475 done
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.$ac_ext
5478 if $ac_preproc_ok; then :
5480 else
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5484 See \`config.log' for more details." "$LINENO" 5; }
5487 ac_ext=c
5488 ac_cpp='$CPP $CPPFLAGS'
5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5494 $as_echo_n "checking for inline... " >&6; }
5495 if test "${ac_cv_c_inline+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_cv_c_inline=no
5499 for ac_kw in inline __inline__ __inline; do
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #ifndef __cplusplus
5503 typedef int foo_t;
5504 static $ac_kw foo_t static_foo () {return 0; }
5505 $ac_kw foo_t foo () {return 0; }
5506 #endif
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 ac_cv_c_inline=$ac_kw
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 test "$ac_cv_c_inline" != no && break
5514 done
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5518 $as_echo "$ac_cv_c_inline" >&6; }
5520 case $ac_cv_c_inline in
5521 inline | yes) ;;
5523 case $ac_cv_c_inline in
5524 no) ac_val=;;
5525 *) ac_val=$ac_cv_c_inline;;
5526 esac
5527 cat >>confdefs.h <<_ACEOF
5528 #ifndef __cplusplus
5529 #define inline $ac_val
5530 #endif
5531 _ACEOF
5533 esac
5536 # Check whether --enable-largefile was given.
5537 if test "${enable_largefile+set}" = set; then :
5538 enableval=$enable_largefile;
5541 if test "$enable_largefile" != no; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5544 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5545 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 ac_cv_sys_largefile_CC=no
5549 if test "$GCC" != yes; then
5550 ac_save_CC=$CC
5551 while :; do
5552 # IRIX 6.2 and later do not support large files by default,
5553 # so use the C compiler's -n32 option if that helps.
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5564 ? 1 : -1];
5566 main ()
5570 return 0;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 break
5576 rm -f core conftest.err conftest.$ac_objext
5577 CC="$CC -n32"
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 ac_cv_sys_largefile_CC=' -n32'; break
5581 rm -f core conftest.err conftest.$ac_objext
5582 break
5583 done
5584 CC=$ac_save_CC
5585 rm -f conftest.$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5589 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5590 if test "$ac_cv_sys_largefile_CC" != no; then
5591 CC=$CC$ac_cv_sys_largefile_CC
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5595 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5596 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 while :; do
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers
5606 incorrectly reject 9223372036854775807. */
5607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5609 && LARGE_OFF_T % 2147483647 == 1)
5610 ? 1 : -1];
5612 main ()
5616 return 0;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_sys_file_offset_bits=no; break
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #define _FILE_OFFSET_BITS 64
5626 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5629 since some C++ compilers masquerading as C compilers
5630 incorrectly reject 9223372036854775807. */
5631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5633 && LARGE_OFF_T % 2147483647 == 1)
5634 ? 1 : -1];
5636 main ()
5640 return 0;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_sys_file_offset_bits=64; break
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_sys_file_offset_bits=unknown
5648 break
5649 done
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5652 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5653 case $ac_cv_sys_file_offset_bits in #(
5654 no | unknown) ;;
5656 cat >>confdefs.h <<_ACEOF
5657 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5658 _ACEOF
5660 esac
5661 rm -rf conftest*
5662 if test $ac_cv_sys_file_offset_bits = unknown; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5664 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5665 if test "${ac_cv_sys_large_files+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 while :; do
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <sys/types.h>
5672 /* Check that off_t can represent 2**63 - 1 correctly.
5673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5674 since some C++ compilers masquerading as C compilers
5675 incorrectly reject 9223372036854775807. */
5676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5678 && LARGE_OFF_T % 2147483647 == 1)
5679 ? 1 : -1];
5681 main ()
5685 return 0;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 ac_cv_sys_large_files=no; break
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #define _LARGE_FILES 1
5695 #include <sys/types.h>
5696 /* Check that off_t can represent 2**63 - 1 correctly.
5697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5698 since some C++ compilers masquerading as C compilers
5699 incorrectly reject 9223372036854775807. */
5700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5702 && LARGE_OFF_T % 2147483647 == 1)
5703 ? 1 : -1];
5705 main ()
5709 return 0;
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 ac_cv_sys_large_files=1; break
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 ac_cv_sys_large_files=unknown
5717 break
5718 done
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5721 $as_echo "$ac_cv_sys_large_files" >&6; }
5722 case $ac_cv_sys_large_files in #(
5723 no | unknown) ;;
5725 cat >>confdefs.h <<_ACEOF
5726 #define _LARGE_FILES $ac_cv_sys_large_files
5727 _ACEOF
5729 esac
5730 rm -rf conftest*
5735 # sizeof(char) is 1 by definition.
5736 # The cast to long int works around a bug in the HP C Compiler
5737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5739 # This bug is HP SR number 8606223364.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5741 $as_echo_n "checking size of void *... " >&6; }
5742 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5747 else
5748 if test "$ac_cv_type_void_p" = yes; then
5749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5751 { as_fn_set_status 77
5752 as_fn_error "cannot compute sizeof (void *)
5753 See \`config.log' for more details." "$LINENO" 5; }; }
5754 else
5755 ac_cv_sizeof_void_p=0
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5761 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5765 cat >>confdefs.h <<_ACEOF
5766 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5767 _ACEOF
5770 # The cast to long int works around a bug in the HP C Compiler
5771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5773 # This bug is HP SR number 8606223364.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5775 $as_echo_n "checking size of short... " >&6; }
5776 if test "${ac_cv_sizeof_short+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5781 else
5782 if test "$ac_cv_type_short" = yes; then
5783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5785 { as_fn_set_status 77
5786 as_fn_error "cannot compute sizeof (short)
5787 See \`config.log' for more details." "$LINENO" 5; }; }
5788 else
5789 ac_cv_sizeof_short=0
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5795 $as_echo "$ac_cv_sizeof_short" >&6; }
5799 cat >>confdefs.h <<_ACEOF
5800 #define SIZEOF_SHORT $ac_cv_sizeof_short
5801 _ACEOF
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5809 $as_echo_n "checking size of int... " >&6; }
5810 if test "${ac_cv_sizeof_int+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5815 else
5816 if test "$ac_cv_type_int" = yes; then
5817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 { as_fn_set_status 77
5820 as_fn_error "cannot compute sizeof (int)
5821 See \`config.log' for more details." "$LINENO" 5; }; }
5822 else
5823 ac_cv_sizeof_int=0
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5829 $as_echo "$ac_cv_sizeof_int" >&6; }
5833 cat >>confdefs.h <<_ACEOF
5834 #define SIZEOF_INT $ac_cv_sizeof_int
5835 _ACEOF
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5843 $as_echo_n "checking size of long... " >&6; }
5844 if test "${ac_cv_sizeof_long+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5849 else
5850 if test "$ac_cv_type_long" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status 77
5854 as_fn_error "cannot compute sizeof (long)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5856 else
5857 ac_cv_sizeof_long=0
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5863 $as_echo "$ac_cv_sizeof_long" >&6; }
5867 cat >>confdefs.h <<_ACEOF
5868 #define SIZEOF_LONG $ac_cv_sizeof_long
5869 _ACEOF
5872 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5873 if test "x$ac_cv_type_long_long" = x""yes; then :
5875 cat >>confdefs.h <<_ACEOF
5876 #define HAVE_LONG_LONG 1
5877 _ACEOF
5879 # The cast to long int works around a bug in the HP C Compiler
5880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5882 # This bug is HP SR number 8606223364.
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5884 $as_echo_n "checking size of long long... " >&6; }
5885 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5890 else
5891 if test "$ac_cv_type_long_long" = yes; then
5892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894 { as_fn_set_status 77
5895 as_fn_error "cannot compute sizeof (long long)
5896 See \`config.log' for more details." "$LINENO" 5; }; }
5897 else
5898 ac_cv_sizeof_long_long=0
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5904 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5908 cat >>confdefs.h <<_ACEOF
5909 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5910 _ACEOF
5915 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5916 if test "x$ac_cv_type___int64" = x""yes; then :
5918 cat >>confdefs.h <<_ACEOF
5919 #define HAVE___INT64 1
5920 _ACEOF
5922 # The cast to long int works around a bug in the HP C Compiler
5923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5925 # This bug is HP SR number 8606223364.
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5927 $as_echo_n "checking size of __int64... " >&6; }
5928 if test "${ac_cv_sizeof___int64+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5933 else
5934 if test "$ac_cv_type___int64" = yes; then
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 { as_fn_set_status 77
5938 as_fn_error "cannot compute sizeof (__int64)
5939 See \`config.log' for more details." "$LINENO" 5; }; }
5940 else
5941 ac_cv_sizeof___int64=0
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5947 $as_echo "$ac_cv_sizeof___int64" >&6; }
5951 cat >>confdefs.h <<_ACEOF
5952 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5953 _ACEOF
5958 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5959 case $ac_cv_c_int8_t in #(
5960 no|yes) ;; #(
5963 cat >>confdefs.h <<_ACEOF
5964 #define int8_t $ac_cv_c_int8_t
5965 _ACEOF
5967 esac
5969 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5970 case $ac_cv_c_int16_t in #(
5971 no|yes) ;; #(
5974 cat >>confdefs.h <<_ACEOF
5975 #define int16_t $ac_cv_c_int16_t
5976 _ACEOF
5978 esac
5980 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5981 case $ac_cv_c_int32_t in #(
5982 no|yes) ;; #(
5985 cat >>confdefs.h <<_ACEOF
5986 #define int32_t $ac_cv_c_int32_t
5987 _ACEOF
5989 esac
5991 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5992 case $ac_cv_c_int64_t in #(
5993 no|yes) ;; #(
5996 cat >>confdefs.h <<_ACEOF
5997 #define int64_t $ac_cv_c_int64_t
5998 _ACEOF
6000 esac
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6004 $as_echo_n "checking for long long int... " >&6; }
6005 if test "${ac_cv_type_long_long_int+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6011 /* For now, do not test the preprocessor; as of 2007 there are too many
6012 implementations with broken preprocessors. Perhaps this can
6013 be revisited in 2012. In the meantime, code should not expect
6014 #if to work with literals wider than 32 bits. */
6015 /* Test literals. */
6016 long long int ll = 9223372036854775807ll;
6017 long long int nll = -9223372036854775807LL;
6018 unsigned long long int ull = 18446744073709551615ULL;
6019 /* Test constant expressions. */
6020 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6021 ? 1 : -1)];
6022 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6023 ? 1 : -1)];
6024 int i = 63;
6026 main ()
6028 /* Test availability of runtime routines for shift and division. */
6029 long long int llmax = 9223372036854775807ll;
6030 unsigned long long int ullmax = 18446744073709551615ull;
6031 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6032 | (llmax / ll) | (llmax % ll)
6033 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6034 | (ullmax / ull) | (ullmax % ull));
6036 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 if test "$cross_compiling" = yes; then :
6042 ac_cv_type_long_long_int=yes
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <limits.h>
6047 #ifndef LLONG_MAX
6048 # define HALF \
6049 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6050 # define LLONG_MAX (HALF - 1 + HALF)
6051 #endif
6053 main ()
6055 long long int n = 1;
6056 int i;
6057 for (i = 0; ; i++)
6059 long long int m = n << i;
6060 if (m >> i != n)
6061 return 1;
6062 if (LLONG_MAX / 2 < m)
6063 break;
6065 return 0;
6067 return 0;
6069 _ACEOF
6070 if ac_fn_c_try_run "$LINENO"; then :
6071 ac_cv_type_long_long_int=yes
6072 else
6073 ac_cv_type_long_long_int=no
6075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6076 conftest.$ac_objext conftest.beam conftest.$ac_ext
6079 else
6080 ac_cv_type_long_long_int=no
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6086 $as_echo "$ac_cv_type_long_long_int" >&6; }
6087 if test $ac_cv_type_long_long_int = yes; then
6089 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6095 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6096 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6098 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6100 else
6101 test $ac_cv_type_long_long_int = yes \
6102 && ac_type='long long int' \
6103 || ac_type='long int'
6105 cat >>confdefs.h <<_ACEOF
6106 #define intmax_t $ac_type
6107 _ACEOF
6113 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6114 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6116 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6118 else
6119 for ac_type in 'int' 'long int' 'long long int'; do
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 $ac_includes_default
6124 main ()
6126 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6127 test_array [0] = 0
6130 return 0;
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"; then :
6135 cat >>confdefs.h <<_ACEOF
6136 #define intptr_t $ac_type
6137 _ACEOF
6139 ac_type=
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 test -z "$ac_type" && break
6143 done
6147 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6148 case $ac_cv_c_uint8_t in #(
6149 no|yes) ;; #(
6152 $as_echo "#define _UINT8_T 1" >>confdefs.h
6155 cat >>confdefs.h <<_ACEOF
6156 #define uint8_t $ac_cv_c_uint8_t
6157 _ACEOF
6159 esac
6161 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6162 case $ac_cv_c_uint16_t in #(
6163 no|yes) ;; #(
6167 cat >>confdefs.h <<_ACEOF
6168 #define uint16_t $ac_cv_c_uint16_t
6169 _ACEOF
6171 esac
6173 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6174 case $ac_cv_c_uint32_t in #(
6175 no|yes) ;; #(
6178 $as_echo "#define _UINT32_T 1" >>confdefs.h
6181 cat >>confdefs.h <<_ACEOF
6182 #define uint32_t $ac_cv_c_uint32_t
6183 _ACEOF
6185 esac
6187 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6188 case $ac_cv_c_uint64_t in #(
6189 no|yes) ;; #(
6192 $as_echo "#define _UINT64_T 1" >>confdefs.h
6195 cat >>confdefs.h <<_ACEOF
6196 #define uint64_t $ac_cv_c_uint64_t
6197 _ACEOF
6199 esac
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6203 $as_echo_n "checking for unsigned long long int... " >&6; }
6204 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6210 /* For now, do not test the preprocessor; as of 2007 there are too many
6211 implementations with broken preprocessors. Perhaps this can
6212 be revisited in 2012. In the meantime, code should not expect
6213 #if to work with literals wider than 32 bits. */
6214 /* Test literals. */
6215 long long int ll = 9223372036854775807ll;
6216 long long int nll = -9223372036854775807LL;
6217 unsigned long long int ull = 18446744073709551615ULL;
6218 /* Test constant expressions. */
6219 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6220 ? 1 : -1)];
6221 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6222 ? 1 : -1)];
6223 int i = 63;
6225 main ()
6227 /* Test availability of runtime routines for shift and division. */
6228 long long int llmax = 9223372036854775807ll;
6229 unsigned long long int ullmax = 18446744073709551615ull;
6230 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6231 | (llmax / ll) | (llmax % ll)
6232 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6233 | (ullmax / ull) | (ullmax % ull));
6235 return 0;
6238 _ACEOF
6239 if ac_fn_c_try_link "$LINENO"; then :
6240 ac_cv_type_unsigned_long_long_int=yes
6241 else
6242 ac_cv_type_unsigned_long_long_int=no
6244 rm -f core conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6248 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6249 if test $ac_cv_type_unsigned_long_long_int = yes; then
6251 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6257 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6258 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6260 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6262 else
6263 test $ac_cv_type_unsigned_long_long_int = yes \
6264 && ac_type='unsigned long long int' \
6265 || ac_type='unsigned long int'
6267 cat >>confdefs.h <<_ACEOF
6268 #define uintmax_t $ac_type
6269 _ACEOF
6275 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6276 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6278 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6280 else
6281 for ac_type in 'unsigned int' 'unsigned long int' \
6282 'unsigned long long int'; do
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 $ac_includes_default
6287 main ()
6289 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6290 test_array [0] = 0
6293 return 0;
6295 _ACEOF
6296 if ac_fn_c_try_compile "$LINENO"; then :
6298 cat >>confdefs.h <<_ACEOF
6299 #define uintptr_t $ac_type
6300 _ACEOF
6302 ac_type=
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 test -z "$ac_type" && break
6306 done
6323 # ---------------------
6324 # Warnings and checking
6325 # ---------------------
6327 # Check $CC warning features (if it's GCC).
6328 # We want to use -pedantic, but we don't want warnings about
6329 # * 'long long'
6330 # * variadic macros
6331 # * overlong strings
6332 # So, we only use -pedantic if we can disable those warnings.
6334 loose_warn=
6335 save_CFLAGS="$CFLAGS"
6336 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6337 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6340 $as_echo_n "checking whether $CC supports $option... " >&6; }
6341 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 CFLAGS="$option"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6349 main ()
6353 return 0;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 eval "$as_acx_Woption=yes"
6358 else
6359 eval "$as_acx_Woption=no"
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 eval ac_res=\$$as_acx_Woption
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6366 $as_echo "$ac_res" >&6; }
6367 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6368 loose_warn="$loose_warn${loose_warn:+ }$option"
6370 done
6371 CFLAGS="$save_CFLAGS"
6373 c_loose_warn=
6374 save_CFLAGS="$CFLAGS"
6375 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6376 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6379 $as_echo_n "checking whether $CC supports $option... " >&6; }
6380 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 CFLAGS="$option"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6388 main ()
6392 return 0;
6394 _ACEOF
6395 if ac_fn_c_try_compile "$LINENO"; then :
6396 eval "$as_acx_Woption=yes"
6397 else
6398 eval "$as_acx_Woption=no"
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 eval ac_res=\$$as_acx_Woption
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6405 $as_echo "$ac_res" >&6; }
6406 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6407 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6409 done
6410 CFLAGS="$save_CFLAGS"
6412 strict_warn=
6413 save_CFLAGS="$CFLAGS"
6414 for option in -Wmissing-format-attribute; do
6415 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 CFLAGS="$option"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6427 main ()
6431 return 0;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6436 else
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 eval ac_res=\$$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 strict_warn="$strict_warn${strict_warn:+ }$option"
6448 done
6449 CFLAGS="$save_CFLAGS"
6451 c_strict_warn=
6452 save_CFLAGS="$CFLAGS"
6453 for option in -Wold-style-definition -Wc++-compat; do
6454 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6457 $as_echo_n "checking whether $CC supports $option... " >&6; }
6458 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 CFLAGS="$option"
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6466 main ()
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 eval "$as_acx_Woption=yes"
6475 else
6476 eval "$as_acx_Woption=no"
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 eval ac_res=\$$as_acx_Woption
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6483 $as_echo "$ac_res" >&6; }
6484 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6485 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6487 done
6488 CFLAGS="$save_CFLAGS"
6490 if test "$GCC" = yes; then :
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6492 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6493 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 save_CFLAGS="$CFLAGS"
6497 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6502 main ()
6506 return 0;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"; then :
6510 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6511 else
6512 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 CFLAGS="$save_CFLAGS"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6518 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6519 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6520 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6525 # Check whether --enable-werror-always was given.
6526 if test "${enable_werror_always+set}" = set; then :
6527 enableval=$enable_werror_always;
6528 else
6529 enable_werror_always=no
6532 if test $enable_werror_always = yes; then :
6533 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6538 # The above macros do nothing if the compiler is not GCC. However, the
6539 # Makefile has more goo to add other flags, so these variables are used
6540 # to enable warnings only for GCC.
6541 warn_cflags=
6542 warn_cxxflags=
6543 if test "x$GCC" = "xyes"; then
6544 warn_cflags='$(GCC_WARN_CFLAGS)'
6545 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6550 # Enable expensive internal checks
6551 is_release=
6552 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6553 is_release=yes
6556 # Check whether --enable-checking was given.
6557 if test "${enable_checking+set}" = set; then :
6558 enableval=$enable_checking; ac_checking_flags="${enableval}"
6559 else
6561 # Determine the default checks.
6562 if test x$is_release = x ; then
6563 ac_checking_flags=yes
6564 else
6565 ac_checking_flags=release
6569 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6570 for check in release $ac_checking_flags
6572 case $check in
6573 # these set all the flags to specific states
6574 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6575 ac_fold_checking= ; ac_gc_checking=1 ;
6576 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6577 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6578 ac_tree_checking=1 ; ac_valgrind_checking= ;
6579 ac_types_checking=1 ;;
6580 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6581 ac_fold_checking= ; ac_gc_checking= ;
6582 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6583 ac_rtlflag_checking= ; ac_runtime_checking= ;
6584 ac_tree_checking= ; ac_valgrind_checking= ;
6585 ac_types_checking= ;;
6586 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6587 ac_fold_checking=1 ; ac_gc_checking=1 ;
6588 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6589 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6590 ac_tree_checking=1 ; ac_valgrind_checking= ;
6591 ac_types_checking=1 ;;
6592 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6593 ac_fold_checking= ; ac_gc_checking= ;
6594 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6595 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6596 ac_tree_checking= ; ac_valgrind_checking= ;
6597 ac_types_checking= ;;
6598 # these enable particular checks
6599 assert) ac_assert_checking=1 ;;
6600 df) ac_df_checking=1 ;;
6601 fold) ac_fold_checking=1 ;;
6602 gc) ac_gc_checking=1 ;;
6603 gcac) ac_gc_always_collect=1 ;;
6604 gimple) ac_gimple_checking=1 ;;
6605 misc) ac_checking=1 ;;
6606 rtl) ac_rtl_checking=1 ;;
6607 rtlflag) ac_rtlflag_checking=1 ;;
6608 runtime) ac_runtime_checking=1 ;;
6609 tree) ac_tree_checking=1 ;;
6610 types) ac_types_checking=1 ;;
6611 valgrind) ac_valgrind_checking=1 ;;
6612 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6613 esac
6614 done
6615 IFS="$ac_save_IFS"
6617 nocommon_flag=""
6618 if test x$ac_checking != x ; then
6620 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6622 nocommon_flag=-fno-common
6625 if test x$ac_df_checking != x ; then
6627 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6630 if test x$ac_assert_checking != x ; then
6632 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6635 if test x$ac_gimple_checking != x ; then
6637 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6641 if test x$ac_runtime_checking != x ; then
6643 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6646 if test x$ac_tree_checking != x ; then
6648 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6650 TREEBROWSER=tree-browser.o
6652 if test x$ac_types_checking != x ; then
6654 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6658 if test x$ac_rtl_checking != x ; then
6660 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6663 if test x$ac_rtlflag_checking != x ; then
6665 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6668 if test x$ac_gc_checking != x ; then
6670 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6673 if test x$ac_gc_always_collect != x ; then
6675 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6678 if test x$ac_fold_checking != x ; then
6680 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6683 valgrind_path_defines=
6684 valgrind_command=
6686 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6687 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6688 have_valgrind_h=yes
6689 else
6690 have_valgrind_h=no
6695 if test x$ac_valgrind_checking != x ; then
6696 # It is certainly possible that there's valgrind but no valgrind.h.
6697 # GCC relies on making annotations so we must have both.
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6699 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <valgrind/memcheck.h>
6703 #ifndef VALGRIND_DISCARD
6704 #error VALGRIND_DISCARD not defined
6705 #endif
6706 _ACEOF
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708 gcc_cv_header_valgrind_memcheck_h=yes
6709 else
6710 gcc_cv_header_valgrind_memcheck_h=no
6712 rm -f conftest.err conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6714 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6716 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <memcheck.h>
6720 #ifndef VALGRIND_DISCARD
6721 #error VALGRIND_DISCARD not defined
6722 #endif
6723 _ACEOF
6724 if ac_fn_c_try_cpp "$LINENO"; then :
6725 gcc_cv_header_memcheck_h=yes
6726 else
6727 gcc_cv_header_memcheck_h=no
6729 rm -f conftest.err conftest.$ac_ext
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6731 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6733 # Prepare PATH_SEPARATOR.
6734 # The user is always right.
6735 if test "${PATH_SEPARATOR+set}" != set; then
6736 echo "#! /bin/sh" >conf$$.sh
6737 echo "exit 0" >>conf$$.sh
6738 chmod +x conf$$.sh
6739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6740 PATH_SEPARATOR=';'
6741 else
6742 PATH_SEPARATOR=:
6744 rm -f conf$$.sh
6747 # Find out how to test for executable files. Don't use a zero-byte file,
6748 # as systems may use methods other than mode bits to determine executability.
6749 cat >conf$$.file <<_ASEOF
6750 #! /bin/sh
6751 exit 0
6752 _ASEOF
6753 chmod +x conf$$.file
6754 if test -x conf$$.file >/dev/null 2>&1; then
6755 ac_executable_p="test -x"
6756 else
6757 ac_executable_p="test -f"
6759 rm -f conf$$.file
6761 # Extract the first word of "valgrind", so it can be a program name with args.
6762 set dummy valgrind; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 case "$valgrind_path" in
6769 [\\/]* | ?:[\\/]*)
6770 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6773 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6774 for ac_dir in $PATH; do
6775 IFS="$ac_save_IFS"
6776 test -z "$ac_dir" && ac_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6779 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6780 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6781 break 2
6784 done
6785 done
6786 IFS="$ac_save_IFS"
6788 esac
6790 valgrind_path="$ac_cv_path_valgrind_path"
6791 if test -n "$valgrind_path"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6793 $as_echo "$valgrind_path" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$valgrind_path" = "x" \
6800 || (test $have_valgrind_h = no \
6801 && test $gcc_cv_header_memcheck_h = no \
6802 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6803 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6805 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6806 valgrind_command="$valgrind_path -q"
6808 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6810 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6812 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6815 if test $gcc_cv_header_memcheck_h = yes; then
6817 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6824 # Enable code coverage collection
6825 # Check whether --enable-coverage was given.
6826 if test "${enable_coverage+set}" = set; then :
6827 enableval=$enable_coverage; case "${enableval}" in
6828 yes|noopt)
6829 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6831 opt)
6832 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6835 # a.k.a. --disable-coverage
6836 coverage_flags=""
6839 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6841 esac
6842 else
6843 coverage_flags=""
6848 # Check whether --enable-gather-detailed-mem-stats was given.
6849 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6850 enableval=$enable_gather_detailed_mem_stats;
6851 else
6852 enable_gather_detailed_mem_stats=no
6855 if test x$enable_gather_detailed_mem_stats = xyes ; then
6857 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6861 # -------------------------------
6862 # Miscenalleous configure options
6863 # -------------------------------
6865 # See if we are building gcc with C++.
6866 # Check whether --enable-build-with-cxx was given.
6867 if test "${enable_build_with_cxx+set}" = set; then :
6868 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6869 else
6870 ENABLE_BUILD_WITH_CXX=no
6874 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6876 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6880 # With stabs
6882 # Check whether --with-stabs was given.
6883 if test "${with_stabs+set}" = set; then :
6884 withval=$with_stabs; stabs="$with_stabs"
6885 else
6886 stabs=no
6890 # Determine whether or not multilibs are enabled.
6891 # Check whether --enable-multilib was given.
6892 if test "${enable_multilib+set}" = set; then :
6893 enableval=$enable_multilib;
6894 else
6895 enable_multilib=yes
6900 # Enable __cxa_atexit for C++.
6901 # Check whether --enable-__cxa_atexit was given.
6902 if test "${enable___cxa_atexit+set}" = set; then :
6903 enableval=$enable___cxa_atexit;
6907 # Enable C extension for decimal float if target supports it.
6909 # Check whether --enable-decimal-float was given.
6910 if test "${enable_decimal_float+set}" = set; then :
6911 enableval=$enable_decimal_float;
6912 case $enable_decimal_float in
6913 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6914 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6915 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6916 esac
6918 else
6920 case $target in
6921 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6922 i?86*-*-mingw* | x86_64*-*-mingw* | \
6923 i?86*-*-cygwin*)
6924 enable_decimal_float=yes
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6928 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6929 enable_decimal_float=no
6931 esac
6936 # x86's use BID format instead of DPD
6937 case x$enable_decimal_float in
6938 xyes)
6939 case $target in
6940 i?86*-*-* | x86_64*-*-*)
6941 enable_decimal_float=bid
6944 enable_decimal_float=dpd
6946 esac
6947 default_decimal_float=$enable_decimal_float
6949 xno)
6950 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6951 # dependency on libdecnumber.
6952 default_decimal_float=dpd
6954 esac
6959 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6961 cat >>confdefs.h <<_ACEOF
6962 #define ENABLE_DECIMAL_FLOAT $dfp
6963 _ACEOF
6966 # Use default_decimal_float for dependency.
6967 enable_decimal_float=$default_decimal_float
6969 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6971 cat >>confdefs.h <<_ACEOF
6972 #define ENABLE_DECIMAL_BID_FORMAT $bid
6973 _ACEOF
6976 # Enable C extension for fixed-point arithmetic.
6977 # Check whether --enable-fixed-point was given.
6978 if test "${enable_fixed_point+set}" = set; then :
6979 enableval=$enable_fixed_point;
6980 else
6982 case $target in
6983 mips*-*-*)
6984 case $host in
6985 mips*-sgi-irix*)
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6987 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6988 enable_fixed_point=no
6991 enable_fixed_point=yes
6993 esac
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6997 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6998 enable_fixed_point=no
7000 esac
7006 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7008 cat >>confdefs.h <<_ACEOF
7009 #define ENABLE_FIXED_POINT $fixedpoint
7010 _ACEOF
7013 # Enable threads
7014 # Pass with no value to take the default
7015 # Pass with a value to specify a thread package
7016 # Check whether --enable-threads was given.
7017 if test "${enable_threads+set}" = set; then :
7018 enableval=$enable_threads;
7019 else
7020 enable_threads=''
7024 # Check whether --enable-tls was given.
7025 if test "${enable_tls+set}" = set; then :
7026 enableval=$enable_tls;
7027 case $enable_tls in
7028 yes | no) ;;
7029 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7030 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7031 esac
7033 else
7034 enable_tls=''
7038 # Check whether --enable-objc-gc was given.
7039 if test "${enable_objc_gc+set}" = set; then :
7040 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7041 objc_boehm_gc=''
7042 else
7043 objc_boehm_gc=1
7045 else
7046 objc_boehm_gc=''
7051 # Check whether --with-dwarf2 was given.
7052 if test "${with_dwarf2+set}" = set; then :
7053 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7054 else
7055 dwarf2=no
7059 # Check whether --enable-shared was given.
7060 if test "${enable_shared+set}" = set; then :
7061 enableval=$enable_shared;
7062 case $enable_shared in
7063 yes | no) ;;
7065 enable_shared=no
7066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7067 for pkg in $enableval; do
7068 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7069 enable_shared=yes
7071 done
7072 IFS="$ac_save_ifs"
7074 esac
7076 else
7077 enable_shared=yes
7082 # The use of native_system_header_dir here is for the value (optionally)
7083 # configured here. Uses of NATIVE_SYSTEM_HEADER_DIR in this file refer
7084 # to the make variable defined in Makefile or in target make fragments.
7086 # Check whether --with-native-system-header-dir was given.
7087 if test "${with_native_system_header_dir+set}" = set; then :
7088 withval=$with_native_system_header_dir;
7089 case ${with_native_system_header_dir} in
7090 yes|no) as_fn_error "bad value ${withval} given for native system include directory" "$LINENO" 5 ;;
7091 /*) ;;
7092 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7093 esac
7094 native_system_header_dir="${withval}"
7096 else
7097 native_system_header_dir=/usr/include
7100 NATIVE_SYSTEM_HEADER_DIR=$native_system_header_dir
7104 # Check whether --with-build-sysroot was given.
7105 if test "${with_build_sysroot+set}" = set; then :
7106 withval=$with_build_sysroot;
7111 # Check whether --with-runtime-root-prefix was given.
7112 if test "${with_runtime_root_prefix+set}" = set; then :
7113 withval=$with_runtime_root_prefix;
7114 case ${with_runtime_root_prefix} in
7115 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7116 /*) ;;
7117 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7118 esac
7119 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7121 else
7122 RUNTIME_ROOT_PREFIX_DEFINE=""
7128 # Check whether --with-build-sysroot was given.
7129 if test "${with_build_sysroot+set}" = set; then :
7130 withval=$with_build_sysroot; if test x"$withval" != x ; then
7131 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7133 else
7134 SYSROOT_CFLAGS_FOR_TARGET=
7140 # Check whether --with-sysroot was given.
7141 if test "${with_sysroot+set}" = set; then :
7142 withval=$with_sysroot;
7143 case ${with_sysroot} in
7144 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7145 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7146 esac
7148 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7149 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7151 if test "x$prefix" = xNONE; then
7152 test_prefix=/usr/local
7153 else
7154 test_prefix=$prefix
7156 if test "x$exec_prefix" = xNONE; then
7157 test_exec_prefix=$test_prefix
7158 else
7159 test_exec_prefix=$exec_prefix
7161 case ${TARGET_SYSTEM_ROOT} in
7162 "${test_prefix}"|"${test_prefix}/"*|\
7163 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7164 '${prefix}'|'${prefix}/'*|\
7165 '${exec_prefix}'|'${exec_prefix}/'*)
7166 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7167 TARGET_SYSTEM_ROOT_DEFINE="$t"
7169 esac
7171 else
7173 TARGET_SYSTEM_ROOT=
7174 TARGET_SYSTEM_ROOT_DEFINE=
7175 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7184 # Check whether --with-specs was given.
7185 if test "${with_specs+set}" = set; then :
7186 withval=$with_specs; CONFIGURE_SPECS=$withval
7187 else
7188 CONFIGURE_SPECS=
7196 # Check whether --with-pkgversion was given.
7197 if test "${with_pkgversion+set}" = set; then :
7198 withval=$with_pkgversion; case "$withval" in
7199 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7200 no) PKGVERSION= ;;
7201 *) PKGVERSION="($withval) " ;;
7202 esac
7203 else
7204 PKGVERSION="(GCC) "
7212 # Check whether --with-bugurl was given.
7213 if test "${with_bugurl+set}" = set; then :
7214 withval=$with_bugurl; case "$withval" in
7215 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7216 no) BUGURL=
7218 *) BUGURL="$withval"
7220 esac
7221 else
7222 BUGURL="http://gcc.gnu.org/bugs.html"
7226 case ${BUGURL} in
7228 REPORT_BUGS_TO=
7229 REPORT_BUGS_TEXI=
7232 REPORT_BUGS_TO="<$BUGURL>"
7233 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7235 esac;
7240 # Sanity check enable_languages in case someone does not run the toplevel
7241 # configure # script.
7242 # Check whether --enable-languages was given.
7243 if test "${enable_languages+set}" = set; then :
7244 enableval=$enable_languages; case ,${enable_languages}, in
7245 ,,|,yes,)
7246 # go safe -- we cannot be much sure without the toplevel
7247 # configure's
7248 # analysis of which target libs are present and usable
7249 enable_languages=c
7251 *,all,*)
7252 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7254 *,c,*)
7257 enable_languages=c,${enable_languages}
7259 esac
7260 else
7261 enable_languages=c
7266 # Check whether --with-multilib-list was given.
7267 if test "${with_multilib_list+set}" = set; then :
7268 withval=$with_multilib_list; :
7269 else
7270 with_multilib_list=default
7274 # -------------------------
7275 # Checks for other programs
7276 # -------------------------
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7279 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7280 set x ${MAKE-make}
7281 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7282 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat >conftest.make <<\_ACEOF
7286 SHELL = /bin/sh
7287 all:
7288 @echo '@@@%%%=$(MAKE)=@@@%%%'
7289 _ACEOF
7290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7291 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7292 *@@@%%%=?*=@@@%%%*)
7293 eval ac_cv_prog_make_${ac_make}_set=yes;;
7295 eval ac_cv_prog_make_${ac_make}_set=no;;
7296 esac
7297 rm -f conftest.make
7299 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 SET_MAKE=
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 SET_MAKE="MAKE=${MAKE-make}"
7310 # Find some useful tools
7311 for ac_prog in gawk mawk nawk awk
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy $ac_prog; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_AWK+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$AWK"; then
7321 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_AWK="$ac_prog"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7334 done
7335 done
7336 IFS=$as_save_IFS
7340 AWK=$ac_cv_prog_AWK
7341 if test -n "$AWK"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7343 $as_echo "$AWK" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7350 test -n "$AWK" && break
7351 done
7353 # We need awk to create options.c and options.h.
7354 # Bail out if it's missing.
7355 case ${AWK} in
7356 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7357 esac
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7360 $as_echo_n "checking whether ln -s works... " >&6; }
7361 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 rm -f conftestdata_t
7365 echo >conftestdata_f
7366 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7367 then
7368 gcc_cv_prog_LN_S="ln -s"
7369 else
7370 if ln conftestdata_f conftestdata_t 2>/dev/null
7371 then
7372 gcc_cv_prog_LN_S=ln
7373 else
7374 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7375 then
7376 gcc_cv_prog_LN_S="cp -p"
7377 else
7378 gcc_cv_prog_LN_S=cp
7382 rm -f conftestdata_f conftestdata_t
7385 LN_S="$gcc_cv_prog_LN_S"
7386 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388 $as_echo "yes" >&6; }
7389 else
7390 if test "$gcc_cv_prog_LN_S" = "ln"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7392 $as_echo "no, using ln" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7395 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7400 $as_echo_n "checking whether ln works... " >&6; }
7401 if test "${acx_cv_prog_LN+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 rm -f conftestdata_t
7405 echo >conftestdata_f
7406 if ln conftestdata_f conftestdata_t 2>/dev/null
7407 then
7408 acx_cv_prog_LN=ln
7409 else
7410 acx_cv_prog_LN=no
7412 rm -f conftestdata_f conftestdata_t
7415 if test $acx_cv_prog_LN = no; then
7416 LN="$LN_S"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7418 $as_echo "no, using $LN" >&6; }
7419 else
7420 LN="$acx_cv_prog_LN"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7422 $as_echo "yes" >&6; }
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$RANLIB"; then
7434 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7453 RANLIB=$ac_cv_prog_RANLIB
7454 if test -n "$RANLIB"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7456 $as_echo "$RANLIB" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_RANLIB"; then
7465 ac_ct_RANLIB=$RANLIB
7466 # Extract the first word of "ranlib", so it can be a program name with args.
7467 set dummy ranlib; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$ac_ct_RANLIB"; then
7474 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_ac_ct_RANLIB="ranlib"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7493 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7494 if test -n "$ac_ct_RANLIB"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7496 $as_echo "$ac_ct_RANLIB" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_RANLIB" = x; then
7503 RANLIB=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 RANLIB=$ac_ct_RANLIB
7513 else
7514 RANLIB="$ac_cv_prog_RANLIB"
7517 case "${host}" in
7518 *-*-darwin*)
7519 # By default, the Darwin ranlib will not treat common symbols as
7520 # definitions when building the archive table of contents. Other
7521 # ranlibs do that; pass an option to the Darwin ranlib that makes
7522 # it behave similarly.
7523 ranlib_flags="-c"
7526 ranlib_flags=""
7527 esac
7530 # Find a good install program. We prefer a C program (faster),
7531 # so one script is as good as another. But avoid the broken or
7532 # incompatible versions:
7533 # SysV /etc/install, /usr/sbin/install
7534 # SunOS /usr/etc/install
7535 # IRIX /sbin/install
7536 # AIX /bin/install
7537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7539 # ./install, which can be erroneously created by make from ./install.sh.
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7541 $as_echo_n "checking for a BSD compatible install... " >&6; }
7542 if test -z "$INSTALL"; then
7543 if test "${ac_cv_path_install+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7547 for ac_dir in $PATH; do
7548 # Account for people who put trailing slashes in PATH elements.
7549 case "$ac_dir/" in
7550 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7552 # OSF1 and SCO ODT 3.0 have their own names for install.
7553 for ac_prog in ginstall scoinst install; do
7554 if test -f $ac_dir/$ac_prog; then
7555 if test $ac_prog = install &&
7556 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7557 # AIX install. It has an incompatible calling convention.
7558 # OSF/1 installbsd also uses dspmsg, but is usable.
7560 else
7561 ac_cv_path_install="$ac_dir/$ac_prog -c"
7562 break 2
7565 done
7567 esac
7568 done
7569 IFS="$ac_save_IFS"
7572 if test "${ac_cv_path_install+set}" = set; then
7573 INSTALL="$ac_cv_path_install"
7574 else
7575 # As a last resort, use the slow shell script. We don't cache a
7576 # path for INSTALL within a source directory, because that will
7577 # break other packages using the cache if that directory is
7578 # removed, or if the path is relative.
7579 INSTALL="$ac_install_sh"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7583 $as_echo "$INSTALL" >&6; }
7585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7586 # It thinks the first close brace ends the variable substitution.
7587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7592 # See if cmp has --ignore-initial.
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7594 $as_echo_n "checking for cmp's capabilities... " >&6; }
7595 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 echo abfoo >t1
7599 echo cdfoo >t2
7600 gcc_cv_prog_cmp_skip=slowcompare
7601 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7602 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7604 else
7605 gcc_cv_prog_cmp_skip=gnucompare
7608 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7609 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7610 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7612 else
7613 gcc_cv_prog_cmp_skip=fastcompare
7617 rm t1 t2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7621 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7622 make_compare_target=$gcc_cv_prog_cmp_skip
7626 # See if we have the mktemp command.
7627 # Extract the first word of "mktemp", so it can be a program name with args.
7628 set dummy mktemp; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$have_mktemp_command"; then
7635 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_prog_have_mktemp_command="yes"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7648 done
7649 done
7650 IFS=$as_save_IFS
7652 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7655 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7656 if test -n "$have_mktemp_command"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7658 $as_echo "$have_mktemp_command" >&6; }
7659 else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7666 # See if makeinfo has been installed and is modern enough
7667 # that we can use it.
7669 # Extract the first word of "makeinfo", so it can be a program name with args.
7670 set dummy makeinfo; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$MAKEINFO"; then
7677 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_MAKEINFO="makeinfo"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7692 IFS=$as_save_IFS
7696 MAKEINFO=$ac_cv_prog_MAKEINFO
7697 if test -n "$MAKEINFO"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7699 $as_echo "$MAKEINFO" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7706 if test -n "$MAKEINFO"; then
7707 # Found it, now check the version.
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7709 $as_echo_n "checking for modern makeinfo... " >&6; }
7710 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7714 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7716 case $ac_prog_version in
7717 '') gcc_cv_prog_makeinfo_modern=no;;
7718 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7719 *) gcc_cv_prog_makeinfo_modern=no;;
7720 esac
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7724 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7725 else
7726 gcc_cv_prog_makeinfo_modern=no
7728 if test $gcc_cv_prog_makeinfo_modern = no; then
7729 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7732 if test $gcc_cv_prog_makeinfo_modern = no; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7734 *** Makeinfo is missing or too old.
7735 *** Info documentation will not be built." >&5
7736 $as_echo "$as_me: WARNING:
7737 *** Makeinfo is missing or too old.
7738 *** Info documentation will not be built." >&2;}
7739 BUILD_INFO=
7740 else
7741 BUILD_INFO=info
7745 # Is pod2man recent enough to regenerate manpages?
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7747 $as_echo_n "checking for recent Pod::Man... " >&6; }
7748 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7750 $as_echo "yes" >&6; }
7751 GENERATED_MANPAGES=generated-manpages
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 GENERATED_MANPAGES=
7759 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7761 # How about lex?
7762 for ac_prog in flex
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_FLEX+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$FLEX"; then
7772 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_FLEX="$ac_prog"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7785 done
7786 done
7787 IFS=$as_save_IFS
7791 FLEX=$ac_cv_prog_FLEX
7792 if test -n "$FLEX"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7794 $as_echo "$FLEX" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 test -n "$FLEX" && break
7802 done
7803 test -n "$FLEX" || FLEX="$MISSING flex"
7806 # Bison?
7807 for ac_prog in bison
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_BISON+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$BISON"; then
7817 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_BISON="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7830 done
7831 done
7832 IFS=$as_save_IFS
7836 BISON=$ac_cv_prog_BISON
7837 if test -n "$BISON"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7839 $as_echo "$BISON" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$BISON" && break
7847 done
7848 test -n "$BISON" || BISON="$MISSING bison"
7851 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7852 # check for build == host before using them.
7854 # NM
7855 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7856 && test -d ../binutils ; then
7857 NM='${objdir}/../binutils/nm-new'
7858 else
7859 # Extract the first word of "nm", so it can be a program name with args.
7860 set dummy nm; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_NM+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$NM"; then
7867 ac_cv_prog_NM="$NM" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_NM="nm"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7884 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7887 NM=$ac_cv_prog_NM
7888 if test -n "$NM"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7890 $as_echo "$NM" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7899 # AR
7900 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7901 && test -d ../binutils ; then
7902 AR='${objdir}/../binutils/ar'
7903 else
7904 # Extract the first word of "ar", so it can be a program name with args.
7905 set dummy ar; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_AR+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 if test -n "$AR"; then
7912 ac_cv_prog_AR="$AR" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_prog_AR="ar"
7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7925 done
7926 done
7927 IFS=$as_save_IFS
7929 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7932 AR=$ac_cv_prog_AR
7933 if test -n "$AR"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7935 $as_echo "$AR" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7945 # --------------------
7946 # Checks for C headers
7947 # --------------------
7949 # Need to reject headers which give warnings, so that the -Werror bootstrap
7950 # works later. *sigh* This needs to come before all header checks.
7952 ac_c_preproc_warn_flag=yes
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7955 $as_echo_n "checking for ANSI C header files... " >&6; }
7956 if test "${ac_cv_header_stdc+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 #include <stdlib.h>
7962 #include <stdarg.h>
7963 #include <string.h>
7964 #include <float.h>
7967 main ()
7971 return 0;
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975 ac_cv_header_stdc=yes
7976 else
7977 ac_cv_header_stdc=no
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <string.h>
7987 _ACEOF
7988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7989 $EGREP "memchr" >/dev/null 2>&1; then :
7991 else
7992 ac_cv_header_stdc=no
7994 rm -f conftest*
7998 if test $ac_cv_header_stdc = yes; then
7999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #include <stdlib.h>
8004 _ACEOF
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006 $EGREP "free" >/dev/null 2>&1; then :
8008 else
8009 ac_cv_header_stdc=no
8011 rm -f conftest*
8015 if test $ac_cv_header_stdc = yes; then
8016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8017 if test "$cross_compiling" = yes; then :
8019 else
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 #include <ctype.h>
8023 #include <stdlib.h>
8024 #if ((' ' & 0x0FF) == 0x020)
8025 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8026 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8027 #else
8028 # define ISLOWER(c) \
8029 (('a' <= (c) && (c) <= 'i') \
8030 || ('j' <= (c) && (c) <= 'r') \
8031 || ('s' <= (c) && (c) <= 'z'))
8032 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8033 #endif
8035 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8037 main ()
8039 int i;
8040 for (i = 0; i < 256; i++)
8041 if (XOR (islower (i), ISLOWER (i))
8042 || toupper (i) != TOUPPER (i))
8043 return 2;
8044 return 0;
8046 _ACEOF
8047 if ac_fn_c_try_run "$LINENO"; then :
8049 else
8050 ac_cv_header_stdc=no
8052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8053 conftest.$ac_objext conftest.beam conftest.$ac_ext
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8059 $as_echo "$ac_cv_header_stdc" >&6; }
8060 if test $ac_cv_header_stdc = yes; then
8062 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8067 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8068 if test "${ac_cv_header_time+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <sys/types.h>
8074 #include <sys/time.h>
8075 #include <time.h>
8078 main ()
8080 if ((struct tm *) 0)
8081 return 0;
8083 return 0;
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087 ac_cv_header_time=yes
8088 else
8089 ac_cv_header_time=no
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8094 $as_echo "$ac_cv_header_time" >&6; }
8095 if test $ac_cv_header_time = yes; then
8097 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8102 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8103 if test "${gcc_cv_header_string+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 #include <string.h>
8109 #include <strings.h>
8111 main ()
8115 return 0;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 gcc_cv_header_string=yes
8120 else
8121 gcc_cv_header_string=no
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8126 $as_echo "$gcc_cv_header_string" >&6; }
8127 if test $gcc_cv_header_string = yes; then
8129 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8134 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8135 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <sys/types.h>
8141 #include <sys/wait.h>
8142 #ifndef WEXITSTATUS
8143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8144 #endif
8145 #ifndef WIFEXITED
8146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8147 #endif
8150 main ()
8152 int s;
8153 wait (&s);
8154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8156 return 0;
8158 _ACEOF
8159 if ac_fn_c_try_compile "$LINENO"; then :
8160 ac_cv_header_sys_wait_h=yes
8161 else
8162 ac_cv_header_sys_wait_h=no
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8167 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8168 if test $ac_cv_header_sys_wait_h = yes; then
8170 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8174 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8175 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8176 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8177 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8178 do :
8179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8181 eval as_val=\$$as_ac_Header
8182 if test "x$as_val" = x""yes; then :
8183 cat >>confdefs.h <<_ACEOF
8184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185 _ACEOF
8188 done
8191 # Check for thread headers.
8192 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8193 if test "x$ac_cv_header_thread_h" = x""yes; then :
8194 have_thread_h=yes
8195 else
8196 have_thread_h=
8199 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8200 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8201 have_pthread_h=yes
8202 else
8203 have_pthread_h=
8207 # These tests can't be done till we know if we have limits.h.
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8209 $as_echo_n "checking for CHAR_BIT... " >&6; }
8210 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 #ifdef HAVE_LIMITS_H
8216 #include <limits.h>
8217 #endif
8218 #ifdef CHAR_BIT
8219 found
8220 #endif
8221 _ACEOF
8222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8223 $EGREP "found" >/dev/null 2>&1; then :
8224 gcc_cv_decl_char_bit=yes
8225 else
8226 gcc_cv_decl_char_bit=no
8228 rm -f conftest*
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8233 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8234 if test $gcc_cv_decl_char_bit = no; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8236 $as_echo_n "checking number of bits in a byte... " >&6; }
8237 if test "${gcc_cv_c_nbby+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8241 gcc_cv_c_nbby=
8242 while test $i -lt 65; do
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8247 main ()
8249 switch(0) {
8250 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8251 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8254 return 0;
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258 gcc_cv_c_nbby=$i; break
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 i=`expr $i + 1`
8262 done
8263 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8267 $as_echo "$gcc_cv_c_nbby" >&6; }
8268 if test $gcc_cv_c_nbby = failed; then
8269 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8270 else
8272 cat >>confdefs.h <<_ACEOF
8273 #define CHAR_BIT $gcc_cv_c_nbby
8274 _ACEOF
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8279 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8280 if test "${ac_cv_c_bigendian+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 ac_cv_c_bigendian=unknown
8284 # See if we're dealing with a universal compiler.
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 #ifndef __APPLE_CC__
8288 not a universal capable compiler
8289 #endif
8290 typedef int dummy;
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8295 # Check for potential -arch flags. It is not universal unless
8296 # there are at least two -arch flags with different values.
8297 ac_arch=
8298 ac_prev=
8299 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8300 if test -n "$ac_prev"; then
8301 case $ac_word in
8302 i?86 | x86_64 | ppc | ppc64)
8303 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8304 ac_arch=$ac_word
8305 else
8306 ac_cv_c_bigendian=universal
8307 break
8310 esac
8311 ac_prev=
8312 elif test "x$ac_word" = "x-arch"; then
8313 ac_prev=arch
8315 done
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 if test $ac_cv_c_bigendian = unknown; then
8319 # See if sys/param.h defines the BYTE_ORDER macro.
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <sys/param.h>
8326 main ()
8328 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8329 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8330 && LITTLE_ENDIAN)
8331 bogus endian macros
8332 #endif
8335 return 0;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8339 # It does; now see whether it defined to BIG_ENDIAN or not.
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 #include <sys/types.h>
8343 #include <sys/param.h>
8346 main ()
8348 #if BYTE_ORDER != BIG_ENDIAN
8349 not big endian
8350 #endif
8353 return 0;
8355 _ACEOF
8356 if ac_fn_c_try_compile "$LINENO"; then :
8357 ac_cv_c_bigendian=yes
8358 else
8359 ac_cv_c_bigendian=no
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 if test $ac_cv_c_bigendian = unknown; then
8366 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 #include <limits.h>
8372 main ()
8374 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8375 bogus endian macros
8376 #endif
8379 return 0;
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"; then :
8383 # It does; now see whether it defined to _BIG_ENDIAN or not.
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <limits.h>
8389 main ()
8391 #ifndef _BIG_ENDIAN
8392 not big endian
8393 #endif
8396 return 0;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400 ac_cv_c_bigendian=yes
8401 else
8402 ac_cv_c_bigendian=no
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 if test $ac_cv_c_bigendian = unknown; then
8409 # Compile a test program.
8410 if test "$cross_compiling" = yes; then :
8411 # Try to guess by grepping values from an object file.
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 short int ascii_mm[] =
8415 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8416 short int ascii_ii[] =
8417 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8418 int use_ascii (int i) {
8419 return ascii_mm[i] + ascii_ii[i];
8421 short int ebcdic_ii[] =
8422 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8423 short int ebcdic_mm[] =
8424 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8425 int use_ebcdic (int i) {
8426 return ebcdic_mm[i] + ebcdic_ii[i];
8428 extern int foo;
8431 main ()
8433 return use_ascii (foo) == use_ebcdic (foo);
8435 return 0;
8437 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"; then :
8439 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8440 ac_cv_c_bigendian=yes
8442 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8443 if test "$ac_cv_c_bigendian" = unknown; then
8444 ac_cv_c_bigendian=no
8445 else
8446 # finding both strings is unlikely to happen, but who knows?
8447 ac_cv_c_bigendian=unknown
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 $ac_includes_default
8457 main ()
8460 /* Are we little or big endian? From Harbison&Steele. */
8461 union
8463 long int l;
8464 char c[sizeof (long int)];
8465 } u;
8466 u.l = 1;
8467 return u.c[sizeof (long int) - 1] == 1;
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_run "$LINENO"; then :
8474 ac_cv_c_bigendian=no
8475 else
8476 ac_cv_c_bigendian=yes
8478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8479 conftest.$ac_objext conftest.beam conftest.$ac_ext
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8485 $as_echo "$ac_cv_c_bigendian" >&6; }
8486 case $ac_cv_c_bigendian in #(
8487 yes)
8488 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8489 ;; #(
8491 ;; #(
8492 universal)
8494 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8496 ;; #(
8498 as_fn_error "unknown endianness
8499 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8500 esac
8503 # ----------------------
8504 # Checks for C++ headers
8505 # ----------------------
8507 ac_ext=cpp
8508 ac_cpp='$CXXCPP $CPPFLAGS'
8509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8513 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8514 if test -z "$CXXCPP"; then
8515 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 # Double quotes because CXXCPP needs to be expanded
8519 for CXXCPP in "$CXX -E" "/lib/cpp"
8521 ac_preproc_ok=false
8522 for ac_cxx_preproc_warn_flag in '' yes
8524 # Use a header file that comes with gcc, so configuring glibc
8525 # with a fresh cross-compiler works.
8526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8527 # <limits.h> exists even on freestanding compilers.
8528 # On the NeXT, cc -E runs the code through the compiler's parser,
8529 # not just through cpp. "Syntax error" is here to catch this case.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 #ifdef __STDC__
8533 # include <limits.h>
8534 #else
8535 # include <assert.h>
8536 #endif
8537 Syntax error
8538 _ACEOF
8539 if ac_fn_cxx_try_cpp "$LINENO"; then :
8541 else
8542 # Broken: fails on valid input.
8543 continue
8545 rm -f conftest.err conftest.$ac_ext
8547 # OK, works on sane cases. Now check whether nonexistent headers
8548 # can be detected and how.
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <ac_nonexistent.h>
8552 _ACEOF
8553 if ac_fn_cxx_try_cpp "$LINENO"; then :
8554 # Broken: success on invalid input.
8555 continue
8556 else
8557 # Passes both tests.
8558 ac_preproc_ok=:
8559 break
8561 rm -f conftest.err conftest.$ac_ext
8563 done
8564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8565 rm -f conftest.err conftest.$ac_ext
8566 if $ac_preproc_ok; then :
8567 break
8570 done
8571 ac_cv_prog_CXXCPP=$CXXCPP
8574 CXXCPP=$ac_cv_prog_CXXCPP
8575 else
8576 ac_cv_prog_CXXCPP=$CXXCPP
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8579 $as_echo "$CXXCPP" >&6; }
8580 ac_preproc_ok=false
8581 for ac_cxx_preproc_warn_flag in '' yes
8583 # Use a header file that comes with gcc, so configuring glibc
8584 # with a fresh cross-compiler works.
8585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8586 # <limits.h> exists even on freestanding compilers.
8587 # On the NeXT, cc -E runs the code through the compiler's parser,
8588 # not just through cpp. "Syntax error" is here to catch this case.
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #ifdef __STDC__
8592 # include <limits.h>
8593 #else
8594 # include <assert.h>
8595 #endif
8596 Syntax error
8597 _ACEOF
8598 if ac_fn_cxx_try_cpp "$LINENO"; then :
8600 else
8601 # Broken: fails on valid input.
8602 continue
8604 rm -f conftest.err conftest.$ac_ext
8606 # OK, works on sane cases. Now check whether nonexistent headers
8607 # can be detected and how.
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <ac_nonexistent.h>
8611 _ACEOF
8612 if ac_fn_cxx_try_cpp "$LINENO"; then :
8613 # Broken: success on invalid input.
8614 continue
8615 else
8616 # Passes both tests.
8617 ac_preproc_ok=:
8618 break
8620 rm -f conftest.err conftest.$ac_ext
8622 done
8623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8624 rm -f conftest.err conftest.$ac_ext
8625 if $ac_preproc_ok; then :
8627 else
8628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8631 See \`config.log' for more details." >&5
8632 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8633 See \`config.log' for more details." >&2;}; }
8636 ac_ext=c
8637 ac_cpp='$CPP $CPPFLAGS'
8638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8643 ac_ext=cpp
8644 ac_cpp='$CXXCPP $CPPFLAGS'
8645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8652 for ac_header in unordered_map
8653 do :
8654 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8655 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8656 cat >>confdefs.h <<_ACEOF
8657 #define HAVE_UNORDERED_MAP 1
8658 _ACEOF
8661 done
8663 for ac_header in tr1/unordered_map
8664 do :
8665 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8666 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_TR1_UNORDERED_MAP 1
8669 _ACEOF
8672 done
8674 for ac_header in ext/hash_map
8675 do :
8676 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8677 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_EXT_HASH_MAP 1
8680 _ACEOF
8683 done
8686 ac_ext=c
8687 ac_cpp='$CPP $CPPFLAGS'
8688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693 # --------
8694 # UNSORTED
8695 # --------
8698 # These libraries may be used by collect2.
8699 # We may need a special search path to get them linked.
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8701 $as_echo_n "checking for collect2 libraries... " >&6; }
8702 if test "${gcc_cv_collect2_libs+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 save_LIBS="$LIBS"
8706 for libs in '' -lld -lmld \
8707 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8708 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8710 LIBS="$libs"
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char ldopen ();
8722 main ()
8724 return ldopen ();
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_link "$LINENO"; then :
8730 gcc_cv_collect2_libs="$libs"; break
8732 rm -f core conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8734 done
8735 LIBS="$save_LIBS"
8736 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8739 $as_echo "$gcc_cv_collect2_libs" >&6; }
8740 case $gcc_cv_collect2_libs in
8741 "none required") ;;
8742 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8743 esac
8746 # When building Ada code on Alpha, we need exc_resume which is usually in
8747 # -lexc. So test for it.
8748 save_LIBS="$LIBS"
8749 LIBS=
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8751 $as_echo_n "checking for library containing exc_resume... " >&6; }
8752 if test "${ac_cv_search_exc_resume+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 ac_func_search_save_LIBS=$LIBS
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8759 /* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 char exc_resume ();
8767 main ()
8769 return exc_resume ();
8771 return 0;
8773 _ACEOF
8774 for ac_lib in '' exc; do
8775 if test -z "$ac_lib"; then
8776 ac_res="none required"
8777 else
8778 ac_res=-l$ac_lib
8779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8781 if ac_fn_c_try_link "$LINENO"; then :
8782 ac_cv_search_exc_resume=$ac_res
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext
8786 if test "${ac_cv_search_exc_resume+set}" = set; then :
8787 break
8789 done
8790 if test "${ac_cv_search_exc_resume+set}" = set; then :
8792 else
8793 ac_cv_search_exc_resume=no
8795 rm conftest.$ac_ext
8796 LIBS=$ac_func_search_save_LIBS
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8799 $as_echo "$ac_cv_search_exc_resume" >&6; }
8800 ac_res=$ac_cv_search_exc_resume
8801 if test "$ac_res" != no; then :
8802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806 GNAT_LIBEXC="$LIBS"
8807 LIBS="$save_LIBS"
8810 # Some systems put ldexp and frexp in libm instead of libc; assume
8811 # they're both in the same place. jcf-dump needs them.
8812 save_LIBS="$LIBS"
8813 LIBS=
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8815 $as_echo_n "checking for library containing ldexp... " >&6; }
8816 if test "${ac_cv_search_ldexp+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 ac_func_search_save_LIBS=$LIBS
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char ldexp ();
8831 main ()
8833 return ldexp ();
8835 return 0;
8837 _ACEOF
8838 for ac_lib in '' m; do
8839 if test -z "$ac_lib"; then
8840 ac_res="none required"
8841 else
8842 ac_res=-l$ac_lib
8843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8845 if ac_fn_c_try_link "$LINENO"; then :
8846 ac_cv_search_ldexp=$ac_res
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext
8850 if test "${ac_cv_search_ldexp+set}" = set; then :
8851 break
8853 done
8854 if test "${ac_cv_search_ldexp+set}" = set; then :
8856 else
8857 ac_cv_search_ldexp=no
8859 rm conftest.$ac_ext
8860 LIBS=$ac_func_search_save_LIBS
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8863 $as_echo "$ac_cv_search_ldexp" >&6; }
8864 ac_res=$ac_cv_search_ldexp
8865 if test "$ac_res" != no; then :
8866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8870 LDEXP_LIB="$LIBS"
8871 LIBS="$save_LIBS"
8874 # Use <inttypes.h> only if it exists,
8875 # doesn't clash with <sys/types.h>, and declares intmax_t.
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8877 $as_echo_n "checking for inttypes.h... " >&6; }
8878 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8884 #include <inttypes.h>
8886 main ()
8888 intmax_t i = -1;
8890 return 0;
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"; then :
8894 gcc_cv_header_inttypes_h=yes
8895 else
8896 gcc_cv_header_inttypes_h=no
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8902 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8903 if test $gcc_cv_header_inttypes_h = yes; then
8905 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8911 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8912 sysconf strsignal getrusage nl_langinfo \
8913 gettimeofday mbstowcs wcswidth mmap setlocale \
8914 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
8915 do :
8916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8918 eval as_val=\$$as_ac_var
8919 if test "x$as_val" = x""yes; then :
8920 cat >>confdefs.h <<_ACEOF
8921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8922 _ACEOF
8925 done
8928 if test x$ac_cv_func_mbstowcs = xyes; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8930 $as_echo_n "checking whether mbstowcs works... " >&6; }
8931 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test "$cross_compiling" = yes; then :
8935 gcc_cv_func_mbstowcs_works=yes
8936 else
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 #include <stdlib.h>
8940 int main()
8942 mbstowcs(0, "", 0);
8943 return 0;
8945 _ACEOF
8946 if ac_fn_c_try_run "$LINENO"; then :
8947 gcc_cv_func_mbstowcs_works=yes
8948 else
8949 gcc_cv_func_mbstowcs_works=no
8951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8952 conftest.$ac_objext conftest.beam conftest.$ac_ext
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8957 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8958 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8960 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8965 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8966 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8968 else
8970 cat >>confdefs.h <<_ACEOF
8971 #define ssize_t int
8972 _ACEOF
8976 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8977 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8979 else
8981 cat >>confdefs.h <<_ACEOF
8982 #define caddr_t char *
8983 _ACEOF
8989 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8990 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8991 gcc_header_sys_mman_h=yes
8992 else
8993 gcc_header_sys_mman_h=no
8996 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8997 if test "x$ac_cv_func_mmap" = x""yes; then :
8998 gcc_func_mmap=yes
8999 else
9000 gcc_func_mmap=no
9003 if test "$gcc_header_sys_mman_h" != yes \
9004 || test "$gcc_func_mmap" != yes; then
9005 gcc_cv_func_mmap_file=no
9006 gcc_cv_func_mmap_dev_zero=no
9007 gcc_cv_func_mmap_anon=no
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9010 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9011 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 # Add a system to this blacklist if
9015 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9016 # memory area containing the same data that you'd get if you applied
9017 # read() to the same fd. The only system known to have a problem here
9018 # is VMS, where text files have record structure.
9019 case "$host_os" in
9020 vms* | ultrix*)
9021 gcc_cv_func_mmap_file=no ;;
9023 gcc_cv_func_mmap_file=yes;;
9024 esac
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9027 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9029 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9030 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 # Add a system to this blacklist if it has mmap() but /dev/zero
9034 # does not exist, or if mmapping /dev/zero does not give anonymous
9035 # zeroed pages with both the following properties:
9036 # 1. If you map N consecutive pages in with one call, and then
9037 # unmap any subset of those pages, the pages that were not
9038 # explicitly unmapped remain accessible.
9039 # 2. If you map two adjacent blocks of memory and then unmap them
9040 # both at once, they must both go away.
9041 # Systems known to be in this category are Windows (all variants),
9042 # VMS, and Darwin.
9043 case "$host_os" in
9044 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9045 gcc_cv_func_mmap_dev_zero=no ;;
9047 gcc_cv_func_mmap_dev_zero=yes;;
9048 esac
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9051 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9053 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9055 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9056 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 #include <sys/types.h>
9062 #include <sys/mman.h>
9063 #include <unistd.h>
9065 #ifndef MAP_ANONYMOUS
9066 #define MAP_ANONYMOUS MAP_ANON
9067 #endif
9070 main ()
9072 int n = MAP_ANONYMOUS;
9074 return 0;
9076 _ACEOF
9077 if ac_fn_c_try_compile "$LINENO"; then :
9078 gcc_cv_decl_map_anon=yes
9079 else
9080 gcc_cv_decl_map_anon=no
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9085 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9087 if test $gcc_cv_decl_map_anon = no; then
9088 gcc_cv_func_mmap_anon=no
9089 else
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9091 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9092 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9096 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9097 # doesn't give anonymous zeroed pages with the same properties listed
9098 # above for use of /dev/zero.
9099 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9100 case "$host_os" in
9101 vms* | cygwin* | pe | mingw* | sco* | udk* )
9102 gcc_cv_func_mmap_anon=no ;;
9104 gcc_cv_func_mmap_anon=yes;;
9105 esac
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9108 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9112 if test $gcc_cv_func_mmap_file = yes; then
9114 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9117 if test $gcc_cv_func_mmap_dev_zero = yes; then
9119 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9122 if test $gcc_cv_func_mmap_anon = yes; then
9124 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9129 case "${host}" in
9130 *-*-*vms*)
9131 # Under VMS, vfork works very differently than on Unix. The standard test
9132 # won't work, and it isn't easily adaptable. It makes more sense to
9133 # just force it.
9134 ac_cv_func_vfork_works=yes
9136 esac
9137 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9138 if test "x$ac_cv_type_pid_t" = x""yes; then :
9140 else
9142 cat >>confdefs.h <<_ACEOF
9143 #define pid_t int
9144 _ACEOF
9148 for ac_header in vfork.h
9149 do :
9150 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9151 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_VFORK_H 1
9154 _ACEOF
9157 done
9159 for ac_func in fork vfork
9160 do :
9161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9163 eval as_val=\$$as_ac_var
9164 if test "x$as_val" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9167 _ACEOF
9170 done
9172 if test "x$ac_cv_func_fork" = xyes; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9174 $as_echo_n "checking for working fork... " >&6; }
9175 if test "${ac_cv_func_fork_works+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 if test "$cross_compiling" = yes; then :
9179 ac_cv_func_fork_works=cross
9180 else
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 $ac_includes_default
9185 main ()
9188 /* By Ruediger Kuhlmann. */
9189 return fork () < 0;
9192 return 0;
9194 _ACEOF
9195 if ac_fn_c_try_run "$LINENO"; then :
9196 ac_cv_func_fork_works=yes
9197 else
9198 ac_cv_func_fork_works=no
9200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9201 conftest.$ac_objext conftest.beam conftest.$ac_ext
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9206 $as_echo "$ac_cv_func_fork_works" >&6; }
9208 else
9209 ac_cv_func_fork_works=$ac_cv_func_fork
9211 if test "x$ac_cv_func_fork_works" = xcross; then
9212 case $host in
9213 *-*-amigaos* | *-*-msdosdjgpp*)
9214 # Override, as these systems have only a dummy fork() stub
9215 ac_cv_func_fork_works=no
9218 ac_cv_func_fork_works=yes
9220 esac
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9222 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9224 ac_cv_func_vfork_works=$ac_cv_func_vfork
9225 if test "x$ac_cv_func_vfork" = xyes; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9227 $as_echo_n "checking for working vfork... " >&6; }
9228 if test "${ac_cv_func_vfork_works+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 if test "$cross_compiling" = yes; then :
9232 ac_cv_func_vfork_works=cross
9233 else
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 /* Thanks to Paul Eggert for this test. */
9237 $ac_includes_default
9238 #include <sys/wait.h>
9239 #ifdef HAVE_VFORK_H
9240 # include <vfork.h>
9241 #endif
9242 /* On some sparc systems, changes by the child to local and incoming
9243 argument registers are propagated back to the parent. The compiler
9244 is told about this with #include <vfork.h>, but some compilers
9245 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9246 static variable whose address is put into a register that is
9247 clobbered by the vfork. */
9248 static void
9249 #ifdef __cplusplus
9250 sparc_address_test (int arg)
9251 # else
9252 sparc_address_test (arg) int arg;
9253 #endif
9255 static pid_t child;
9256 if (!child) {
9257 child = vfork ();
9258 if (child < 0) {
9259 perror ("vfork");
9260 _exit(2);
9262 if (!child) {
9263 arg = getpid();
9264 write(-1, "", 0);
9265 _exit (arg);
9271 main ()
9273 pid_t parent = getpid ();
9274 pid_t child;
9276 sparc_address_test (0);
9278 child = vfork ();
9280 if (child == 0) {
9281 /* Here is another test for sparc vfork register problems. This
9282 test uses lots of local variables, at least as many local
9283 variables as main has allocated so far including compiler
9284 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9285 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9286 reuse the register of parent for one of the local variables,
9287 since it will think that parent can't possibly be used any more
9288 in this routine. Assigning to the local variable will thus
9289 munge parent in the parent process. */
9290 pid_t
9291 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9292 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9293 /* Convince the compiler that p..p7 are live; otherwise, it might
9294 use the same hardware register for all 8 local variables. */
9295 if (p != p1 || p != p2 || p != p3 || p != p4
9296 || p != p5 || p != p6 || p != p7)
9297 _exit(1);
9299 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9300 from child file descriptors. If the child closes a descriptor
9301 before it execs or exits, this munges the parent's descriptor
9302 as well. Test for this by closing stdout in the child. */
9303 _exit(close(fileno(stdout)) != 0);
9304 } else {
9305 int status;
9306 struct stat st;
9308 while (wait(&status) != child)
9310 return (
9311 /* Was there some problem with vforking? */
9312 child < 0
9314 /* Did the child fail? (This shouldn't happen.) */
9315 || status
9317 /* Did the vfork/compiler bug occur? */
9318 || parent != getpid()
9320 /* Did the file descriptor bug occur? */
9321 || fstat(fileno(stdout), &st) != 0
9325 _ACEOF
9326 if ac_fn_c_try_run "$LINENO"; then :
9327 ac_cv_func_vfork_works=yes
9328 else
9329 ac_cv_func_vfork_works=no
9331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9332 conftest.$ac_objext conftest.beam conftest.$ac_ext
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9337 $as_echo "$ac_cv_func_vfork_works" >&6; }
9340 if test "x$ac_cv_func_fork_works" = xcross; then
9341 ac_cv_func_vfork_works=$ac_cv_func_vfork
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9343 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9346 if test "x$ac_cv_func_vfork_works" = xyes; then
9348 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9350 else
9352 $as_echo "#define vfork fork" >>confdefs.h
9355 if test "x$ac_cv_func_fork_works" = xyes; then
9357 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9363 if test "X$prefix" = "XNONE"; then
9364 acl_final_prefix="$ac_default_prefix"
9365 else
9366 acl_final_prefix="$prefix"
9368 if test "X$exec_prefix" = "XNONE"; then
9369 acl_final_exec_prefix='${prefix}'
9370 else
9371 acl_final_exec_prefix="$exec_prefix"
9373 acl_save_prefix="$prefix"
9374 prefix="$acl_final_prefix"
9375 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9376 prefix="$acl_save_prefix"
9379 # Check whether --with-gnu-ld was given.
9380 if test "${with_gnu_ld+set}" = set; then :
9381 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9382 else
9383 with_gnu_ld=no
9386 # Prepare PATH_SEPARATOR.
9387 # The user is always right.
9388 if test "${PATH_SEPARATOR+set}" != set; then
9389 echo "#! /bin/sh" >conf$$.sh
9390 echo "exit 0" >>conf$$.sh
9391 chmod +x conf$$.sh
9392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9393 PATH_SEPARATOR=';'
9394 else
9395 PATH_SEPARATOR=:
9397 rm -f conf$$.sh
9399 ac_prog=ld
9400 if test "$GCC" = yes; then
9401 # Check if gcc -print-prog-name=ld gives a path.
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9403 $as_echo_n "checking for ld used by GCC... " >&6; }
9404 case $host in
9405 *-*-mingw*)
9406 # gcc leaves a trailing carriage return which upsets mingw
9407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9410 esac
9411 case $ac_prog in
9412 # Accept absolute paths.
9413 [\\/]* | [A-Za-z]:[\\/]*)
9414 re_direlt='/[^/][^/]*/\.\./'
9415 # Canonicalize the path of ld
9416 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9417 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9418 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9419 done
9420 test -z "$LD" && LD="$ac_prog"
9423 # If it fails, then pretend we aren't using GCC.
9424 ac_prog=ld
9427 # If it is relative, then search for the first ld in PATH.
9428 with_gnu_ld=unknown
9430 esac
9431 elif test "$with_gnu_ld" = yes; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9433 $as_echo_n "checking for GNU ld... " >&6; }
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9436 $as_echo_n "checking for non-GNU ld... " >&6; }
9438 if test "${acl_cv_path_LD+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 if test -z "$LD"; then
9442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9443 for ac_dir in $PATH; do
9444 test -z "$ac_dir" && ac_dir=.
9445 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9446 acl_cv_path_LD="$ac_dir/$ac_prog"
9447 # Check to see if the program is GNU ld. I'd rather use --version,
9448 # but apparently some GNU ld's only accept -v.
9449 # Break only if it was the GNU/non-GNU ld that we prefer.
9450 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9451 test "$with_gnu_ld" != no && break
9452 else
9453 test "$with_gnu_ld" != yes && break
9456 done
9457 IFS="$ac_save_ifs"
9458 else
9459 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9463 LD="$acl_cv_path_LD"
9464 if test -n "$LD"; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9466 $as_echo "$LD" >&6; }
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9471 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9473 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9474 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9478 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9479 acl_cv_prog_gnu_ld=yes
9480 else
9481 acl_cv_prog_gnu_ld=no
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9485 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9486 with_gnu_ld=$acl_cv_prog_gnu_ld
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9491 $as_echo_n "checking for shared library run path origin... " >&6; }
9492 if test "${acl_cv_rpath+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9496 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9497 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9498 . ./conftest.sh
9499 rm -f ./conftest.sh
9500 acl_cv_rpath=done
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9504 $as_echo "$acl_cv_rpath" >&6; }
9505 wl="$acl_cv_wl"
9506 libext="$acl_cv_libext"
9507 shlibext="$acl_cv_shlibext"
9508 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9509 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9510 hardcode_direct="$acl_cv_hardcode_direct"
9511 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9512 # Check whether --enable-rpath was given.
9513 if test "${enable_rpath+set}" = set; then :
9514 enableval=$enable_rpath; :
9515 else
9516 enable_rpath=yes
9526 use_additional=yes
9528 acl_save_prefix="$prefix"
9529 prefix="$acl_final_prefix"
9530 acl_save_exec_prefix="$exec_prefix"
9531 exec_prefix="$acl_final_exec_prefix"
9533 eval additional_includedir=\"$includedir\"
9534 eval additional_libdir=\"$libdir\"
9536 exec_prefix="$acl_save_exec_prefix"
9537 prefix="$acl_save_prefix"
9540 # Check whether --with-libiconv-prefix was given.
9541 if test "${with_libiconv_prefix+set}" = set; then :
9542 withval=$with_libiconv_prefix;
9543 if test "X$withval" = "Xno"; then
9544 use_additional=no
9545 else
9546 if test "X$withval" = "X"; then
9548 acl_save_prefix="$prefix"
9549 prefix="$acl_final_prefix"
9550 acl_save_exec_prefix="$exec_prefix"
9551 exec_prefix="$acl_final_exec_prefix"
9553 eval additional_includedir=\"$includedir\"
9554 eval additional_libdir=\"$libdir\"
9556 exec_prefix="$acl_save_exec_prefix"
9557 prefix="$acl_save_prefix"
9559 else
9560 additional_includedir="$withval/include"
9561 additional_libdir="$withval/lib"
9567 LIBICONV=
9568 LTLIBICONV=
9569 INCICONV=
9570 rpathdirs=
9571 ltrpathdirs=
9572 names_already_handled=
9573 names_next_round='iconv '
9574 while test -n "$names_next_round"; do
9575 names_this_round="$names_next_round"
9576 names_next_round=
9577 for name in $names_this_round; do
9578 already_handled=
9579 for n in $names_already_handled; do
9580 if test "$n" = "$name"; then
9581 already_handled=yes
9582 break
9584 done
9585 if test -z "$already_handled"; then
9586 names_already_handled="$names_already_handled $name"
9587 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9588 eval value=\"\$HAVE_LIB$uppername\"
9589 if test -n "$value"; then
9590 if test "$value" = yes; then
9591 eval value=\"\$LIB$uppername\"
9592 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9593 eval value=\"\$LTLIB$uppername\"
9594 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9595 else
9598 else
9599 found_dir=
9600 found_la=
9601 found_so=
9602 found_a=
9603 if test $use_additional = yes; then
9604 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9605 found_dir="$additional_libdir"
9606 found_so="$additional_libdir/lib$name.$shlibext"
9607 if test -f "$additional_libdir/lib$name.la"; then
9608 found_la="$additional_libdir/lib$name.la"
9610 else
9611 if test -f "$additional_libdir/lib$name.$libext"; then
9612 found_dir="$additional_libdir"
9613 found_a="$additional_libdir/lib$name.$libext"
9614 if test -f "$additional_libdir/lib$name.la"; then
9615 found_la="$additional_libdir/lib$name.la"
9620 if test "X$found_dir" = "X"; then
9621 for x in $LDFLAGS $LTLIBICONV; do
9623 acl_save_prefix="$prefix"
9624 prefix="$acl_final_prefix"
9625 acl_save_exec_prefix="$exec_prefix"
9626 exec_prefix="$acl_final_exec_prefix"
9627 eval x=\"$x\"
9628 exec_prefix="$acl_save_exec_prefix"
9629 prefix="$acl_save_prefix"
9631 case "$x" in
9632 -L*)
9633 dir=`echo "X$x" | sed -e 's/^X-L//'`
9634 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9635 found_dir="$dir"
9636 found_so="$dir/lib$name.$shlibext"
9637 if test -f "$dir/lib$name.la"; then
9638 found_la="$dir/lib$name.la"
9640 else
9641 if test -f "$dir/lib$name.$libext"; then
9642 found_dir="$dir"
9643 found_a="$dir/lib$name.$libext"
9644 if test -f "$dir/lib$name.la"; then
9645 found_la="$dir/lib$name.la"
9650 esac
9651 if test "X$found_dir" != "X"; then
9652 break
9654 done
9656 if test "X$found_dir" != "X"; then
9657 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9658 if test "X$found_so" != "X"; then
9659 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9660 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9661 else
9662 haveit=
9663 for x in $ltrpathdirs; do
9664 if test "X$x" = "X$found_dir"; then
9665 haveit=yes
9666 break
9668 done
9669 if test -z "$haveit"; then
9670 ltrpathdirs="$ltrpathdirs $found_dir"
9672 if test "$hardcode_direct" = yes; then
9673 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9674 else
9675 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9676 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9677 haveit=
9678 for x in $rpathdirs; do
9679 if test "X$x" = "X$found_dir"; then
9680 haveit=yes
9681 break
9683 done
9684 if test -z "$haveit"; then
9685 rpathdirs="$rpathdirs $found_dir"
9687 else
9688 haveit=
9689 for x in $LDFLAGS $LIBICONV; do
9691 acl_save_prefix="$prefix"
9692 prefix="$acl_final_prefix"
9693 acl_save_exec_prefix="$exec_prefix"
9694 exec_prefix="$acl_final_exec_prefix"
9695 eval x=\"$x\"
9696 exec_prefix="$acl_save_exec_prefix"
9697 prefix="$acl_save_prefix"
9699 if test "X$x" = "X-L$found_dir"; then
9700 haveit=yes
9701 break
9703 done
9704 if test -z "$haveit"; then
9705 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9707 if test "$hardcode_minus_L" != no; then
9708 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9709 else
9710 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9715 else
9716 if test "X$found_a" != "X"; then
9717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9718 else
9719 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9722 additional_includedir=
9723 case "$found_dir" in
9724 */lib | */lib/)
9725 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9726 additional_includedir="$basedir/include"
9728 esac
9729 if test "X$additional_includedir" != "X"; then
9730 if test "X$additional_includedir" != "X/usr/include"; then
9731 haveit=
9732 if test "X$additional_includedir" = "X/usr/local/include"; then
9733 if test -n "$GCC"; then
9734 case $host_os in
9735 linux*) haveit=yes;;
9736 esac
9739 if test -z "$haveit"; then
9740 for x in $CPPFLAGS $INCICONV; do
9742 acl_save_prefix="$prefix"
9743 prefix="$acl_final_prefix"
9744 acl_save_exec_prefix="$exec_prefix"
9745 exec_prefix="$acl_final_exec_prefix"
9746 eval x=\"$x\"
9747 exec_prefix="$acl_save_exec_prefix"
9748 prefix="$acl_save_prefix"
9750 if test "X$x" = "X-I$additional_includedir"; then
9751 haveit=yes
9752 break
9754 done
9755 if test -z "$haveit"; then
9756 if test -d "$additional_includedir"; then
9757 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9763 if test -n "$found_la"; then
9764 save_libdir="$libdir"
9765 case "$found_la" in
9766 */* | *\\*) . "$found_la" ;;
9767 *) . "./$found_la" ;;
9768 esac
9769 libdir="$save_libdir"
9770 for dep in $dependency_libs; do
9771 case "$dep" in
9772 -L*)
9773 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9774 if test "X$additional_libdir" != "X/usr/lib"; then
9775 haveit=
9776 if test "X$additional_libdir" = "X/usr/local/lib"; then
9777 if test -n "$GCC"; then
9778 case $host_os in
9779 linux*) haveit=yes;;
9780 esac
9783 if test -z "$haveit"; then
9784 haveit=
9785 for x in $LDFLAGS $LIBICONV; do
9787 acl_save_prefix="$prefix"
9788 prefix="$acl_final_prefix"
9789 acl_save_exec_prefix="$exec_prefix"
9790 exec_prefix="$acl_final_exec_prefix"
9791 eval x=\"$x\"
9792 exec_prefix="$acl_save_exec_prefix"
9793 prefix="$acl_save_prefix"
9795 if test "X$x" = "X-L$additional_libdir"; then
9796 haveit=yes
9797 break
9799 done
9800 if test -z "$haveit"; then
9801 if test -d "$additional_libdir"; then
9802 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9805 haveit=
9806 for x in $LDFLAGS $LTLIBICONV; do
9808 acl_save_prefix="$prefix"
9809 prefix="$acl_final_prefix"
9810 acl_save_exec_prefix="$exec_prefix"
9811 exec_prefix="$acl_final_exec_prefix"
9812 eval x=\"$x\"
9813 exec_prefix="$acl_save_exec_prefix"
9814 prefix="$acl_save_prefix"
9816 if test "X$x" = "X-L$additional_libdir"; then
9817 haveit=yes
9818 break
9820 done
9821 if test -z "$haveit"; then
9822 if test -d "$additional_libdir"; then
9823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9829 -R*)
9830 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9831 if test "$enable_rpath" != no; then
9832 haveit=
9833 for x in $rpathdirs; do
9834 if test "X$x" = "X$dir"; then
9835 haveit=yes
9836 break
9838 done
9839 if test -z "$haveit"; then
9840 rpathdirs="$rpathdirs $dir"
9842 haveit=
9843 for x in $ltrpathdirs; do
9844 if test "X$x" = "X$dir"; then
9845 haveit=yes
9846 break
9848 done
9849 if test -z "$haveit"; then
9850 ltrpathdirs="$ltrpathdirs $dir"
9854 -l*)
9855 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9857 *.la)
9858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9861 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9864 esac
9865 done
9867 else
9868 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9869 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9873 done
9874 done
9875 if test "X$rpathdirs" != "X"; then
9876 if test -n "$hardcode_libdir_separator"; then
9877 alldirs=
9878 for found_dir in $rpathdirs; do
9879 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9880 done
9881 acl_save_libdir="$libdir"
9882 libdir="$alldirs"
9883 eval flag=\"$hardcode_libdir_flag_spec\"
9884 libdir="$acl_save_libdir"
9885 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9886 else
9887 for found_dir in $rpathdirs; do
9888 acl_save_libdir="$libdir"
9889 libdir="$found_dir"
9890 eval flag=\"$hardcode_libdir_flag_spec\"
9891 libdir="$acl_save_libdir"
9892 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9893 done
9896 if test "X$ltrpathdirs" != "X"; then
9897 for found_dir in $ltrpathdirs; do
9898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9899 done
9908 am_save_CPPFLAGS="$CPPFLAGS"
9910 for element in $INCICONV; do
9911 haveit=
9912 for x in $CPPFLAGS; do
9914 acl_save_prefix="$prefix"
9915 prefix="$acl_final_prefix"
9916 acl_save_exec_prefix="$exec_prefix"
9917 exec_prefix="$acl_final_exec_prefix"
9918 eval x=\"$x\"
9919 exec_prefix="$acl_save_exec_prefix"
9920 prefix="$acl_save_prefix"
9922 if test "X$x" = "X$element"; then
9923 haveit=yes
9924 break
9926 done
9927 if test -z "$haveit"; then
9928 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9930 done
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9934 $as_echo_n "checking for iconv... " >&6; }
9935 if test "${am_cv_func_iconv+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9939 am_cv_func_iconv="no, consider installing GNU libiconv"
9940 am_cv_lib_iconv=no
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 #include <stdlib.h>
9944 #include <iconv.h>
9946 main ()
9948 iconv_t cd = iconv_open("","");
9949 iconv(cd,NULL,NULL,NULL,NULL);
9950 iconv_close(cd);
9952 return 0;
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 am_cv_func_iconv=yes
9958 rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test "$am_cv_func_iconv" != yes; then
9961 am_save_LIBS="$LIBS"
9962 LIBS="$LIBS $LIBICONV"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 #include <stdlib.h>
9966 #include <iconv.h>
9968 main ()
9970 iconv_t cd = iconv_open("","");
9971 iconv(cd,NULL,NULL,NULL,NULL);
9972 iconv_close(cd);
9974 return 0;
9976 _ACEOF
9977 if ac_fn_c_try_link "$LINENO"; then :
9978 am_cv_lib_iconv=yes
9979 am_cv_func_iconv=yes
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS="$am_save_LIBS"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9988 $as_echo "$am_cv_func_iconv" >&6; }
9989 if test "$am_cv_func_iconv" = yes; then
9991 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9994 if test "$am_cv_lib_iconv" = yes; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9996 $as_echo_n "checking how to link with libiconv... " >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9998 $as_echo "$LIBICONV" >&6; }
9999 else
10000 CPPFLAGS="$am_save_CPPFLAGS"
10001 LIBICONV=
10002 LTLIBICONV=
10007 if test "$am_cv_func_iconv" = yes; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10009 $as_echo_n "checking for iconv declaration... " >&6; }
10010 if test "${am_cv_proto_iconv+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10017 #include <stdlib.h>
10018 #include <iconv.h>
10019 extern
10020 #ifdef __cplusplus
10022 #endif
10023 #if defined(__STDC__) || defined(__cplusplus)
10024 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10025 #else
10026 size_t iconv();
10027 #endif
10030 main ()
10034 return 0;
10036 _ACEOF
10037 if ac_fn_c_try_compile "$LINENO"; then :
10038 am_cv_proto_iconv_arg1=""
10039 else
10040 am_cv_proto_iconv_arg1="const"
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 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);"
10046 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10048 }$am_cv_proto_iconv" >&5
10049 $as_echo "${ac_t:-
10050 }$am_cv_proto_iconv" >&6; }
10052 cat >>confdefs.h <<_ACEOF
10053 #define ICONV_CONST $am_cv_proto_iconv_arg1
10054 _ACEOF
10058 # Until we have in-tree GNU iconv:
10059 LIBICONV_DEP=
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10064 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10065 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 #include <locale.h>
10072 main ()
10074 return LC_MESSAGES
10076 return 0;
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 am_cv_val_LC_MESSAGES=yes
10081 else
10082 am_cv_val_LC_MESSAGES=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10088 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10089 if test $am_cv_val_LC_MESSAGES = yes; then
10091 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10098 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10099 if test "${am_cv_langinfo_codeset+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 #include <langinfo.h>
10106 main ()
10108 char* cs = nl_langinfo(CODESET);
10110 return 0;
10112 _ACEOF
10113 if ac_fn_c_try_link "$LINENO"; then :
10114 am_cv_langinfo_codeset=yes
10115 else
10116 am_cv_langinfo_codeset=no
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10123 $as_echo "$am_cv_langinfo_codeset" >&6; }
10124 if test $am_cv_langinfo_codeset = yes; then
10126 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10131 # We will need to find libiberty.h and ansidecl.h
10132 saved_CFLAGS="$CFLAGS"
10133 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10134 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10135 strsignal strstr strverscmp \
10136 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10137 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
10139 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10141 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10142 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 #undef $ac_tr_decl
10148 #define $ac_tr_decl 1
10150 #include "ansidecl.h"
10151 #include "system.h"
10154 main ()
10156 #ifndef $ac_func
10157 char *(*pfn) = (char *(*)) $ac_func ;
10158 #endif
10160 return 0;
10162 _ACEOF
10163 if ac_fn_c_try_compile "$LINENO"; then :
10164 eval "gcc_cv_have_decl_$ac_func=yes"
10165 else
10166 eval "gcc_cv_have_decl_$ac_func=no"
10168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10173 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10174 #define $ac_tr_decl 1
10175 _ACEOF
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10180 #define $ac_tr_decl 0
10181 _ACEOF
10185 done
10188 for ac_func in getrlimit setrlimit getrusage
10190 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10192 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10193 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #undef $ac_tr_decl
10199 #define $ac_tr_decl 1
10201 #include "ansidecl.h"
10202 #include "system.h"
10203 #ifdef HAVE_SYS_RESOURCE_H
10204 #include <sys/resource.h>
10205 #endif
10209 main ()
10211 #ifndef $ac_func
10212 char *(*pfn) = (char *(*)) $ac_func ;
10213 #endif
10215 return 0;
10217 _ACEOF
10218 if ac_fn_c_try_compile "$LINENO"; then :
10219 eval "gcc_cv_have_decl_$ac_func=yes"
10220 else
10221 eval "gcc_cv_have_decl_$ac_func=no"
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10229 #define $ac_tr_decl 1
10230 _ACEOF
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10235 #define $ac_tr_decl 0
10236 _ACEOF
10240 done
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10246 #include "ansidecl.h"
10247 #include "system.h"
10248 #ifdef HAVE_SYS_RESOURCE_H
10249 #include <sys/resource.h>
10250 #endif
10253 main ()
10255 rlim_t l = 0;
10257 return 0;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"; then :
10262 else
10264 $as_echo "#define rlim_t long" >>confdefs.h
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10270 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10271 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10272 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10273 for ac_func in ldgetname
10275 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10277 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10278 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 #undef $ac_tr_decl
10284 #define $ac_tr_decl 1
10286 #include "ansidecl.h"
10287 #include "system.h"
10288 #ifdef HAVE_LDFCN_H
10289 #undef FREAD
10290 #undef FWRITE
10291 #include <ldfcn.h>
10292 #endif
10296 main ()
10298 #ifndef $ac_func
10299 char *(*pfn) = (char *(*)) $ac_func ;
10300 #endif
10302 return 0;
10304 _ACEOF
10305 if ac_fn_c_try_compile "$LINENO"; then :
10306 eval "gcc_cv_have_decl_$ac_func=yes"
10307 else
10308 eval "gcc_cv_have_decl_$ac_func=no"
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10315 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10316 #define $ac_tr_decl 1
10317 _ACEOF
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10322 #define $ac_tr_decl 0
10323 _ACEOF
10327 done
10330 for ac_func in times
10332 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10334 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10335 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 #undef $ac_tr_decl
10341 #define $ac_tr_decl 1
10343 #include "ansidecl.h"
10344 #include "system.h"
10345 #ifdef HAVE_SYS_TIMES_H
10346 #include <sys/times.h>
10347 #endif
10351 main ()
10353 #ifndef $ac_func
10354 char *(*pfn) = (char *(*)) $ac_func ;
10355 #endif
10357 return 0;
10359 _ACEOF
10360 if ac_fn_c_try_compile "$LINENO"; then :
10361 eval "gcc_cv_have_decl_$ac_func=yes"
10362 else
10363 eval "gcc_cv_have_decl_$ac_func=no"
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10370 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10371 #define $ac_tr_decl 1
10372 _ACEOF
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10377 #define $ac_tr_decl 0
10378 _ACEOF
10382 done
10385 for ac_func in sigaltstack
10387 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10389 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10390 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #undef $ac_tr_decl
10396 #define $ac_tr_decl 1
10398 #include "ansidecl.h"
10399 #include "system.h"
10400 #include <signal.h>
10404 main ()
10406 #ifndef $ac_func
10407 char *(*pfn) = (char *(*)) $ac_func ;
10408 #endif
10410 return 0;
10412 _ACEOF
10413 if ac_fn_c_try_compile "$LINENO"; then :
10414 eval "gcc_cv_have_decl_$ac_func=yes"
10415 else
10416 eval "gcc_cv_have_decl_$ac_func=no"
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10424 #define $ac_tr_decl 1
10425 _ACEOF
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10430 #define $ac_tr_decl 0
10431 _ACEOF
10435 done
10438 # More time-related stuff.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10440 $as_echo_n "checking for struct tms... " >&6; }
10441 if test "${ac_cv_struct_tms+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 #include "ansidecl.h"
10449 #include "system.h"
10450 #ifdef HAVE_SYS_TIMES_H
10451 #include <sys/times.h>
10452 #endif
10455 main ()
10457 struct tms tms;
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_compile "$LINENO"; then :
10463 ac_cv_struct_tms=yes
10464 else
10465 ac_cv_struct_tms=no
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10470 $as_echo "$ac_cv_struct_tms" >&6; }
10471 if test $ac_cv_struct_tms = yes; then
10473 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10477 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10478 # revisit after autoconf 2.50.
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10480 $as_echo_n "checking for clock_t... " >&6; }
10481 if test "${gcc_cv_type_clock_t+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10488 #include "ansidecl.h"
10489 #include "system.h"
10492 main ()
10494 clock_t x;
10496 return 0;
10498 _ACEOF
10499 if ac_fn_c_try_compile "$LINENO"; then :
10500 gcc_cv_type_clock_t=yes
10501 else
10502 gcc_cv_type_clock_t=no
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10507 $as_echo "$gcc_cv_type_clock_t" >&6; }
10508 if test $gcc_cv_type_clock_t = yes; then
10510 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10514 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10515 CFLAGS="$saved_CFLAGS"
10517 # Check whether --enable-initfini-array was given.
10518 if test "${enable_initfini_array+set}" = set; then :
10519 enableval=$enable_initfini_array;
10520 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10523 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10524 if test "${gcc_cv_initfini_array+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if test "$cross_compiling" = yes; then :
10528 gcc_cv_initfini_array=no
10529 else
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10533 static int x = -1;
10534 int main (void) { return x; }
10535 int foo (void) { x = 0; }
10536 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10537 _ACEOF
10538 if ac_fn_c_try_run "$LINENO"; then :
10539 gcc_cv_initfini_array=yes
10540 else
10541 gcc_cv_initfini_array=no
10543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10544 conftest.$ac_objext conftest.beam conftest.$ac_ext
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10549 $as_echo "$gcc_cv_initfini_array" >&6; }
10550 enable_initfini_array=$gcc_cv_initfini_array
10554 if test $enable_initfini_array = yes; then
10556 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10560 # mkdir takes a single argument on some systems.
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10562 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10563 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10569 #include <sys/types.h>
10570 #ifdef HAVE_SYS_STAT_H
10571 # include <sys/stat.h>
10572 #endif
10573 #ifdef HAVE_UNISTD_H
10574 # include <unistd.h>
10575 #endif
10576 #ifdef HAVE_DIRECT_H
10577 # include <direct.h>
10578 #endif
10580 main ()
10582 mkdir ("foo", 0);
10584 return 0;
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"; then :
10588 gcc_cv_mkdir_takes_one_arg=no
10589 else
10590 gcc_cv_mkdir_takes_one_arg=yes
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10595 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10596 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10598 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10603 # File extensions
10604 manext='.1'
10605 objext='.o'
10609 # With Setjmp/Longjmp based exception handling.
10610 # Check whether --enable-sjlj-exceptions was given.
10611 if test "${enable_sjlj_exceptions+set}" = set; then :
10612 enableval=$enable_sjlj_exceptions; case $target in
10613 *-*-hpux10*)
10614 if test $enableval != yes; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10616 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10617 enableval=yes
10620 esac
10621 force_sjlj_exceptions=yes
10622 else
10623 case $target in
10624 *-*-hpux10*)
10625 force_sjlj_exceptions=yes
10626 enableval=yes
10629 force_sjlj_exceptions=no
10631 esac
10634 if test $force_sjlj_exceptions = yes; then
10635 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10637 cat >>confdefs.h <<_ACEOF
10638 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10639 _ACEOF
10643 # For platforms with the unwind ABI which includes an unwind library,
10644 # libunwind, we can choose to use the system libunwind.
10645 # config.gcc also contains tests of with_system_libunwind.
10648 # Check whether --with-system-libunwind was given.
10649 if test "${with_system_libunwind+set}" = set; then :
10650 withval=$with_system_libunwind;
10653 # If system-libunwind was not specifically set, pick a default setting.
10654 if test x$with_system_libunwind = x; then
10655 case ${target} in
10656 ia64-*-hpux*) with_system_libunwind=yes ;;
10657 *) with_system_libunwind=no ;;
10658 esac
10660 # Based on system-libunwind and target, do we have ipinfo?
10661 if test x$with_system_libunwind = xyes; then
10662 case ${target} in
10663 ia64-*-*) have_unwind_getipinfo=no ;;
10664 *) have_unwind_getipinfo=yes ;;
10665 esac
10666 else
10667 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10669 case ${target} in
10670 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10671 *) have_unwind_getipinfo=yes ;;
10672 esac
10676 if test x$have_unwind_getipinfo = xyes; then
10678 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10683 # --------------------------------------------------------
10684 # Build, host, and target specific configuration fragments
10685 # --------------------------------------------------------
10687 # Collect build-machine-specific information.
10688 . ${srcdir}/config.build
10690 # Collect host-machine-specific information.
10691 . ${srcdir}/config.host
10693 target_gtfiles=
10695 # Collect target-machine-specific information.
10696 . ${srcdir}/config.gcc
10698 extra_objs="${host_extra_objs} ${extra_objs}"
10699 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10701 # Default the target-machine variables that were not explicitly set.
10702 if test x"$tm_file" = x
10703 then tm_file=$cpu_type/$cpu_type.h; fi
10705 if test x"$extra_headers" = x
10706 then extra_headers=; fi
10708 if test x$md_file = x
10709 then md_file=$cpu_type/$cpu_type.md; fi
10711 if test x$out_file = x
10712 then out_file=$cpu_type/$cpu_type.c; fi
10714 if test x"$tmake_file" = x
10715 then tmake_file=$cpu_type/t-$cpu_type
10718 if test x"$dwarf2" = xyes
10719 then tm_file="$tm_file tm-dwarf2.h"
10722 # Say what files are being used for the output code and MD file.
10723 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10724 echo "Using \`$srcdir/config/$md_file' as machine description file."
10726 # If any of the xm_file variables contain nonexistent files, warn
10727 # about them and drop them.
10730 for x in $build_xm_file; do
10731 if test -f $srcdir/config/$x
10732 then bx="$bx $x"
10733 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10734 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10736 done
10737 build_xm_file="$bx"
10740 for x in $host_xm_file; do
10741 if test -f $srcdir/config/$x
10742 then hx="$hx $x"
10743 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10744 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10746 done
10747 host_xm_file="$hx"
10750 for x in $xm_file; do
10751 if test -f $srcdir/config/$x
10752 then tx="$tx $x"
10753 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10754 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10756 done
10757 xm_file="$tx"
10759 count=a
10760 for f in $tm_file; do
10761 count=${count}x
10762 done
10763 if test $count = ax; then
10764 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10765 else
10766 echo "Using the following target machine macro files:"
10767 for f in $tm_file; do
10768 echo " $srcdir/config/$f"
10769 done
10772 if test x$need_64bit_hwint = xyes; then
10774 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10778 if test x$use_long_long_for_widest_fast_int = xyes; then
10780 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10784 count=a
10785 for f in $host_xm_file; do
10786 count=${count}x
10787 done
10788 if test $count = a; then
10790 elif test $count = ax; then
10791 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10792 else
10793 echo "Using the following host machine macro files:"
10794 for f in $host_xm_file; do
10795 echo " $srcdir/config/$f"
10796 done
10798 echo "Using ${out_host_hook_obj} for host machine hooks."
10800 if test "$host_xm_file" != "$build_xm_file"; then
10801 count=a
10802 for f in $build_xm_file; do
10803 count=${count}x
10804 done
10805 if test $count = a; then
10807 elif test $count = ax; then
10808 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10809 else
10810 echo "Using the following build machine macro files:"
10811 for f in $build_xm_file; do
10812 echo " $srcdir/config/$f"
10813 done
10817 case ${host} in
10818 powerpc*-*-darwin*)
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10820 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10821 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 #include <sys/cdefs.h>
10828 #include <sys/signal.h>
10829 #include <ucontext.h>
10830 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10832 _ACEOF
10833 if ac_fn_c_try_compile "$LINENO"; then :
10834 gcc_cv_mcontext_underscores=no
10835 else
10836 gcc_cv_mcontext_underscores=yes
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10841 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10842 if test $gcc_cv_mcontext_underscores = yes; then
10844 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10848 esac
10850 # ---------
10851 # Threading
10852 # ---------
10854 # Check if a valid thread package
10855 case ${enable_threads} in
10856 "" | no)
10857 # No threads
10858 target_thread_file='single'
10860 yes)
10861 # default
10862 target_thread_file='single'
10864 aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
10865 single | tpf | vxworks | win32)
10866 target_thread_file=${enable_threads}
10869 echo "${enable_threads} is an unknown thread package" 1>&2
10870 exit 1
10872 esac
10874 if test x${thread_file} = x; then
10875 # No thread file set by target-specific clauses in config.gcc,
10876 # so use file chosen by default logic above
10877 thread_file=${target_thread_file}
10880 # Make gthr-default.h if we have a thread file.
10881 gthread_flags=
10882 if test $thread_file != single; then
10883 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10884 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10885 rm -f gthr-default.h-t
10886 else
10887 mv -f gthr-default.h-t gthr-default.h
10889 gthread_flags=-DHAVE_GTHR_DEFAULT
10893 # --------
10894 # UNSORTED
10895 # --------
10897 use_cxa_atexit=no
10898 if test x$enable___cxa_atexit = xyes || \
10899 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10900 if test x$host = x$target; then
10901 case $host in
10902 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10903 # keyed to flag_use_cxa_atexit
10904 *-*-mingw32*)
10905 use_cxa_atexit=yes
10908 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10909 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10910 use_cxa_atexit=yes
10911 else
10912 echo "__cxa_atexit can't be enabled on this target"
10916 esac
10917 else
10918 # We can't check for __cxa_atexit when building a cross, so assume
10919 # it is available
10920 use_cxa_atexit=yes
10922 if test x$use_cxa_atexit = xyes; then
10924 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10929 # Look for a file containing extra machine modes.
10930 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10931 extra_modes_file='$(srcdir)'/config/${extra_modes}
10934 cat >>confdefs.h <<_ACEOF
10935 #define EXTRA_MODES_FILE "config/$extra_modes"
10936 _ACEOF
10940 # Convert extra_options into a form suitable for Makefile use.
10941 extra_opt_files=
10942 all_opt_files=
10943 for f in $extra_options; do
10944 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10945 all_opt_files="$all_opt_files $srcdir/config/$f"
10946 done
10949 # auto-host.h is the file containing items generated by autoconf and is
10950 # the first file included by config.h.
10951 # If host=build, it is correct to have bconfig include auto-host.h
10952 # as well. If host!=build, we are in error and need to do more
10953 # work to find out the build config parameters.
10954 if test x$host = x$build
10955 then
10956 build_auto=auto-host.h
10957 else
10958 # We create a subdir, then run autoconf in the subdir.
10959 # To prevent recursion we set host and build for the new
10960 # invocation of configure to the build for this invocation
10961 # of configure.
10962 tempdir=build.$$
10963 rm -rf $tempdir
10964 mkdir $tempdir
10965 cd $tempdir
10966 case ${srcdir} in
10967 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10968 *) realsrcdir=../${srcdir};;
10969 esac
10970 saved_CFLAGS="${CFLAGS}"
10971 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10972 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10973 ${realsrcdir}/configure \
10974 --enable-languages=${enable_languages-all} \
10975 --target=$target_alias --host=$build_alias --build=$build_alias
10976 CFLAGS="${saved_CFLAGS}"
10978 # We just finished tests for the build machine, so rename
10979 # the file auto-build.h in the gcc directory.
10980 mv auto-host.h ../auto-build.h
10981 cd ..
10982 rm -rf $tempdir
10983 build_auto=auto-build.h
10987 tm_file="${tm_file} defaults.h"
10988 tm_p_file="${tm_p_file} tm-preds.h"
10989 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10990 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10991 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10992 # put this back in temporarily.
10993 xm_file="auto-host.h ansidecl.h ${xm_file}"
10995 # --------
10996 # UNSORTED
10997 # --------
10999 # Compile in configure arguments.
11000 if test -f configargs.h ; then
11001 # Being re-configured.
11002 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11003 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11004 else
11005 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11008 # Double all backslashes and backslash all quotes to turn
11009 # gcc_config_arguments into a C string.
11010 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11011 $gcc_config_arguments
11013 gcc_config_arguments_str=`cat conftest.out`
11014 rm -f conftest.out
11016 cat > configargs.h <<EOF
11017 /* Generated automatically. */
11018 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11019 static const char thread_model[] = "$thread_file";
11021 static const struct {
11022 const char *name, *value;
11023 } configure_default_options[] = $configure_default_options;
11026 gcc_BASEVER=`cat $srcdir/BASE-VER`
11027 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11028 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11029 if test -f $srcdir/REVISION ; then
11030 gcc_REVISION=`cat $srcdir/REVISION`
11031 else
11032 gcc_REVISION=""
11034 cat > plugin-version.h <<EOF
11035 #include "configargs.h"
11037 static char basever[] = "$gcc_BASEVER";
11038 static char datestamp[] = "$gcc_DATESTAMP";
11039 static char devphase[] = "$gcc_DEVPHASE";
11040 static char revision[] = "$gcc_REVISION";
11042 /* FIXME plugins: We should make the version information more precise.
11043 One way to do is to add a checksum. */
11045 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11046 devphase, revision,
11047 configuration_arguments};
11050 # Internationalization
11051 # If we haven't got the data from the intl directory,
11052 # assume NLS is disabled.
11053 USE_NLS=no
11054 LIBINTL=
11055 LIBINTL_DEP=
11056 INCINTL=
11057 XGETTEXT=
11058 GMSGFMT=
11059 POSUB=
11061 if test -f ../intl/config.intl; then
11062 . ../intl/config.intl
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11065 $as_echo_n "checking whether NLS is requested... " >&6; }
11066 if test x"$USE_NLS" != xyes; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071 $as_echo "yes" >&6; }
11073 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11077 $as_echo_n "checking for catalogs to be installed... " >&6; }
11078 # Look for .po and .gmo files in the source directory.
11079 CATALOGS=
11080 XLINGUAS=
11081 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11082 # If there aren't any .gmo files the shell will give us the
11083 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11084 # weeded out.
11085 case "$cat" in *\**)
11086 continue;;
11087 esac
11088 # The quadruple backslash is collapsed to a double backslash
11089 # by the backticks, then collapsed again by the double quotes,
11090 # leaving us with one backslash in the sed expression (right
11091 # before the dot that mustn't act as a wildcard).
11092 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11093 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11094 # The user is allowed to set LINGUAS to a list of languages to
11095 # install catalogs for. If it's empty that means "all of them."
11096 if test "x$LINGUAS" = x; then
11097 CATALOGS="$CATALOGS $cat"
11098 XLINGUAS="$XLINGUAS $lang"
11099 else
11100 case "$LINGUAS" in *$lang*)
11101 CATALOGS="$CATALOGS $cat"
11102 XLINGUAS="$XLINGUAS $lang"
11104 esac
11106 done
11107 LINGUAS="$XLINGUAS"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11109 $as_echo "$LINGUAS" >&6; }
11112 DATADIRNAME=share
11114 INSTOBJEXT=.mo
11116 GENCAT=gencat
11118 CATOBJEXT=.gmo
11122 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11123 # -liconv on the link line twice.
11124 case "$LIBINTL" in *$LIBICONV*)
11125 LIBICONV= ;;
11126 esac
11128 # Check whether --enable-secureplt was given.
11129 if test "${enable_secureplt+set}" = set; then :
11130 enableval=$enable_secureplt;
11134 # Check whether --enable-leading-mingw64-underscores was given.
11135 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11136 enableval=$enable_leading_mingw64_underscores;
11139 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11141 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11145 # Check whether --enable-cld was given.
11146 if test "${enable_cld+set}" = set; then :
11147 enableval=$enable_cld;
11148 else
11149 enable_cld=no
11153 # Check whether --enable-frame-pointer was given.
11154 if test "${enable_frame_pointer+set}" = set; then :
11155 enableval=$enable_frame_pointer;
11156 else
11158 case $target_os in
11159 linux* | darwin[8912]*)
11160 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11161 # DWARF2.
11162 enable_frame_pointer=no
11165 enable_frame_pointer=yes
11167 esac
11172 # Windows32 Registry support for specifying GCC installation paths.
11173 # Check whether --enable-win32-registry was given.
11174 if test "${enable_win32_registry+set}" = set; then :
11175 enableval=$enable_win32_registry;
11179 case $host_os in
11180 win32 | pe | cygwin* | mingw32* | uwin*)
11181 if test "x$enable_win32_registry" != xno; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11183 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11184 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 ac_func_search_save_LIBS=$LIBS
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 char RegOpenKeyExA ();
11199 main ()
11201 return RegOpenKeyExA ();
11203 return 0;
11205 _ACEOF
11206 for ac_lib in '' advapi32; do
11207 if test -z "$ac_lib"; then
11208 ac_res="none required"
11209 else
11210 ac_res=-l$ac_lib
11211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_search_RegOpenKeyExA=$ac_res
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext
11218 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11219 break
11221 done
11222 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11224 else
11225 ac_cv_search_RegOpenKeyExA=no
11227 rm conftest.$ac_ext
11228 LIBS=$ac_func_search_save_LIBS
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11231 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11232 ac_res=$ac_cv_search_RegOpenKeyExA
11233 if test "$ac_res" != no; then :
11234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11236 else
11237 enable_win32_registry=no
11242 if test "x$enable_win32_registry" != xno; then
11244 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11247 if test "x$enable_win32_registry" != xyes \
11248 && test "x$enable_win32_registry" != x; then
11250 cat >>confdefs.h <<_ACEOF
11251 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11252 _ACEOF
11257 esac
11259 # Get an absolute path to the GCC top-level source directory
11260 holddir=`${PWDCMD-pwd}`
11261 cd $srcdir
11262 topdir=`${PWDCMD-pwd}`
11263 cd $holddir
11265 # Conditionalize the makefile for this host machine.
11266 xmake_file=
11267 for f in ${host_xmake_file}
11269 if test -f ${srcdir}/config/$f
11270 then
11271 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11273 done
11275 # Conditionalize the makefile for this target machine.
11276 tmake_file_=
11277 for f in ${tmake_file}
11279 if test -f ${srcdir}/config/$f
11280 then
11281 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11283 done
11284 tmake_file="${tmake_file_}"
11286 out_object_file=`basename $out_file .c`.o
11288 tm_file_list="options.h"
11289 tm_include_list="options.h insn-constants.h"
11290 for f in $tm_file; do
11291 case $f in
11292 ./* )
11293 f=`echo $f | sed 's/^..//'`
11294 tm_file_list="${tm_file_list} $f"
11295 tm_include_list="${tm_include_list} $f"
11297 defaults.h )
11298 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11299 tm_include_list="${tm_include_list} $f"
11302 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11303 tm_include_list="${tm_include_list} config/$f"
11305 esac
11306 done
11308 libgcc_tm_file_list=
11309 libgcc_tm_include_list=
11310 for f in $libgcc_tm_file; do
11311 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11312 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11313 done
11315 tm_p_file_list=
11316 tm_p_include_list=
11317 for f in $tm_p_file; do
11318 case $f in
11319 tm-preds.h )
11320 tm_p_file_list="${tm_p_file_list} $f"
11321 tm_p_include_list="${tm_p_include_list} $f"
11324 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11325 tm_p_include_list="${tm_p_include_list} config/$f"
11326 esac
11327 done
11329 xm_file_list=
11330 xm_include_list=
11331 for f in $xm_file; do
11332 case $f in
11333 ansidecl.h )
11334 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11335 xm_include_list="${xm_include_list} $f"
11337 auto-host.h )
11338 xm_file_list="${xm_file_list} $f"
11339 xm_include_list="${xm_include_list} $f"
11342 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11343 xm_include_list="${xm_include_list} config/$f"
11345 esac
11346 done
11348 host_xm_file_list=
11349 host_xm_include_list=
11350 for f in $host_xm_file; do
11351 case $f in
11352 ansidecl.h )
11353 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11354 host_xm_include_list="${host_xm_include_list} $f"
11356 auto-host.h )
11357 host_xm_file_list="${host_xm_file_list} $f"
11358 host_xm_include_list="${host_xm_include_list} $f"
11361 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11362 host_xm_include_list="${host_xm_include_list} config/$f"
11364 esac
11365 done
11367 build_xm_file_list=
11368 for f in $build_xm_file; do
11369 case $f in
11370 ansidecl.h )
11371 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11372 build_xm_include_list="${build_xm_include_list} $f"
11374 auto-build.h | auto-host.h )
11375 build_xm_file_list="${build_xm_file_list} $f"
11376 build_xm_include_list="${build_xm_include_list} $f"
11379 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11380 build_xm_include_list="${build_xm_include_list} config/$f"
11382 esac
11383 done
11385 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11386 # cross-compiler which does not use the native headers and libraries.
11387 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11388 CROSS=
11389 ALL=all.internal
11390 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11392 if test "x$with_build_sysroot" != x; then
11393 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11394 else
11395 # This value is used, even on a native system, because
11396 # CROSS_SYSTEM_HEADER_DIR is just
11397 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11398 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11401 if test x$host != x$target
11402 then
11403 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11404 ALL=all.cross
11405 SYSTEM_HEADER_DIR=$build_system_header_dir
11406 case "$host","$target" in
11407 # Darwin crosses can use the host system's libraries and headers,
11408 # because of the fat library support. Of course, it must be the
11409 # same version of Darwin on both sides. Allow the user to
11410 # just say --target=foo-darwin without a version number to mean
11411 # "the version on this system".
11412 *-*-darwin*,*-*-darwin*)
11413 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11414 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11415 if test $hostos = $targetos -o $targetos = darwin ; then
11416 CROSS=
11417 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11418 with_headers=yes
11422 i?86-*-*,x86_64-*-* \
11423 | powerpc*-*-*,powerpc64*-*-*)
11424 CROSS="$CROSS -DNATIVE_CROSS" ;;
11425 esac
11427 case $target in
11428 *-*-mingw*)
11429 if test "x$with_headers" = x; then
11430 with_headers=yes
11435 esac
11436 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11437 SYSTEM_HEADER_DIR=$build_system_header_dir
11440 # If this is a cross-compiler that does not
11441 # have its own set of headers then define
11442 # inhibit_libc
11444 # If this is using newlib, without having the headers available now,
11445 # then define inhibit_libc in LIBGCC2_CFLAGS.
11446 # This prevents libgcc2 from containing any code which requires libc
11447 # support.
11448 : ${inhibit_libc=false}
11449 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11450 test x$with_newlib = xyes ; } &&
11451 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11452 inhibit_libc=true
11456 # When building gcc with a cross-compiler, we need to adjust things so
11457 # that the generator programs are still built with the native compiler.
11458 # Also, we cannot run fixincludes.
11460 # These are the normal (build=host) settings:
11461 CC_FOR_BUILD='$(CC)'
11462 BUILD_CFLAGS='$(ALL_CFLAGS)'
11463 BUILD_LDFLAGS='$(LDFLAGS)'
11464 STMP_FIXINC=stmp-fixinc
11466 # And these apply if build != host, or we are generating coverage data
11467 if test x$build != x$host || test "x$coverage_flags" != x
11468 then
11469 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11470 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11473 # Expand extra_headers to include complete path.
11474 # This substitutes for lots of t-* files.
11475 extra_headers_list=
11476 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11477 for file in ${extra_headers} ; do
11478 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11479 done
11481 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11482 if test x"$use_gcc_tgmath" = xyes
11483 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11486 # Define collect2 in Makefile.
11487 case $host_can_use_collect2 in
11488 no) collect2= ;;
11489 *) collect2='collect2$(exeext)' ;;
11490 esac
11493 # Add a definition of USE_COLLECT2 if system wants one.
11494 case $use_collect2 in
11495 no) use_collect2= ;;
11496 "") ;;
11498 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11499 xm_defines="${xm_defines} USE_COLLECT2"
11500 case $host_can_use_collect2 in
11502 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11504 esac
11506 esac
11509 cat >>confdefs.h <<_ACEOF
11510 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11511 _ACEOF
11514 # ---------------------------
11515 # Assembler & linker features
11516 # ---------------------------
11518 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11519 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11520 # However when ld-new is first executed from the build tree, libtool will
11521 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11522 # to the build tree. While doing this we need to use the previous-stage
11523 # linker, or we have an infinite loop. The presence of a shell script as
11524 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11525 # the gcc/collect-ld script. So we need to know how libtool works, or
11526 # exec-tool will fail.
11529 case `pwd` in
11530 *\ * | *\ *)
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11532 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11533 esac
11537 macro_version='2.2.7a'
11538 macro_revision='1.3134'
11552 ltmain="$ac_aux_dir/ltmain.sh"
11554 # Backslashify metacharacters that are still active within
11555 # double-quoted strings.
11556 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11558 # Same as above, but do not quote variable references.
11559 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11561 # Sed substitution to delay expansion of an escaped shell variable in a
11562 # double_quote_subst'ed string.
11563 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11565 # Sed substitution to delay expansion of an escaped single quote.
11566 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11568 # Sed substitution to avoid accidental globbing in evaled expressions
11569 no_glob_subst='s/\*/\\\*/g'
11571 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11572 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11576 $as_echo_n "checking how to print strings... " >&6; }
11577 # Test print first, because it will be a builtin if present.
11578 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11579 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11580 ECHO='print -r --'
11581 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11582 ECHO='printf %s\n'
11583 else
11584 # Use this function as a fallback that always works.
11585 func_fallback_echo ()
11587 eval 'cat <<_LTECHO_EOF
11589 _LTECHO_EOF'
11591 ECHO='func_fallback_echo'
11594 # func_echo_all arg...
11595 # Invoke $ECHO with all args, space-separated.
11596 func_echo_all ()
11598 $ECHO ""
11601 case "$ECHO" in
11602 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11603 $as_echo "printf" >&6; } ;;
11604 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11605 $as_echo "print -r" >&6; } ;;
11606 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11607 $as_echo "cat" >&6; } ;;
11608 esac
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11625 if test "${ac_cv_path_SED+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11629 for ac_i in 1 2 3 4 5 6 7; do
11630 ac_script="$ac_script$as_nl$ac_script"
11631 done
11632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11633 { ac_script=; unset ac_script;}
11634 if test -z "$SED"; then
11635 ac_path_SED_found=false
11636 # Loop through the user's path and test for each of PROGNAME-LIST
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_prog in sed gsed; do
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11646 # Check for GNU ac_path_SED and select it if it is found.
11647 # Check for GNU $ac_path_SED
11648 case `"$ac_path_SED" --version 2>&1` in
11649 *GNU*)
11650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11652 ac_count=0
11653 $as_echo_n 0123456789 >"conftest.in"
11654 while :
11656 cat "conftest.in" "conftest.in" >"conftest.tmp"
11657 mv "conftest.tmp" "conftest.in"
11658 cp "conftest.in" "conftest.nl"
11659 $as_echo '' >> "conftest.nl"
11660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11662 as_fn_arith $ac_count + 1 && ac_count=$as_val
11663 if test $ac_count -gt ${ac_path_SED_max-0}; then
11664 # Best one so far, save it but keep looking for a better one
11665 ac_cv_path_SED="$ac_path_SED"
11666 ac_path_SED_max=$ac_count
11668 # 10*(2^10) chars as input seems more than enough
11669 test $ac_count -gt 10 && break
11670 done
11671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11672 esac
11674 $ac_path_SED_found && break 3
11675 done
11676 done
11677 done
11678 IFS=$as_save_IFS
11679 if test -z "$ac_cv_path_SED"; then
11680 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11682 else
11683 ac_cv_path_SED=$SED
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11688 $as_echo "$ac_cv_path_SED" >&6; }
11689 SED="$ac_cv_path_SED"
11690 rm -f conftest.sed
11692 test -z "$SED" && SED=sed
11693 Xsed="$SED -e 1s/^X//"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11706 $as_echo_n "checking for fgrep... " >&6; }
11707 if test "${ac_cv_path_FGREP+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11711 then ac_cv_path_FGREP="$GREP -F"
11712 else
11713 if test -z "$FGREP"; then
11714 ac_path_FGREP_found=false
11715 # Loop through the user's path and test for each of PROGNAME-LIST
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_prog in fgrep; do
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11724 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11725 # Check for GNU ac_path_FGREP and select it if it is found.
11726 # Check for GNU $ac_path_FGREP
11727 case `"$ac_path_FGREP" --version 2>&1` in
11728 *GNU*)
11729 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11731 ac_count=0
11732 $as_echo_n 0123456789 >"conftest.in"
11733 while :
11735 cat "conftest.in" "conftest.in" >"conftest.tmp"
11736 mv "conftest.tmp" "conftest.in"
11737 cp "conftest.in" "conftest.nl"
11738 $as_echo 'FGREP' >> "conftest.nl"
11739 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11741 as_fn_arith $ac_count + 1 && ac_count=$as_val
11742 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11743 # Best one so far, save it but keep looking for a better one
11744 ac_cv_path_FGREP="$ac_path_FGREP"
11745 ac_path_FGREP_max=$ac_count
11747 # 10*(2^10) chars as input seems more than enough
11748 test $ac_count -gt 10 && break
11749 done
11750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11751 esac
11753 $ac_path_FGREP_found && break 3
11754 done
11755 done
11756 done
11757 IFS=$as_save_IFS
11758 if test -z "$ac_cv_path_FGREP"; then
11759 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11761 else
11762 ac_cv_path_FGREP=$FGREP
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11768 $as_echo "$ac_cv_path_FGREP" >&6; }
11769 FGREP="$ac_cv_path_FGREP"
11772 test -z "$GREP" && GREP=grep
11792 # Check whether --with-gnu-ld was given.
11793 if test "${with_gnu_ld+set}" = set; then :
11794 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11795 else
11796 with_gnu_ld=no
11799 ac_prog=ld
11800 if test "$GCC" = yes; then
11801 # Check if gcc -print-prog-name=ld gives a path.
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11803 $as_echo_n "checking for ld used by $CC... " >&6; }
11804 case $host in
11805 *-*-mingw*)
11806 # gcc leaves a trailing carriage return which upsets mingw
11807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11810 esac
11811 case $ac_prog in
11812 # Accept absolute paths.
11813 [\\/]* | ?:[\\/]*)
11814 re_direlt='/[^/][^/]*/\.\./'
11815 # Canonicalize the pathname of ld
11816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11819 done
11820 test -z "$LD" && LD="$ac_prog"
11823 # If it fails, then pretend we aren't using GCC.
11824 ac_prog=ld
11827 # If it is relative, then search for the first ld in PATH.
11828 with_gnu_ld=unknown
11830 esac
11831 elif test "$with_gnu_ld" = yes; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11833 $as_echo_n "checking for GNU ld... " >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11836 $as_echo_n "checking for non-GNU ld... " >&6; }
11838 if test "${lt_cv_path_LD+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test -z "$LD"; then
11842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11843 for ac_dir in $PATH; do
11844 IFS="$lt_save_ifs"
11845 test -z "$ac_dir" && ac_dir=.
11846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11847 lt_cv_path_LD="$ac_dir/$ac_prog"
11848 # Check to see if the program is GNU ld. I'd rather use --version,
11849 # but apparently some variants of GNU ld only accept -v.
11850 # Break only if it was the GNU/non-GNU ld that we prefer.
11851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11852 *GNU* | *'with BFD'*)
11853 test "$with_gnu_ld" != no && break
11856 test "$with_gnu_ld" != yes && break
11858 esac
11860 done
11861 IFS="$lt_save_ifs"
11862 else
11863 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11867 LD="$lt_cv_path_LD"
11868 if test -n "$LD"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11870 $as_echo "$LD" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11875 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11877 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11878 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11882 case `$LD -v 2>&1 </dev/null` in
11883 *GNU* | *'with BFD'*)
11884 lt_cv_prog_gnu_ld=yes
11887 lt_cv_prog_gnu_ld=no
11889 esac
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11892 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11893 with_gnu_ld=$lt_cv_prog_gnu_ld
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11904 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11905 if test "${lt_cv_path_NM+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 if test -n "$NM"; then
11909 # Let the user override the test.
11910 lt_cv_path_NM="$NM"
11911 else
11912 lt_nm_to_check="${ac_tool_prefix}nm"
11913 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11914 lt_nm_to_check="$lt_nm_to_check nm"
11916 for lt_tmp_nm in $lt_nm_to_check; do
11917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11918 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11919 IFS="$lt_save_ifs"
11920 test -z "$ac_dir" && ac_dir=.
11921 tmp_nm="$ac_dir/$lt_tmp_nm"
11922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11923 # Check to see if the nm accepts a BSD-compat flag.
11924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11925 # nm: unknown option "B" ignored
11926 # Tru64's nm complains that /dev/null is an invalid object file
11927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11928 */dev/null* | *'Invalid file or object type'*)
11929 lt_cv_path_NM="$tmp_nm -B"
11930 break
11933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11934 */dev/null*)
11935 lt_cv_path_NM="$tmp_nm -p"
11936 break
11939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11940 continue # so that we can try to find one that supports BSD flags
11942 esac
11944 esac
11946 done
11947 IFS="$lt_save_ifs"
11948 done
11949 : ${lt_cv_path_NM=no}
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11953 $as_echo "$lt_cv_path_NM" >&6; }
11954 if test "$lt_cv_path_NM" != "no"; then
11955 NM="$lt_cv_path_NM"
11956 else
11957 # Didn't find any BSD compatible name lister, look for dumpbin.
11958 if test -n "$DUMPBIN"; then :
11959 # Let the user override the test.
11960 else
11961 if test -n "$ac_tool_prefix"; then
11962 for ac_prog in dumpbin "link -dump"
11964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 if test -n "$DUMPBIN"; then
11972 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11973 else
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11981 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 break 2
11985 done
11986 done
11987 IFS=$as_save_IFS
11991 DUMPBIN=$ac_cv_prog_DUMPBIN
11992 if test -n "$DUMPBIN"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11994 $as_echo "$DUMPBIN" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
12001 test -n "$DUMPBIN" && break
12002 done
12004 if test -z "$DUMPBIN"; then
12005 ac_ct_DUMPBIN=$DUMPBIN
12006 for ac_prog in dumpbin "link -dump"
12008 # Extract the first word of "$ac_prog", so it can be a program name with args.
12009 set dummy $ac_prog; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$ac_ct_DUMPBIN"; then
12016 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12017 else
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_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12035 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12036 if test -n "$ac_ct_DUMPBIN"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12038 $as_echo "$ac_ct_DUMPBIN" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12045 test -n "$ac_ct_DUMPBIN" && break
12046 done
12048 if test "x$ac_ct_DUMPBIN" = x; then
12049 DUMPBIN=":"
12050 else
12051 case $cross_compiling:$ac_tool_warned in
12052 yes:)
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12055 ac_tool_warned=yes ;;
12056 esac
12057 DUMPBIN=$ac_ct_DUMPBIN
12061 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12062 *COFF*)
12063 DUMPBIN="$DUMPBIN -symbols"
12066 DUMPBIN=:
12068 esac
12071 if test "$DUMPBIN" != ":"; then
12072 NM="$DUMPBIN"
12075 test -z "$NM" && NM=nm
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12083 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12084 if test "${lt_cv_nm_interface+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 lt_cv_nm_interface="BSD nm"
12088 echo "int some_variable = 0;" > conftest.$ac_ext
12089 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12090 (eval "$ac_compile" 2>conftest.err)
12091 cat conftest.err >&5
12092 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12093 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12094 cat conftest.err >&5
12095 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12096 cat conftest.out >&5
12097 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12098 lt_cv_nm_interface="MS dumpbin"
12100 rm -f conftest*
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12103 $as_echo "$lt_cv_nm_interface" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12106 $as_echo_n "checking whether ln -s works... " >&6; }
12107 LN_S=$as_ln_s
12108 if test "$LN_S" = "ln -s"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110 $as_echo "yes" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12113 $as_echo "no, using $LN_S" >&6; }
12116 # find the maximum length of command line arguments
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12118 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12119 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12123 teststring="ABCD"
12125 case $build_os in
12126 msdosdjgpp*)
12127 # On DJGPP, this test can blow up pretty badly due to problems in libc
12128 # (any single argument exceeding 2000 bytes causes a buffer overrun
12129 # during glob expansion). Even if it were fixed, the result of this
12130 # check would be larger than it should be.
12131 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12134 gnu*)
12135 # Under GNU Hurd, this test is not required because there is
12136 # no limit to the length of command line arguments.
12137 # Libtool will interpret -1 as no limit whatsoever
12138 lt_cv_sys_max_cmd_len=-1;
12141 cygwin* | mingw* | cegcc*)
12142 # On Win9x/ME, this test blows up -- it succeeds, but takes
12143 # about 5 minutes as the teststring grows exponentially.
12144 # Worse, since 9x/ME are not pre-emptively multitasking,
12145 # you end up with a "frozen" computer, even though with patience
12146 # the test eventually succeeds (with a max line length of 256k).
12147 # Instead, let's just punt: use the minimum linelength reported by
12148 # all of the supported platforms: 8192 (on NT/2K/XP).
12149 lt_cv_sys_max_cmd_len=8192;
12152 mint*)
12153 # On MiNT this can take a long time and run out of memory.
12154 lt_cv_sys_max_cmd_len=8192;
12157 amigaos*)
12158 # On AmigaOS with pdksh, this test takes hours, literally.
12159 # So we just punt and use a minimum line length of 8192.
12160 lt_cv_sys_max_cmd_len=8192;
12163 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12164 # This has been around since 386BSD, at least. Likely further.
12165 if test -x /sbin/sysctl; then
12166 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12167 elif test -x /usr/sbin/sysctl; then
12168 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12169 else
12170 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12172 # And add a safety zone
12173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12177 interix*)
12178 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12179 lt_cv_sys_max_cmd_len=196608
12182 osf*)
12183 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12184 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12185 # nice to cause kernel panics so lets avoid the loop below.
12186 # First set a reasonable default.
12187 lt_cv_sys_max_cmd_len=16384
12189 if test -x /sbin/sysconfig; then
12190 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12191 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12192 esac
12195 sco3.2v5*)
12196 lt_cv_sys_max_cmd_len=102400
12198 sysv5* | sco5v6* | sysv4.2uw2*)
12199 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12200 if test -n "$kargmax"; then
12201 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12202 else
12203 lt_cv_sys_max_cmd_len=32768
12207 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12208 if test -n "$lt_cv_sys_max_cmd_len"; then
12209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12211 else
12212 # Make teststring a little bigger before we do anything with it.
12213 # a 1K string should be a reasonable start.
12214 for i in 1 2 3 4 5 6 7 8 ; do
12215 teststring=$teststring$teststring
12216 done
12217 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12218 # If test is not a shell built-in, we'll probably end up computing a
12219 # maximum length that is only half of the actual maximum length, but
12220 # we can't tell.
12221 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12222 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12223 test $i != 17 # 1/2 MB should be enough
12225 i=`expr $i + 1`
12226 teststring=$teststring$teststring
12227 done
12228 # Only check the string length outside the loop.
12229 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12230 teststring=
12231 # Add a significant safety factor because C++ compilers can tack on
12232 # massive amounts of additional arguments before passing them to the
12233 # linker. It appears as though 1/2 is a usable value.
12234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12237 esac
12241 if test -n $lt_cv_sys_max_cmd_len ; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12243 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12246 $as_echo "none" >&6; }
12248 max_cmd_len=$lt_cv_sys_max_cmd_len
12255 : ${CP="cp -f"}
12256 : ${MV="mv -f"}
12257 : ${RM="rm -f"}
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12260 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12261 # Try some XSI features
12262 xsi_shell=no
12263 ( _lt_dummy="a/b/c"
12264 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12265 = c,a/b,, \
12266 && eval 'test $(( 1 + 1 )) -eq 2 \
12267 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12268 && xsi_shell=yes
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12270 $as_echo "$xsi_shell" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12274 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12275 lt_shell_append=no
12276 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12277 >/dev/null 2>&1 \
12278 && lt_shell_append=yes
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12280 $as_echo "$lt_shell_append" >&6; }
12283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12284 lt_unset=unset
12285 else
12286 lt_unset=false
12293 # test EBCDIC or ASCII
12294 case `echo X|tr X '\101'` in
12295 A) # ASCII based system
12296 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12297 lt_SP2NL='tr \040 \012'
12298 lt_NL2SP='tr \015\012 \040\040'
12300 *) # EBCDIC based system
12301 lt_SP2NL='tr \100 \n'
12302 lt_NL2SP='tr \r\n \100\100'
12304 esac
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12315 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12316 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 lt_cv_ld_reload_flag='-r'
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12322 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12323 reload_flag=$lt_cv_ld_reload_flag
12324 case $reload_flag in
12325 "" | " "*) ;;
12326 *) reload_flag=" $reload_flag" ;;
12327 esac
12328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12329 case $host_os in
12330 darwin*)
12331 if test "$GCC" = yes; then
12332 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12333 else
12334 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12337 esac
12347 if test -n "$ac_tool_prefix"; then
12348 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12349 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test -n "$OBJDUMP"; then
12356 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12375 OBJDUMP=$ac_cv_prog_OBJDUMP
12376 if test -n "$OBJDUMP"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12378 $as_echo "$OBJDUMP" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12386 if test -z "$ac_cv_prog_OBJDUMP"; then
12387 ac_ct_OBJDUMP=$OBJDUMP
12388 # Extract the first word of "objdump", so it can be a program name with args.
12389 set dummy objdump; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 if test -n "$ac_ct_OBJDUMP"; then
12396 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12397 else
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12409 done
12410 done
12411 IFS=$as_save_IFS
12415 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12416 if test -n "$ac_ct_OBJDUMP"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12418 $as_echo "$ac_ct_OBJDUMP" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12424 if test "x$ac_ct_OBJDUMP" = x; then
12425 OBJDUMP="false"
12426 else
12427 case $cross_compiling:$ac_tool_warned in
12428 yes:)
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431 ac_tool_warned=yes ;;
12432 esac
12433 OBJDUMP=$ac_ct_OBJDUMP
12435 else
12436 OBJDUMP="$ac_cv_prog_OBJDUMP"
12439 test -z "$OBJDUMP" && OBJDUMP=objdump
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12450 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12451 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 lt_cv_file_magic_cmd='$MAGIC_CMD'
12455 lt_cv_file_magic_test_file=
12456 lt_cv_deplibs_check_method='unknown'
12457 # Need to set the preceding variable on all platforms that support
12458 # interlibrary dependencies.
12459 # 'none' -- dependencies not supported.
12460 # `unknown' -- same as none, but documents that we really don't know.
12461 # 'pass_all' -- all dependencies passed with no checks.
12462 # 'test_compile' -- check by making test program.
12463 # 'file_magic [[regex]]' -- check by looking for files in library path
12464 # which responds to the $file_magic_cmd with a given extended regex.
12465 # If you have `file' or equivalent on your system and you're not sure
12466 # whether `pass_all' will *always* work, you probably want this one.
12468 case $host_os in
12469 aix[4-9]*)
12470 lt_cv_deplibs_check_method=pass_all
12473 beos*)
12474 lt_cv_deplibs_check_method=pass_all
12477 bsdi[45]*)
12478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12479 lt_cv_file_magic_cmd='/usr/bin/file -L'
12480 lt_cv_file_magic_test_file=/shlib/libc.so
12483 cygwin*)
12484 # func_win32_libid is a shell function defined in ltmain.sh
12485 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12486 lt_cv_file_magic_cmd='func_win32_libid'
12489 mingw* | pw32*)
12490 # Base MSYS/MinGW do not provide the 'file' command needed by
12491 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12492 # unless we find 'file', for example because we are cross-compiling.
12493 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12494 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12495 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12496 lt_cv_file_magic_cmd='func_win32_libid'
12497 else
12498 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12499 lt_cv_file_magic_cmd='$OBJDUMP -f'
12503 cegcc*)
12504 # use the weaker test based on 'objdump'. See mingw*.
12505 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12506 lt_cv_file_magic_cmd='$OBJDUMP -f'
12509 darwin* | rhapsody*)
12510 lt_cv_deplibs_check_method=pass_all
12513 freebsd* | dragonfly*)
12514 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12515 case $host_cpu in
12516 i*86 )
12517 # Not sure whether the presence of OpenBSD here was a mistake.
12518 # Let's accept both of them until this is cleared up.
12519 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12520 lt_cv_file_magic_cmd=/usr/bin/file
12521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12523 esac
12524 else
12525 lt_cv_deplibs_check_method=pass_all
12529 gnu*)
12530 lt_cv_deplibs_check_method=pass_all
12533 haiku*)
12534 lt_cv_deplibs_check_method=pass_all
12537 hpux10.20* | hpux11*)
12538 lt_cv_file_magic_cmd=/usr/bin/file
12539 case $host_cpu in
12540 ia64*)
12541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12544 hppa*64*)
12545 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]'
12546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12552 esac
12555 interix[3-9]*)
12556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12560 irix5* | irix6* | nonstopux*)
12561 case $LD in
12562 *-32|*"-32 ") libmagic=32-bit;;
12563 *-n32|*"-n32 ") libmagic=N32;;
12564 *-64|*"-64 ") libmagic=64-bit;;
12565 *) libmagic=never-match;;
12566 esac
12567 lt_cv_deplibs_check_method=pass_all
12570 # This must be Linux ELF.
12571 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12572 lt_cv_deplibs_check_method=pass_all
12575 netbsd*)
12576 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12578 else
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12583 newos6*)
12584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12585 lt_cv_file_magic_cmd=/usr/bin/file
12586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12589 *nto* | *qnx*)
12590 lt_cv_deplibs_check_method=pass_all
12593 openbsd*)
12594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12596 else
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12601 osf3* | osf4* | osf5*)
12602 lt_cv_deplibs_check_method=pass_all
12605 rdos*)
12606 lt_cv_deplibs_check_method=pass_all
12609 solaris*)
12610 lt_cv_deplibs_check_method=pass_all
12613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12614 lt_cv_deplibs_check_method=pass_all
12617 sysv4 | sysv4.3*)
12618 case $host_vendor in
12619 motorola)
12620 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]'
12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12623 ncr)
12624 lt_cv_deplibs_check_method=pass_all
12626 sequent)
12627 lt_cv_file_magic_cmd='/bin/file'
12628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12630 sni)
12631 lt_cv_file_magic_cmd='/bin/file'
12632 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12633 lt_cv_file_magic_test_file=/lib/libc.so
12635 siemens)
12636 lt_cv_deplibs_check_method=pass_all
12639 lt_cv_deplibs_check_method=pass_all
12641 esac
12644 tpf*)
12645 lt_cv_deplibs_check_method=pass_all
12647 esac
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12651 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12652 file_magic_cmd=$lt_cv_file_magic_cmd
12653 deplibs_check_method=$lt_cv_deplibs_check_method
12654 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12667 if test -n "$ac_tool_prefix"; then
12668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12669 set dummy ${ac_tool_prefix}ar; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if test "${ac_cv_prog_AR+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 if test -n "$AR"; then
12676 ac_cv_prog_AR="$AR" # Let the user override the test.
12677 else
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12681 IFS=$as_save_IFS
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685 ac_cv_prog_AR="${ac_tool_prefix}ar"
12686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687 break 2
12689 done
12690 done
12691 IFS=$as_save_IFS
12695 AR=$ac_cv_prog_AR
12696 if test -n "$AR"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12698 $as_echo "$AR" >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12706 if test -z "$ac_cv_prog_AR"; then
12707 ac_ct_AR=$AR
12708 # Extract the first word of "ar", so it can be a program name with args.
12709 set dummy ar; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711 $as_echo_n "checking for $ac_word... " >&6; }
12712 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 if test -n "$ac_ct_AR"; then
12716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12717 else
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12721 IFS=$as_save_IFS
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12725 ac_cv_prog_ac_ct_AR="ar"
12726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 break 2
12729 done
12730 done
12731 IFS=$as_save_IFS
12735 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12736 if test -n "$ac_ct_AR"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12738 $as_echo "$ac_ct_AR" >&6; }
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12744 if test "x$ac_ct_AR" = x; then
12745 AR="false"
12746 else
12747 case $cross_compiling:$ac_tool_warned in
12748 yes:)
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12751 ac_tool_warned=yes ;;
12752 esac
12753 AR=$ac_ct_AR
12755 else
12756 AR="$ac_cv_prog_AR"
12759 test -z "$AR" && AR=ar
12760 test -z "$AR_FLAGS" && AR_FLAGS=cru
12772 if test -n "$ac_tool_prefix"; then
12773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12774 set dummy ${ac_tool_prefix}strip; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_prog_STRIP+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$STRIP"; then
12781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12794 done
12795 done
12796 IFS=$as_save_IFS
12800 STRIP=$ac_cv_prog_STRIP
12801 if test -n "$STRIP"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12803 $as_echo "$STRIP" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12811 if test -z "$ac_cv_prog_STRIP"; then
12812 ac_ct_STRIP=$STRIP
12813 # Extract the first word of "strip", so it can be a program name with args.
12814 set dummy strip; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if test -n "$ac_ct_STRIP"; then
12821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12822 else
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_prog_ac_ct_STRIP="strip"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12834 done
12835 done
12836 IFS=$as_save_IFS
12840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12841 if test -n "$ac_ct_STRIP"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12843 $as_echo "$ac_ct_STRIP" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12849 if test "x$ac_ct_STRIP" = x; then
12850 STRIP=":"
12851 else
12852 case $cross_compiling:$ac_tool_warned in
12853 yes:)
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12856 ac_tool_warned=yes ;;
12857 esac
12858 STRIP=$ac_ct_STRIP
12860 else
12861 STRIP="$ac_cv_prog_STRIP"
12864 test -z "$STRIP" && STRIP=:
12871 if test -n "$ac_tool_prefix"; then
12872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -n "$RANLIB"; then
12880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12893 done
12894 done
12895 IFS=$as_save_IFS
12899 RANLIB=$ac_cv_prog_RANLIB
12900 if test -n "$RANLIB"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12902 $as_echo "$RANLIB" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12910 if test -z "$ac_cv_prog_RANLIB"; then
12911 ac_ct_RANLIB=$RANLIB
12912 # Extract the first word of "ranlib", so it can be a program name with args.
12913 set dummy ranlib; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$ac_ct_RANLIB"; then
12920 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_ac_ct_RANLIB="ranlib"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12933 done
12934 done
12935 IFS=$as_save_IFS
12939 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12940 if test -n "$ac_ct_RANLIB"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12942 $as_echo "$ac_ct_RANLIB" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12948 if test "x$ac_ct_RANLIB" = x; then
12949 RANLIB=":"
12950 else
12951 case $cross_compiling:$ac_tool_warned in
12952 yes:)
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12955 ac_tool_warned=yes ;;
12956 esac
12957 RANLIB=$ac_ct_RANLIB
12959 else
12960 RANLIB="$ac_cv_prog_RANLIB"
12963 test -z "$RANLIB" && RANLIB=:
12970 # Determine commands to create old-style static archives.
12971 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12972 old_postinstall_cmds='chmod 644 $oldlib'
12973 old_postuninstall_cmds=
12975 if test -n "$RANLIB"; then
12976 case $host_os in
12977 openbsd*)
12978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12983 esac
12984 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12987 case $host_os in
12988 darwin*)
12989 lock_old_archive_extraction=yes ;;
12991 lock_old_archive_extraction=no ;;
12992 esac
13032 # If no C compiler was specified, use CC.
13033 LTCC=${LTCC-"$CC"}
13035 # If no C compiler flags were specified, use CFLAGS.
13036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13038 # Allow CC to be a program name with arguments.
13039 compiler=$CC
13042 # Check for command to grab the raw symbol name followed by C symbol from nm.
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13044 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13049 # These are sane defaults that work on at least a few old systems.
13050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13052 # Character class describing NM global symbol codes.
13053 symcode='[BCDEGRST]'
13055 # Regexp to match symbols that can be accessed directly from C.
13056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13058 # Define system-specific variables.
13059 case $host_os in
13060 aix*)
13061 symcode='[BCDT]'
13063 cygwin* | mingw* | pw32* | cegcc*)
13064 symcode='[ABCDGISTW]'
13066 hpux*)
13067 if test "$host_cpu" = ia64; then
13068 symcode='[ABCDEGRST]'
13071 irix* | nonstopux*)
13072 symcode='[BCDEGRST]'
13074 osf*)
13075 symcode='[BCDEGQRST]'
13077 solaris*)
13078 symcode='[BDRT]'
13080 sco3.2v5*)
13081 symcode='[DT]'
13083 sysv4.2uw2*)
13084 symcode='[DT]'
13086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13087 symcode='[ABDT]'
13089 sysv4)
13090 symcode='[DFNSTU]'
13092 esac
13094 # If we're using GNU nm, then use its standard symbol codes.
13095 case `$NM -V 2>&1` in
13096 *GNU* | *'with BFD'*)
13097 symcode='[ABCDGIRSTW]' ;;
13098 esac
13100 # Transform an extracted symbol line into a proper C declaration.
13101 # Some systems (esp. on ia64) link data and code symbols differently,
13102 # so use this general approach.
13103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13105 # Transform an extracted symbol line into symbol name and symbol address
13106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13107 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'"
13109 # Handle CRLF in mingw tool chain
13110 opt_cr=
13111 case $build_os in
13112 mingw*)
13113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13115 esac
13117 # Try without a prefix underscore, then with it.
13118 for ac_symprfx in "" "_"; do
13120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13121 symxfrm="\\1 $ac_symprfx\\2 \\2"
13123 # Write the raw and C identifiers.
13124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13125 # Fake it for dumpbin and say T for any non-static function
13126 # and D for any global variable.
13127 # Also find C++ and __fastcall symbols from MSVC++,
13128 # which start with @ or ?.
13129 lt_cv_sys_global_symbol_pipe="$AWK '"\
13130 " {last_section=section; section=\$ 3};"\
13131 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13132 " \$ 0!~/External *\|/{next};"\
13133 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13134 " {if(hide[section]) next};"\
13135 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13136 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13137 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13138 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13139 " ' prfx=^$ac_symprfx"
13140 else
13141 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13144 # Check to see that the pipe works correctly.
13145 pipe_works=no
13147 rm -f conftest*
13148 cat > conftest.$ac_ext <<_LT_EOF
13149 #ifdef __cplusplus
13150 extern "C" {
13151 #endif
13152 char nm_test_var;
13153 void nm_test_func(void);
13154 void nm_test_func(void){}
13155 #ifdef __cplusplus
13157 #endif
13158 int main(){nm_test_var='a';nm_test_func();return(0);}
13159 _LT_EOF
13161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13162 (eval $ac_compile) 2>&5
13163 ac_status=$?
13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165 test $ac_status = 0; }; then
13166 # Now try to grab the symbols.
13167 nlist=conftest.nm
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13169 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; } && test -s "$nlist"; then
13173 # Try sorting and uniquifying the output.
13174 if sort "$nlist" | uniq > "$nlist"T; then
13175 mv -f "$nlist"T "$nlist"
13176 else
13177 rm -f "$nlist"T
13180 # Make sure that we snagged all the symbols we need.
13181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13183 cat <<_LT_EOF > conftest.$ac_ext
13184 #ifdef __cplusplus
13185 extern "C" {
13186 #endif
13188 _LT_EOF
13189 # Now generate the symbol file.
13190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13192 cat <<_LT_EOF >> conftest.$ac_ext
13194 /* The mapping between symbol names and symbols. */
13195 const struct {
13196 const char *name;
13197 void *address;
13199 lt__PROGRAM__LTX_preloaded_symbols[] =
13201 { "@PROGRAM@", (void *) 0 },
13202 _LT_EOF
13203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13204 cat <<\_LT_EOF >> conftest.$ac_ext
13205 {0, (void *) 0}
13208 /* This works around a problem in FreeBSD linker */
13209 #ifdef FREEBSD_WORKAROUND
13210 static const void *lt_preloaded_setup() {
13211 return lt__PROGRAM__LTX_preloaded_symbols;
13213 #endif
13215 #ifdef __cplusplus
13217 #endif
13218 _LT_EOF
13219 # Now try linking the two files.
13220 mv conftest.$ac_objext conftstm.$ac_objext
13221 lt_save_LIBS="$LIBS"
13222 lt_save_CFLAGS="$CFLAGS"
13223 LIBS="conftstm.$ac_objext"
13224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13226 (eval $ac_link) 2>&5
13227 ac_status=$?
13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13230 pipe_works=yes
13232 LIBS="$lt_save_LIBS"
13233 CFLAGS="$lt_save_CFLAGS"
13234 else
13235 echo "cannot find nm_test_func in $nlist" >&5
13237 else
13238 echo "cannot find nm_test_var in $nlist" >&5
13240 else
13241 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13243 else
13244 echo "$progname: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13247 rm -rf conftest* conftst*
13249 # Do not use the global_symbol_pipe unless it works.
13250 if test "$pipe_works" = yes; then
13251 break
13252 else
13253 lt_cv_sys_global_symbol_pipe=
13255 done
13259 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13260 lt_cv_sys_global_symbol_to_cdecl=
13262 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13264 $as_echo "failed" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13267 $as_echo "ok" >&6; }
13291 # Check whether --enable-libtool-lock was given.
13292 if test "${enable_libtool_lock+set}" = set; then :
13293 enableval=$enable_libtool_lock;
13296 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13298 # Some flags need to be propagated to the compiler or linker for good
13299 # libtool support.
13300 case $host in
13301 ia64-*-hpux*)
13302 # Find out which ABI we are using.
13303 echo 'int i;' > conftest.$ac_ext
13304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13305 (eval $ac_compile) 2>&5
13306 ac_status=$?
13307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13308 test $ac_status = 0; }; then
13309 case `/usr/bin/file conftest.$ac_objext` in
13310 *ELF-32*)
13311 HPUX_IA64_MODE="32"
13313 *ELF-64*)
13314 HPUX_IA64_MODE="64"
13316 esac
13318 rm -rf conftest*
13320 *-*-irix6*)
13321 # Find out which ABI we are using.
13322 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13324 (eval $ac_compile) 2>&5
13325 ac_status=$?
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }; then
13328 if test "$lt_cv_prog_gnu_ld" = yes; then
13329 case `/usr/bin/file conftest.$ac_objext` in
13330 *32-bit*)
13331 LD="${LD-ld} -melf32bsmip"
13333 *N32*)
13334 LD="${LD-ld} -melf32bmipn32"
13336 *64-bit*)
13337 LD="${LD-ld} -melf64bmip"
13339 esac
13340 else
13341 case `/usr/bin/file conftest.$ac_objext` in
13342 *32-bit*)
13343 LD="${LD-ld} -32"
13345 *N32*)
13346 LD="${LD-ld} -n32"
13348 *64-bit*)
13349 LD="${LD-ld} -64"
13351 esac
13354 rm -rf conftest*
13357 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13358 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13359 # Find out which ABI we are using.
13360 echo 'int i;' > conftest.$ac_ext
13361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13362 (eval $ac_compile) 2>&5
13363 ac_status=$?
13364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13365 test $ac_status = 0; }; then
13366 case `/usr/bin/file conftest.o` in
13367 *32-bit*)
13368 case $host in
13369 x86_64-*kfreebsd*-gnu)
13370 LD="${LD-ld} -m elf_i386_fbsd"
13372 x86_64-*linux*)
13373 LD="${LD-ld} -m elf_i386"
13375 ppc64-*linux*|powerpc64-*linux*)
13376 LD="${LD-ld} -m elf32ppclinux"
13378 s390x-*linux*)
13379 LD="${LD-ld} -m elf_s390"
13381 sparc64-*linux*)
13382 LD="${LD-ld} -m elf32_sparc"
13384 esac
13386 *64-bit*)
13387 case $host in
13388 x86_64-*kfreebsd*-gnu)
13389 LD="${LD-ld} -m elf_x86_64_fbsd"
13391 x86_64-*linux*)
13392 LD="${LD-ld} -m elf_x86_64"
13394 ppc*-*linux*|powerpc*-*linux*)
13395 LD="${LD-ld} -m elf64ppc"
13397 s390*-*linux*|s390*-*tpf*)
13398 LD="${LD-ld} -m elf64_s390"
13400 sparc*-*linux*)
13401 LD="${LD-ld} -m elf64_sparc"
13403 esac
13405 esac
13407 rm -rf conftest*
13410 *-*-sco3.2v5*)
13411 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13412 SAVE_CFLAGS="$CFLAGS"
13413 CFLAGS="$CFLAGS -belf"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13415 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13416 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 ac_ext=c
13420 ac_cpp='$CPP $CPPFLAGS'
13421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13429 main ()
13433 return 0;
13435 _ACEOF
13436 if ac_fn_c_try_link "$LINENO"; then :
13437 lt_cv_cc_needs_belf=yes
13438 else
13439 lt_cv_cc_needs_belf=no
13441 rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13443 ac_ext=c
13444 ac_cpp='$CPP $CPPFLAGS'
13445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13451 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13452 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13454 CFLAGS="$SAVE_CFLAGS"
13457 sparc*-*solaris*)
13458 # Find out which ABI we are using.
13459 echo 'int i;' > conftest.$ac_ext
13460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13461 (eval $ac_compile) 2>&5
13462 ac_status=$?
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464 test $ac_status = 0; }; then
13465 case `/usr/bin/file conftest.o` in
13466 *64-bit*)
13467 case $lt_cv_prog_gnu_ld in
13468 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13470 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13471 LD="${LD-ld} -64"
13474 esac
13476 esac
13478 rm -rf conftest*
13480 esac
13482 need_locks="$enable_libtool_lock"
13485 case $host_os in
13486 rhapsody* | darwin*)
13487 if test -n "$ac_tool_prefix"; then
13488 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13489 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test -n "$DSYMUTIL"; then
13496 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13501 IFS=$as_save_IFS
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13505 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507 break 2
13509 done
13510 done
13511 IFS=$as_save_IFS
13515 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13516 if test -n "$DSYMUTIL"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13518 $as_echo "$DSYMUTIL" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13526 if test -z "$ac_cv_prog_DSYMUTIL"; then
13527 ac_ct_DSYMUTIL=$DSYMUTIL
13528 # Extract the first word of "dsymutil", so it can be a program name with args.
13529 set dummy dsymutil; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 if test -n "$ac_ct_DSYMUTIL"; then
13536 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13545 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13549 done
13550 done
13551 IFS=$as_save_IFS
13555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13556 if test -n "$ac_ct_DSYMUTIL"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13558 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13564 if test "x$ac_ct_DSYMUTIL" = x; then
13565 DSYMUTIL=":"
13566 else
13567 case $cross_compiling:$ac_tool_warned in
13568 yes:)
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13571 ac_tool_warned=yes ;;
13572 esac
13573 DSYMUTIL=$ac_ct_DSYMUTIL
13575 else
13576 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13579 if test -n "$ac_tool_prefix"; then
13580 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 if test -n "$NMEDIT"; then
13588 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13601 done
13602 done
13603 IFS=$as_save_IFS
13607 NMEDIT=$ac_cv_prog_NMEDIT
13608 if test -n "$NMEDIT"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13610 $as_echo "$NMEDIT" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13618 if test -z "$ac_cv_prog_NMEDIT"; then
13619 ac_ct_NMEDIT=$NMEDIT
13620 # Extract the first word of "nmedit", so it can be a program name with args.
13621 set dummy nmedit; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$ac_ct_NMEDIT"; then
13628 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13641 done
13642 done
13643 IFS=$as_save_IFS
13647 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13648 if test -n "$ac_ct_NMEDIT"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13650 $as_echo "$ac_ct_NMEDIT" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13656 if test "x$ac_ct_NMEDIT" = x; then
13657 NMEDIT=":"
13658 else
13659 case $cross_compiling:$ac_tool_warned in
13660 yes:)
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13663 ac_tool_warned=yes ;;
13664 esac
13665 NMEDIT=$ac_ct_NMEDIT
13667 else
13668 NMEDIT="$ac_cv_prog_NMEDIT"
13671 if test -n "$ac_tool_prefix"; then
13672 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13673 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13675 $as_echo_n "checking for $ac_word... " >&6; }
13676 if test "${ac_cv_prog_LIPO+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 if test -n "$LIPO"; then
13680 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13681 else
13682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13683 for as_dir in $PATH
13685 IFS=$as_save_IFS
13686 test -z "$as_dir" && as_dir=.
13687 for ac_exec_ext in '' $ac_executable_extensions; do
13688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13689 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13691 break 2
13693 done
13694 done
13695 IFS=$as_save_IFS
13699 LIPO=$ac_cv_prog_LIPO
13700 if test -n "$LIPO"; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13702 $as_echo "$LIPO" >&6; }
13703 else
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13710 if test -z "$ac_cv_prog_LIPO"; then
13711 ac_ct_LIPO=$LIPO
13712 # Extract the first word of "lipo", so it can be a program name with args.
13713 set dummy lipo; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 if test -n "$ac_ct_LIPO"; then
13720 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13721 else
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13729 ac_cv_prog_ac_ct_LIPO="lipo"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13733 done
13734 done
13735 IFS=$as_save_IFS
13739 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13740 if test -n "$ac_ct_LIPO"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13742 $as_echo "$ac_ct_LIPO" >&6; }
13743 else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13748 if test "x$ac_ct_LIPO" = x; then
13749 LIPO=":"
13750 else
13751 case $cross_compiling:$ac_tool_warned in
13752 yes:)
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13755 ac_tool_warned=yes ;;
13756 esac
13757 LIPO=$ac_ct_LIPO
13759 else
13760 LIPO="$ac_cv_prog_LIPO"
13763 if test -n "$ac_tool_prefix"; then
13764 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13765 set dummy ${ac_tool_prefix}otool; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$OTOOL"; then
13772 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13781 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13785 done
13786 done
13787 IFS=$as_save_IFS
13791 OTOOL=$ac_cv_prog_OTOOL
13792 if test -n "$OTOOL"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13794 $as_echo "$OTOOL" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13802 if test -z "$ac_cv_prog_OTOOL"; then
13803 ac_ct_OTOOL=$OTOOL
13804 # Extract the first word of "otool", so it can be a program name with args.
13805 set dummy otool; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 if test -n "$ac_ct_OTOOL"; then
13812 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13813 else
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13817 IFS=$as_save_IFS
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13821 ac_cv_prog_ac_ct_OTOOL="otool"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 break 2
13825 done
13826 done
13827 IFS=$as_save_IFS
13831 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13832 if test -n "$ac_ct_OTOOL"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13834 $as_echo "$ac_ct_OTOOL" >&6; }
13835 else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13840 if test "x$ac_ct_OTOOL" = x; then
13841 OTOOL=":"
13842 else
13843 case $cross_compiling:$ac_tool_warned in
13844 yes:)
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13847 ac_tool_warned=yes ;;
13848 esac
13849 OTOOL=$ac_ct_OTOOL
13851 else
13852 OTOOL="$ac_cv_prog_OTOOL"
13855 if test -n "$ac_tool_prefix"; then
13856 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13857 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 if test -n "$OTOOL64"; then
13864 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13865 else
13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867 for as_dir in $PATH
13869 IFS=$as_save_IFS
13870 test -z "$as_dir" && as_dir=.
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13873 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13875 break 2
13877 done
13878 done
13879 IFS=$as_save_IFS
13883 OTOOL64=$ac_cv_prog_OTOOL64
13884 if test -n "$OTOOL64"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13886 $as_echo "$OTOOL64" >&6; }
13887 else
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13894 if test -z "$ac_cv_prog_OTOOL64"; then
13895 ac_ct_OTOOL64=$OTOOL64
13896 # Extract the first word of "otool64", so it can be a program name with args.
13897 set dummy otool64; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 if test -n "$ac_ct_OTOOL64"; then
13904 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13913 ac_cv_prog_ac_ct_OTOOL64="otool64"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13917 done
13918 done
13919 IFS=$as_save_IFS
13923 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13924 if test -n "$ac_ct_OTOOL64"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13926 $as_echo "$ac_ct_OTOOL64" >&6; }
13927 else
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13932 if test "x$ac_ct_OTOOL64" = x; then
13933 OTOOL64=":"
13934 else
13935 case $cross_compiling:$ac_tool_warned in
13936 yes:)
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13939 ac_tool_warned=yes ;;
13940 esac
13941 OTOOL64=$ac_ct_OTOOL64
13943 else
13944 OTOOL64="$ac_cv_prog_OTOOL64"
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13974 $as_echo_n "checking for -single_module linker flag... " >&6; }
13975 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 lt_cv_apple_cc_single_mod=no
13979 if test -z "${LT_MULTI_MODULE}"; then
13980 # By default we will add the -single_module flag. You can override
13981 # by either setting the environment variable LT_MULTI_MODULE
13982 # non-empty at configure time, or by adding -multi_module to the
13983 # link flags.
13984 rm -rf libconftest.dylib*
13985 echo "int foo(void){return 1;}" > conftest.c
13986 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13987 -dynamiclib -Wl,-single_module conftest.c" >&5
13988 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13989 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13990 _lt_result=$?
13991 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13992 lt_cv_apple_cc_single_mod=yes
13993 else
13994 cat conftest.err >&5
13996 rm -rf libconftest.dylib*
13997 rm -f conftest.*
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14001 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14003 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14004 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 lt_cv_ld_exported_symbols_list=no
14008 save_LDFLAGS=$LDFLAGS
14009 echo "_main" > conftest.sym
14010 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14015 main ()
14019 return 0;
14021 _ACEOF
14022 if ac_fn_c_try_link "$LINENO"; then :
14023 lt_cv_ld_exported_symbols_list=yes
14024 else
14025 lt_cv_ld_exported_symbols_list=no
14027 rm -f core conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
14029 LDFLAGS="$save_LDFLAGS"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14033 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14035 $as_echo_n "checking for -force_load linker flag... " >&6; }
14036 if test "${lt_cv_ld_force_load+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 lt_cv_ld_force_load=no
14040 cat > conftest.c << _LT_EOF
14041 int forced_loaded() { return 2;}
14042 _LT_EOF
14043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14045 echo "$AR cru libconftest.a conftest.o" >&5
14046 $AR cru libconftest.a conftest.o 2>&5
14047 cat > conftest.c << _LT_EOF
14048 int main() { return 0;}
14049 _LT_EOF
14050 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14051 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14052 _lt_result=$?
14053 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14054 lt_cv_ld_force_load=yes
14055 else
14056 cat conftest.err >&5
14058 rm -f conftest.err libconftest.a conftest conftest.c
14059 rm -rf conftest.dSYM
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14063 $as_echo "$lt_cv_ld_force_load" >&6; }
14064 case $host_os in
14065 rhapsody* | darwin1.[012])
14066 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14067 darwin1.*)
14068 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14069 darwin*) # darwin 5.x on
14070 # if running on 10.5 or later, the deployment target defaults
14071 # to the OS version, if on x86, and 10.4, the deployment
14072 # target defaults to 10.4. Don't you love it?
14073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14074 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14075 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14076 10.[012]*)
14077 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14078 10.*)
14079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14080 esac
14082 esac
14083 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14084 _lt_dar_single_mod='$single_module'
14086 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14087 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14088 else
14089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14091 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14092 _lt_dsymutil='~$DSYMUTIL $lib || :'
14093 else
14094 _lt_dsymutil=
14097 esac
14099 for ac_header in dlfcn.h
14100 do :
14101 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14102 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_DLFCN_H 1
14105 _ACEOF
14108 done
14114 # Set options
14118 enable_dlopen=no
14121 enable_win32_dll=no
14124 # Check whether --enable-shared was given.
14125 if test "${enable_shared+set}" = set; then :
14126 enableval=$enable_shared; p=${PACKAGE-default}
14127 case $enableval in
14128 yes) enable_shared=yes ;;
14129 no) enable_shared=no ;;
14131 enable_shared=no
14132 # Look at the argument we got. We use all the common list separators.
14133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14134 for pkg in $enableval; do
14135 IFS="$lt_save_ifs"
14136 if test "X$pkg" = "X$p"; then
14137 enable_shared=yes
14139 done
14140 IFS="$lt_save_ifs"
14142 esac
14143 else
14144 enable_shared=yes
14155 # Check whether --enable-static was given.
14156 if test "${enable_static+set}" = set; then :
14157 enableval=$enable_static; p=${PACKAGE-default}
14158 case $enableval in
14159 yes) enable_static=yes ;;
14160 no) enable_static=no ;;
14162 enable_static=no
14163 # Look at the argument we got. We use all the common list separators.
14164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14165 for pkg in $enableval; do
14166 IFS="$lt_save_ifs"
14167 if test "X$pkg" = "X$p"; then
14168 enable_static=yes
14170 done
14171 IFS="$lt_save_ifs"
14173 esac
14174 else
14175 enable_static=yes
14187 # Check whether --with-pic was given.
14188 if test "${with_pic+set}" = set; then :
14189 withval=$with_pic; p=${PACKAGE-default}
14190 case "$withval" in
14191 yes|no) pic_mode="$withval" ;;
14193 pic_mode=default
14194 # Look at the argument we got. We use all the common list separators.
14195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14196 for pkg in $withval; do
14197 IFS="$lt_save_ifs"
14198 if test "X$pkg" = "X$p"; then
14199 pic_mode=yes
14201 done
14202 IFS="$lt_save_ifs"
14204 esac
14205 else
14206 pic_mode=default
14210 test -z "$pic_mode" && pic_mode=default
14218 # Check whether --enable-fast-install was given.
14219 if test "${enable_fast_install+set}" = set; then :
14220 enableval=$enable_fast_install; p=${PACKAGE-default}
14221 case $enableval in
14222 yes) enable_fast_install=yes ;;
14223 no) enable_fast_install=no ;;
14225 enable_fast_install=no
14226 # Look at the argument we got. We use all the common list separators.
14227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14228 for pkg in $enableval; do
14229 IFS="$lt_save_ifs"
14230 if test "X$pkg" = "X$p"; then
14231 enable_fast_install=yes
14233 done
14234 IFS="$lt_save_ifs"
14236 esac
14237 else
14238 enable_fast_install=yes
14251 # This can be used to rebuild libtool when needed
14252 LIBTOOL_DEPS="$ltmain"
14254 # Always use our own libtool.
14255 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14282 test -z "$LN_S" && LN_S="ln -s"
14297 if test -n "${ZSH_VERSION+set}" ; then
14298 setopt NO_GLOB_SUBST
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14302 $as_echo_n "checking for objdir... " >&6; }
14303 if test "${lt_cv_objdir+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 rm -f .libs 2>/dev/null
14307 mkdir .libs 2>/dev/null
14308 if test -d .libs; then
14309 lt_cv_objdir=.libs
14310 else
14311 # MS-DOS does not allow filenames that begin with a dot.
14312 lt_cv_objdir=_libs
14314 rmdir .libs 2>/dev/null
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14317 $as_echo "$lt_cv_objdir" >&6; }
14318 objdir=$lt_cv_objdir
14324 cat >>confdefs.h <<_ACEOF
14325 #define LT_OBJDIR "$lt_cv_objdir/"
14326 _ACEOF
14331 case $host_os in
14332 aix3*)
14333 # AIX sometimes has problems with the GCC collect2 program. For some
14334 # reason, if we set the COLLECT_NAMES environment variable, the problems
14335 # vanish in a puff of smoke.
14336 if test "X${COLLECT_NAMES+set}" != Xset; then
14337 COLLECT_NAMES=
14338 export COLLECT_NAMES
14341 esac
14343 # Global variables:
14344 ofile=libtool
14345 can_build_shared=yes
14347 # All known linkers require a `.a' archive for static linking (except MSVC,
14348 # which needs '.lib').
14349 libext=a
14351 with_gnu_ld="$lt_cv_prog_gnu_ld"
14353 old_CC="$CC"
14354 old_CFLAGS="$CFLAGS"
14356 # Set sane defaults for various variables
14357 test -z "$CC" && CC=cc
14358 test -z "$LTCC" && LTCC=$CC
14359 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14360 test -z "$LD" && LD=ld
14361 test -z "$ac_objext" && ac_objext=o
14363 for cc_temp in $compiler""; do
14364 case $cc_temp in
14365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14367 \-*) ;;
14368 *) break;;
14369 esac
14370 done
14371 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14374 # Only perform the check for file, if the check method requires it
14375 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14376 case $deplibs_check_method in
14377 file_magic*)
14378 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14380 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14381 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 case $MAGIC_CMD in
14385 [\\/*] | ?:[\\/]*)
14386 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14389 lt_save_MAGIC_CMD="$MAGIC_CMD"
14390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14391 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14392 for ac_dir in $ac_dummy; do
14393 IFS="$lt_save_ifs"
14394 test -z "$ac_dir" && ac_dir=.
14395 if test -f $ac_dir/${ac_tool_prefix}file; then
14396 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14397 if test -n "$file_magic_test_file"; then
14398 case $deplibs_check_method in
14399 "file_magic "*)
14400 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14403 $EGREP "$file_magic_regex" > /dev/null; then
14405 else
14406 cat <<_LT_EOF 1>&2
14408 *** Warning: the command libtool uses to detect shared libraries,
14409 *** $file_magic_cmd, produces output that libtool cannot recognize.
14410 *** The result is that libtool may fail to recognize shared libraries
14411 *** as such. This will affect the creation of libtool libraries that
14412 *** depend on shared libraries, but programs linked with such libtool
14413 *** libraries will work regardless of this problem. Nevertheless, you
14414 *** may want to report the problem to your system manager and/or to
14415 *** bug-libtool@gnu.org
14417 _LT_EOF
14418 fi ;;
14419 esac
14421 break
14423 done
14424 IFS="$lt_save_ifs"
14425 MAGIC_CMD="$lt_save_MAGIC_CMD"
14427 esac
14430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14431 if test -n "$MAGIC_CMD"; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14433 $as_echo "$MAGIC_CMD" >&6; }
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14443 if test -z "$lt_cv_path_MAGIC_CMD"; then
14444 if test -n "$ac_tool_prefix"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14446 $as_echo_n "checking for file... " >&6; }
14447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 case $MAGIC_CMD in
14451 [\\/*] | ?:[\\/]*)
14452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14455 lt_save_MAGIC_CMD="$MAGIC_CMD"
14456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14458 for ac_dir in $ac_dummy; do
14459 IFS="$lt_save_ifs"
14460 test -z "$ac_dir" && ac_dir=.
14461 if test -f $ac_dir/file; then
14462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14463 if test -n "$file_magic_test_file"; then
14464 case $deplibs_check_method in
14465 "file_magic "*)
14466 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14469 $EGREP "$file_magic_regex" > /dev/null; then
14471 else
14472 cat <<_LT_EOF 1>&2
14474 *** Warning: the command libtool uses to detect shared libraries,
14475 *** $file_magic_cmd, produces output that libtool cannot recognize.
14476 *** The result is that libtool may fail to recognize shared libraries
14477 *** as such. This will affect the creation of libtool libraries that
14478 *** depend on shared libraries, but programs linked with such libtool
14479 *** libraries will work regardless of this problem. Nevertheless, you
14480 *** may want to report the problem to your system manager and/or to
14481 *** bug-libtool@gnu.org
14483 _LT_EOF
14484 fi ;;
14485 esac
14487 break
14489 done
14490 IFS="$lt_save_ifs"
14491 MAGIC_CMD="$lt_save_MAGIC_CMD"
14493 esac
14496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14497 if test -n "$MAGIC_CMD"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14499 $as_echo "$MAGIC_CMD" >&6; }
14500 else
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14506 else
14507 MAGIC_CMD=:
14513 esac
14515 # Use C for the default configuration in the libtool script
14517 lt_save_CC="$CC"
14518 ac_ext=c
14519 ac_cpp='$CPP $CPPFLAGS'
14520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14525 # Source file extension for C test sources.
14526 ac_ext=c
14528 # Object file extension for compiled C test sources.
14529 objext=o
14530 objext=$objext
14532 # Code to be used in simple compile tests
14533 lt_simple_compile_test_code="int some_variable = 0;"
14535 # Code to be used in simple link tests
14536 lt_simple_link_test_code='int main(){return(0);}'
14544 # If no C compiler was specified, use CC.
14545 LTCC=${LTCC-"$CC"}
14547 # If no C compiler flags were specified, use CFLAGS.
14548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14550 # Allow CC to be a program name with arguments.
14551 compiler=$CC
14553 # Save the default compiler, since it gets overwritten when the other
14554 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14555 compiler_DEFAULT=$CC
14557 # save warnings/boilerplate of simple test code
14558 ac_outfile=conftest.$ac_objext
14559 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14560 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14561 _lt_compiler_boilerplate=`cat conftest.err`
14562 $RM conftest*
14564 ac_outfile=conftest.$ac_objext
14565 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14566 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14567 _lt_linker_boilerplate=`cat conftest.err`
14568 $RM -r conftest*
14571 ## CAVEAT EMPTOR:
14572 ## There is no encapsulation within the following macros, do not change
14573 ## the running order or otherwise move them around unless you know exactly
14574 ## what you are doing...
14575 if test -n "$compiler"; then
14577 lt_prog_compiler_no_builtin_flag=
14579 if test "$GCC" = yes; then
14580 case $cc_basename in
14581 nvcc*)
14582 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14584 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14585 esac
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14588 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14589 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 lt_cv_prog_compiler_rtti_exceptions=no
14593 ac_outfile=conftest.$ac_objext
14594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 lt_compiler_flag="-fno-rtti -fno-exceptions"
14596 # Insert the option either (1) after the last *FLAGS variable, or
14597 # (2) before a word containing "conftest.", or (3) at the end.
14598 # Note that $ac_compile itself does not contain backslashes and begins
14599 # with a dollar sign (not a hyphen), so the echo should work correctly.
14600 # The option is referenced via a variable to avoid confusing sed.
14601 lt_compile=`echo "$ac_compile" | $SED \
14602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14604 -e 's:$: $lt_compiler_flag:'`
14605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14606 (eval "$lt_compile" 2>conftest.err)
14607 ac_status=$?
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 if (exit $ac_status) && test -s "$ac_outfile"; then
14611 # The compiler can only warn and ignore the option if not recognized
14612 # So say no if there are warnings other than the usual output.
14613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14616 lt_cv_prog_compiler_rtti_exceptions=yes
14619 $RM conftest*
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14623 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14625 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14626 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14627 else
14638 lt_prog_compiler_wl=
14639 lt_prog_compiler_pic=
14640 lt_prog_compiler_static=
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14643 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14645 if test "$GCC" = yes; then
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_static='-static'
14649 case $host_os in
14650 aix*)
14651 # All AIX code is PIC.
14652 if test "$host_cpu" = ia64; then
14653 # AIX 5 now supports IA64 processor
14654 lt_prog_compiler_static='-Bstatic'
14658 amigaos*)
14659 case $host_cpu in
14660 powerpc)
14661 # see comment about AmigaOS4 .so support
14662 lt_prog_compiler_pic='-fPIC'
14664 m68k)
14665 # FIXME: we need at least 68020 code to build shared libraries, but
14666 # adding the `-m68020' flag to GCC prevents building anything better,
14667 # like `-m68040'.
14668 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14670 esac
14673 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14674 # PIC is the default for these OSes.
14677 mingw* | cygwin* | pw32* | os2* | cegcc*)
14678 # This hack is so that the source file can tell whether it is being
14679 # built for inclusion in a dll (and should export symbols for example).
14680 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14681 # (--disable-auto-import) libraries
14682 lt_prog_compiler_pic='-DDLL_EXPORT'
14685 darwin* | rhapsody*)
14686 # PIC is the default on this platform
14687 # Common symbols not allowed in MH_DYLIB files
14688 lt_prog_compiler_pic='-fno-common'
14691 haiku*)
14692 # PIC is the default for Haiku.
14693 # The "-static" flag exists, but is broken.
14694 lt_prog_compiler_static=
14697 hpux*)
14698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14700 # sets the default TLS model and affects inlining.
14701 case $host_cpu in
14702 hppa*64*)
14703 # +Z the default
14706 lt_prog_compiler_pic='-fPIC'
14708 esac
14711 interix[3-9]*)
14712 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14713 # Instead, we relocate shared libraries at runtime.
14716 msdosdjgpp*)
14717 # Just because we use GCC doesn't mean we suddenly get shared libraries
14718 # on systems that don't support them.
14719 lt_prog_compiler_can_build_shared=no
14720 enable_shared=no
14723 *nto* | *qnx*)
14724 # QNX uses GNU C++, but need to define -shared option too, otherwise
14725 # it will coredump.
14726 lt_prog_compiler_pic='-fPIC -shared'
14729 sysv4*MP*)
14730 if test -d /usr/nec; then
14731 lt_prog_compiler_pic=-Kconform_pic
14736 lt_prog_compiler_pic='-fPIC'
14738 esac
14740 case $cc_basename in
14741 nvcc*) # Cuda Compiler Driver 2.2
14742 lt_prog_compiler_wl='-Xlinker '
14743 lt_prog_compiler_pic='-Xcompiler -fPIC'
14745 esac
14746 else
14747 # PORTME Check for flag to pass linker flags through the system compiler.
14748 case $host_os in
14749 aix*)
14750 lt_prog_compiler_wl='-Wl,'
14751 if test "$host_cpu" = ia64; then
14752 # AIX 5 now supports IA64 processor
14753 lt_prog_compiler_static='-Bstatic'
14754 else
14755 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14759 mingw* | cygwin* | pw32* | os2* | cegcc*)
14760 # This hack is so that the source file can tell whether it is being
14761 # built for inclusion in a dll (and should export symbols for example).
14762 lt_prog_compiler_pic='-DDLL_EXPORT'
14765 hpux9* | hpux10* | hpux11*)
14766 lt_prog_compiler_wl='-Wl,'
14767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14768 # not for PA HP-UX.
14769 case $host_cpu in
14770 hppa*64*|ia64*)
14771 # +Z the default
14774 lt_prog_compiler_pic='+Z'
14776 esac
14777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14778 lt_prog_compiler_static='${wl}-a ${wl}archive'
14781 irix5* | irix6* | nonstopux*)
14782 lt_prog_compiler_wl='-Wl,'
14783 # PIC (with -KPIC) is the default.
14784 lt_prog_compiler_static='-non_shared'
14787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14788 case $cc_basename in
14789 # old Intel for x86_64 which still supported -KPIC.
14790 ecc*)
14791 lt_prog_compiler_wl='-Wl,'
14792 lt_prog_compiler_pic='-KPIC'
14793 lt_prog_compiler_static='-static'
14795 # icc used to be incompatible with GCC.
14796 # ICC 10 doesn't accept -KPIC any more.
14797 icc* | ifort*)
14798 lt_prog_compiler_wl='-Wl,'
14799 lt_prog_compiler_pic='-fPIC'
14800 lt_prog_compiler_static='-static'
14802 # Lahey Fortran 8.1.
14803 lf95*)
14804 lt_prog_compiler_wl='-Wl,'
14805 lt_prog_compiler_pic='--shared'
14806 lt_prog_compiler_static='--static'
14808 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14809 # Portland Group compilers (*not* the Pentium gcc compiler,
14810 # which looks to be a dead project)
14811 lt_prog_compiler_wl='-Wl,'
14812 lt_prog_compiler_pic='-fpic'
14813 lt_prog_compiler_static='-Bstatic'
14815 ccc*)
14816 lt_prog_compiler_wl='-Wl,'
14817 # All Alpha code is PIC.
14818 lt_prog_compiler_static='-non_shared'
14820 xl* | bgxl* | bgf* | mpixl*)
14821 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14822 lt_prog_compiler_wl='-Wl,'
14823 lt_prog_compiler_pic='-qpic'
14824 lt_prog_compiler_static='-qstaticlink'
14827 case `$CC -V 2>&1 | sed 5q` in
14828 *Sun\ F* | *Sun*Fortran*)
14829 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14830 lt_prog_compiler_pic='-KPIC'
14831 lt_prog_compiler_static='-Bstatic'
14832 lt_prog_compiler_wl=''
14834 *Sun\ C*)
14835 # Sun C 5.9
14836 lt_prog_compiler_pic='-KPIC'
14837 lt_prog_compiler_static='-Bstatic'
14838 lt_prog_compiler_wl='-Wl,'
14840 esac
14842 esac
14845 newsos6)
14846 lt_prog_compiler_pic='-KPIC'
14847 lt_prog_compiler_static='-Bstatic'
14850 *nto* | *qnx*)
14851 # QNX uses GNU C++, but need to define -shared option too, otherwise
14852 # it will coredump.
14853 lt_prog_compiler_pic='-fPIC -shared'
14856 osf3* | osf4* | osf5*)
14857 lt_prog_compiler_wl='-Wl,'
14858 # All OSF/1 code is PIC.
14859 lt_prog_compiler_static='-non_shared'
14862 rdos*)
14863 lt_prog_compiler_static='-non_shared'
14866 solaris*)
14867 lt_prog_compiler_pic='-KPIC'
14868 lt_prog_compiler_static='-Bstatic'
14869 case $cc_basename in
14870 f77* | f90* | f95*)
14871 lt_prog_compiler_wl='-Qoption ld ';;
14873 lt_prog_compiler_wl='-Wl,';;
14874 esac
14877 sunos4*)
14878 lt_prog_compiler_wl='-Qoption ld '
14879 lt_prog_compiler_pic='-PIC'
14880 lt_prog_compiler_static='-Bstatic'
14883 sysv4 | sysv4.2uw2* | sysv4.3*)
14884 lt_prog_compiler_wl='-Wl,'
14885 lt_prog_compiler_pic='-KPIC'
14886 lt_prog_compiler_static='-Bstatic'
14889 sysv4*MP*)
14890 if test -d /usr/nec ;then
14891 lt_prog_compiler_pic='-Kconform_pic'
14892 lt_prog_compiler_static='-Bstatic'
14896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14897 lt_prog_compiler_wl='-Wl,'
14898 lt_prog_compiler_pic='-KPIC'
14899 lt_prog_compiler_static='-Bstatic'
14902 unicos*)
14903 lt_prog_compiler_wl='-Wl,'
14904 lt_prog_compiler_can_build_shared=no
14907 uts4*)
14908 lt_prog_compiler_pic='-pic'
14909 lt_prog_compiler_static='-Bstatic'
14913 lt_prog_compiler_can_build_shared=no
14915 esac
14918 case $host_os in
14919 # For platforms which do not support PIC, -DPIC is meaningless:
14920 *djgpp*)
14921 lt_prog_compiler_pic=
14924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14926 esac
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14928 $as_echo "$lt_prog_compiler_pic" >&6; }
14936 # Check to make sure the PIC flag actually works.
14938 if test -n "$lt_prog_compiler_pic"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14941 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 lt_cv_prog_compiler_pic_works=no
14945 ac_outfile=conftest.$ac_objext
14946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14947 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14948 # Insert the option either (1) after the last *FLAGS variable, or
14949 # (2) before a word containing "conftest.", or (3) at the end.
14950 # Note that $ac_compile itself does not contain backslashes and begins
14951 # with a dollar sign (not a hyphen), so the echo should work correctly.
14952 # The option is referenced via a variable to avoid confusing sed.
14953 lt_compile=`echo "$ac_compile" | $SED \
14954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956 -e 's:$: $lt_compiler_flag:'`
14957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14958 (eval "$lt_compile" 2>conftest.err)
14959 ac_status=$?
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 if (exit $ac_status) && test -s "$ac_outfile"; then
14963 # The compiler can only warn and ignore the option if not recognized
14964 # So say no if there are warnings other than the usual output.
14965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14968 lt_cv_prog_compiler_pic_works=yes
14971 $RM conftest*
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14975 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14977 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14978 case $lt_prog_compiler_pic in
14979 "" | " "*) ;;
14980 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14981 esac
14982 else
14983 lt_prog_compiler_pic=
14984 lt_prog_compiler_can_build_shared=no
14995 # Check to make sure the static flag actually works.
14997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15000 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 lt_cv_prog_compiler_static_works=no
15004 save_LDFLAGS="$LDFLAGS"
15005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15008 # The linker can only warn and ignore the option if not recognized
15009 # So say no if there are warnings
15010 if test -s conftest.err; then
15011 # Append any errors to the config.log.
15012 cat conftest.err 1>&5
15013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15015 if diff conftest.exp conftest.er2 >/dev/null; then
15016 lt_cv_prog_compiler_static_works=yes
15018 else
15019 lt_cv_prog_compiler_static_works=yes
15022 $RM -r conftest*
15023 LDFLAGS="$save_LDFLAGS"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15031 else
15032 lt_prog_compiler_static=
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 lt_cv_prog_compiler_c_o=no
15047 $RM -r conftest 2>/dev/null
15048 mkdir conftest
15049 cd conftest
15050 mkdir out
15051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053 lt_compiler_flag="-o out/conftest2.$ac_objext"
15054 # Insert the option either (1) after the last *FLAGS variable, or
15055 # (2) before a word containing "conftest.", or (3) at the end.
15056 # Note that $ac_compile itself does not contain backslashes and begins
15057 # with a dollar sign (not a hyphen), so the echo should work correctly.
15058 lt_compile=`echo "$ac_compile" | $SED \
15059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
15062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15063 (eval "$lt_compile" 2>out/conftest.err)
15064 ac_status=$?
15065 cat out/conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15068 then
15069 # The compiler can only warn and ignore the option if not recognized
15070 # So say no if there are warnings
15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15074 lt_cv_prog_compiler_c_o=yes
15077 chmod u+w . 2>&5
15078 $RM conftest*
15079 # SGI C++ compiler will create directory out/ii_files/ for
15080 # template instantiation
15081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15082 $RM out/* && rmdir out
15083 cd ..
15084 $RM -r conftest
15085 $RM conftest*
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15099 $as_echo_n "(cached) " >&6
15100 else
15101 lt_cv_prog_compiler_c_o=no
15102 $RM -r conftest 2>/dev/null
15103 mkdir conftest
15104 cd conftest
15105 mkdir out
15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15108 lt_compiler_flag="-o out/conftest2.$ac_objext"
15109 # Insert the option either (1) after the last *FLAGS variable, or
15110 # (2) before a word containing "conftest.", or (3) at the end.
15111 # Note that $ac_compile itself does not contain backslashes and begins
15112 # with a dollar sign (not a hyphen), so the echo should work correctly.
15113 lt_compile=`echo "$ac_compile" | $SED \
15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15116 -e 's:$: $lt_compiler_flag:'`
15117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15118 (eval "$lt_compile" 2>out/conftest.err)
15119 ac_status=$?
15120 cat out/conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15123 then
15124 # The compiler can only warn and ignore the option if not recognized
15125 # So say no if there are warnings
15126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15129 lt_cv_prog_compiler_c_o=yes
15132 chmod u+w . 2>&5
15133 $RM conftest*
15134 # SGI C++ compiler will create directory out/ii_files/ for
15135 # template instantiation
15136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15137 $RM out/* && rmdir out
15138 cd ..
15139 $RM -r conftest
15140 $RM conftest*
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15149 hard_links="nottested"
15150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15151 # do not overwrite the value of need_locks provided by the user
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15153 $as_echo_n "checking if we can lock with hard links... " >&6; }
15154 hard_links=yes
15155 $RM conftest*
15156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15157 touch conftest.a
15158 ln conftest.a conftest.b 2>&5 || hard_links=no
15159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15161 $as_echo "$hard_links" >&6; }
15162 if test "$hard_links" = no; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15165 need_locks=warn
15167 else
15168 need_locks=no
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15179 runpath_var=
15180 allow_undefined_flag=
15181 always_export_symbols=no
15182 archive_cmds=
15183 archive_expsym_cmds=
15184 compiler_needs_object=no
15185 enable_shared_with_static_runtimes=no
15186 export_dynamic_flag_spec=
15187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15188 hardcode_automatic=no
15189 hardcode_direct=no
15190 hardcode_direct_absolute=no
15191 hardcode_libdir_flag_spec=
15192 hardcode_libdir_flag_spec_ld=
15193 hardcode_libdir_separator=
15194 hardcode_minus_L=no
15195 hardcode_shlibpath_var=unsupported
15196 inherit_rpath=no
15197 link_all_deplibs=unknown
15198 module_cmds=
15199 module_expsym_cmds=
15200 old_archive_from_new_cmds=
15201 old_archive_from_expsyms_cmds=
15202 thread_safe_flag_spec=
15203 whole_archive_flag_spec=
15204 # include_expsyms should be a list of space-separated symbols to be *always*
15205 # included in the symbol list
15206 include_expsyms=
15207 # exclude_expsyms can be an extended regexp of symbols to exclude
15208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15210 # as well as any symbol that contains `d'.
15211 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15213 # platforms (ab)use it in PIC code, but their linkers get confused if
15214 # the symbol is explicitly referenced. Since portable code cannot
15215 # rely on this symbol name, it's probably fine to never include it in
15216 # preloaded symbol tables.
15217 # Exclude shared library initialization/finalization symbols.
15218 extract_expsyms_cmds=
15220 case $host_os in
15221 cygwin* | mingw* | pw32* | cegcc*)
15222 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15223 # When not using gcc, we currently assume that we are using
15224 # Microsoft Visual C++.
15225 if test "$GCC" != yes; then
15226 with_gnu_ld=no
15229 interix*)
15230 # we just hope/assume this is gcc and not c89 (= MSVC++)
15231 with_gnu_ld=yes
15233 openbsd*)
15234 with_gnu_ld=no
15236 esac
15238 ld_shlibs=yes
15240 # On some targets, GNU ld is compatible enough with the native linker
15241 # that we're better off using the native interface for both.
15242 lt_use_gnu_ld_interface=no
15243 if test "$with_gnu_ld" = yes; then
15244 case $host_os in
15245 aix*)
15246 # The AIX port of GNU ld has always aspired to compatibility
15247 # with the native linker. However, as the warning in the GNU ld
15248 # block says, versions before 2.19.5* couldn't really create working
15249 # shared libraries, regardless of the interface used.
15250 case `$LD -v 2>&1` in
15251 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15252 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15253 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15255 lt_use_gnu_ld_interface=yes
15257 esac
15260 lt_use_gnu_ld_interface=yes
15262 esac
15265 if test "$lt_use_gnu_ld_interface" = yes; then
15266 # If archive_cmds runs LD, not CC, wlarc should be empty
15267 wlarc='${wl}'
15269 # Set some defaults for GNU ld with shared library support. These
15270 # are reset later if shared libraries are not supported. Putting them
15271 # here allows them to be overridden if necessary.
15272 runpath_var=LD_RUN_PATH
15273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15274 export_dynamic_flag_spec='${wl}--export-dynamic'
15275 # ancient GNU ld didn't support --whole-archive et. al.
15276 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15278 else
15279 whole_archive_flag_spec=
15281 supports_anon_versioning=no
15282 case `$LD -v 2>&1` in
15283 *GNU\ gold*) supports_anon_versioning=yes ;;
15284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15287 *\ 2.11.*) ;; # other 2.11 versions
15288 *) supports_anon_versioning=yes ;;
15289 esac
15291 # See if GNU ld supports shared libraries.
15292 case $host_os in
15293 aix[3-9]*)
15294 # On AIX/PPC, the GNU linker is very broken
15295 if test "$host_cpu" != ia64; then
15296 ld_shlibs=no
15297 cat <<_LT_EOF 1>&2
15299 *** Warning: the GNU linker, at least up to release 2.19, is reported
15300 *** to be unable to reliably create shared libraries on AIX.
15301 *** Therefore, libtool is disabling shared libraries support. If you
15302 *** really care for shared libraries, you may want to install binutils
15303 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15304 *** You will then need to restart the configuration process.
15306 _LT_EOF
15310 amigaos*)
15311 case $host_cpu in
15312 powerpc)
15313 # see comment about AmigaOS4 .so support
15314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315 archive_expsym_cmds=''
15317 m68k)
15318 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)'
15319 hardcode_libdir_flag_spec='-L$libdir'
15320 hardcode_minus_L=yes
15322 esac
15325 beos*)
15326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15327 allow_undefined_flag=unsupported
15328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15329 # support --undefined. This deserves some investigation. FIXME
15330 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15331 else
15332 ld_shlibs=no
15336 cygwin* | mingw* | pw32* | cegcc*)
15337 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15338 # as there is no search path for DLLs.
15339 hardcode_libdir_flag_spec='-L$libdir'
15340 export_dynamic_flag_spec='${wl}--export-all-symbols'
15341 allow_undefined_flag=unsupported
15342 always_export_symbols=no
15343 enable_shared_with_static_runtimes=yes
15344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15346 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15348 # If the export-symbols file already is a .def file (1st line
15349 # is EXPORTS), use it as is; otherwise, prepend...
15350 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15351 cp $export_symbols $output_objdir/$soname.def;
15352 else
15353 echo EXPORTS > $output_objdir/$soname.def;
15354 cat $export_symbols >> $output_objdir/$soname.def;
15356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15357 else
15358 ld_shlibs=no
15362 haiku*)
15363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364 link_all_deplibs=yes
15367 interix[3-9]*)
15368 hardcode_direct=no
15369 hardcode_shlibpath_var=no
15370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15371 export_dynamic_flag_spec='${wl}-E'
15372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15373 # Instead, shared libraries are loaded at an image base (0x10000000 by
15374 # default) and relocated if they conflict, which is a slow very memory
15375 # consuming and fragmenting process. To avoid this, we pick a random,
15376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15379 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'
15382 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15383 tmp_diet=no
15384 if test "$host_os" = linux-dietlibc; then
15385 case $cc_basename in
15386 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15387 esac
15389 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15390 && test "$tmp_diet" = no
15391 then
15392 tmp_addflag=
15393 tmp_sharedflag='-shared'
15394 case $cc_basename,$host_cpu in
15395 pgcc*) # Portland Group C compiler
15396 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'
15397 tmp_addflag=' $pic_flag'
15399 pgf77* | pgf90* | pgf95* | pgfortran*)
15400 # Portland Group f77 and f90 compilers
15401 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'
15402 tmp_addflag=' $pic_flag -Mnomain' ;;
15403 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15404 tmp_addflag=' -i_dynamic' ;;
15405 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15406 tmp_addflag=' -i_dynamic -nofor_main' ;;
15407 ifc* | ifort*) # Intel Fortran compiler
15408 tmp_addflag=' -nofor_main' ;;
15409 lf95*) # Lahey Fortran 8.1
15410 whole_archive_flag_spec=
15411 tmp_sharedflag='--shared' ;;
15412 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15413 tmp_sharedflag='-qmkshrobj'
15414 tmp_addflag= ;;
15415 nvcc*) # Cuda Compiler Driver 2.2
15416 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'
15417 compiler_needs_object=yes
15419 esac
15420 case `$CC -V 2>&1 | sed 5q` in
15421 *Sun\ C*) # Sun C 5.9
15422 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'
15423 compiler_needs_object=yes
15424 tmp_sharedflag='-G' ;;
15425 *Sun\ F*) # Sun Fortran 8.3
15426 tmp_sharedflag='-G' ;;
15427 esac
15428 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430 if test "x$supports_anon_versioning" = xyes; then
15431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15433 echo "local: *; };" >> $output_objdir/$libname.ver~
15434 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15437 case $cc_basename in
15438 xlf* | bgf* | bgxlf* | mpixlf*)
15439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15441 hardcode_libdir_flag_spec=
15442 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15443 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15444 if test "x$supports_anon_versioning" = xyes; then
15445 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15447 echo "local: *; };" >> $output_objdir/$libname.ver~
15448 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15451 esac
15452 else
15453 ld_shlibs=no
15457 netbsd*)
15458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15459 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15460 wlarc=
15461 else
15462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15467 solaris*)
15468 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15469 ld_shlibs=no
15470 cat <<_LT_EOF 1>&2
15472 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15473 *** create shared libraries on Solaris systems. Therefore, libtool
15474 *** is disabling shared libraries support. We urge you to upgrade GNU
15475 *** binutils to release 2.9.1 or newer. Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15479 _LT_EOF
15480 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483 else
15484 ld_shlibs=no
15488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15489 case `$LD -v 2>&1` in
15490 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15491 ld_shlibs=no
15492 cat <<_LT_EOF 1>&2
15494 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15495 *** reliably create shared libraries on SCO systems. Therefore, libtool
15496 *** is disabling shared libraries support. We urge you to upgrade GNU
15497 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15498 *** your PATH or compiler configuration so that the native linker is
15499 *** used, and then restart.
15501 _LT_EOF
15504 # For security reasons, it is highly recommended that you always
15505 # use absolute paths for naming shared libraries, and exclude the
15506 # DT_RUNPATH tag from executables and libraries. But doing so
15507 # requires that you compile everything twice, which is a pain.
15508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512 else
15513 ld_shlibs=no
15516 esac
15519 sunos4*)
15520 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521 wlarc=
15522 hardcode_direct=yes
15523 hardcode_shlibpath_var=no
15527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15530 else
15531 ld_shlibs=no
15534 esac
15536 if test "$ld_shlibs" = no; then
15537 runpath_var=
15538 hardcode_libdir_flag_spec=
15539 export_dynamic_flag_spec=
15540 whole_archive_flag_spec=
15542 else
15543 # PORTME fill in a description of your system's linker (not GNU ld)
15544 case $host_os in
15545 aix3*)
15546 allow_undefined_flag=unsupported
15547 always_export_symbols=yes
15548 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'
15549 # Note: this linker hardcodes the directories in LIBPATH if there
15550 # are no directories specified by -L.
15551 hardcode_minus_L=yes
15552 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15553 # Neither direct hardcoding nor static linking is supported with a
15554 # broken collect2.
15555 hardcode_direct=unsupported
15559 aix[4-9]*)
15560 if test "$host_cpu" = ia64; then
15561 # On IA64, the linker does run time linking by default, so we don't
15562 # have to do anything special.
15563 aix_use_runtimelinking=no
15564 exp_sym_flag='-Bexport'
15565 no_entry_flag=""
15566 else
15567 # If we're using GNU nm, then we don't want the "-C" option.
15568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15569 # Also, AIX nm treats weak defined symbols like other global
15570 # defined symbols, whereas GNU nm marks them as "W".
15571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15572 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'
15573 else
15574 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'
15576 aix_use_runtimelinking=no
15578 # Test if we are trying to use run time linking or normal
15579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15580 # need to do runtime linking.
15581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15582 for ld_flag in $LDFLAGS; do
15583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15584 aix_use_runtimelinking=yes
15585 break
15587 done
15589 esac
15591 exp_sym_flag='-bexport'
15592 no_entry_flag='-bnoentry'
15595 # When large executables or shared objects are built, AIX ld can
15596 # have problems creating the table of contents. If linking a library
15597 # or program results in "error TOC overflow" add -mminimal-toc to
15598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15601 archive_cmds=''
15602 hardcode_direct=yes
15603 hardcode_direct_absolute=yes
15604 hardcode_libdir_separator=':'
15605 link_all_deplibs=yes
15606 file_list_spec='${wl}-f,'
15608 if test "$GCC" = yes; then
15609 case $host_os in aix4.[012]|aix4.[012].*)
15610 # We only want to do this on AIX 4.2 and lower, the check
15611 # below for broken collect2 doesn't work under 4.3+
15612 collect2name=`${CC} -print-prog-name=collect2`
15613 if test -f "$collect2name" &&
15614 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15615 then
15616 # We have reworked collect2
15618 else
15619 # We have old collect2
15620 hardcode_direct=unsupported
15621 # It fails to find uninstalled libraries when the uninstalled
15622 # path is not listed in the libpath. Setting hardcode_minus_L
15623 # to unsupported forces relinking
15624 hardcode_minus_L=yes
15625 hardcode_libdir_flag_spec='-L$libdir'
15626 hardcode_libdir_separator=
15629 esac
15630 shared_flag='-shared'
15631 if test "$aix_use_runtimelinking" = yes; then
15632 shared_flag="$shared_flag "'${wl}-G'
15634 else
15635 # not using gcc
15636 if test "$host_cpu" = ia64; then
15637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15638 # chokes on -Wl,-G. The following line is correct:
15639 shared_flag='-G'
15640 else
15641 if test "$aix_use_runtimelinking" = yes; then
15642 shared_flag='${wl}-G'
15643 else
15644 shared_flag='${wl}-bM:SRE'
15649 export_dynamic_flag_spec='${wl}-bexpall'
15650 # It seems that -bexpall does not export symbols beginning with
15651 # underscore (_), so it is better to generate a list of symbols to export.
15652 always_export_symbols=yes
15653 if test "$aix_use_runtimelinking" = yes; then
15654 # Warning - without using the other runtime loading flags (-brtl),
15655 # -berok will link without error, but may produce a broken library.
15656 allow_undefined_flag='-berok'
15657 # Determine the default libpath from the value encoded in an
15658 # empty executable.
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15663 main ()
15667 return 0;
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15672 lt_aix_libpath_sed='
15673 /Import File Strings/,/^$/ {
15674 /^0/ {
15675 s/^0 *\(.*\)$/\1/
15679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15680 # Check for a 64-bit object if we didn't find anything.
15681 if test -z "$aix_libpath"; then
15682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15685 rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15690 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"
15691 else
15692 if test "$host_cpu" = ia64; then
15693 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15694 allow_undefined_flag="-z nodefs"
15695 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"
15696 else
15697 # Determine the default libpath from the value encoded in an
15698 # empty executable.
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15703 main ()
15707 return 0;
15709 _ACEOF
15710 if ac_fn_c_try_link "$LINENO"; then :
15712 lt_aix_libpath_sed='
15713 /Import File Strings/,/^$/ {
15714 /^0/ {
15715 s/^0 *\(.*\)$/\1/
15719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15720 # Check for a 64-bit object if we didn't find anything.
15721 if test -z "$aix_libpath"; then
15722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15730 # Warning - without using the other run time loading flags,
15731 # -berok will link without error, but may produce a broken library.
15732 no_undefined_flag=' ${wl}-bernotok'
15733 allow_undefined_flag=' ${wl}-berok'
15734 if test "$with_gnu_ld" = yes; then
15735 # We only use this code for GNU lds that support --whole-archive.
15736 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15737 else
15738 # Exported symbols can be pulled into shared objects from archives
15739 whole_archive_flag_spec='$convenience'
15741 archive_cmds_need_lc=yes
15742 # This is similar to how AIX traditionally builds its shared libraries.
15743 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'
15748 amigaos*)
15749 case $host_cpu in
15750 powerpc)
15751 # see comment about AmigaOS4 .so support
15752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15753 archive_expsym_cmds=''
15755 m68k)
15756 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)'
15757 hardcode_libdir_flag_spec='-L$libdir'
15758 hardcode_minus_L=yes
15760 esac
15763 bsdi[45]*)
15764 export_dynamic_flag_spec=-rdynamic
15767 cygwin* | mingw* | pw32* | cegcc*)
15768 # When not using gcc, we currently assume that we are using
15769 # Microsoft Visual C++.
15770 # hardcode_libdir_flag_spec is actually meaningless, as there is
15771 # no search path for DLLs.
15772 hardcode_libdir_flag_spec=' '
15773 allow_undefined_flag=unsupported
15774 # Tell ltmain to make .lib files, not .a files.
15775 libext=lib
15776 # Tell ltmain to make .dll files, not .so files.
15777 shrext_cmds=".dll"
15778 # FIXME: Setting linknames here is a bad hack.
15779 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15780 # The linker will automatically build a .lib file if we build a DLL.
15781 old_archive_from_new_cmds='true'
15782 # FIXME: Should let the user specify the lib program.
15783 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15784 fix_srcfile_path='`cygpath -w "$srcfile"`'
15785 enable_shared_with_static_runtimes=yes
15788 darwin* | rhapsody*)
15791 archive_cmds_need_lc=no
15792 hardcode_direct=no
15793 hardcode_automatic=yes
15794 hardcode_shlibpath_var=unsupported
15795 if test "$lt_cv_ld_force_load" = "yes"; then
15796 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\"`'
15797 else
15798 whole_archive_flag_spec=''
15800 link_all_deplibs=yes
15801 allow_undefined_flag="$_lt_dar_allow_undefined"
15802 case $cc_basename in
15803 ifort*) _lt_dar_can_shared=yes ;;
15804 *) _lt_dar_can_shared=$GCC ;;
15805 esac
15806 if test "$_lt_dar_can_shared" = "yes"; then
15807 output_verbose_link_cmd=func_echo_all
15808 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15809 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15810 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}"
15811 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}"
15813 else
15814 ld_shlibs=no
15819 dgux*)
15820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_libdir_flag_spec='-L$libdir'
15822 hardcode_shlibpath_var=no
15825 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15826 # support. Future versions do this automatically, but an explicit c++rt0.o
15827 # does not break anything, and helps significantly (at the cost of a little
15828 # extra space).
15829 freebsd2.2*)
15830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15831 hardcode_libdir_flag_spec='-R$libdir'
15832 hardcode_direct=yes
15833 hardcode_shlibpath_var=no
15836 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15837 freebsd2*)
15838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_direct=yes
15840 hardcode_minus_L=yes
15841 hardcode_shlibpath_var=no
15844 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15845 freebsd* | dragonfly*)
15846 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15847 hardcode_libdir_flag_spec='-R$libdir'
15848 hardcode_direct=yes
15849 hardcode_shlibpath_var=no
15852 hpux9*)
15853 if test "$GCC" = yes; then
15854 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'
15855 else
15856 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'
15858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15859 hardcode_libdir_separator=:
15860 hardcode_direct=yes
15862 # hardcode_minus_L: Not really in the search PATH,
15863 # but as the default location of the library.
15864 hardcode_minus_L=yes
15865 export_dynamic_flag_spec='${wl}-E'
15868 hpux10*)
15869 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15871 else
15872 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15874 if test "$with_gnu_ld" = no; then
15875 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15876 hardcode_libdir_flag_spec_ld='+b $libdir'
15877 hardcode_libdir_separator=:
15878 hardcode_direct=yes
15879 hardcode_direct_absolute=yes
15880 export_dynamic_flag_spec='${wl}-E'
15881 # hardcode_minus_L: Not really in the search PATH,
15882 # but as the default location of the library.
15883 hardcode_minus_L=yes
15887 hpux11*)
15888 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15889 case $host_cpu in
15890 hppa*64*)
15891 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893 ia64*)
15894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15899 esac
15900 else
15901 case $host_cpu in
15902 hppa*64*)
15903 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 ia64*)
15906 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15910 # Older versions of the 11.00 compiler do not understand -b yet
15911 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15913 $as_echo_n "checking if $CC understands -b... " >&6; }
15914 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 lt_cv_prog_compiler__b=no
15918 save_LDFLAGS="$LDFLAGS"
15919 LDFLAGS="$LDFLAGS -b"
15920 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15922 # The linker can only warn and ignore the option if not recognized
15923 # So say no if there are warnings
15924 if test -s conftest.err; then
15925 # Append any errors to the config.log.
15926 cat conftest.err 1>&5
15927 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15929 if diff conftest.exp conftest.er2 >/dev/null; then
15930 lt_cv_prog_compiler__b=yes
15932 else
15933 lt_cv_prog_compiler__b=yes
15936 $RM -r conftest*
15937 LDFLAGS="$save_LDFLAGS"
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15941 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15943 if test x"$lt_cv_prog_compiler__b" = xyes; then
15944 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15945 else
15946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15950 esac
15952 if test "$with_gnu_ld" = no; then
15953 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15954 hardcode_libdir_separator=:
15956 case $host_cpu in
15957 hppa*64*|ia64*)
15958 hardcode_direct=no
15959 hardcode_shlibpath_var=no
15962 hardcode_direct=yes
15963 hardcode_direct_absolute=yes
15964 export_dynamic_flag_spec='${wl}-E'
15966 # hardcode_minus_L: Not really in the search PATH,
15967 # but as the default location of the library.
15968 hardcode_minus_L=yes
15970 esac
15974 irix5* | irix6* | nonstopux*)
15975 if test "$GCC" = yes; then
15976 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'
15977 # Try to use the -exported_symbol ld option, if it does not
15978 # work, assume that -exports_file does not work either and
15979 # implicitly export all symbols.
15980 save_LDFLAGS="$LDFLAGS"
15981 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 int foo(void) {}
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15987 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'
15990 rm -f core conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
15992 LDFLAGS="$save_LDFLAGS"
15993 else
15994 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'
15995 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'
15997 archive_cmds_need_lc='no'
15998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15999 hardcode_libdir_separator=:
16000 inherit_rpath=yes
16001 link_all_deplibs=yes
16004 netbsd*)
16005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16007 else
16008 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16010 hardcode_libdir_flag_spec='-R$libdir'
16011 hardcode_direct=yes
16012 hardcode_shlibpath_var=no
16015 newsos6)
16016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16017 hardcode_direct=yes
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator=:
16020 hardcode_shlibpath_var=no
16023 *nto* | *qnx*)
16026 openbsd*)
16027 if test -f /usr/libexec/ld.so; then
16028 hardcode_direct=yes
16029 hardcode_shlibpath_var=no
16030 hardcode_direct_absolute=yes
16031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16033 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16035 export_dynamic_flag_spec='${wl}-E'
16036 else
16037 case $host_os in
16038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_libdir_flag_spec='-R$libdir'
16043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16046 esac
16048 else
16049 ld_shlibs=no
16053 os2*)
16054 hardcode_libdir_flag_spec='-L$libdir'
16055 hardcode_minus_L=yes
16056 allow_undefined_flag=unsupported
16057 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'
16058 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16061 osf3*)
16062 if test "$GCC" = yes; then
16063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16064 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'
16065 else
16066 allow_undefined_flag=' -expect_unresolved \*'
16067 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'
16069 archive_cmds_need_lc='no'
16070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16071 hardcode_libdir_separator=:
16074 osf4* | osf5*) # as osf3* with the addition of -msym flag
16075 if test "$GCC" = yes; then
16076 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16077 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'
16078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16079 else
16080 allow_undefined_flag=' -expect_unresolved \*'
16081 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'
16082 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~
16083 $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'
16085 # Both c and cxx compiler support -rpath directly
16086 hardcode_libdir_flag_spec='-rpath $libdir'
16088 archive_cmds_need_lc='no'
16089 hardcode_libdir_separator=:
16092 solaris*)
16093 no_undefined_flag=' -z defs'
16094 if test "$GCC" = yes; then
16095 wlarc='${wl}'
16096 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16098 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16099 else
16100 case `$CC -V 2>&1` in
16101 *"Compilers 5.0"*)
16102 wlarc=''
16103 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16108 wlarc='${wl}'
16109 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16111 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16113 esac
16115 hardcode_libdir_flag_spec='-R$libdir'
16116 hardcode_shlibpath_var=no
16117 case $host_os in
16118 solaris2.[0-5] | solaris2.[0-5].*) ;;
16120 # The compiler driver will combine and reorder linker options,
16121 # but understands `-z linker_flag'. GCC discards it without `$wl',
16122 # but is careful enough not to reorder.
16123 # Supported since Solaris 2.6 (maybe 2.5.1?)
16124 if test "$GCC" = yes; then
16125 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16126 else
16127 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16130 esac
16131 link_all_deplibs=yes
16134 sunos4*)
16135 if test "x$host_vendor" = xsequent; then
16136 # Use $CC to link under sequent, because it throws in some extra .o
16137 # files that make .init and .fini sections work.
16138 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16139 else
16140 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_libdir_flag_spec='-L$libdir'
16143 hardcode_direct=yes
16144 hardcode_minus_L=yes
16145 hardcode_shlibpath_var=no
16148 sysv4)
16149 case $host_vendor in
16150 sni)
16151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_direct=yes # is this really true???
16154 siemens)
16155 ## LD is ld it makes a PLAMLIB
16156 ## CC just makes a GrossModule.
16157 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16158 reload_cmds='$CC -r -o $output$reload_objs'
16159 hardcode_direct=no
16161 motorola)
16162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16163 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16165 esac
16166 runpath_var='LD_RUN_PATH'
16167 hardcode_shlibpath_var=no
16170 sysv4.3*)
16171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_shlibpath_var=no
16173 export_dynamic_flag_spec='-Bexport'
16176 sysv4*MP*)
16177 if test -d /usr/nec; then
16178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_shlibpath_var=no
16180 runpath_var=LD_RUN_PATH
16181 hardcode_runpath_var=yes
16182 ld_shlibs=yes
16186 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16187 no_undefined_flag='${wl}-z,text'
16188 archive_cmds_need_lc=no
16189 hardcode_shlibpath_var=no
16190 runpath_var='LD_RUN_PATH'
16192 if test "$GCC" = yes; then
16193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16195 else
16196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 sysv5* | sco3.2v5* | sco5v6*)
16202 # Note: We can NOT use -z defs as we might desire, because we do not
16203 # link with -lc, and that would cause any symbols used from libc to
16204 # always be unresolved, which means just about no library would
16205 # ever link correctly. If we're not using GNU ld we use -z text
16206 # though, which does catch some bad symbols but isn't as heavy-handed
16207 # as -z defs.
16208 no_undefined_flag='${wl}-z,text'
16209 allow_undefined_flag='${wl}-z,nodefs'
16210 archive_cmds_need_lc=no
16211 hardcode_shlibpath_var=no
16212 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16213 hardcode_libdir_separator=':'
16214 link_all_deplibs=yes
16215 export_dynamic_flag_spec='${wl}-Bexport'
16216 runpath_var='LD_RUN_PATH'
16218 if test "$GCC" = yes; then
16219 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 else
16222 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 uts4*)
16228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229 hardcode_libdir_flag_spec='-L$libdir'
16230 hardcode_shlibpath_var=no
16234 ld_shlibs=no
16236 esac
16238 if test x$host_vendor = xsni; then
16239 case $host in
16240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16241 export_dynamic_flag_spec='${wl}-Blargedynsym'
16243 esac
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16248 $as_echo "$ld_shlibs" >&6; }
16249 test "$ld_shlibs" = no && can_build_shared=no
16251 with_gnu_ld=$with_gnu_ld
16268 # Do we need to explicitly link libc?
16270 case "x$archive_cmds_need_lc" in
16271 x|xyes)
16272 # Assume -lc should be added
16273 archive_cmds_need_lc=yes
16275 if test "$enable_shared" = yes && test "$GCC" = yes; then
16276 case $archive_cmds in
16277 *'~'*)
16278 # FIXME: we may have to deal with multi-command sequences.
16280 '$CC '*)
16281 # Test whether the compiler implicitly links with -lc since on some
16282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16283 # to ld, don't add -lc before -lgcc.
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16285 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16286 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16289 $RM conftest*
16290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16293 (eval $ac_compile) 2>&5
16294 ac_status=$?
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; } 2>conftest.err; then
16297 soname=conftest
16298 lib=conftest
16299 libobjs=conftest.$ac_objext
16300 deplibs=
16301 wl=$lt_prog_compiler_wl
16302 pic_flag=$lt_prog_compiler_pic
16303 compiler_flags=-v
16304 linker_flags=-v
16305 verstring=
16306 output_objdir=.
16307 libname=conftest
16308 lt_save_allow_undefined_flag=$allow_undefined_flag
16309 allow_undefined_flag=
16310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16311 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16312 ac_status=$?
16313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16314 test $ac_status = 0; }
16315 then
16316 lt_cv_archive_cmds_need_lc=no
16317 else
16318 lt_cv_archive_cmds_need_lc=yes
16320 allow_undefined_flag=$lt_save_allow_undefined_flag
16321 else
16322 cat conftest.err 1>&5
16324 $RM conftest*
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16328 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16329 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16331 esac
16334 esac
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16493 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16495 if test "$GCC" = yes; then
16496 case $host_os in
16497 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16498 *) lt_awk_arg="/^libraries:/" ;;
16499 esac
16500 case $host_os in
16501 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16502 *) lt_sed_strip_eq="s,=/,/,g" ;;
16503 esac
16504 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16505 case $lt_search_path_spec in
16506 *\;*)
16507 # if the path contains ";" then we assume it to be the separator
16508 # otherwise default to the standard path separator (i.e. ":") - it is
16509 # assumed that no part of a normal pathname contains ";" but that should
16510 # okay in the real world where ";" in dirpaths is itself problematic.
16511 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16514 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16516 esac
16517 # Ok, now we have the path, separated by spaces, we can step through it
16518 # and add multilib dir if necessary.
16519 lt_tmp_lt_search_path_spec=
16520 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16521 for lt_sys_path in $lt_search_path_spec; do
16522 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16524 else
16525 test -d "$lt_sys_path" && \
16526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16528 done
16529 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16530 BEGIN {RS=" "; FS="/|\n";} {
16531 lt_foo="";
16532 lt_count=0;
16533 for (lt_i = NF; lt_i > 0; lt_i--) {
16534 if ($lt_i != "" && $lt_i != ".") {
16535 if ($lt_i == "..") {
16536 lt_count++;
16537 } else {
16538 if (lt_count == 0) {
16539 lt_foo="/" $lt_i lt_foo;
16540 } else {
16541 lt_count--;
16546 if (lt_foo != "") { lt_freq[lt_foo]++; }
16547 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16549 # AWK program above erroneously prepends '/' to C:/dos/paths
16550 # for these hosts.
16551 case $host_os in
16552 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16553 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16554 esac
16555 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16556 else
16557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16559 library_names_spec=
16560 libname_spec='lib$name'
16561 soname_spec=
16562 shrext_cmds=".so"
16563 postinstall_cmds=
16564 postuninstall_cmds=
16565 finish_cmds=
16566 finish_eval=
16567 shlibpath_var=
16568 shlibpath_overrides_runpath=unknown
16569 version_type=none
16570 dynamic_linker="$host_os ld.so"
16571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16572 need_lib_prefix=unknown
16573 hardcode_into_libs=no
16575 # when you set need_version to no, make sure it does not cause -set_version
16576 # flags to be left without arguments
16577 need_version=unknown
16579 case $host_os in
16580 aix3*)
16581 version_type=linux
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16583 shlibpath_var=LIBPATH
16585 # AIX 3 has no versioning support, so we append a major version to the name.
16586 soname_spec='${libname}${release}${shared_ext}$major'
16589 aix[4-9]*)
16590 version_type=linux
16591 need_lib_prefix=no
16592 need_version=no
16593 hardcode_into_libs=yes
16594 if test "$host_cpu" = ia64; then
16595 # AIX 5 supports IA64
16596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 else
16599 # With GCC up to 2.95.x, collect2 would create an import file
16600 # for dependence libraries. The import file would start with
16601 # the line `#! .'. This would cause the generated library to
16602 # depend on `.', always an invalid library. This was fixed in
16603 # development snapshots of GCC prior to 3.0.
16604 case $host_os in
16605 aix4 | aix4.[01] | aix4.[01].*)
16606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16607 echo ' yes '
16608 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16610 else
16611 can_build_shared=no
16614 esac
16615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16616 # soname into executable. Probably we can add versioning support to
16617 # collect2, so additional links can be useful in future.
16618 if test "$aix_use_runtimelinking" = yes; then
16619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16620 # instead of lib<name>.a to let people know that these are not
16621 # typical AIX shared libraries.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 else
16624 # We preserve .a as extension for shared libraries through AIX4.2
16625 # and later when we are not doing run time linking.
16626 library_names_spec='${libname}${release}.a $libname.a'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16629 shlibpath_var=LIBPATH
16633 amigaos*)
16634 case $host_cpu in
16635 powerpc)
16636 # Since July 2007 AmigaOS4 officially supports .so libraries.
16637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 m68k)
16641 library_names_spec='$libname.ixlibrary $libname.a'
16642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16643 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'
16645 esac
16648 beos*)
16649 library_names_spec='${libname}${shared_ext}'
16650 dynamic_linker="$host_os ld.so"
16651 shlibpath_var=LIBRARY_PATH
16654 bsdi[45]*)
16655 version_type=linux
16656 need_version=no
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16663 # the default ld.so.conf also contains /usr/contrib/lib and
16664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16665 # libtool to hard-code these into programs
16668 cygwin* | mingw* | pw32* | cegcc*)
16669 version_type=windows
16670 shrext_cmds=".dll"
16671 need_version=no
16672 need_lib_prefix=no
16674 case $GCC,$host_os in
16675 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16676 library_names_spec='$libname.dll.a'
16677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16678 postinstall_cmds='base_file=`basename \${file}`~
16679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16680 dldir=$destdir/`dirname \$dlpath`~
16681 test -d \$dldir || mkdir -p \$dldir~
16682 $install_prog $dir/$dlname \$dldir/$dlname~
16683 chmod a+x \$dldir/$dlname~
16684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16688 dlpath=$dir/\$dldll~
16689 $RM \$dlpath'
16690 shlibpath_overrides_runpath=yes
16692 case $host_os in
16693 cygwin*)
16694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16697 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16699 mingw* | cegcc*)
16700 # MinGW DLLs use traditional 'lib' prefix
16701 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16703 pw32*)
16704 # pw32 DLLs use 'pw' prefix rather than 'lib'
16705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16707 esac
16711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16713 esac
16714 dynamic_linker='Win32 ld.exe'
16715 # FIXME: first we should search . and the directory the executable is in
16716 shlibpath_var=PATH
16719 darwin* | rhapsody*)
16720 dynamic_linker="$host_os dyld"
16721 version_type=darwin
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16725 soname_spec='${libname}${release}${major}$shared_ext'
16726 shlibpath_overrides_runpath=yes
16727 shlibpath_var=DYLD_LIBRARY_PATH
16728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16730 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16731 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16734 dgux*)
16735 version_type=linux
16736 need_lib_prefix=no
16737 need_version=no
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 shlibpath_var=LD_LIBRARY_PATH
16743 freebsd* | dragonfly*)
16744 # DragonFly does not have aout. When/if they implement a new
16745 # versioning mechanism, adjust this.
16746 if test -x /usr/bin/objformat; then
16747 objformat=`/usr/bin/objformat`
16748 else
16749 case $host_os in
16750 freebsd[123]*) objformat=aout ;;
16751 *) objformat=elf ;;
16752 esac
16754 version_type=freebsd-$objformat
16755 case $version_type in
16756 freebsd-elf*)
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16758 need_version=no
16759 need_lib_prefix=no
16761 freebsd-*)
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16763 need_version=yes
16765 esac
16766 shlibpath_var=LD_LIBRARY_PATH
16767 case $host_os in
16768 freebsd2*)
16769 shlibpath_overrides_runpath=yes
16771 freebsd3.[01]* | freebsdelf3.[01]*)
16772 shlibpath_overrides_runpath=yes
16773 hardcode_into_libs=yes
16775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16777 shlibpath_overrides_runpath=no
16778 hardcode_into_libs=yes
16780 *) # from 4.6 on, and DragonFly
16781 shlibpath_overrides_runpath=yes
16782 hardcode_into_libs=yes
16784 esac
16787 gnu*)
16788 version_type=linux
16789 need_lib_prefix=no
16790 need_version=no
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 hardcode_into_libs=yes
16797 haiku*)
16798 version_type=linux
16799 need_lib_prefix=no
16800 need_version=no
16801 dynamic_linker="$host_os runtime_loader"
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16807 hardcode_into_libs=yes
16810 hpux9* | hpux10* | hpux11*)
16811 # Give a soname corresponding to the major version so that dld.sl refuses to
16812 # link against other versions.
16813 version_type=sunos
16814 need_lib_prefix=no
16815 need_version=no
16816 case $host_cpu in
16817 ia64*)
16818 shrext_cmds='.so'
16819 hardcode_into_libs=yes
16820 dynamic_linker="$host_os dld.so"
16821 shlibpath_var=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 if test "X$HPUX_IA64_MODE" = X32; then
16826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16827 else
16828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16832 hppa*64*)
16833 shrext_cmds='.sl'
16834 hardcode_into_libs=yes
16835 dynamic_linker="$host_os dld.sl"
16836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16844 shrext_cmds='.sl'
16845 dynamic_linker="$host_os dld.sl"
16846 shlibpath_var=SHLIB_PATH
16847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849 soname_spec='${libname}${release}${shared_ext}$major'
16851 esac
16852 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16853 postinstall_cmds='chmod 555 $lib'
16854 # or fails outright, so override atomically:
16855 install_override_mode=555
16858 interix[3-9]*)
16859 version_type=linux
16860 need_lib_prefix=no
16861 need_version=no
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16863 soname_spec='${libname}${release}${shared_ext}$major'
16864 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=no
16867 hardcode_into_libs=yes
16870 irix5* | irix6* | nonstopux*)
16871 case $host_os in
16872 nonstopux*) version_type=nonstopux ;;
16874 if test "$lt_cv_prog_gnu_ld" = yes; then
16875 version_type=linux
16876 else
16877 version_type=irix
16878 fi ;;
16879 esac
16880 need_lib_prefix=no
16881 need_version=no
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16884 case $host_os in
16885 irix5* | nonstopux*)
16886 libsuff= shlibsuff=
16889 case $LD in # libtool.m4 will add one of these switches to LD
16890 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16891 libsuff= shlibsuff= libmagic=32-bit;;
16892 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16893 libsuff=32 shlibsuff=N32 libmagic=N32;;
16894 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16895 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16896 *) libsuff= shlibsuff= libmagic=never-match;;
16897 esac
16899 esac
16900 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16901 shlibpath_overrides_runpath=no
16902 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16903 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16904 hardcode_into_libs=yes
16907 # No shared lib support for Linux oldld, aout, or coff.
16908 linux*oldld* | linux*aout* | linux*coff*)
16909 dynamic_linker=no
16912 # This must be Linux ELF.
16913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16914 version_type=linux
16915 need_lib_prefix=no
16916 need_version=no
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=no
16923 # Some binutils ld are patched to set DT_RUNPATH
16924 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 lt_cv_shlibpath_overrides_runpath=no
16928 save_LDFLAGS=$LDFLAGS
16929 save_libdir=$libdir
16930 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16931 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16936 main ()
16940 return 0;
16942 _ACEOF
16943 if ac_fn_c_try_link "$LINENO"; then :
16944 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16945 lt_cv_shlibpath_overrides_runpath=yes
16948 rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
16950 LDFLAGS=$save_LDFLAGS
16951 libdir=$save_libdir
16955 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16957 # This implies no fast_install, which is unacceptable.
16958 # Some rework will be needed to allow for fast_install
16959 # before this can be enabled.
16960 hardcode_into_libs=yes
16962 # Append ld.so.conf contents to the search path
16963 if test -f /etc/ld.so.conf; then
16964 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' ' '`
16965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16968 # We used to test for /lib/ld.so.1 and disable shared libraries on
16969 # powerpc, because MkLinux only supported shared libraries with the
16970 # GNU dynamic linker. Since this was broken with cross compilers,
16971 # most powerpc-linux boxes support dynamic linking these days and
16972 # people can always --disable-shared, the test was removed, and we
16973 # assume the GNU/Linux dynamic linker is in use.
16974 dynamic_linker='GNU/Linux ld.so'
16977 netbsd*)
16978 version_type=sunos
16979 need_lib_prefix=no
16980 need_version=no
16981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16984 dynamic_linker='NetBSD (a.out) ld.so'
16985 else
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 dynamic_linker='NetBSD ld.elf_so'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16995 newsos6)
16996 version_type=linux
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath=yes
17002 *nto* | *qnx*)
17003 version_type=qnx
17004 need_lib_prefix=no
17005 need_version=no
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=no
17010 hardcode_into_libs=yes
17011 dynamic_linker='ldqnx.so'
17014 openbsd*)
17015 version_type=sunos
17016 sys_lib_dlsearch_path_spec="/usr/lib"
17017 need_lib_prefix=no
17018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17019 case $host_os in
17020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17021 *) need_version=no ;;
17022 esac
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025 shlibpath_var=LD_LIBRARY_PATH
17026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17027 case $host_os in
17028 openbsd2.[89] | openbsd2.[89].*)
17029 shlibpath_overrides_runpath=no
17032 shlibpath_overrides_runpath=yes
17034 esac
17035 else
17036 shlibpath_overrides_runpath=yes
17040 os2*)
17041 libname_spec='$name'
17042 shrext_cmds=".dll"
17043 need_lib_prefix=no
17044 library_names_spec='$libname${shared_ext} $libname.a'
17045 dynamic_linker='OS/2 ld.exe'
17046 shlibpath_var=LIBPATH
17049 osf3* | osf4* | osf5*)
17050 version_type=osf
17051 need_lib_prefix=no
17052 need_version=no
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17060 rdos*)
17061 dynamic_linker=no
17064 solaris*)
17065 version_type=linux
17066 need_lib_prefix=no
17067 need_version=no
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=yes
17072 hardcode_into_libs=yes
17073 # ldd complains unless libraries are executable
17074 postinstall_cmds='chmod +x $lib'
17077 sunos4*)
17078 version_type=sunos
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 shlibpath_overrides_runpath=yes
17083 if test "$with_gnu_ld" = yes; then
17084 need_lib_prefix=no
17086 need_version=yes
17089 sysv4 | sysv4.3*)
17090 version_type=linux
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 case $host_vendor in
17095 sni)
17096 shlibpath_overrides_runpath=no
17097 need_lib_prefix=no
17098 runpath_var=LD_RUN_PATH
17100 siemens)
17101 need_lib_prefix=no
17103 motorola)
17104 need_lib_prefix=no
17105 need_version=no
17106 shlibpath_overrides_runpath=no
17107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17109 esac
17112 sysv4*MP*)
17113 if test -d /usr/nec ;then
17114 version_type=linux
17115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17116 soname_spec='$libname${shared_ext}.$major'
17117 shlibpath_var=LD_LIBRARY_PATH
17121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17122 version_type=freebsd-elf
17123 need_lib_prefix=no
17124 need_version=no
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 shlibpath_overrides_runpath=yes
17129 hardcode_into_libs=yes
17130 if test "$with_gnu_ld" = yes; then
17131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17132 else
17133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17134 case $host_os in
17135 sco3.2v5*)
17136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17138 esac
17140 sys_lib_dlsearch_path_spec='/usr/lib'
17143 tpf*)
17144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=no
17151 hardcode_into_libs=yes
17154 uts4*)
17155 version_type=linux
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 shlibpath_var=LD_LIBRARY_PATH
17162 dynamic_linker=no
17164 esac
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17166 $as_echo "$dynamic_linker" >&6; }
17167 test "$dynamic_linker" = no && can_build_shared=no
17169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17170 if test "$GCC" = yes; then
17171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17174 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17177 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17178 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17274 hardcode_action=
17275 if test -n "$hardcode_libdir_flag_spec" ||
17276 test -n "$runpath_var" ||
17277 test "X$hardcode_automatic" = "Xyes" ; then
17279 # We can hardcode non-existent directories.
17280 if test "$hardcode_direct" != no &&
17281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17282 # have to relink, otherwise we might link with an installed library
17283 # when we should be linking with a yet-to-be-installed one
17284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17285 test "$hardcode_minus_L" != no; then
17286 # Linking always hardcodes the temporary library directory.
17287 hardcode_action=relink
17288 else
17289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17290 hardcode_action=immediate
17292 else
17293 # We cannot hardcode anything, or else we can only hardcode existing
17294 # directories.
17295 hardcode_action=unsupported
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17298 $as_echo "$hardcode_action" >&6; }
17300 if test "$hardcode_action" = relink ||
17301 test "$inherit_rpath" = yes; then
17302 # Fast installation is not supported
17303 enable_fast_install=no
17304 elif test "$shlibpath_overrides_runpath" = yes ||
17305 test "$enable_shared" = no; then
17306 # Fast installation is not necessary
17307 enable_fast_install=needless
17315 if test "x$enable_dlopen" != xyes; then
17316 enable_dlopen=unknown
17317 enable_dlopen_self=unknown
17318 enable_dlopen_self_static=unknown
17319 else
17320 lt_cv_dlopen=no
17321 lt_cv_dlopen_libs=
17323 case $host_os in
17324 beos*)
17325 lt_cv_dlopen="load_add_on"
17326 lt_cv_dlopen_libs=
17327 lt_cv_dlopen_self=yes
17330 mingw* | pw32* | cegcc*)
17331 lt_cv_dlopen="LoadLibrary"
17332 lt_cv_dlopen_libs=
17335 cygwin*)
17336 lt_cv_dlopen="dlopen"
17337 lt_cv_dlopen_libs=
17340 darwin*)
17341 # if libdl is installed we need to link against it
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17345 $as_echo_n "(cached) " >&6
17346 else
17347 ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-ldl $LIBS"
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17352 /* Override any GCC internal prototype to avoid an error.
17353 Use char because int might match the return type of a GCC
17354 builtin and then its argument prototype would still apply. */
17355 #ifdef __cplusplus
17356 extern "C"
17357 #endif
17358 char dlopen ();
17360 main ()
17362 return dlopen ();
17364 return 0;
17366 _ACEOF
17367 if ac_fn_c_try_link "$LINENO"; then :
17368 ac_cv_lib_dl_dlopen=yes
17369 else
17370 ac_cv_lib_dl_dlopen=no
17372 rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17374 LIBS=$ac_check_lib_save_LIBS
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17380 else
17382 lt_cv_dlopen="dyld"
17383 lt_cv_dlopen_libs=
17384 lt_cv_dlopen_self=yes
17391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17392 if test "x$ac_cv_func_shl_load" = x""yes; then :
17393 lt_cv_dlopen="shl_load"
17394 else
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17396 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17397 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17398 $as_echo_n "(cached) " >&6
17399 else
17400 ac_check_lib_save_LIBS=$LIBS
17401 LIBS="-ldld $LIBS"
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17405 /* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 char shl_load ();
17413 main ()
17415 return shl_load ();
17417 return 0;
17419 _ACEOF
17420 if ac_fn_c_try_link "$LINENO"; then :
17421 ac_cv_lib_dld_shl_load=yes
17422 else
17423 ac_cv_lib_dld_shl_load=no
17425 rm -f core conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17431 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17433 else
17434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17435 if test "x$ac_cv_func_dlopen" = x""yes; then :
17436 lt_cv_dlopen="dlopen"
17437 else
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443 ac_check_lib_save_LIBS=$LIBS
17444 LIBS="-ldl $LIBS"
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 char dlopen ();
17456 main ()
17458 return dlopen ();
17460 return 0;
17462 _ACEOF
17463 if ac_fn_c_try_link "$LINENO"; then :
17464 ac_cv_lib_dl_dlopen=yes
17465 else
17466 ac_cv_lib_dl_dlopen=no
17468 rm -f core conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17470 LIBS=$ac_check_lib_save_LIBS
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17473 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17474 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17476 else
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17479 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17480 $as_echo_n "(cached) " >&6
17481 else
17482 ac_check_lib_save_LIBS=$LIBS
17483 LIBS="-lsvld $LIBS"
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17490 #ifdef __cplusplus
17491 extern "C"
17492 #endif
17493 char dlopen ();
17495 main ()
17497 return dlopen ();
17499 return 0;
17501 _ACEOF
17502 if ac_fn_c_try_link "$LINENO"; then :
17503 ac_cv_lib_svld_dlopen=yes
17504 else
17505 ac_cv_lib_svld_dlopen=no
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509 LIBS=$ac_check_lib_save_LIBS
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17513 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17515 else
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17517 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17518 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17519 $as_echo_n "(cached) " >&6
17520 else
17521 ac_check_lib_save_LIBS=$LIBS
17522 LIBS="-ldld $LIBS"
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 /* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17529 #ifdef __cplusplus
17530 extern "C"
17531 #endif
17532 char dld_link ();
17534 main ()
17536 return dld_link ();
17538 return 0;
17540 _ACEOF
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 ac_cv_lib_dld_dld_link=yes
17543 else
17544 ac_cv_lib_dld_dld_link=no
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17551 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17552 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17572 esac
17574 if test "x$lt_cv_dlopen" != xno; then
17575 enable_dlopen=yes
17576 else
17577 enable_dlopen=no
17580 case $lt_cv_dlopen in
17581 dlopen)
17582 save_CPPFLAGS="$CPPFLAGS"
17583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17585 save_LDFLAGS="$LDFLAGS"
17586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17588 save_LIBS="$LIBS"
17589 LIBS="$lt_cv_dlopen_libs $LIBS"
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17592 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17593 if test "${lt_cv_dlopen_self+set}" = set; then :
17594 $as_echo_n "(cached) " >&6
17595 else
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self=cross
17598 else
17599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17600 lt_status=$lt_dlunknown
17601 cat > conftest.$ac_ext <<_LT_EOF
17602 #line 17602 "configure"
17603 #include "confdefs.h"
17605 #if HAVE_DLFCN_H
17606 #include <dlfcn.h>
17607 #endif
17609 #include <stdio.h>
17611 #ifdef RTLD_GLOBAL
17612 # define LT_DLGLOBAL RTLD_GLOBAL
17613 #else
17614 # ifdef DL_GLOBAL
17615 # define LT_DLGLOBAL DL_GLOBAL
17616 # else
17617 # define LT_DLGLOBAL 0
17618 # endif
17619 #endif
17621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623 #ifndef LT_DLLAZY_OR_NOW
17624 # ifdef RTLD_LAZY
17625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17626 # else
17627 # ifdef DL_LAZY
17628 # define LT_DLLAZY_OR_NOW DL_LAZY
17629 # else
17630 # ifdef RTLD_NOW
17631 # define LT_DLLAZY_OR_NOW RTLD_NOW
17632 # else
17633 # ifdef DL_NOW
17634 # define LT_DLLAZY_OR_NOW DL_NOW
17635 # else
17636 # define LT_DLLAZY_OR_NOW 0
17637 # endif
17638 # endif
17639 # endif
17640 # endif
17641 #endif
17643 /* When -fvisbility=hidden is used, assume the code has been annotated
17644 correspondingly for the symbols needed. */
17645 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17646 void fnord () __attribute__((visibility("default")));
17647 #endif
17649 void fnord () { int i=42; }
17650 int main ()
17652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17653 int status = $lt_dlunknown;
17655 if (self)
17657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17658 else
17660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17661 else puts (dlerror ());
17663 /* dlclose (self); */
17665 else
17666 puts (dlerror ());
17668 return status;
17670 _LT_EOF
17671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17672 (eval $ac_link) 2>&5
17673 ac_status=$?
17674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17676 (./conftest; exit; ) >&5 2>/dev/null
17677 lt_status=$?
17678 case x$lt_status in
17679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17682 esac
17683 else :
17684 # compilation failed
17685 lt_cv_dlopen_self=no
17688 rm -fr conftest*
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17693 $as_echo "$lt_cv_dlopen_self" >&6; }
17695 if test "x$lt_cv_dlopen_self" = xyes; then
17696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17698 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17699 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 if test "$cross_compiling" = yes; then :
17703 lt_cv_dlopen_self_static=cross
17704 else
17705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17706 lt_status=$lt_dlunknown
17707 cat > conftest.$ac_ext <<_LT_EOF
17708 #line 17708 "configure"
17709 #include "confdefs.h"
17711 #if HAVE_DLFCN_H
17712 #include <dlfcn.h>
17713 #endif
17715 #include <stdio.h>
17717 #ifdef RTLD_GLOBAL
17718 # define LT_DLGLOBAL RTLD_GLOBAL
17719 #else
17720 # ifdef DL_GLOBAL
17721 # define LT_DLGLOBAL DL_GLOBAL
17722 # else
17723 # define LT_DLGLOBAL 0
17724 # endif
17725 #endif
17727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17728 find out it does not work in some platform. */
17729 #ifndef LT_DLLAZY_OR_NOW
17730 # ifdef RTLD_LAZY
17731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17732 # else
17733 # ifdef DL_LAZY
17734 # define LT_DLLAZY_OR_NOW DL_LAZY
17735 # else
17736 # ifdef RTLD_NOW
17737 # define LT_DLLAZY_OR_NOW RTLD_NOW
17738 # else
17739 # ifdef DL_NOW
17740 # define LT_DLLAZY_OR_NOW DL_NOW
17741 # else
17742 # define LT_DLLAZY_OR_NOW 0
17743 # endif
17744 # endif
17745 # endif
17746 # endif
17747 #endif
17749 /* When -fvisbility=hidden is used, assume the code has been annotated
17750 correspondingly for the symbols needed. */
17751 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17752 void fnord () __attribute__((visibility("default")));
17753 #endif
17755 void fnord () { int i=42; }
17756 int main ()
17758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17759 int status = $lt_dlunknown;
17761 if (self)
17763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17764 else
17766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17767 else puts (dlerror ());
17769 /* dlclose (self); */
17771 else
17772 puts (dlerror ());
17774 return status;
17776 _LT_EOF
17777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17778 (eval $ac_link) 2>&5
17779 ac_status=$?
17780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17782 (./conftest; exit; ) >&5 2>/dev/null
17783 lt_status=$?
17784 case x$lt_status in
17785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17788 esac
17789 else :
17790 # compilation failed
17791 lt_cv_dlopen_self_static=no
17794 rm -fr conftest*
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17799 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17802 CPPFLAGS="$save_CPPFLAGS"
17803 LDFLAGS="$save_LDFLAGS"
17804 LIBS="$save_LIBS"
17806 esac
17808 case $lt_cv_dlopen_self in
17809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17810 *) enable_dlopen_self=unknown ;;
17811 esac
17813 case $lt_cv_dlopen_self_static in
17814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17815 *) enable_dlopen_self_static=unknown ;;
17816 esac
17835 striplib=
17836 old_striplib=
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17838 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17843 $as_echo "yes" >&6; }
17844 else
17845 # FIXME - insert some real tests, host_os isn't really good enough
17846 case $host_os in
17847 darwin*)
17848 if test -n "$STRIP" ; then
17849 striplib="$STRIP -x"
17850 old_striplib="$STRIP -S"
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17852 $as_echo "yes" >&6; }
17853 else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855 $as_echo "no" >&6; }
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860 $as_echo "no" >&6; }
17862 esac
17876 # Report which library types will actually be built
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17878 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17880 $as_echo "$can_build_shared" >&6; }
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17883 $as_echo_n "checking whether to build shared libraries... " >&6; }
17884 test "$can_build_shared" = "no" && enable_shared=no
17886 # On AIX, shared libraries and static libraries use the same namespace, and
17887 # are all built from PIC.
17888 case $host_os in
17889 aix3*)
17890 test "$enable_shared" = yes && enable_static=no
17891 if test -n "$RANLIB"; then
17892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17893 postinstall_cmds='$RANLIB $lib'
17897 aix[4-9]*)
17898 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17899 test "$enable_shared" = yes && enable_static=no
17902 esac
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17904 $as_echo "$enable_shared" >&6; }
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17907 $as_echo_n "checking whether to build static libraries... " >&6; }
17908 # Make sure either enable_shared or enable_static is yes.
17909 test "$enable_shared" = yes || enable_static=yes
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17911 $as_echo "$enable_static" >&6; }
17917 ac_ext=c
17918 ac_cpp='$CPP $CPPFLAGS'
17919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17923 CC="$lt_save_CC"
17925 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17926 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17927 (test "X$CXX" != "Xg++"))) ; then
17928 ac_ext=cpp
17929 ac_cpp='$CXXCPP $CPPFLAGS'
17930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17934 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17935 if test -z "$CXXCPP"; then
17936 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939 # Double quotes because CXXCPP needs to be expanded
17940 for CXXCPP in "$CXX -E" "/lib/cpp"
17942 ac_preproc_ok=false
17943 for ac_cxx_preproc_warn_flag in '' yes
17945 # Use a header file that comes with gcc, so configuring glibc
17946 # with a fresh cross-compiler works.
17947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17948 # <limits.h> exists even on freestanding compilers.
17949 # On the NeXT, cc -E runs the code through the compiler's parser,
17950 # not just through cpp. "Syntax error" is here to catch this case.
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17953 #ifdef __STDC__
17954 # include <limits.h>
17955 #else
17956 # include <assert.h>
17957 #endif
17958 Syntax error
17959 _ACEOF
17960 if ac_fn_cxx_try_cpp "$LINENO"; then :
17962 else
17963 # Broken: fails on valid input.
17964 continue
17966 rm -f conftest.err conftest.$ac_ext
17968 # OK, works on sane cases. Now check whether nonexistent headers
17969 # can be detected and how.
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 #include <ac_nonexistent.h>
17973 _ACEOF
17974 if ac_fn_cxx_try_cpp "$LINENO"; then :
17975 # Broken: success on invalid input.
17976 continue
17977 else
17978 # Passes both tests.
17979 ac_preproc_ok=:
17980 break
17982 rm -f conftest.err conftest.$ac_ext
17984 done
17985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17986 rm -f conftest.err conftest.$ac_ext
17987 if $ac_preproc_ok; then :
17988 break
17991 done
17992 ac_cv_prog_CXXCPP=$CXXCPP
17995 CXXCPP=$ac_cv_prog_CXXCPP
17996 else
17997 ac_cv_prog_CXXCPP=$CXXCPP
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18000 $as_echo "$CXXCPP" >&6; }
18001 ac_preproc_ok=false
18002 for ac_cxx_preproc_warn_flag in '' yes
18004 # Use a header file that comes with gcc, so configuring glibc
18005 # with a fresh cross-compiler works.
18006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 # <limits.h> exists even on freestanding compilers.
18008 # On the NeXT, cc -E runs the code through the compiler's parser,
18009 # not just through cpp. "Syntax error" is here to catch this case.
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012 #ifdef __STDC__
18013 # include <limits.h>
18014 #else
18015 # include <assert.h>
18016 #endif
18017 Syntax error
18018 _ACEOF
18019 if ac_fn_cxx_try_cpp "$LINENO"; then :
18021 else
18022 # Broken: fails on valid input.
18023 continue
18025 rm -f conftest.err conftest.$ac_ext
18027 # OK, works on sane cases. Now check whether nonexistent headers
18028 # can be detected and how.
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <ac_nonexistent.h>
18032 _ACEOF
18033 if ac_fn_cxx_try_cpp "$LINENO"; then :
18034 # Broken: success on invalid input.
18035 continue
18036 else
18037 # Passes both tests.
18038 ac_preproc_ok=:
18039 break
18041 rm -f conftest.err conftest.$ac_ext
18043 done
18044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18045 rm -f conftest.err conftest.$ac_ext
18046 if $ac_preproc_ok; then :
18048 else
18049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18051 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18052 See \`config.log' for more details." "$LINENO" 5; }
18055 ac_ext=c
18056 ac_cpp='$CPP $CPPFLAGS'
18057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18061 else
18062 _lt_caught_CXX_error=yes
18065 ac_ext=cpp
18066 ac_cpp='$CXXCPP $CPPFLAGS'
18067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18071 archive_cmds_need_lc_CXX=no
18072 allow_undefined_flag_CXX=
18073 always_export_symbols_CXX=no
18074 archive_expsym_cmds_CXX=
18075 compiler_needs_object_CXX=no
18076 export_dynamic_flag_spec_CXX=
18077 hardcode_direct_CXX=no
18078 hardcode_direct_absolute_CXX=no
18079 hardcode_libdir_flag_spec_CXX=
18080 hardcode_libdir_flag_spec_ld_CXX=
18081 hardcode_libdir_separator_CXX=
18082 hardcode_minus_L_CXX=no
18083 hardcode_shlibpath_var_CXX=unsupported
18084 hardcode_automatic_CXX=no
18085 inherit_rpath_CXX=no
18086 module_cmds_CXX=
18087 module_expsym_cmds_CXX=
18088 link_all_deplibs_CXX=unknown
18089 old_archive_cmds_CXX=$old_archive_cmds
18090 reload_flag_CXX=$reload_flag
18091 reload_cmds_CXX=$reload_cmds
18092 no_undefined_flag_CXX=
18093 whole_archive_flag_spec_CXX=
18094 enable_shared_with_static_runtimes_CXX=no
18096 # Source file extension for C++ test sources.
18097 ac_ext=cpp
18099 # Object file extension for compiled C++ test sources.
18100 objext=o
18101 objext_CXX=$objext
18103 # No sense in running all these tests if we already determined that
18104 # the CXX compiler isn't working. Some variables (like enable_shared)
18105 # are currently assumed to apply to all compilers on this platform,
18106 # and will be corrupted by setting them based on a non-working compiler.
18107 if test "$_lt_caught_CXX_error" != yes; then
18108 # Code to be used in simple compile tests
18109 lt_simple_compile_test_code="int some_variable = 0;"
18111 # Code to be used in simple link tests
18112 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18121 # If no C compiler was specified, use CC.
18122 LTCC=${LTCC-"$CC"}
18124 # If no C compiler flags were specified, use CFLAGS.
18125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18127 # Allow CC to be a program name with arguments.
18128 compiler=$CC
18131 # save warnings/boilerplate of simple test code
18132 ac_outfile=conftest.$ac_objext
18133 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18135 _lt_compiler_boilerplate=`cat conftest.err`
18136 $RM conftest*
18138 ac_outfile=conftest.$ac_objext
18139 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18141 _lt_linker_boilerplate=`cat conftest.err`
18142 $RM -r conftest*
18145 # Allow CC to be a program name with arguments.
18146 lt_save_CC=$CC
18147 lt_save_LD=$LD
18148 lt_save_GCC=$GCC
18149 GCC=$GXX
18150 lt_save_with_gnu_ld=$with_gnu_ld
18151 lt_save_path_LD=$lt_cv_path_LD
18152 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18153 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18154 else
18155 $as_unset lt_cv_prog_gnu_ld
18157 if test -n "${lt_cv_path_LDCXX+set}"; then
18158 lt_cv_path_LD=$lt_cv_path_LDCXX
18159 else
18160 $as_unset lt_cv_path_LD
18162 test -z "${LDCXX+set}" || LD=$LDCXX
18163 CC=${CXX-"c++"}
18164 compiler=$CC
18165 compiler_CXX=$CC
18166 for cc_temp in $compiler""; do
18167 case $cc_temp in
18168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18170 \-*) ;;
18171 *) break;;
18172 esac
18173 done
18174 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18177 if test -n "$compiler"; then
18178 # We don't want -fno-exception when compiling C++ code, so set the
18179 # no_builtin_flag separately
18180 if test "$GXX" = yes; then
18181 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18182 else
18183 lt_prog_compiler_no_builtin_flag_CXX=
18186 if test "$GXX" = yes; then
18187 # Set up default GNU C++ configuration
18191 # Check whether --with-gnu-ld was given.
18192 if test "${with_gnu_ld+set}" = set; then :
18193 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18194 else
18195 with_gnu_ld=no
18198 ac_prog=ld
18199 if test "$GCC" = yes; then
18200 # Check if gcc -print-prog-name=ld gives a path.
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18202 $as_echo_n "checking for ld used by $CC... " >&6; }
18203 case $host in
18204 *-*-mingw*)
18205 # gcc leaves a trailing carriage return which upsets mingw
18206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18209 esac
18210 case $ac_prog in
18211 # Accept absolute paths.
18212 [\\/]* | ?:[\\/]*)
18213 re_direlt='/[^/][^/]*/\.\./'
18214 # Canonicalize the pathname of ld
18215 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18216 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18217 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18218 done
18219 test -z "$LD" && LD="$ac_prog"
18222 # If it fails, then pretend we aren't using GCC.
18223 ac_prog=ld
18226 # If it is relative, then search for the first ld in PATH.
18227 with_gnu_ld=unknown
18229 esac
18230 elif test "$with_gnu_ld" = yes; then
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18232 $as_echo_n "checking for GNU ld... " >&6; }
18233 else
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18235 $as_echo_n "checking for non-GNU ld... " >&6; }
18237 if test "${lt_cv_path_LD+set}" = set; then :
18238 $as_echo_n "(cached) " >&6
18239 else
18240 if test -z "$LD"; then
18241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18242 for ac_dir in $PATH; do
18243 IFS="$lt_save_ifs"
18244 test -z "$ac_dir" && ac_dir=.
18245 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18246 lt_cv_path_LD="$ac_dir/$ac_prog"
18247 # Check to see if the program is GNU ld. I'd rather use --version,
18248 # but apparently some variants of GNU ld only accept -v.
18249 # Break only if it was the GNU/non-GNU ld that we prefer.
18250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18251 *GNU* | *'with BFD'*)
18252 test "$with_gnu_ld" != no && break
18255 test "$with_gnu_ld" != yes && break
18257 esac
18259 done
18260 IFS="$lt_save_ifs"
18261 else
18262 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18266 LD="$lt_cv_path_LD"
18267 if test -n "$LD"; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18269 $as_echo "$LD" >&6; }
18270 else
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18272 $as_echo "no" >&6; }
18274 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18276 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18277 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18278 $as_echo_n "(cached) " >&6
18279 else
18280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18281 case `$LD -v 2>&1 </dev/null` in
18282 *GNU* | *'with BFD'*)
18283 lt_cv_prog_gnu_ld=yes
18286 lt_cv_prog_gnu_ld=no
18288 esac
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18291 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18292 with_gnu_ld=$lt_cv_prog_gnu_ld
18300 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18301 # archiving commands below assume that GNU ld is being used.
18302 if test "$with_gnu_ld" = yes; then
18303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18304 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'
18306 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18309 # If archive_cmds runs LD, not CC, wlarc should be empty
18310 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18311 # investigate it a little bit more. (MM)
18312 wlarc='${wl}'
18314 # ancient GNU ld didn't support --whole-archive et. al.
18315 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18316 $GREP 'no-whole-archive' > /dev/null; then
18317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18318 else
18319 whole_archive_flag_spec_CXX=
18321 else
18322 with_gnu_ld=no
18323 wlarc=
18325 # A generic and very simple default shared library creation
18326 # command for GNU C++ for the case where it uses the native
18327 # linker, instead of GNU ld. If possible, this setting should
18328 # overridden to take advantage of the native linker features on
18329 # the platform it is being used on.
18330 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18333 # Commands to make compiler produce verbose output that lists
18334 # what "hidden" libraries, object files and flags are used when
18335 # linking a shared library.
18336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18338 else
18339 GXX=no
18340 with_gnu_ld=no
18341 wlarc=
18344 # PORTME: fill in a description of your system's C++ link characteristics
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18347 ld_shlibs_CXX=yes
18348 case $host_os in
18349 aix3*)
18350 # FIXME: insert proper C++ library support
18351 ld_shlibs_CXX=no
18353 aix[4-9]*)
18354 if test "$host_cpu" = ia64; then
18355 # On IA64, the linker does run time linking by default, so we don't
18356 # have to do anything special.
18357 aix_use_runtimelinking=no
18358 exp_sym_flag='-Bexport'
18359 no_entry_flag=""
18360 else
18361 aix_use_runtimelinking=no
18363 # Test if we are trying to use run time linking or normal
18364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18365 # need to do runtime linking.
18366 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18367 for ld_flag in $LDFLAGS; do
18368 case $ld_flag in
18369 *-brtl*)
18370 aix_use_runtimelinking=yes
18371 break
18373 esac
18374 done
18376 esac
18378 exp_sym_flag='-bexport'
18379 no_entry_flag='-bnoentry'
18382 # When large executables or shared objects are built, AIX ld can
18383 # have problems creating the table of contents. If linking a library
18384 # or program results in "error TOC overflow" add -mminimal-toc to
18385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18388 archive_cmds_CXX=''
18389 hardcode_direct_CXX=yes
18390 hardcode_direct_absolute_CXX=yes
18391 hardcode_libdir_separator_CXX=':'
18392 link_all_deplibs_CXX=yes
18393 file_list_spec_CXX='${wl}-f,'
18395 if test "$GXX" = yes; then
18396 case $host_os in aix4.[012]|aix4.[012].*)
18397 # We only want to do this on AIX 4.2 and lower, the check
18398 # below for broken collect2 doesn't work under 4.3+
18399 collect2name=`${CC} -print-prog-name=collect2`
18400 if test -f "$collect2name" &&
18401 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18402 then
18403 # We have reworked collect2
18405 else
18406 # We have old collect2
18407 hardcode_direct_CXX=unsupported
18408 # It fails to find uninstalled libraries when the uninstalled
18409 # path is not listed in the libpath. Setting hardcode_minus_L
18410 # to unsupported forces relinking
18411 hardcode_minus_L_CXX=yes
18412 hardcode_libdir_flag_spec_CXX='-L$libdir'
18413 hardcode_libdir_separator_CXX=
18415 esac
18416 shared_flag='-shared'
18417 if test "$aix_use_runtimelinking" = yes; then
18418 shared_flag="$shared_flag "'${wl}-G'
18420 else
18421 # not using gcc
18422 if test "$host_cpu" = ia64; then
18423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18424 # chokes on -Wl,-G. The following line is correct:
18425 shared_flag='-G'
18426 else
18427 if test "$aix_use_runtimelinking" = yes; then
18428 shared_flag='${wl}-G'
18429 else
18430 shared_flag='${wl}-bM:SRE'
18435 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18436 # It seems that -bexpall does not export symbols beginning with
18437 # underscore (_), so it is better to generate a list of symbols to
18438 # export.
18439 always_export_symbols_CXX=yes
18440 if test "$aix_use_runtimelinking" = yes; then
18441 # Warning - without using the other runtime loading flags (-brtl),
18442 # -berok will link without error, but may produce a broken library.
18443 allow_undefined_flag_CXX='-berok'
18444 # Determine the default libpath from the value encoded in an empty
18445 # executable.
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18450 main ()
18454 return 0;
18456 _ACEOF
18457 if ac_fn_cxx_try_link "$LINENO"; then :
18459 lt_aix_libpath_sed='
18460 /Import File Strings/,/^$/ {
18461 /^0/ {
18462 s/^0 *\(.*\)$/\1/
18466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18467 # Check for a 64-bit object if we didn't find anything.
18468 if test -z "$aix_libpath"; then
18469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18472 rm -f core conftest.err conftest.$ac_objext \
18473 conftest$ac_exeext conftest.$ac_ext
18474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18476 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18478 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"
18479 else
18480 if test "$host_cpu" = ia64; then
18481 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18482 allow_undefined_flag_CXX="-z nodefs"
18483 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"
18484 else
18485 # Determine the default libpath from the value encoded in an
18486 # empty executable.
18487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18491 main ()
18495 return 0;
18497 _ACEOF
18498 if ac_fn_cxx_try_link "$LINENO"; then :
18500 lt_aix_libpath_sed='
18501 /Import File Strings/,/^$/ {
18502 /^0/ {
18503 s/^0 *\(.*\)$/\1/
18507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18508 # Check for a 64-bit object if we didn't find anything.
18509 if test -z "$aix_libpath"; then
18510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18513 rm -f core conftest.err conftest.$ac_objext \
18514 conftest$ac_exeext conftest.$ac_ext
18515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18517 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18518 # Warning - without using the other run time loading flags,
18519 # -berok will link without error, but may produce a broken library.
18520 no_undefined_flag_CXX=' ${wl}-bernotok'
18521 allow_undefined_flag_CXX=' ${wl}-berok'
18522 if test "$with_gnu_ld" = yes; then
18523 # We only use this code for GNU lds that support --whole-archive.
18524 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18525 else
18526 # Exported symbols can be pulled into shared objects from archives
18527 whole_archive_flag_spec_CXX='$convenience'
18529 archive_cmds_need_lc_CXX=yes
18530 # This is similar to how AIX traditionally builds its shared
18531 # libraries.
18532 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'
18537 beos*)
18538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18539 allow_undefined_flag_CXX=unsupported
18540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18541 # support --undefined. This deserves some investigation. FIXME
18542 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18543 else
18544 ld_shlibs_CXX=no
18548 chorus*)
18549 case $cc_basename in
18551 # FIXME: insert proper C++ library support
18552 ld_shlibs_CXX=no
18554 esac
18557 cygwin* | mingw* | pw32* | cegcc*)
18558 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18559 # as there is no search path for DLLs.
18560 hardcode_libdir_flag_spec_CXX='-L$libdir'
18561 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18562 allow_undefined_flag_CXX=unsupported
18563 always_export_symbols_CXX=no
18564 enable_shared_with_static_runtimes_CXX=yes
18566 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18567 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'
18568 # If the export-symbols file already is a .def file (1st line
18569 # is EXPORTS), use it as is; otherwise, prepend...
18570 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18571 cp $export_symbols $output_objdir/$soname.def;
18572 else
18573 echo EXPORTS > $output_objdir/$soname.def;
18574 cat $export_symbols >> $output_objdir/$soname.def;
18576 $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'
18577 else
18578 ld_shlibs_CXX=no
18581 darwin* | rhapsody*)
18584 archive_cmds_need_lc_CXX=no
18585 hardcode_direct_CXX=no
18586 hardcode_automatic_CXX=yes
18587 hardcode_shlibpath_var_CXX=unsupported
18588 if test "$lt_cv_ld_force_load" = "yes"; then
18589 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\"`'
18590 else
18591 whole_archive_flag_spec_CXX=''
18593 link_all_deplibs_CXX=yes
18594 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18595 case $cc_basename in
18596 ifort*) _lt_dar_can_shared=yes ;;
18597 *) _lt_dar_can_shared=$GCC ;;
18598 esac
18599 if test "$_lt_dar_can_shared" = "yes"; then
18600 output_verbose_link_cmd=func_echo_all
18601 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}"
18602 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18603 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}"
18604 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}"
18605 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18606 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}"
18607 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}"
18610 else
18611 ld_shlibs_CXX=no
18616 dgux*)
18617 case $cc_basename in
18618 ec++*)
18619 # FIXME: insert proper C++ library support
18620 ld_shlibs_CXX=no
18622 ghcx*)
18623 # Green Hills C++ Compiler
18624 # FIXME: insert proper C++ library support
18625 ld_shlibs_CXX=no
18628 # FIXME: insert proper C++ library support
18629 ld_shlibs_CXX=no
18631 esac
18634 freebsd[12]*)
18635 # C++ shared libraries reported to be fairly broken before
18636 # switch to ELF
18637 ld_shlibs_CXX=no
18640 freebsd-elf*)
18641 archive_cmds_need_lc_CXX=no
18644 freebsd* | dragonfly*)
18645 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18646 # conventions
18647 ld_shlibs_CXX=yes
18650 gnu*)
18653 haiku*)
18654 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 link_all_deplibs_CXX=yes
18658 hpux9*)
18659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18660 hardcode_libdir_separator_CXX=:
18661 export_dynamic_flag_spec_CXX='${wl}-E'
18662 hardcode_direct_CXX=yes
18663 hardcode_minus_L_CXX=yes # Not in the search PATH,
18664 # but as the default
18665 # location of the library.
18667 case $cc_basename in
18668 CC*)
18669 # FIXME: insert proper C++ library support
18670 ld_shlibs_CXX=no
18672 aCC*)
18673 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'
18674 # Commands to make compiler produce verbose output that lists
18675 # what "hidden" libraries, object files and flags are used when
18676 # linking a shared library.
18678 # There doesn't appear to be a way to prevent this compiler from
18679 # explicitly linking system object files so we need to strip them
18680 # from the output so that they don't get included in the library
18681 # dependencies.
18682 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"'
18685 if test "$GXX" = yes; then
18686 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'
18687 else
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18692 esac
18695 hpux10*|hpux11*)
18696 if test $with_gnu_ld = no; then
18697 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18698 hardcode_libdir_separator_CXX=:
18700 case $host_cpu in
18701 hppa*64*|ia64*)
18704 export_dynamic_flag_spec_CXX='${wl}-E'
18706 esac
18708 case $host_cpu in
18709 hppa*64*|ia64*)
18710 hardcode_direct_CXX=no
18711 hardcode_shlibpath_var_CXX=no
18714 hardcode_direct_CXX=yes
18715 hardcode_direct_absolute_CXX=yes
18716 hardcode_minus_L_CXX=yes # Not in the search PATH,
18717 # but as the default
18718 # location of the library.
18720 esac
18722 case $cc_basename in
18723 CC*)
18724 # FIXME: insert proper C++ library support
18725 ld_shlibs_CXX=no
18727 aCC*)
18728 case $host_cpu in
18729 hppa*64*)
18730 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18732 ia64*)
18733 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18736 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18738 esac
18739 # Commands to make compiler produce verbose output that lists
18740 # what "hidden" libraries, object files and flags are used when
18741 # linking a shared library.
18743 # There doesn't appear to be a way to prevent this compiler from
18744 # explicitly linking system object files so we need to strip them
18745 # from the output so that they don't get included in the library
18746 # dependencies.
18747 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"'
18750 if test "$GXX" = yes; then
18751 if test $with_gnu_ld = no; then
18752 case $host_cpu in
18753 hppa*64*)
18754 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18756 ia64*)
18757 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18760 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'
18762 esac
18764 else
18765 # FIXME: insert proper C++ library support
18766 ld_shlibs_CXX=no
18769 esac
18772 interix[3-9]*)
18773 hardcode_direct_CXX=no
18774 hardcode_shlibpath_var_CXX=no
18775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18776 export_dynamic_flag_spec_CXX='${wl}-E'
18777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18778 # Instead, shared libraries are loaded at an image base (0x10000000 by
18779 # default) and relocated if they conflict, which is a slow very memory
18780 # consuming and fragmenting process. To avoid this, we pick a random,
18781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18783 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'
18784 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'
18786 irix5* | irix6*)
18787 case $cc_basename in
18788 CC*)
18789 # SGI C++
18790 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'
18792 # Archives containing C++ object files must be created using
18793 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18794 # necessary to make sure instantiated templates are included
18795 # in the archive.
18796 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18799 if test "$GXX" = yes; then
18800 if test "$with_gnu_ld" = no; then
18801 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'
18802 else
18803 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'
18806 link_all_deplibs_CXX=yes
18808 esac
18809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18810 hardcode_libdir_separator_CXX=:
18811 inherit_rpath_CXX=yes
18814 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18815 case $cc_basename in
18816 KCC*)
18817 # Kuck and Associates, Inc. (KAI) C++ Compiler
18819 # KCC will only create a shared library if the output file
18820 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18821 # to its proper name (with version) after linking.
18822 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'
18823 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'
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
18828 # There doesn't appear to be a way to prevent this compiler from
18829 # explicitly linking system object files so we need to strip them
18830 # from the output so that they don't get included in the library
18831 # dependencies.
18832 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"'
18834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18837 # Archives containing C++ object files must be created using
18838 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18839 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18841 icpc* | ecpc* )
18842 # Intel C++
18843 with_gnu_ld=yes
18844 # version 8.0 and above of icpc choke on multiply defined symbols
18845 # if we add $predep_objects and $postdep_objects, however 7.1 and
18846 # earlier do not add the objects themselves.
18847 case `$CC -V 2>&1` in
18848 *"Version 7."*)
18849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18850 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'
18852 *) # Version 8.0 or newer
18853 tmp_idyn=
18854 case $host_cpu in
18855 ia64*) tmp_idyn=' -i_dynamic';;
18856 esac
18857 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18858 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'
18860 esac
18861 archive_cmds_need_lc_CXX=no
18862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18864 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18866 pgCC* | pgcpp*)
18867 # Portland Group C++ compiler
18868 case `$CC -V` in
18869 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18870 prelink_cmds_CXX='tpldir=Template.dir~
18871 rm -rf $tpldir~
18872 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18873 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18874 old_archive_cmds_CXX='tpldir=Template.dir~
18875 rm -rf $tpldir~
18876 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18877 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18878 $RANLIB $oldlib'
18879 archive_cmds_CXX='tpldir=Template.dir~
18880 rm -rf $tpldir~
18881 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18882 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18883 archive_expsym_cmds_CXX='tpldir=Template.dir~
18884 rm -rf $tpldir~
18885 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18886 $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'
18888 *) # Version 6 and above use weak symbols
18889 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18890 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'
18892 esac
18894 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18895 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18896 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'
18898 cxx*)
18899 # Compaq C++
18900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901 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'
18903 runpath_var=LD_RUN_PATH
18904 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18905 hardcode_libdir_separator_CXX=:
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18911 # There doesn't appear to be a way to prevent this compiler from
18912 # explicitly linking system object files so we need to strip them
18913 # from the output so that they don't get included in the library
18914 # dependencies.
18915 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'
18917 xl* | mpixl* | bgxl*)
18918 # IBM XL 8.0 on PPC, with GNU ld
18919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18921 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18922 if test "x$supports_anon_versioning" = xyes; then
18923 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18925 echo "local: *; };" >> $output_objdir/$libname.ver~
18926 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18930 case `$CC -V 2>&1 | sed 5q` in
18931 *Sun\ C*)
18932 # Sun C++ 5.9
18933 no_undefined_flag_CXX=' -zdefs'
18934 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18935 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'
18936 hardcode_libdir_flag_spec_CXX='-R$libdir'
18937 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'
18938 compiler_needs_object_CXX=yes
18940 # Not sure whether something based on
18941 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18942 # would be better.
18943 output_verbose_link_cmd='func_echo_all'
18945 # Archives containing C++ object files must be created using
18946 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18947 # necessary to make sure instantiated templates are included
18948 # in the archive.
18949 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18951 esac
18953 esac
18956 lynxos*)
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18961 m88k*)
18962 # FIXME: insert proper C++ library support
18963 ld_shlibs_CXX=no
18966 mvs*)
18967 case $cc_basename in
18968 cxx*)
18969 # FIXME: insert proper C++ library support
18970 ld_shlibs_CXX=no
18973 # FIXME: insert proper C++ library support
18974 ld_shlibs_CXX=no
18976 esac
18979 netbsd*)
18980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18981 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18982 wlarc=
18983 hardcode_libdir_flag_spec_CXX='-R$libdir'
18984 hardcode_direct_CXX=yes
18985 hardcode_shlibpath_var_CXX=no
18987 # Workaround some broken pre-1.5 toolchains
18988 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18991 *nto* | *qnx*)
18992 ld_shlibs_CXX=yes
18995 openbsd2*)
18996 # C++ shared libraries are fairly broken
18997 ld_shlibs_CXX=no
19000 openbsd*)
19001 if test -f /usr/libexec/ld.so; then
19002 hardcode_direct_CXX=yes
19003 hardcode_shlibpath_var_CXX=no
19004 hardcode_direct_absolute_CXX=yes
19005 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19008 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19009 export_dynamic_flag_spec_CXX='${wl}-E'
19010 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19012 output_verbose_link_cmd=func_echo_all
19013 else
19014 ld_shlibs_CXX=no
19018 osf3* | osf4* | osf5*)
19019 case $cc_basename in
19020 KCC*)
19021 # Kuck and Associates, Inc. (KAI) C++ Compiler
19023 # KCC will only create a shared library if the output file
19024 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19025 # to its proper name (with version) after linking.
19026 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'
19028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19029 hardcode_libdir_separator_CXX=:
19031 # Archives containing C++ object files must be created using
19032 # the KAI C++ compiler.
19033 case $host in
19034 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19035 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19036 esac
19038 RCC*)
19039 # Rational C++ 2.4.1
19040 # FIXME: insert proper C++ library support
19041 ld_shlibs_CXX=no
19043 cxx*)
19044 case $host in
19045 osf3*)
19046 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19047 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'
19048 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19051 allow_undefined_flag_CXX=' -expect_unresolved \*'
19052 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'
19053 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19054 echo "-hidden">> $lib.exp~
19055 $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~
19056 $RM $lib.exp'
19057 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19059 esac
19061 hardcode_libdir_separator_CXX=:
19063 # Commands to make compiler produce verbose output that lists
19064 # what "hidden" libraries, object files and flags are used when
19065 # linking a shared library.
19067 # There doesn't appear to be a way to prevent this compiler from
19068 # explicitly linking system object files so we need to strip them
19069 # from the output so that they don't get included in the library
19070 # dependencies.
19071 output_verbose_link_cmd='templist=`$CC -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"'
19074 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19076 case $host in
19077 osf3*)
19078 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'
19081 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'
19083 esac
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19086 hardcode_libdir_separator_CXX=:
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19093 else
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19098 esac
19101 psos*)
19102 # FIXME: insert proper C++ library support
19103 ld_shlibs_CXX=no
19106 sunos4*)
19107 case $cc_basename in
19108 CC*)
19109 # Sun C++ 4.x
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19113 lcc*)
19114 # Lucid
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19122 esac
19125 solaris*)
19126 case $cc_basename in
19127 CC*)
19128 # Sun C++ 4.2, 5.x and Centerline C++
19129 archive_cmds_need_lc_CXX=yes
19130 no_undefined_flag_CXX=' -zdefs'
19131 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19133 $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'
19135 hardcode_libdir_flag_spec_CXX='-R$libdir'
19136 hardcode_shlibpath_var_CXX=no
19137 case $host_os in
19138 solaris2.[0-5] | solaris2.[0-5].*) ;;
19140 # The compiler driver will combine and reorder linker options,
19141 # but understands `-z linker_flag'.
19142 # Supported since Solaris 2.6 (maybe 2.5.1?)
19143 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19145 esac
19146 link_all_deplibs_CXX=yes
19148 output_verbose_link_cmd='func_echo_all'
19150 # Archives containing C++ object files must be created using
19151 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19152 # necessary to make sure instantiated templates are included
19153 # in the archive.
19154 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19156 gcx*)
19157 # Green Hills C++ Compiler
19158 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19160 # The C++ compiler must be used to create the archive.
19161 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19164 # GNU C++ compiler with Solaris linker
19165 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19166 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19167 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19168 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19169 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19170 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19172 # Commands to make compiler produce verbose output that lists
19173 # what "hidden" libraries, object files and flags are used when
19174 # linking a shared library.
19175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19176 else
19177 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19178 # platform.
19179 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19180 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19181 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19183 # Commands to make compiler produce verbose output that lists
19184 # what "hidden" libraries, object files and flags are used when
19185 # linking a shared library.
19186 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19189 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19190 case $host_os in
19191 solaris2.[0-5] | solaris2.[0-5].*) ;;
19193 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19195 esac
19198 esac
19201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19202 no_undefined_flag_CXX='${wl}-z,text'
19203 archive_cmds_need_lc_CXX=no
19204 hardcode_shlibpath_var_CXX=no
19205 runpath_var='LD_RUN_PATH'
19207 case $cc_basename in
19208 CC*)
19209 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19210 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19213 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19214 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19216 esac
19219 sysv5* | sco3.2v5* | sco5v6*)
19220 # Note: We can NOT use -z defs as we might desire, because we do not
19221 # link with -lc, and that would cause any symbols used from libc to
19222 # always be unresolved, which means just about no library would
19223 # ever link correctly. If we're not using GNU ld we use -z text
19224 # though, which does catch some bad symbols but isn't as heavy-handed
19225 # as -z defs.
19226 no_undefined_flag_CXX='${wl}-z,text'
19227 allow_undefined_flag_CXX='${wl}-z,nodefs'
19228 archive_cmds_need_lc_CXX=no
19229 hardcode_shlibpath_var_CXX=no
19230 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19231 hardcode_libdir_separator_CXX=':'
19232 link_all_deplibs_CXX=yes
19233 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19234 runpath_var='LD_RUN_PATH'
19236 case $cc_basename in
19237 CC*)
19238 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19239 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19240 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19241 '"$old_archive_cmds_CXX"
19242 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19243 '"$reload_cmds_CXX"
19246 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19247 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19249 esac
19252 tandem*)
19253 case $cc_basename in
19254 NCC*)
19255 # NonStop-UX NCC 3.20
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19263 esac
19266 vxworks*)
19267 # FIXME: insert proper C++ library support
19268 ld_shlibs_CXX=no
19272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19275 esac
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19278 $as_echo "$ld_shlibs_CXX" >&6; }
19279 test "$ld_shlibs_CXX" = no && can_build_shared=no
19281 GCC_CXX="$GXX"
19282 LD_CXX="$LD"
19284 ## CAVEAT EMPTOR:
19285 ## There is no encapsulation within the following macros, do not change
19286 ## the running order or otherwise move them around unless you know exactly
19287 ## what you are doing...
19288 # Dependencies to place before and after the object being linked:
19289 predep_objects_CXX=
19290 postdep_objects_CXX=
19291 predeps_CXX=
19292 postdeps_CXX=
19293 compiler_lib_search_path_CXX=
19295 cat > conftest.$ac_ext <<_LT_EOF
19296 class Foo
19298 public:
19299 Foo (void) { a = 0; }
19300 private:
19301 int a;
19303 _LT_EOF
19305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19306 (eval $ac_compile) 2>&5
19307 ac_status=$?
19308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19309 test $ac_status = 0; }; then
19310 # Parse the compiler output and extract the necessary
19311 # objects, libraries and library flags.
19313 # Sentinel used to keep track of whether or not we are before
19314 # the conftest object file.
19315 pre_test_object_deps_done=no
19317 for p in `eval "$output_verbose_link_cmd"`; do
19318 case $p in
19320 -L* | -R* | -l*)
19321 # Some compilers place space between "-{L,R}" and the path.
19322 # Remove the space.
19323 if test $p = "-L" ||
19324 test $p = "-R"; then
19325 prev=$p
19326 continue
19327 else
19328 prev=
19331 if test "$pre_test_object_deps_done" = no; then
19332 case $p in
19333 -L* | -R*)
19334 # Internal compiler library paths should come after those
19335 # provided the user. The postdeps already come after the
19336 # user supplied libs so there is no need to process them.
19337 if test -z "$compiler_lib_search_path_CXX"; then
19338 compiler_lib_search_path_CXX="${prev}${p}"
19339 else
19340 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19343 # The "-l" case would never come before the object being
19344 # linked, so don't bother handling this case.
19345 esac
19346 else
19347 if test -z "$postdeps_CXX"; then
19348 postdeps_CXX="${prev}${p}"
19349 else
19350 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19355 *.$objext)
19356 # This assumes that the test object file only shows up
19357 # once in the compiler output.
19358 if test "$p" = "conftest.$objext"; then
19359 pre_test_object_deps_done=yes
19360 continue
19363 if test "$pre_test_object_deps_done" = no; then
19364 if test -z "$predep_objects_CXX"; then
19365 predep_objects_CXX="$p"
19366 else
19367 predep_objects_CXX="$predep_objects_CXX $p"
19369 else
19370 if test -z "$postdep_objects_CXX"; then
19371 postdep_objects_CXX="$p"
19372 else
19373 postdep_objects_CXX="$postdep_objects_CXX $p"
19378 *) ;; # Ignore the rest.
19380 esac
19381 done
19383 # Clean up.
19384 rm -f a.out a.exe
19385 else
19386 echo "libtool.m4: error: problem compiling CXX test program"
19389 $RM -f confest.$objext
19391 # PORTME: override above test on systems where it is broken
19392 case $host_os in
19393 interix[3-9]*)
19394 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19395 # hack all around it, let's just trust "g++" to DTRT.
19396 predep_objects_CXX=
19397 postdep_objects_CXX=
19398 postdeps_CXX=
19401 linux*)
19402 case `$CC -V 2>&1 | sed 5q` in
19403 *Sun\ C*)
19404 # Sun C++ 5.9
19406 # The more standards-conforming stlport4 library is
19407 # incompatible with the Cstd library. Avoid specifying
19408 # it if it's in CXXFLAGS. Ignore libCrun as
19409 # -library=stlport4 depends on it.
19410 case " $CXX $CXXFLAGS " in
19411 *" -library=stlport4 "*)
19412 solaris_use_stlport4=yes
19414 esac
19416 if test "$solaris_use_stlport4" != yes; then
19417 postdeps_CXX='-library=Cstd -library=Crun'
19420 esac
19423 solaris*)
19424 case $cc_basename in
19425 CC*)
19426 # The more standards-conforming stlport4 library is
19427 # incompatible with the Cstd library. Avoid specifying
19428 # it if it's in CXXFLAGS. Ignore libCrun as
19429 # -library=stlport4 depends on it.
19430 case " $CXX $CXXFLAGS " in
19431 *" -library=stlport4 "*)
19432 solaris_use_stlport4=yes
19434 esac
19436 # Adding this requires a known-good setup of shared libraries for
19437 # Sun compiler versions before 5.6, else PIC objects from an old
19438 # archive will be linked into the output, leading to subtle bugs.
19439 if test "$solaris_use_stlport4" != yes; then
19440 postdeps_CXX='-library=Cstd -library=Crun'
19443 esac
19445 esac
19448 case " $postdeps_CXX " in
19449 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19450 esac
19451 compiler_lib_search_dirs_CXX=
19452 if test -n "${compiler_lib_search_path_CXX}"; then
19453 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19486 lt_prog_compiler_wl_CXX=
19487 lt_prog_compiler_pic_CXX=
19488 lt_prog_compiler_static_CXX=
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19491 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19493 # C++ specific cases for pic, static, wl, etc.
19494 if test "$GXX" = yes; then
19495 lt_prog_compiler_wl_CXX='-Wl,'
19496 lt_prog_compiler_static_CXX='-static'
19498 case $host_os in
19499 aix*)
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX='-Bstatic'
19507 amigaos*)
19508 case $host_cpu in
19509 powerpc)
19510 # see comment about AmigaOS4 .so support
19511 lt_prog_compiler_pic_CXX='-fPIC'
19513 m68k)
19514 # FIXME: we need at least 68020 code to build shared libraries, but
19515 # adding the `-m68020' flag to GCC prevents building anything better,
19516 # like `-m68040'.
19517 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19519 esac
19522 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19523 # PIC is the default for these OSes.
19525 mingw* | cygwin* | os2* | pw32* | cegcc*)
19526 # This hack is so that the source file can tell whether it is being
19527 # built for inclusion in a dll (and should export symbols for example).
19528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19529 # (--disable-auto-import) libraries
19530 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19532 darwin* | rhapsody*)
19533 # PIC is the default on this platform
19534 # Common symbols not allowed in MH_DYLIB files
19535 lt_prog_compiler_pic_CXX='-fno-common'
19537 *djgpp*)
19538 # DJGPP does not support shared libraries at all
19539 lt_prog_compiler_pic_CXX=
19541 haiku*)
19542 # PIC is the default for Haiku.
19543 # The "-static" flag exists, but is broken.
19544 lt_prog_compiler_static_CXX=
19546 interix[3-9]*)
19547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19548 # Instead, we relocate shared libraries at runtime.
19550 sysv4*MP*)
19551 if test -d /usr/nec; then
19552 lt_prog_compiler_pic_CXX=-Kconform_pic
19555 hpux*)
19556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19558 # sets the default TLS model and affects inlining.
19559 case $host_cpu in
19560 hppa*64*)
19563 lt_prog_compiler_pic_CXX='-fPIC'
19565 esac
19567 *qnx* | *nto*)
19568 # QNX uses GNU C++, but need to define -shared option too, otherwise
19569 # it will coredump.
19570 lt_prog_compiler_pic_CXX='-fPIC -shared'
19573 lt_prog_compiler_pic_CXX='-fPIC'
19575 esac
19576 else
19577 case $host_os in
19578 aix[4-9]*)
19579 # All AIX code is PIC.
19580 if test "$host_cpu" = ia64; then
19581 # AIX 5 now supports IA64 processor
19582 lt_prog_compiler_static_CXX='-Bstatic'
19583 else
19584 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19587 chorus*)
19588 case $cc_basename in
19589 cxch68*)
19590 # Green Hills C++ Compiler
19591 # _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"
19593 esac
19595 dgux*)
19596 case $cc_basename in
19597 ec++*)
19598 lt_prog_compiler_pic_CXX='-KPIC'
19600 ghcx*)
19601 # Green Hills C++ Compiler
19602 lt_prog_compiler_pic_CXX='-pic'
19606 esac
19608 freebsd* | dragonfly*)
19609 # FreeBSD uses GNU C++
19611 hpux9* | hpux10* | hpux11*)
19612 case $cc_basename in
19613 CC*)
19614 lt_prog_compiler_wl_CXX='-Wl,'
19615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19616 if test "$host_cpu" != ia64; then
19617 lt_prog_compiler_pic_CXX='+Z'
19620 aCC*)
19621 lt_prog_compiler_wl_CXX='-Wl,'
19622 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19623 case $host_cpu in
19624 hppa*64*|ia64*)
19625 # +Z the default
19628 lt_prog_compiler_pic_CXX='+Z'
19630 esac
19634 esac
19636 interix*)
19637 # This is c89, which is MS Visual C++ (no shared libs)
19638 # Anyone wants to do a port?
19640 irix5* | irix6* | nonstopux*)
19641 case $cc_basename in
19642 CC*)
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_static_CXX='-non_shared'
19645 # CC pic flag -KPIC is the default.
19649 esac
19651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19652 case $cc_basename in
19653 KCC*)
19654 # KAI C++ Compiler
19655 lt_prog_compiler_wl_CXX='--backend -Wl,'
19656 lt_prog_compiler_pic_CXX='-fPIC'
19658 ecpc* )
19659 # old Intel C++ for x86_64 which still supported -KPIC.
19660 lt_prog_compiler_wl_CXX='-Wl,'
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-static'
19664 icpc* )
19665 # Intel C++, used to be incompatible with GCC.
19666 # ICC 10 doesn't accept -KPIC any more.
19667 lt_prog_compiler_wl_CXX='-Wl,'
19668 lt_prog_compiler_pic_CXX='-fPIC'
19669 lt_prog_compiler_static_CXX='-static'
19671 pgCC* | pgcpp*)
19672 # Portland Group C++ compiler
19673 lt_prog_compiler_wl_CXX='-Wl,'
19674 lt_prog_compiler_pic_CXX='-fpic'
19675 lt_prog_compiler_static_CXX='-Bstatic'
19677 cxx*)
19678 # Compaq C++
19679 # Make sure the PIC flag is empty. It appears that all Alpha
19680 # Linux and Compaq Tru64 Unix objects are PIC.
19681 lt_prog_compiler_pic_CXX=
19682 lt_prog_compiler_static_CXX='-non_shared'
19684 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19685 # IBM XL 8.0, 9.0 on PPC and BlueGene
19686 lt_prog_compiler_wl_CXX='-Wl,'
19687 lt_prog_compiler_pic_CXX='-qpic'
19688 lt_prog_compiler_static_CXX='-qstaticlink'
19691 case `$CC -V 2>&1 | sed 5q` in
19692 *Sun\ C*)
19693 # Sun C++ 5.9
19694 lt_prog_compiler_pic_CXX='-KPIC'
19695 lt_prog_compiler_static_CXX='-Bstatic'
19696 lt_prog_compiler_wl_CXX='-Qoption ld '
19698 esac
19700 esac
19702 lynxos*)
19704 m88k*)
19706 mvs*)
19707 case $cc_basename in
19708 cxx*)
19709 lt_prog_compiler_pic_CXX='-W c,exportall'
19713 esac
19715 netbsd*)
19717 *qnx* | *nto*)
19718 # QNX uses GNU C++, but need to define -shared option too, otherwise
19719 # it will coredump.
19720 lt_prog_compiler_pic_CXX='-fPIC -shared'
19722 osf3* | osf4* | osf5*)
19723 case $cc_basename in
19724 KCC*)
19725 lt_prog_compiler_wl_CXX='--backend -Wl,'
19727 RCC*)
19728 # Rational C++ 2.4.1
19729 lt_prog_compiler_pic_CXX='-pic'
19731 cxx*)
19732 # Digital/Compaq C++
19733 lt_prog_compiler_wl_CXX='-Wl,'
19734 # Make sure the PIC flag is empty. It appears that all Alpha
19735 # Linux and Compaq Tru64 Unix objects are PIC.
19736 lt_prog_compiler_pic_CXX=
19737 lt_prog_compiler_static_CXX='-non_shared'
19741 esac
19743 psos*)
19745 solaris*)
19746 case $cc_basename in
19747 CC*)
19748 # Sun C++ 4.2, 5.x and Centerline C++
19749 lt_prog_compiler_pic_CXX='-KPIC'
19750 lt_prog_compiler_static_CXX='-Bstatic'
19751 lt_prog_compiler_wl_CXX='-Qoption ld '
19753 gcx*)
19754 # Green Hills C++ Compiler
19755 lt_prog_compiler_pic_CXX='-PIC'
19759 esac
19761 sunos4*)
19762 case $cc_basename in
19763 CC*)
19764 # Sun C++ 4.x
19765 lt_prog_compiler_pic_CXX='-pic'
19766 lt_prog_compiler_static_CXX='-Bstatic'
19768 lcc*)
19769 # Lucid
19770 lt_prog_compiler_pic_CXX='-pic'
19774 esac
19776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19777 case $cc_basename in
19778 CC*)
19779 lt_prog_compiler_wl_CXX='-Wl,'
19780 lt_prog_compiler_pic_CXX='-KPIC'
19781 lt_prog_compiler_static_CXX='-Bstatic'
19783 esac
19785 tandem*)
19786 case $cc_basename in
19787 NCC*)
19788 # NonStop-UX NCC 3.20
19789 lt_prog_compiler_pic_CXX='-KPIC'
19793 esac
19795 vxworks*)
19798 lt_prog_compiler_can_build_shared_CXX=no
19800 esac
19803 case $host_os in
19804 # For platforms which do not support PIC, -DPIC is meaningless:
19805 *djgpp*)
19806 lt_prog_compiler_pic_CXX=
19809 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19811 esac
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19813 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19818 # Check to make sure the PIC flag actually works.
19820 if test -n "$lt_prog_compiler_pic_CXX"; then
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19822 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19823 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19824 $as_echo_n "(cached) " >&6
19825 else
19826 lt_cv_prog_compiler_pic_works_CXX=no
19827 ac_outfile=conftest.$ac_objext
19828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19829 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19830 # Insert the option either (1) after the last *FLAGS variable, or
19831 # (2) before a word containing "conftest.", or (3) at the end.
19832 # Note that $ac_compile itself does not contain backslashes and begins
19833 # with a dollar sign (not a hyphen), so the echo should work correctly.
19834 # The option is referenced via a variable to avoid confusing sed.
19835 lt_compile=`echo "$ac_compile" | $SED \
19836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19838 -e 's:$: $lt_compiler_flag:'`
19839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19840 (eval "$lt_compile" 2>conftest.err)
19841 ac_status=$?
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 if (exit $ac_status) && test -s "$ac_outfile"; then
19845 # The compiler can only warn and ignore the option if not recognized
19846 # So say no if there are warnings other than the usual output.
19847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19850 lt_cv_prog_compiler_pic_works_CXX=yes
19853 $RM conftest*
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19857 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19859 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19860 case $lt_prog_compiler_pic_CXX in
19861 "" | " "*) ;;
19862 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19863 esac
19864 else
19865 lt_prog_compiler_pic_CXX=
19866 lt_prog_compiler_can_build_shared_CXX=no
19874 # Check to make sure the static flag actually works.
19876 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19878 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19879 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19880 $as_echo_n "(cached) " >&6
19881 else
19882 lt_cv_prog_compiler_static_works_CXX=no
19883 save_LDFLAGS="$LDFLAGS"
19884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19885 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19887 # The linker can only warn and ignore the option if not recognized
19888 # So say no if there are warnings
19889 if test -s conftest.err; then
19890 # Append any errors to the config.log.
19891 cat conftest.err 1>&5
19892 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19894 if diff conftest.exp conftest.er2 >/dev/null; then
19895 lt_cv_prog_compiler_static_works_CXX=yes
19897 else
19898 lt_cv_prog_compiler_static_works_CXX=yes
19901 $RM -r conftest*
19902 LDFLAGS="$save_LDFLAGS"
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19906 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19908 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19910 else
19911 lt_prog_compiler_static_CXX=
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19919 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19920 $as_echo_n "(cached) " >&6
19921 else
19922 lt_cv_prog_compiler_c_o_CXX=no
19923 $RM -r conftest 2>/dev/null
19924 mkdir conftest
19925 cd conftest
19926 mkdir out
19927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19929 lt_compiler_flag="-o out/conftest2.$ac_objext"
19930 # Insert the option either (1) after the last *FLAGS variable, or
19931 # (2) before a word containing "conftest.", or (3) at the end.
19932 # Note that $ac_compile itself does not contain backslashes and begins
19933 # with a dollar sign (not a hyphen), so the echo should work correctly.
19934 lt_compile=`echo "$ac_compile" | $SED \
19935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19937 -e 's:$: $lt_compiler_flag:'`
19938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19939 (eval "$lt_compile" 2>out/conftest.err)
19940 ac_status=$?
19941 cat out/conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19944 then
19945 # The compiler can only warn and ignore the option if not recognized
19946 # So say no if there are warnings
19947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19950 lt_cv_prog_compiler_c_o_CXX=yes
19953 chmod u+w . 2>&5
19954 $RM conftest*
19955 # SGI C++ compiler will create directory out/ii_files/ for
19956 # template instantiation
19957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19958 $RM out/* && rmdir out
19959 cd ..
19960 $RM -r conftest
19961 $RM conftest*
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19965 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19971 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19972 $as_echo_n "(cached) " >&6
19973 else
19974 lt_cv_prog_compiler_c_o_CXX=no
19975 $RM -r conftest 2>/dev/null
19976 mkdir conftest
19977 cd conftest
19978 mkdir out
19979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19981 lt_compiler_flag="-o out/conftest2.$ac_objext"
19982 # Insert the option either (1) after the last *FLAGS variable, or
19983 # (2) before a word containing "conftest.", or (3) at the end.
19984 # Note that $ac_compile itself does not contain backslashes and begins
19985 # with a dollar sign (not a hyphen), so the echo should work correctly.
19986 lt_compile=`echo "$ac_compile" | $SED \
19987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19989 -e 's:$: $lt_compiler_flag:'`
19990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19991 (eval "$lt_compile" 2>out/conftest.err)
19992 ac_status=$?
19993 cat out/conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19996 then
19997 # The compiler can only warn and ignore the option if not recognized
19998 # So say no if there are warnings
19999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20002 lt_cv_prog_compiler_c_o_CXX=yes
20005 chmod u+w . 2>&5
20006 $RM conftest*
20007 # SGI C++ compiler will create directory out/ii_files/ for
20008 # template instantiation
20009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20010 $RM out/* && rmdir out
20011 cd ..
20012 $RM -r conftest
20013 $RM conftest*
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20017 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20022 hard_links="nottested"
20023 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20024 # do not overwrite the value of need_locks provided by the user
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20026 $as_echo_n "checking if we can lock with hard links... " >&6; }
20027 hard_links=yes
20028 $RM conftest*
20029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20030 touch conftest.a
20031 ln conftest.a conftest.b 2>&5 || hard_links=no
20032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20034 $as_echo "$hard_links" >&6; }
20035 if test "$hard_links" = no; then
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20037 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20038 need_locks=warn
20040 else
20041 need_locks=no
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20047 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20049 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20050 case $host_os in
20051 aix[4-9]*)
20052 # If we're using GNU nm, then we don't want the "-C" option.
20053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20054 # Also, AIX nm treats weak defined symbols like other global defined
20055 # symbols, whereas GNU nm marks them as "W".
20056 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20057 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'
20058 else
20059 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'
20062 pw32*)
20063 export_symbols_cmds_CXX="$ltdll_cmds"
20065 cygwin* | mingw* | cegcc*)
20066 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'
20069 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20071 esac
20072 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20075 $as_echo "$ld_shlibs_CXX" >&6; }
20076 test "$ld_shlibs_CXX" = no && can_build_shared=no
20078 with_gnu_ld_CXX=$with_gnu_ld
20086 # Do we need to explicitly link libc?
20088 case "x$archive_cmds_need_lc_CXX" in
20089 x|xyes)
20090 # Assume -lc should be added
20091 archive_cmds_need_lc_CXX=yes
20093 if test "$enable_shared" = yes && test "$GCC" = yes; then
20094 case $archive_cmds_CXX in
20095 *'~'*)
20096 # FIXME: we may have to deal with multi-command sequences.
20098 '$CC '*)
20099 # Test whether the compiler implicitly links with -lc since on some
20100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20101 # to ld, don't add -lc before -lgcc.
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20104 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20105 $as_echo_n "(cached) " >&6
20106 else
20107 $RM conftest*
20108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20111 (eval $ac_compile) 2>&5
20112 ac_status=$?
20113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20114 test $ac_status = 0; } 2>conftest.err; then
20115 soname=conftest
20116 lib=conftest
20117 libobjs=conftest.$ac_objext
20118 deplibs=
20119 wl=$lt_prog_compiler_wl_CXX
20120 pic_flag=$lt_prog_compiler_pic_CXX
20121 compiler_flags=-v
20122 linker_flags=-v
20123 verstring=
20124 output_objdir=.
20125 libname=conftest
20126 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20127 allow_undefined_flag_CXX=
20128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20129 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20130 ac_status=$?
20131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20132 test $ac_status = 0; }
20133 then
20134 lt_cv_archive_cmds_need_lc_CXX=no
20135 else
20136 lt_cv_archive_cmds_need_lc_CXX=yes
20138 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20139 else
20140 cat conftest.err 1>&5
20142 $RM conftest*
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20146 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20147 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20149 esac
20152 esac
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20218 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20220 library_names_spec=
20221 libname_spec='lib$name'
20222 soname_spec=
20223 shrext_cmds=".so"
20224 postinstall_cmds=
20225 postuninstall_cmds=
20226 finish_cmds=
20227 finish_eval=
20228 shlibpath_var=
20229 shlibpath_overrides_runpath=unknown
20230 version_type=none
20231 dynamic_linker="$host_os ld.so"
20232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20233 need_lib_prefix=unknown
20234 hardcode_into_libs=no
20236 # when you set need_version to no, make sure it does not cause -set_version
20237 # flags to be left without arguments
20238 need_version=unknown
20240 case $host_os in
20241 aix3*)
20242 version_type=linux
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20244 shlibpath_var=LIBPATH
20246 # AIX 3 has no versioning support, so we append a major version to the name.
20247 soname_spec='${libname}${release}${shared_ext}$major'
20250 aix[4-9]*)
20251 version_type=linux
20252 need_lib_prefix=no
20253 need_version=no
20254 hardcode_into_libs=yes
20255 if test "$host_cpu" = ia64; then
20256 # AIX 5 supports IA64
20257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 else
20260 # With GCC up to 2.95.x, collect2 would create an import file
20261 # for dependence libraries. The import file would start with
20262 # the line `#! .'. This would cause the generated library to
20263 # depend on `.', always an invalid library. This was fixed in
20264 # development snapshots of GCC prior to 3.0.
20265 case $host_os in
20266 aix4 | aix4.[01] | aix4.[01].*)
20267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20268 echo ' yes '
20269 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20271 else
20272 can_build_shared=no
20275 esac
20276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20277 # soname into executable. Probably we can add versioning support to
20278 # collect2, so additional links can be useful in future.
20279 if test "$aix_use_runtimelinking" = yes; then
20280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20281 # instead of lib<name>.a to let people know that these are not
20282 # typical AIX shared libraries.
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 else
20285 # We preserve .a as extension for shared libraries through AIX4.2
20286 # and later when we are not doing run time linking.
20287 library_names_spec='${libname}${release}.a $libname.a'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20290 shlibpath_var=LIBPATH
20294 amigaos*)
20295 case $host_cpu in
20296 powerpc)
20297 # Since July 2007 AmigaOS4 officially supports .so libraries.
20298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 m68k)
20302 library_names_spec='$libname.ixlibrary $libname.a'
20303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20304 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'
20306 esac
20309 beos*)
20310 library_names_spec='${libname}${shared_ext}'
20311 dynamic_linker="$host_os ld.so"
20312 shlibpath_var=LIBRARY_PATH
20315 bsdi[45]*)
20316 version_type=linux
20317 need_version=no
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 soname_spec='${libname}${release}${shared_ext}$major'
20320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20321 shlibpath_var=LD_LIBRARY_PATH
20322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20324 # the default ld.so.conf also contains /usr/contrib/lib and
20325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20326 # libtool to hard-code these into programs
20329 cygwin* | mingw* | pw32* | cegcc*)
20330 version_type=windows
20331 shrext_cmds=".dll"
20332 need_version=no
20333 need_lib_prefix=no
20335 case $GCC,$host_os in
20336 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20337 library_names_spec='$libname.dll.a'
20338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20339 postinstall_cmds='base_file=`basename \${file}`~
20340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20341 dldir=$destdir/`dirname \$dlpath`~
20342 test -d \$dldir || mkdir -p \$dldir~
20343 $install_prog $dir/$dlname \$dldir/$dlname~
20344 chmod a+x \$dldir/$dlname~
20345 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20346 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20349 dlpath=$dir/\$dldll~
20350 $RM \$dlpath'
20351 shlibpath_overrides_runpath=yes
20353 case $host_os in
20354 cygwin*)
20355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20356 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20359 mingw* | cegcc*)
20360 # MinGW DLLs use traditional 'lib' prefix
20361 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20363 pw32*)
20364 # pw32 DLLs use 'pw' prefix rather than 'lib'
20365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20367 esac
20371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20373 esac
20374 dynamic_linker='Win32 ld.exe'
20375 # FIXME: first we should search . and the directory the executable is in
20376 shlibpath_var=PATH
20379 darwin* | rhapsody*)
20380 dynamic_linker="$host_os dyld"
20381 version_type=darwin
20382 need_lib_prefix=no
20383 need_version=no
20384 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20385 soname_spec='${libname}${release}${major}$shared_ext'
20386 shlibpath_overrides_runpath=yes
20387 shlibpath_var=DYLD_LIBRARY_PATH
20388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20393 dgux*)
20394 version_type=linux
20395 need_lib_prefix=no
20396 need_version=no
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 shlibpath_var=LD_LIBRARY_PATH
20402 freebsd* | dragonfly*)
20403 # DragonFly does not have aout. When/if they implement a new
20404 # versioning mechanism, adjust this.
20405 if test -x /usr/bin/objformat; then
20406 objformat=`/usr/bin/objformat`
20407 else
20408 case $host_os in
20409 freebsd[123]*) objformat=aout ;;
20410 *) objformat=elf ;;
20411 esac
20413 version_type=freebsd-$objformat
20414 case $version_type in
20415 freebsd-elf*)
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20417 need_version=no
20418 need_lib_prefix=no
20420 freebsd-*)
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20422 need_version=yes
20424 esac
20425 shlibpath_var=LD_LIBRARY_PATH
20426 case $host_os in
20427 freebsd2*)
20428 shlibpath_overrides_runpath=yes
20430 freebsd3.[01]* | freebsdelf3.[01]*)
20431 shlibpath_overrides_runpath=yes
20432 hardcode_into_libs=yes
20434 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20435 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20436 shlibpath_overrides_runpath=no
20437 hardcode_into_libs=yes
20439 *) # from 4.6 on, and DragonFly
20440 shlibpath_overrides_runpath=yes
20441 hardcode_into_libs=yes
20443 esac
20446 gnu*)
20447 version_type=linux
20448 need_lib_prefix=no
20449 need_version=no
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 hardcode_into_libs=yes
20456 haiku*)
20457 version_type=linux
20458 need_lib_prefix=no
20459 need_version=no
20460 dynamic_linker="$host_os runtime_loader"
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20466 hardcode_into_libs=yes
20469 hpux9* | hpux10* | hpux11*)
20470 # Give a soname corresponding to the major version so that dld.sl refuses to
20471 # link against other versions.
20472 version_type=sunos
20473 need_lib_prefix=no
20474 need_version=no
20475 case $host_cpu in
20476 ia64*)
20477 shrext_cmds='.so'
20478 hardcode_into_libs=yes
20479 dynamic_linker="$host_os dld.so"
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 if test "X$HPUX_IA64_MODE" = X32; then
20485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20486 else
20487 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20491 hppa*64*)
20492 shrext_cmds='.sl'
20493 hardcode_into_libs=yes
20494 dynamic_linker="$host_os dld.sl"
20495 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20503 shrext_cmds='.sl'
20504 dynamic_linker="$host_os dld.sl"
20505 shlibpath_var=SHLIB_PATH
20506 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508 soname_spec='${libname}${release}${shared_ext}$major'
20510 esac
20511 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20512 postinstall_cmds='chmod 555 $lib'
20513 # or fails outright, so override atomically:
20514 install_override_mode=555
20517 interix[3-9]*)
20518 version_type=linux
20519 need_lib_prefix=no
20520 need_version=no
20521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 shlibpath_overrides_runpath=no
20526 hardcode_into_libs=yes
20529 irix5* | irix6* | nonstopux*)
20530 case $host_os in
20531 nonstopux*) version_type=nonstopux ;;
20533 if test "$lt_cv_prog_gnu_ld" = yes; then
20534 version_type=linux
20535 else
20536 version_type=irix
20537 fi ;;
20538 esac
20539 need_lib_prefix=no
20540 need_version=no
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20543 case $host_os in
20544 irix5* | nonstopux*)
20545 libsuff= shlibsuff=
20548 case $LD in # libtool.m4 will add one of these switches to LD
20549 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20550 libsuff= shlibsuff= libmagic=32-bit;;
20551 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20552 libsuff=32 shlibsuff=N32 libmagic=N32;;
20553 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20554 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20555 *) libsuff= shlibsuff= libmagic=never-match;;
20556 esac
20558 esac
20559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20560 shlibpath_overrides_runpath=no
20561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20563 hardcode_into_libs=yes
20566 # No shared lib support for Linux oldld, aout, or coff.
20567 linux*oldld* | linux*aout* | linux*coff*)
20568 dynamic_linker=no
20571 # This must be Linux ELF.
20572 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20573 version_type=linux
20574 need_lib_prefix=no
20575 need_version=no
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577 soname_spec='${libname}${release}${shared_ext}$major'
20578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 shlibpath_overrides_runpath=no
20582 # Some binutils ld are patched to set DT_RUNPATH
20583 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20584 $as_echo_n "(cached) " >&6
20585 else
20586 lt_cv_shlibpath_overrides_runpath=no
20587 save_LDFLAGS=$LDFLAGS
20588 save_libdir=$libdir
20589 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20590 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20595 main ()
20599 return 0;
20601 _ACEOF
20602 if ac_fn_cxx_try_link "$LINENO"; then :
20603 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20604 lt_cv_shlibpath_overrides_runpath=yes
20607 rm -f core conftest.err conftest.$ac_objext \
20608 conftest$ac_exeext conftest.$ac_ext
20609 LDFLAGS=$save_LDFLAGS
20610 libdir=$save_libdir
20614 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20616 # This implies no fast_install, which is unacceptable.
20617 # Some rework will be needed to allow for fast_install
20618 # before this can be enabled.
20619 hardcode_into_libs=yes
20621 # Append ld.so.conf contents to the search path
20622 if test -f /etc/ld.so.conf; then
20623 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' ' '`
20624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20627 # We used to test for /lib/ld.so.1 and disable shared libraries on
20628 # powerpc, because MkLinux only supported shared libraries with the
20629 # GNU dynamic linker. Since this was broken with cross compilers,
20630 # most powerpc-linux boxes support dynamic linking these days and
20631 # people can always --disable-shared, the test was removed, and we
20632 # assume the GNU/Linux dynamic linker is in use.
20633 dynamic_linker='GNU/Linux ld.so'
20636 netbsd*)
20637 version_type=sunos
20638 need_lib_prefix=no
20639 need_version=no
20640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20643 dynamic_linker='NetBSD (a.out) ld.so'
20644 else
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 dynamic_linker='NetBSD ld.elf_so'
20649 shlibpath_var=LD_LIBRARY_PATH
20650 shlibpath_overrides_runpath=yes
20651 hardcode_into_libs=yes
20654 newsos6)
20655 version_type=linux
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657 shlibpath_var=LD_LIBRARY_PATH
20658 shlibpath_overrides_runpath=yes
20661 *nto* | *qnx*)
20662 version_type=qnx
20663 need_lib_prefix=no
20664 need_version=no
20665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20666 soname_spec='${libname}${release}${shared_ext}$major'
20667 shlibpath_var=LD_LIBRARY_PATH
20668 shlibpath_overrides_runpath=no
20669 hardcode_into_libs=yes
20670 dynamic_linker='ldqnx.so'
20673 openbsd*)
20674 version_type=sunos
20675 sys_lib_dlsearch_path_spec="/usr/lib"
20676 need_lib_prefix=no
20677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20678 case $host_os in
20679 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20680 *) need_version=no ;;
20681 esac
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20686 case $host_os in
20687 openbsd2.[89] | openbsd2.[89].*)
20688 shlibpath_overrides_runpath=no
20691 shlibpath_overrides_runpath=yes
20693 esac
20694 else
20695 shlibpath_overrides_runpath=yes
20699 os2*)
20700 libname_spec='$name'
20701 shrext_cmds=".dll"
20702 need_lib_prefix=no
20703 library_names_spec='$libname${shared_ext} $libname.a'
20704 dynamic_linker='OS/2 ld.exe'
20705 shlibpath_var=LIBPATH
20708 osf3* | osf4* | osf5*)
20709 version_type=osf
20710 need_lib_prefix=no
20711 need_version=no
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20714 shlibpath_var=LD_LIBRARY_PATH
20715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20719 rdos*)
20720 dynamic_linker=no
20723 solaris*)
20724 version_type=linux
20725 need_lib_prefix=no
20726 need_version=no
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec='${libname}${release}${shared_ext}$major'
20729 shlibpath_var=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath=yes
20731 hardcode_into_libs=yes
20732 # ldd complains unless libraries are executable
20733 postinstall_cmds='chmod +x $lib'
20736 sunos4*)
20737 version_type=sunos
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20742 if test "$with_gnu_ld" = yes; then
20743 need_lib_prefix=no
20745 need_version=yes
20748 sysv4 | sysv4.3*)
20749 version_type=linux
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 shlibpath_var=LD_LIBRARY_PATH
20753 case $host_vendor in
20754 sni)
20755 shlibpath_overrides_runpath=no
20756 need_lib_prefix=no
20757 runpath_var=LD_RUN_PATH
20759 siemens)
20760 need_lib_prefix=no
20762 motorola)
20763 need_lib_prefix=no
20764 need_version=no
20765 shlibpath_overrides_runpath=no
20766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20768 esac
20771 sysv4*MP*)
20772 if test -d /usr/nec ;then
20773 version_type=linux
20774 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20775 soname_spec='$libname${shared_ext}.$major'
20776 shlibpath_var=LD_LIBRARY_PATH
20780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20781 version_type=freebsd-elf
20782 need_lib_prefix=no
20783 need_version=no
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=yes
20788 hardcode_into_libs=yes
20789 if test "$with_gnu_ld" = yes; then
20790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20791 else
20792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20793 case $host_os in
20794 sco3.2v5*)
20795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20797 esac
20799 sys_lib_dlsearch_path_spec='/usr/lib'
20802 tpf*)
20803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20804 version_type=linux
20805 need_lib_prefix=no
20806 need_version=no
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 shlibpath_var=LD_LIBRARY_PATH
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20813 uts4*)
20814 version_type=linux
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20816 soname_spec='${libname}${release}${shared_ext}$major'
20817 shlibpath_var=LD_LIBRARY_PATH
20821 dynamic_linker=no
20823 esac
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20825 $as_echo "$dynamic_linker" >&6; }
20826 test "$dynamic_linker" = no && can_build_shared=no
20828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20829 if test "$GCC" = yes; then
20830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20833 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20834 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20837 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20878 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20879 hardcode_action_CXX=
20880 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20881 test -n "$runpath_var_CXX" ||
20882 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20884 # We can hardcode non-existent directories.
20885 if test "$hardcode_direct_CXX" != no &&
20886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20887 # have to relink, otherwise we might link with an installed library
20888 # when we should be linking with a yet-to-be-installed one
20889 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20890 test "$hardcode_minus_L_CXX" != no; then
20891 # Linking always hardcodes the temporary library directory.
20892 hardcode_action_CXX=relink
20893 else
20894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20895 hardcode_action_CXX=immediate
20897 else
20898 # We cannot hardcode anything, or else we can only hardcode existing
20899 # directories.
20900 hardcode_action_CXX=unsupported
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20903 $as_echo "$hardcode_action_CXX" >&6; }
20905 if test "$hardcode_action_CXX" = relink ||
20906 test "$inherit_rpath_CXX" = yes; then
20907 # Fast installation is not supported
20908 enable_fast_install=no
20909 elif test "$shlibpath_overrides_runpath" = yes ||
20910 test "$enable_shared" = no; then
20911 # Fast installation is not necessary
20912 enable_fast_install=needless
20921 fi # test -n "$compiler"
20923 CC=$lt_save_CC
20924 LDCXX=$LD
20925 LD=$lt_save_LD
20926 GCC=$lt_save_GCC
20927 with_gnu_ld=$lt_save_with_gnu_ld
20928 lt_cv_path_LDCXX=$lt_cv_path_LD
20929 lt_cv_path_LD=$lt_save_path_LD
20930 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20931 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20932 fi # test "$_lt_caught_CXX_error" != yes
20934 ac_ext=c
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20955 # Only expand once:
20961 # Identify the assembler which will work hand-in-glove with the newly
20962 # built GCC, so that we can examine its features. This is the assembler
20963 # which will be driven by the driver program.
20965 # If build != host, and we aren't building gas in-tree, we identify a
20966 # build->target assembler and hope that it will have the same features
20967 # as the host->target assembler we'll be using.
20968 gcc_cv_gas_major_version=
20969 gcc_cv_gas_minor_version=
20970 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20972 if test "${gcc_cv_as+set}" = set; then :
20974 else
20976 if test -x "$DEFAULT_ASSEMBLER"; then
20977 gcc_cv_as="$DEFAULT_ASSEMBLER"
20978 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20979 && test -f ../gas/Makefile \
20980 && test x$build = x$host; then
20981 gcc_cv_as=../gas/as-new$build_exeext
20982 elif test -x as$build_exeext; then
20983 # Build using assembler in the current directory.
20984 gcc_cv_as=./as$build_exeext
20985 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20986 gcc_cv_as="$AS_FOR_TARGET"
20987 else
20988 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20989 set dummy $AS_FOR_TARGET; ac_word=$2
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20991 $as_echo_n "checking for $ac_word... " >&6; }
20992 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20993 $as_echo_n "(cached) " >&6
20994 else
20995 case $gcc_cv_as in
20996 [\\/]* | ?:[\\/]*)
20997 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21001 for as_dir in $PATH
21003 IFS=$as_save_IFS
21004 test -z "$as_dir" && as_dir=.
21005 for ac_exec_ext in '' $ac_executable_extensions; do
21006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21007 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21009 break 2
21011 done
21012 done
21013 IFS=$as_save_IFS
21016 esac
21018 gcc_cv_as=$ac_cv_path_gcc_cv_as
21019 if test -n "$gcc_cv_as"; then
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21021 $as_echo "$gcc_cv_as" >&6; }
21022 else
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21024 $as_echo "no" >&6; }
21031 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21033 case "$ORIGINAL_AS_FOR_TARGET" in
21034 ./as | ./as$build_exeext) ;;
21035 *) ac_config_files="$ac_config_files as:exec-tool.in"
21037 esac
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21040 $as_echo_n "checking what assembler to use... " >&6; }
21041 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21042 # Single tree build which includes gas. We want to prefer it
21043 # over whatever linker top-level may have detected, since
21044 # we'll use what we're building after installation anyway.
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21046 $as_echo "newly built gas" >&6; }
21047 in_tree_gas=yes
21048 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21049 for f in $gcc_cv_as_bfd_srcdir/configure \
21050 $gcc_cv_as_gas_srcdir/configure \
21051 $gcc_cv_as_gas_srcdir/configure.in \
21052 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21053 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21054 if test x$gcc_cv_gas_version != x; then
21055 break
21057 done
21058 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21059 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21060 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21061 case $gcc_cv_gas_patch_version in
21062 "") gcc_cv_gas_patch_version="0" ;;
21063 esac
21064 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21065 + $gcc_cv_gas_minor_version \) \* 1000 \
21066 + $gcc_cv_gas_patch_version`
21068 in_tree_gas_is_elf=no
21069 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21070 || (grep 'obj_format = multi' ../gas/Makefile \
21071 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21072 then
21073 in_tree_gas_is_elf=yes
21075 else
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21077 $as_echo "$gcc_cv_as" >&6; }
21078 in_tree_gas=no
21081 # Identify the linker which will work hand-in-glove with the newly
21082 # built GCC, so that we can examine its features. This is the linker
21083 # which will be driven by the driver program.
21085 # If build != host, and we aren't building gas in-tree, we identify a
21086 # build->target linker and hope that it will have the same features
21087 # as the host->target linker we'll be using.
21088 gcc_cv_gld_major_version=
21089 gcc_cv_gld_minor_version=
21090 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21091 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21093 if test "${gcc_cv_ld+set}" = set; then :
21095 else
21097 if test -x "$DEFAULT_LINKER"; then
21098 gcc_cv_ld="$DEFAULT_LINKER"
21099 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21100 && test -f ../ld/Makefile \
21101 && test x$build = x$host; then
21102 gcc_cv_ld=../ld/ld-new$build_exeext
21103 elif test -x collect-ld$build_exeext; then
21104 # Build using linker in the current directory.
21105 gcc_cv_ld=./collect-ld$build_exeext
21106 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21107 gcc_cv_ld="$LD_FOR_TARGET"
21108 else
21109 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21110 set dummy $LD_FOR_TARGET; ac_word=$2
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21112 $as_echo_n "checking for $ac_word... " >&6; }
21113 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21115 else
21116 case $gcc_cv_ld in
21117 [\\/]* | ?:[\\/]*)
21118 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21122 for as_dir in $PATH
21124 IFS=$as_save_IFS
21125 test -z "$as_dir" && as_dir=.
21126 for ac_exec_ext in '' $ac_executable_extensions; do
21127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21128 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21130 break 2
21132 done
21133 done
21134 IFS=$as_save_IFS
21137 esac
21139 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21140 if test -n "$gcc_cv_ld"; then
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21142 $as_echo "$gcc_cv_ld" >&6; }
21143 else
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 $as_echo "no" >&6; }
21152 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21153 PLUGIN_LD=`basename $gcc_cv_ld`
21155 # Check whether --with-plugin-ld was given.
21156 if test "${with_plugin_ld+set}" = set; then :
21157 withval=$with_plugin_ld; if test x"$withval" != x; then
21158 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21159 PLUGIN_LD="$withval"
21165 cat >>confdefs.h <<_ACEOF
21166 #define PLUGIN_LD "$PLUGIN_LD"
21167 _ACEOF
21170 # Check to see if we are using gold instead of ld
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21172 $as_echo_n "checking whether we are using gold... " >&6; }
21173 ld_is_gold=no
21174 if test x$gcc_cv_ld != x; then
21175 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21176 | grep "GNU gold" > /dev/null; then
21177 ld_is_gold=yes
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21181 $as_echo "$ld_is_gold" >&6; }
21183 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21185 case "$ORIGINAL_LD_FOR_TARGET" in
21186 ./collect-ld | ./collect-ld$build_exeext) ;;
21187 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21189 esac
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21192 $as_echo_n "checking what linker to use... " >&6; }
21193 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21194 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21195 # Single tree build which includes ld. We want to prefer it
21196 # over whatever linker top-level may have detected, since
21197 # we'll use what we're building after installation anyway.
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21199 $as_echo "newly built ld" >&6; }
21200 in_tree_ld=yes
21201 in_tree_ld_is_elf=no
21202 if (grep 'EMUL = .*elf' ../ld/Makefile \
21203 || grep 'EMUL = .*linux' ../ld/Makefile \
21204 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21205 in_tree_ld_is_elf=yes
21206 elif test "$ld_is_gold" = yes; then
21207 in_tree_ld_is_elf=yes
21209 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
21211 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21212 if test x$gcc_cv_gld_version != x; then
21213 break
21215 done
21216 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21217 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21218 else
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21220 $as_echo "$gcc_cv_ld" >&6; }
21221 in_tree_ld=no
21224 # Figure out what nm we will be using.
21225 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21226 if test "${gcc_cv_nm+set}" = set; then :
21228 else
21230 if test -f $gcc_cv_binutils_srcdir/configure.in \
21231 && test -f ../binutils/Makefile \
21232 && test x$build = x$host; then
21233 gcc_cv_nm=../binutils/nm-new$build_exeext
21234 elif test -x nm$build_exeext; then
21235 gcc_cv_nm=./nm$build_exeext
21236 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21237 gcc_cv_nm="$NM_FOR_TARGET"
21238 else
21239 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21240 set dummy $NM_FOR_TARGET; ac_word=$2
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21242 $as_echo_n "checking for $ac_word... " >&6; }
21243 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21244 $as_echo_n "(cached) " >&6
21245 else
21246 case $gcc_cv_nm in
21247 [\\/]* | ?:[\\/]*)
21248 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21252 for as_dir in $PATH
21254 IFS=$as_save_IFS
21255 test -z "$as_dir" && as_dir=.
21256 for ac_exec_ext in '' $ac_executable_extensions; do
21257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21258 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21260 break 2
21262 done
21263 done
21264 IFS=$as_save_IFS
21267 esac
21269 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21270 if test -n "$gcc_cv_nm"; then
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21272 $as_echo "$gcc_cv_nm" >&6; }
21273 else
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21275 $as_echo "no" >&6; }
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21283 $as_echo_n "checking what nm to use... " >&6; }
21284 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21285 # Single tree build which includes binutils.
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21287 $as_echo "newly built nm" >&6; }
21288 in_tree_nm=yes
21289 else
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21291 $as_echo "$gcc_cv_nm" >&6; }
21292 in_tree_nm=no
21295 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21297 case "$ORIGINAL_NM_FOR_TARGET" in
21298 ./nm | ./nm$build_exeext) ;;
21299 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21301 esac
21304 # Figure out what objdump we will be using.
21305 if test "${gcc_cv_objdump+set}" = set; then :
21307 else
21309 if test -f $gcc_cv_binutils_srcdir/configure.in \
21310 && test -f ../binutils/Makefile \
21311 && test x$build = x$host; then
21312 # Single tree build which includes binutils.
21313 gcc_cv_objdump=../binutils/objdump$build_exeext
21314 elif test -x objdump$build_exeext; then
21315 gcc_cv_objdump=./objdump$build_exeext
21316 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21317 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21318 else
21319 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21320 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21322 $as_echo_n "checking for $ac_word... " >&6; }
21323 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21325 else
21326 case $gcc_cv_objdump in
21327 [\\/]* | ?:[\\/]*)
21328 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21332 for as_dir in $PATH
21334 IFS=$as_save_IFS
21335 test -z "$as_dir" && as_dir=.
21336 for ac_exec_ext in '' $ac_executable_extensions; do
21337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21338 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21340 break 2
21342 done
21343 done
21344 IFS=$as_save_IFS
21347 esac
21349 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21350 if test -n "$gcc_cv_objdump"; then
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21352 $as_echo "$gcc_cv_objdump" >&6; }
21353 else
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21355 $as_echo "no" >&6; }
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21363 $as_echo_n "checking what objdump to use... " >&6; }
21364 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21365 # Single tree build which includes binutils.
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21367 $as_echo "newly built objdump" >&6; }
21368 elif test x$gcc_cv_objdump = x; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21370 $as_echo "not found" >&6; }
21371 else
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21373 $as_echo "$gcc_cv_objdump" >&6; }
21376 # Figure out what readelf we will be using.
21377 if test "${gcc_cv_readelf+set}" = set; then :
21379 else
21381 if test -f $gcc_cv_binutils_srcdir/configure.in \
21382 && test -f ../binutils/Makefile \
21383 && test x$build = x$host; then
21384 # Single tree build which includes binutils.
21385 gcc_cv_readelf=../binutils/readelf$build_exeext
21386 elif test -x readelf$build_exeext; then
21387 gcc_cv_readelf=./readelf$build_exeext
21388 else
21389 # Extract the first word of "readelf", so it can be a program name with args.
21390 set dummy readelf; ac_word=$2
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21392 $as_echo_n "checking for $ac_word... " >&6; }
21393 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21395 else
21396 case $gcc_cv_readelf in
21397 [\\/]* | ?:[\\/]*)
21398 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21402 for as_dir in $PATH
21404 IFS=$as_save_IFS
21405 test -z "$as_dir" && as_dir=.
21406 for ac_exec_ext in '' $ac_executable_extensions; do
21407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21408 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21410 break 2
21412 done
21413 done
21414 IFS=$as_save_IFS
21417 esac
21419 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21420 if test -n "$gcc_cv_readelf"; then
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21422 $as_echo "$gcc_cv_readelf" >&6; }
21423 else
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21425 $as_echo "no" >&6; }
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21433 $as_echo_n "checking what readelf to use... " >&6; }
21434 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21435 # Single tree build which includes binutils.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21437 $as_echo "newly built readelf" >&6; }
21438 elif test x$gcc_cv_readelf = x; then
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21440 $as_echo "not found" >&6; }
21441 else
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21443 $as_echo "$gcc_cv_readelf" >&6; }
21446 # Figure out what assembler alignment features are present.
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21448 $as_echo_n "checking assembler flags... " >&6; }
21449 if test "${gcc_cv_as_flags+set}" = set; then :
21450 $as_echo_n "(cached) " >&6
21451 else
21452 case "$target" in
21453 i[34567]86-*-linux*)
21454 gcc_cv_as_flags="--32"
21456 powerpc*-*-darwin*)
21457 gcc_cv_as_flags="-arch ppc"
21460 gcc_cv_as_flags=" "
21462 esac
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21465 $as_echo "$gcc_cv_as_flags" >&6; }
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21468 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21469 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21470 $as_echo_n "(cached) " >&6
21471 else
21472 gcc_cv_as_balign_and_p2align=no
21473 if test $in_tree_gas = yes; then
21474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21475 then gcc_cv_as_balign_and_p2align=yes
21477 elif test x$gcc_cv_as != x; then
21478 echo '.balign 4
21479 .p2align 2' > conftest.s
21480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21485 test $ac_status = 0; }; }
21486 then
21487 gcc_cv_as_balign_and_p2align=yes
21488 else
21489 echo "configure: failed program was" >&5
21490 cat conftest.s >&5
21492 rm -f conftest.o conftest.s
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21496 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21497 if test $gcc_cv_as_balign_and_p2align = yes; then
21499 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21504 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21505 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21506 $as_echo_n "(cached) " >&6
21507 else
21508 gcc_cv_as_max_skip_p2align=no
21509 if test $in_tree_gas = yes; then
21510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21511 then gcc_cv_as_max_skip_p2align=yes
21513 elif test x$gcc_cv_as != x; then
21514 echo '.p2align 4,,7' > conftest.s
21515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21517 (eval $ac_try) 2>&5
21518 ac_status=$?
21519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21520 test $ac_status = 0; }; }
21521 then
21522 gcc_cv_as_max_skip_p2align=yes
21523 else
21524 echo "configure: failed program was" >&5
21525 cat conftest.s >&5
21527 rm -f conftest.o conftest.s
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21531 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21532 if test $gcc_cv_as_max_skip_p2align = yes; then
21534 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21539 $as_echo_n "checking assembler for .literal16... " >&6; }
21540 if test "${gcc_cv_as_literal16+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21542 else
21543 gcc_cv_as_literal16=no
21544 if test $in_tree_gas = yes; then
21545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21546 then gcc_cv_as_literal16=yes
21548 elif test x$gcc_cv_as != x; then
21549 echo '.literal16' > conftest.s
21550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21555 test $ac_status = 0; }; }
21556 then
21557 gcc_cv_as_literal16=yes
21558 else
21559 echo "configure: failed program was" >&5
21560 cat conftest.s >&5
21562 rm -f conftest.o conftest.s
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21566 $as_echo "$gcc_cv_as_literal16" >&6; }
21567 if test $gcc_cv_as_literal16 = yes; then
21569 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21574 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21575 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21576 $as_echo_n "(cached) " >&6
21577 else
21578 gcc_cv_as_subsection_m1=no
21579 if test $in_tree_gas = yes; then
21580 if test $in_tree_gas_is_elf = yes \
21581 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21582 then gcc_cv_as_subsection_m1=yes
21584 elif test x$gcc_cv_as != x; then
21585 echo 'conftest_label1: .word 0
21586 .subsection -1
21587 conftest_label2: .word 0
21588 .previous' > conftest.s
21589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21594 test $ac_status = 0; }; }
21595 then
21596 if test x$gcc_cv_nm != x; then
21597 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21598 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21599 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21600 then :
21601 else gcc_cv_as_subsection_m1=yes
21603 rm -f conftest.nm1 conftest.nm2
21605 else
21606 echo "configure: failed program was" >&5
21607 cat conftest.s >&5
21609 rm -f conftest.o conftest.s
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21613 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21614 if test $gcc_cv_as_subsection_m1 = yes; then
21616 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21621 $as_echo_n "checking assembler for .weak... " >&6; }
21622 if test "${gcc_cv_as_weak+set}" = set; then :
21623 $as_echo_n "(cached) " >&6
21624 else
21625 gcc_cv_as_weak=no
21626 if test $in_tree_gas = yes; then
21627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21628 then gcc_cv_as_weak=yes
21630 elif test x$gcc_cv_as != x; then
21631 echo ' .weak foobar' > conftest.s
21632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21637 test $ac_status = 0; }; }
21638 then
21639 gcc_cv_as_weak=yes
21640 else
21641 echo "configure: failed program was" >&5
21642 cat conftest.s >&5
21644 rm -f conftest.o conftest.s
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21648 $as_echo "$gcc_cv_as_weak" >&6; }
21649 if test $gcc_cv_as_weak = yes; then
21651 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21656 $as_echo_n "checking assembler for .weakref... " >&6; }
21657 if test "${gcc_cv_as_weakref+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 gcc_cv_as_weakref=no
21661 if test $in_tree_gas = yes; then
21662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21663 then gcc_cv_as_weakref=yes
21665 elif test x$gcc_cv_as != x; then
21666 echo ' .weakref foobar, barfnot' > conftest.s
21667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21672 test $ac_status = 0; }; }
21673 then
21674 gcc_cv_as_weakref=yes
21675 else
21676 echo "configure: failed program was" >&5
21677 cat conftest.s >&5
21679 rm -f conftest.o conftest.s
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21683 $as_echo "$gcc_cv_as_weakref" >&6; }
21684 if test $gcc_cv_as_weakref = yes; then
21686 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21691 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21692 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 gcc_cv_as_nsubspa_comdat=no
21696 if test $in_tree_gas = yes; then
21697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21698 then gcc_cv_as_nsubspa_comdat=yes
21700 elif test x$gcc_cv_as != x; then
21701 echo ' .SPACE $TEXT$
21702 .NSUBSPA $CODE$,COMDAT' > conftest.s
21703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21705 (eval $ac_try) 2>&5
21706 ac_status=$?
21707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21708 test $ac_status = 0; }; }
21709 then
21710 gcc_cv_as_nsubspa_comdat=yes
21711 else
21712 echo "configure: failed program was" >&5
21713 cat conftest.s >&5
21715 rm -f conftest.o conftest.s
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21719 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21720 if test $gcc_cv_as_nsubspa_comdat = yes; then
21722 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21726 # .hidden needs to be supported in both the assembler and the linker,
21727 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21728 # This is irritatingly difficult to feature test for; we have to check the
21729 # date string after the version number. If we've got an in-tree
21730 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21731 # to be safe.
21732 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21734 $as_echo_n "checking assembler for .hidden... " >&6; }
21735 if test "${gcc_cv_as_hidden+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21737 else
21738 gcc_cv_as_hidden=no
21739 if test $in_tree_gas = yes; then
21740 if test $in_tree_gas_is_elf = yes \
21741 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21742 then gcc_cv_as_hidden=yes
21744 elif test x$gcc_cv_as != x; then
21745 echo ' .hidden foobar
21746 foobar:' > conftest.s
21747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21752 test $ac_status = 0; }; }
21753 then
21755 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21756 # STV_HIDDEN, so disable .hidden support if so.
21757 case "${target}" in
21758 i?86-*-solaris2*)
21759 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21760 cat > conftest.s <<EOF
21761 .globl hidden
21762 .hidden hidden
21763 hidden:
21764 .globl default
21765 .set default,hidden
21767 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21768 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21769 grep '\.hidden default' > /dev/null; then
21770 gcc_cv_as_hidden=no
21771 else
21772 gcc_cv_as_hidden=yes
21774 else
21775 # Assume bug is present if objdump is missing.
21776 gcc_cv_as_hidden=no
21780 gcc_cv_as_hidden=yes
21782 esac
21783 else
21784 echo "configure: failed program was" >&5
21785 cat conftest.s >&5
21787 rm -f conftest.o conftest.s
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21791 $as_echo "$gcc_cv_as_hidden" >&6; }
21794 # gnu_indirect_function type is an extension proposed at
21795 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21796 # selection of function implementation
21797 # Check whether --enable-gnu-indirect-function was given.
21798 if test "${enable_gnu_indirect_function+set}" = set; then :
21799 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21800 yes | no) ;;
21801 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21802 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21803 esac
21804 else
21805 enable_gnu_indirect_function="$default_gnu_indirect_function"
21808 if test x$enable_gnu_indirect_function = xyes; then
21810 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21814 if test $in_tree_ld != yes ; then
21815 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21816 if echo "$ld_ver" | grep GNU > /dev/null; then
21817 if test x"$ld_is_gold" = xyes; then
21818 # GNU gold --version looks like this:
21820 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21822 # We extract the binutils version which is more familiar and specific
21823 # than the gold version.
21824 ld_vers=`echo $ld_ver | sed -n \
21825 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21826 else
21827 # GNU ld --version looks like this:
21829 # GNU ld (GNU Binutils) 2.21.51.20110225
21830 ld_vers=`echo $ld_ver | sed -n \
21831 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21833 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'`
21834 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21835 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21836 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21837 else
21838 case "${target}" in
21839 *-*-solaris2*)
21841 # Solaris 2 ld -V output looks like this for a regular version:
21843 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21845 # but test versions add stuff at the end:
21847 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21849 ld_ver=`$gcc_cv_ld -V 2>&1`
21850 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21851 ld_vers=`echo $ld_ver | sed -n \
21852 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21853 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21854 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21857 esac
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21862 $as_echo_n "checking linker for .hidden support... " >&6; }
21863 if test "${gcc_cv_ld_hidden+set}" = set; then :
21864 $as_echo_n "(cached) " >&6
21865 else
21866 if test $in_tree_ld = yes ; then
21867 gcc_cv_ld_hidden=no
21868 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 \
21869 && test $in_tree_ld_is_elf = yes; then
21870 gcc_cv_ld_hidden=yes
21872 else
21873 gcc_cv_ld_hidden=yes
21874 if test x"$ld_is_gold" = xyes; then
21876 elif echo "$ld_ver" | grep GNU > /dev/null; then
21877 if test 0"$ld_date" -lt 20020404; then
21878 if test -n "$ld_date"; then
21879 # If there was date string, but was earlier than 2002-04-04, fail
21880 gcc_cv_ld_hidden=no
21881 elif test -z "$ld_vers"; then
21882 # If there was no date string nor ld version number, something is wrong
21883 gcc_cv_ld_hidden=no
21884 else
21885 test -z "$ld_vers_patch" && ld_vers_patch=0
21886 if test "$ld_vers_major" -lt 2; then
21887 gcc_cv_ld_hidden=no
21888 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21889 gcc_cv_ld_hidden="no"
21890 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21891 gcc_cv_ld_hidden=no
21895 else
21896 case "${target}" in
21897 hppa64*-*-hpux* | ia64*-*-hpux*)
21898 gcc_cv_ld_hidden=yes
21900 *-*-solaris2.8*)
21901 # .hidden support was backported to Solaris 8, starting with ld
21902 # version 1.276.
21903 if test "$ld_vers_minor" -ge 276; then
21904 gcc_cv_ld_hidden=yes
21905 else
21906 gcc_cv_ld_hidden=no
21909 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21910 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21911 # .symbolic was only added in Solaris 9 12/02.
21912 gcc_cv_ld_hidden=yes
21915 gcc_cv_ld_hidden=no
21917 esac
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21922 $as_echo "$gcc_cv_ld_hidden" >&6; }
21923 libgcc_visibility=no
21926 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21927 libgcc_visibility=yes
21929 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21934 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21935 gcc_cv_ld_ro_rw_mix=unknown
21936 if test $in_tree_ld = yes ; then
21937 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 \
21938 && test $in_tree_ld_is_elf = yes; then
21939 gcc_cv_ld_ro_rw_mix=read-write
21941 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21942 echo '.section myfoosect, "a"' > conftest1.s
21943 echo '.section myfoosect, "aw"' > conftest2.s
21944 echo '.byte 1' >> conftest2.s
21945 echo '.section myfoosect, "a"' > conftest3.s
21946 echo '.byte 0' >> conftest3.s
21947 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21948 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21949 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21950 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21951 conftest2.o conftest3.o > /dev/null 2>&1; then
21952 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21953 | sed -e '/myfoosect/!d' -e N`
21954 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21955 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21956 gcc_cv_ld_ro_rw_mix=read-only
21957 else
21958 gcc_cv_ld_ro_rw_mix=read-write
21962 rm -f conftest.* conftest[123].*
21964 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21966 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21970 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21972 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21974 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21975 if test "${gcc_cv_as_leb128+set}" = set; then :
21976 $as_echo_n "(cached) " >&6
21977 else
21978 gcc_cv_as_leb128=no
21979 if test $in_tree_gas = yes; then
21980 if test $in_tree_gas_is_elf = yes \
21981 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21982 then gcc_cv_as_leb128=yes
21984 elif test x$gcc_cv_as != x; then
21985 echo ' .data
21986 .uleb128 L2 - L1
21988 .uleb128 1280
21989 .sleb128 -1010
21990 L2:' > conftest.s
21991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21993 (eval $ac_try) 2>&5
21994 ac_status=$?
21995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21996 test $ac_status = 0; }; }
21997 then
21998 # GAS versions before 2.11 do not support uleb128,
21999 # despite appearing to.
22000 # ??? There exists an elf-specific test that will crash
22001 # the assembler. Perhaps it's better to figure out whether
22002 # arbitrary sections are supported and try the test.
22003 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22004 if echo "$as_ver" | grep GNU > /dev/null; then
22005 as_vers=`echo $as_ver | sed -n \
22006 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22007 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22008 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22009 if test $as_major -eq 2 && test $as_minor -lt 11
22010 then :
22011 else gcc_cv_as_leb128=yes
22014 else
22015 echo "configure: failed program was" >&5
22016 cat conftest.s >&5
22018 rm -f conftest.o conftest.s
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22022 $as_echo "$gcc_cv_as_leb128" >&6; }
22023 if test $gcc_cv_as_leb128 = yes; then
22025 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22029 # Check if we have assembler support for unwind directives.
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22031 $as_echo_n "checking assembler for cfi directives... " >&6; }
22032 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22033 $as_echo_n "(cached) " >&6
22034 else
22035 gcc_cv_as_cfi_directive=no
22036 if test x$gcc_cv_as != x; then
22037 echo ' .text
22038 .cfi_startproc
22039 .cfi_offset 0, 0
22040 .cfi_same_value 1
22041 .cfi_def_cfa 1, 2
22042 .cfi_escape 1, 2, 3, 4, 5
22043 .cfi_endproc' > conftest.s
22044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22049 test $ac_status = 0; }; }
22050 then
22051 case "$target" in
22052 *-*-solaris*)
22053 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22054 # read-only and read-write sections, we need to make sure that the
22055 # assembler used emits read-write .eh_frame sections.
22056 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22057 if test "x$gcc_cv_objdump" != x; then
22058 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22059 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22060 gcc_cv_as_cfi_directive=no
22061 else
22062 case "$target" in
22063 i?86-*-solaris2.1[0-9]*)
22064 # On Solaris/x86, make sure that GCC and gas agree on using
22065 # read-only .eh_frame sections for 64-bit.
22066 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22067 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22068 sed -e /.eh_frame/!d -e N | \
22069 grep READONLY > /dev/null; then
22070 gcc_cv_as_cfi_directive=yes
22071 else
22072 gcc_cv_as_cfi_directive=no
22076 gcc_cv_as_cfi_directive=yes
22078 esac
22080 else
22081 # no objdump, err on the side of caution
22082 gcc_cv_as_cfi_directive=no
22084 else
22085 gcc_cv_as_cfi_directive=yes
22088 *-*-*)
22089 gcc_cv_as_cfi_directive=yes
22091 esac
22092 else
22093 echo "configure: failed program was" >&5
22094 cat conftest.s >&5
22096 rm -f conftest.o conftest.s
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22100 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22102 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22104 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22105 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22106 $as_echo_n "(cached) " >&6
22107 else
22108 gcc_cv_as_cfi_advance_working=no
22109 if test x$gcc_cv_as != x; then
22110 echo ' .text
22111 .cfi_startproc
22112 .cfi_adjust_cfa_offset 64
22113 .skip 75040, 0
22114 .cfi_adjust_cfa_offset 128
22115 .cfi_endproc' > conftest.s
22116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22121 test $ac_status = 0; }; }
22122 then
22124 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22125 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22126 gcc_cv_as_cfi_advance_working=yes
22129 else
22130 echo "configure: failed program was" >&5
22131 cat conftest.s >&5
22133 rm -f conftest.o conftest.s
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22137 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22139 else
22140 # no objdump, err on the side of caution
22141 gcc_cv_as_cfi_advance_working=no
22145 cat >>confdefs.h <<_ACEOF
22146 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22147 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22148 _ACEOF
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22153 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22154 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22155 $as_echo_n "(cached) " >&6
22156 else
22157 gcc_cv_as_cfi_personality_directive=no
22158 if test x$gcc_cv_as != x; then
22159 echo ' .text
22160 .cfi_startproc
22161 .cfi_personality 0, symbol
22162 .cfi_endproc' > conftest.s
22163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22168 test $ac_status = 0; }; }
22169 then
22170 gcc_cv_as_cfi_personality_directive=yes
22171 else
22172 echo "configure: failed program was" >&5
22173 cat conftest.s >&5
22175 rm -f conftest.o conftest.s
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22179 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22182 cat >>confdefs.h <<_ACEOF
22183 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22184 then echo 1; else echo 0; fi`
22185 _ACEOF
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22189 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22190 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22192 else
22193 gcc_cv_as_cfi_sections_directive=no
22194 if test x$gcc_cv_as != x; then
22195 echo ' .text
22196 .cfi_sections .debug_frame, .eh_frame
22197 .cfi_startproc
22198 .cfi_endproc' > conftest.s
22199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22204 test $ac_status = 0; }; }
22205 then
22206 case $target_os in
22207 win32 | pe | cygwin* | mingw32* | uwin*)
22208 # Need to check that we generated the correct relocation for the
22209 # .debug_frame section. This was fixed for binutils 2.21.
22210 gcc_cv_as_cfi_sections_directive=no
22211 if test "x$gcc_cv_objdump" != x; then
22212 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22213 grep secrel > /dev/null; then
22214 gcc_cv_as_cfi_sections_directive=yes
22219 gcc_cv_as_cfi_sections_directive=yes
22221 esac
22222 else
22223 echo "configure: failed program was" >&5
22224 cat conftest.s >&5
22226 rm -f conftest.o conftest.s
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22230 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22234 cat >>confdefs.h <<_ACEOF
22235 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22236 then echo 1; else echo 0; fi`
22237 _ACEOF
22240 # GAS versions up to and including 2.11.0 may mis-optimize
22241 # .eh_frame data.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22243 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22244 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22245 $as_echo_n "(cached) " >&6
22246 else
22247 gcc_cv_as_eh_frame=no
22248 if test $in_tree_gas = yes; then
22249 if test $in_tree_gas_is_elf = yes \
22250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22251 then gcc_cv_as_eh_frame=yes
22253 elif test x$gcc_cv_as != x; then
22254 echo ' .text
22255 .LFB1:
22256 .4byte 0
22257 .L1:
22258 .4byte 0
22259 .LFE1:
22260 .section .eh_frame,"aw",@progbits
22261 __FRAME_BEGIN__:
22262 .4byte .LECIE1-.LSCIE1
22263 .LSCIE1:
22264 .4byte 0x0
22265 .byte 0x1
22266 .ascii "z\0"
22267 .byte 0x1
22268 .byte 0x78
22269 .byte 0x1a
22270 .byte 0x0
22271 .byte 0x4
22272 .4byte 1
22273 .p2align 1
22274 .LECIE1:
22275 .LSFDE1:
22276 .4byte .LEFDE1-.LASFDE1
22277 .LASFDE1:
22278 .4byte .LASFDE1-__FRAME_BEGIN__
22279 .4byte .LFB1
22280 .4byte .LFE1-.LFB1
22281 .byte 0x4
22282 .4byte .LFE1-.LFB1
22283 .byte 0x4
22284 .4byte .L1-.LFB1
22285 .LEFDE1:' > conftest.s
22286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22291 test $ac_status = 0; }; }
22292 then
22293 cat > conftest.lit <<EOF
22294 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22295 0010 01000000 12000000 18000000 00000000 ................
22296 0020 08000000 04080000 0044 .........D
22298 cat > conftest.big <<EOF
22299 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22300 0010 00000001 00000012 00000018 00000000 ................
22301 0020 00000008 04000000 0844 .........D
22303 # If the assembler didn't choke, and we can objdump,
22304 # and we got the correct data, then succeed.
22305 # The text in the here-document typically retains its unix-style line
22306 # endings, while the output of objdump will use host line endings.
22307 # Therefore, use diff -b for the comparisons.
22308 if test x$gcc_cv_objdump != x \
22309 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22310 | tail -3 > conftest.got \
22311 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22312 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22313 then
22314 gcc_cv_as_eh_frame=yes
22315 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22317 (eval $ac_try) 2>&5
22318 ac_status=$?
22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320 test $ac_status = 0; }; }; then
22321 gcc_cv_as_eh_frame=buggy
22322 else
22323 # Uh oh, what do we do now?
22324 gcc_cv_as_eh_frame=no
22326 else
22327 echo "configure: failed program was" >&5
22328 cat conftest.s >&5
22330 rm -f conftest.o conftest.s
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22334 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22337 if test $gcc_cv_as_eh_frame = buggy; then
22339 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22344 $as_echo_n "checking assembler for section merging support... " >&6; }
22345 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22346 $as_echo_n "(cached) " >&6
22347 else
22348 gcc_cv_as_shf_merge=no
22349 if test $in_tree_gas = yes; then
22350 if test $in_tree_gas_is_elf = yes \
22351 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22352 then gcc_cv_as_shf_merge=yes
22354 elif test x$gcc_cv_as != x; then
22355 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22361 test $ac_status = 0; }; }
22362 then
22363 gcc_cv_as_shf_merge=yes
22364 else
22365 echo "configure: failed program was" >&5
22366 cat conftest.s >&5
22368 rm -f conftest.o conftest.s
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22372 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22374 if test $gcc_cv_as_shf_merge = no; then
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22376 $as_echo_n "checking assembler for section merging support... " >&6; }
22377 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22378 $as_echo_n "(cached) " >&6
22379 else
22380 gcc_cv_as_shf_merge=no
22381 if test $in_tree_gas = yes; then
22382 if test $in_tree_gas_is_elf = yes \
22383 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22384 then gcc_cv_as_shf_merge=yes
22386 elif test x$gcc_cv_as != x; then
22387 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22393 test $ac_status = 0; }; }
22394 then
22395 gcc_cv_as_shf_merge=yes
22396 else
22397 echo "configure: failed program was" >&5
22398 cat conftest.s >&5
22400 rm -f conftest.o conftest.s
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22404 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22408 cat >>confdefs.h <<_ACEOF
22409 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22410 _ACEOF
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22414 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22415 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22417 else
22418 gcc_cv_as_comdat_group=no
22419 if test $in_tree_gas = yes; then
22420 if test $in_tree_gas_is_elf = yes \
22421 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22422 then gcc_cv_as_comdat_group=yes
22424 elif test x$gcc_cv_as != x; then
22425 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22428 (eval $ac_try) 2>&5
22429 ac_status=$?
22430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22431 test $ac_status = 0; }; }
22432 then
22433 gcc_cv_as_comdat_group=yes
22434 else
22435 echo "configure: failed program was" >&5
22436 cat conftest.s >&5
22438 rm -f conftest.o conftest.s
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22442 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22444 if test $gcc_cv_as_comdat_group = yes; then
22445 gcc_cv_as_comdat_group_percent=no
22446 gcc_cv_as_comdat_group_group=no
22447 else
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22449 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22450 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22452 else
22453 gcc_cv_as_comdat_group_percent=no
22454 if test $in_tree_gas = yes; then
22455 if test $in_tree_gas_is_elf = yes \
22456 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22457 then gcc_cv_as_comdat_group_percent=yes
22459 elif test x$gcc_cv_as != x; then
22460 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22466 test $ac_status = 0; }; }
22467 then
22468 gcc_cv_as_comdat_group_percent=yes
22469 else
22470 echo "configure: failed program was" >&5
22471 cat conftest.s >&5
22473 rm -f conftest.o conftest.s
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22477 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22479 if test $gcc_cv_as_comdat_group_percent = yes; then
22480 gcc_cv_as_comdat_group_group=no
22481 else
22482 case "${target}" in
22483 # Sun as uses a completely different syntax.
22484 *-*-solaris2*)
22485 case "${target}" in
22486 sparc*-*-solaris2*)
22487 conftest_s='
22488 .group foo,".text%foo",#comdat
22489 .section ".text%foo", #alloc,#execinstr,#progbits
22490 .globl foo
22491 foo:
22494 i?86-*-solaris2*)
22495 conftest_s='
22496 .group foo,.text%foo,#comdat
22497 .section .text%foo, "ax", @progbits
22498 .globl foo
22499 foo:
22502 esac
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22504 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22505 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22507 else
22508 gcc_cv_as_comdat_group_group=no
22509 if test x$gcc_cv_as != x; then
22510 echo "$conftest_s" > conftest.s
22511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516 test $ac_status = 0; }; }
22517 then
22518 gcc_cv_as_comdat_group_group=yes
22519 else
22520 echo "configure: failed program was" >&5
22521 cat conftest.s >&5
22523 rm -f conftest.o conftest.s
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22527 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22530 esac
22533 if test x"$ld_is_gold" = xyes; then
22534 comdat_group=yes
22535 elif test $in_tree_ld = yes ; then
22536 comdat_group=no
22537 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 \
22538 && test $in_tree_ld_is_elf = yes; then
22539 comdat_group=yes
22541 elif echo "$ld_ver" | grep GNU > /dev/null; then
22542 comdat_group=yes
22543 if test 0"$ld_date" -lt 20050308; then
22544 if test -n "$ld_date"; then
22545 # If there was date string, but was earlier than 2005-03-08, fail
22546 comdat_group=no
22547 elif test "$ld_vers_major" -lt 2; then
22548 comdat_group=no
22549 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22550 comdat_group=no
22553 else
22554 case "${target}" in
22555 *-*-solaris2.1[1-9]*)
22556 comdat_group=no
22557 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22558 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22559 # version 1.688.
22561 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22562 # least ld version 1.2267.
22563 if test "$ld_vers_major" -gt 1; then
22564 comdat_group=yes
22565 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22566 comdat_group=yes
22567 elif test "$ld_vers_minor" -ge 2267; then
22568 comdat_group=yes
22572 # Assume linkers other than GNU ld don't support COMDAT group.
22573 comdat_group=no
22575 esac
22577 # Allow overriding the automatic COMDAT group tests above.
22578 # Check whether --enable-comdat was given.
22579 if test "${enable_comdat+set}" = set; then :
22580 enableval=$enable_comdat; comdat_group="$enable_comdat"
22583 if test $comdat_group = no; then
22584 gcc_cv_as_comdat_group=no
22585 gcc_cv_as_comdat_group_percent=no
22586 gcc_cv_as_comdat_group_group=no
22589 cat >>confdefs.h <<_ACEOF
22590 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22591 || test $gcc_cv_as_comdat_group_percent = yes \
22592 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22593 _ACEOF
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22597 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22598 if test "${gcc_cv_as_discriminator+set}" = set; then :
22599 $as_echo_n "(cached) " >&6
22600 else
22601 gcc_cv_as_discriminator=no
22602 if test $in_tree_gas = yes; then
22603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22604 then gcc_cv_as_discriminator=yes
22606 elif test x$gcc_cv_as != x; then
22607 echo ' .text
22608 .file 1 "conf.c"
22609 .loc 1 1 0 discriminator 1' > conftest.s
22610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22615 test $ac_status = 0; }; }
22616 then
22617 gcc_cv_as_discriminator=yes
22618 else
22619 echo "configure: failed program was" >&5
22620 cat conftest.s >&5
22622 rm -f conftest.o conftest.s
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22626 $as_echo "$gcc_cv_as_discriminator" >&6; }
22627 if test $gcc_cv_as_discriminator = yes; then
22629 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22633 # Thread-local storage - the check is heavily parameterized.
22634 conftest_s=
22635 tls_first_major=
22636 tls_first_minor=
22637 tls_as_opt=
22638 case "$target" in
22639 alpha*-*-*)
22640 conftest_s='
22641 .section ".tdata","awT",@progbits
22642 foo: .long 25
22643 .text
22644 ldq $27,__tls_get_addr($29) !literal!1
22645 lda $16,foo($29) !tlsgd!1
22646 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22647 ldq $27,__tls_get_addr($29) !literal!2
22648 lda $16,foo($29) !tlsldm!2
22649 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22650 ldq $1,foo($29) !gotdtprel
22651 ldah $2,foo($29) !dtprelhi
22652 lda $3,foo($2) !dtprello
22653 lda $4,foo($29) !dtprel
22654 ldq $1,foo($29) !gottprel
22655 ldah $2,foo($29) !tprelhi
22656 lda $3,foo($2) !tprello
22657 lda $4,foo($29) !tprel'
22658 tls_first_major=2
22659 tls_first_minor=13
22660 tls_as_opt=--fatal-warnings
22662 cris-*-*|crisv32-*-*)
22663 conftest_s='
22664 .section ".tdata","awT",@progbits
22665 x: .long 25
22666 .text
22667 move.d x:IE,$r10
22668 nop'
22669 tls_first_major=2
22670 tls_first_minor=20
22671 tls_as_opt=--fatal-warnings
22673 frv*-*-*)
22674 conftest_s='
22675 .section ".tdata","awT",@progbits
22676 x: .long 25
22677 .text
22678 call #gettlsoff(x)'
22679 tls_first_major=2
22680 tls_first_minor=14
22682 hppa*-*-linux*)
22683 conftest_s='
22684 t1: .reg %r20
22685 t2: .reg %r21
22686 gp: .reg %r19
22687 .section ".tdata","awT",@progbits
22688 foo: .long 25
22689 .text
22690 .align 4
22691 addil LT%foo-$tls_gdidx$,gp
22692 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22693 b __tls_get_addr
22695 addil LT%foo-$tls_ldidx$,gp
22696 b __tls_get_addr
22697 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22698 addil LR%foo-$tls_dtpoff$,%ret0
22699 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22700 mfctl %cr27,%t1
22701 addil LT%foo-$tls_ieoff$,gp
22702 ldw RT%foo-$tls_ieoff$(%r1),%t2
22703 add %t1,%t2,%t3
22704 mfctl %cr27,%t1
22705 addil LR%foo-$tls_leoff$,%t1
22706 ldo RR%foo-$tls_leoff$(%r1),%t2'
22707 tls_first_major=2
22708 tls_first_minor=15
22709 tls_as_opt=--fatal-warnings
22711 arm*-*-*)
22712 conftest_s='
22713 .section ".tdata","awT",%progbits
22714 foo: .long 25
22715 .text
22716 .word foo(gottpoff)
22717 .word foo(tpoff)
22718 .word foo(tlsgd)
22719 .word foo(tlsldm)
22720 .word foo(tlsldo)'
22721 tls_first_major=2
22722 tls_first_minor=17
22724 i[34567]86-*-*)
22725 case "$target" in
22726 i[34567]86-*-solaris2.*)
22727 on_solaris=yes
22728 tga_func=___tls_get_addr
22731 on_solaris=no
22733 esac
22734 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22735 conftest_s='
22736 .section .tdata,"awt",@progbits'
22737 tls_first_major=0
22738 tls_first_minor=0
22740 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22742 else
22743 conftest_s='
22744 .section ".tdata","awT",@progbits'
22745 tls_first_major=2
22746 tls_first_minor=14
22747 tls_as_opt="--fatal-warnings"
22749 conftest_s="$conftest_s
22750 foo: .long 25
22751 .text
22752 movl %gs:0, %eax
22753 leal foo@tlsgd(,%ebx,1), %eax
22754 leal foo@tlsldm(%ebx), %eax
22755 leal foo@dtpoff(%eax), %edx
22756 movl foo@gottpoff(%ebx), %eax
22757 subl foo@gottpoff(%ebx), %eax
22758 addl foo@gotntpoff(%ebx), %eax
22759 movl foo@indntpoff, %eax
22760 movl \$foo@tpoff, %eax
22761 subl \$foo@tpoff, %eax
22762 leal foo@ntpoff(%ecx), %eax"
22764 x86_64-*-*)
22765 conftest_s='
22766 .section ".tdata","awT",@progbits
22767 foo: .long 25
22768 .text
22769 movq %fs:0, %rax
22770 leaq foo@TLSGD(%rip), %rdi
22771 leaq foo@TLSLD(%rip), %rdi
22772 leaq foo@DTPOFF(%rax), %rdx
22773 movq foo@GOTTPOFF(%rip), %rax
22774 movq $foo@TPOFF, %rax'
22775 tls_first_major=2
22776 tls_first_minor=14
22777 tls_as_opt=--fatal-warnings
22779 ia64-*-*)
22780 conftest_s='
22781 .section ".tdata","awT",@progbits
22782 foo: data8 25
22783 .text
22784 addl r16 = @ltoff(@dtpmod(foo#)), gp
22785 addl r17 = @ltoff(@dtprel(foo#)), gp
22786 addl r18 = @ltoff(@tprel(foo#)), gp
22787 addl r19 = @dtprel(foo#), gp
22788 adds r21 = @dtprel(foo#), r13
22789 movl r23 = @dtprel(foo#)
22790 addl r20 = @tprel(foo#), gp
22791 adds r22 = @tprel(foo#), r13
22792 movl r24 = @tprel(foo#)'
22793 tls_first_major=2
22794 tls_first_minor=13
22795 tls_as_opt=--fatal-warnings
22797 mips*-*-*)
22798 conftest_s='
22799 .section .tdata,"awT",@progbits
22801 .word 2
22802 .text
22803 addiu $4, $28, %tlsgd(x)
22804 addiu $4, $28, %tlsldm(x)
22805 lui $4, %dtprel_hi(x)
22806 addiu $4, $4, %dtprel_lo(x)
22807 lw $4, %gottprel(x)($28)
22808 lui $4, %tprel_hi(x)
22809 addiu $4, $4, %tprel_lo(x)'
22810 tls_first_major=2
22811 tls_first_minor=16
22812 tls_as_opt='-32 --fatal-warnings'
22814 m68k-*-*)
22815 conftest_s='
22816 .section .tdata,"awT",@progbits
22818 .word 2
22819 .text
22820 foo:
22821 move.l x@TLSGD(%a5),%a0
22822 move.l x@TLSLDM(%a5),%a0
22823 move.l x@TLSLDO(%a5),%a0
22824 move.l x@TLSIE(%a5),%a0
22825 move.l x@TLSLE(%a5),%a0'
22826 tls_first_major=2
22827 tls_first_minor=19
22828 tls_as_opt='--fatal-warnings'
22830 powerpc-*-*)
22831 conftest_s='
22832 .section ".tdata","awT",@progbits
22833 .align 2
22834 ld0: .space 4
22835 ld1: .space 4
22836 x1: .space 4
22837 x2: .space 4
22838 x3: .space 4
22839 .text
22840 addi 3,31,ld0@got@tlsgd
22841 bl __tls_get_addr
22842 addi 3,31,x1@got@tlsld
22843 bl __tls_get_addr
22844 addi 9,3,x1@dtprel
22845 addis 9,3,x2@dtprel@ha
22846 addi 9,9,x2@dtprel@l
22847 lwz 9,x3@got@tprel(31)
22848 add 9,9,x@tls
22849 addi 9,2,x1@tprel
22850 addis 9,2,x2@tprel@ha
22851 addi 9,9,x2@tprel@l'
22852 tls_first_major=2
22853 tls_first_minor=14
22854 tls_as_opt="-a32 --fatal-warnings"
22856 powerpc64-*-*)
22857 conftest_s='
22858 .section ".tdata","awT",@progbits
22859 .align 3
22860 ld0: .space 8
22861 ld1: .space 8
22862 x1: .space 8
22863 x2: .space 8
22864 x3: .space 8
22865 .text
22866 addi 3,2,ld0@got@tlsgd
22867 bl .__tls_get_addr
22869 addi 3,2,ld1@toc
22870 bl .__tls_get_addr
22872 addi 3,2,x1@got@tlsld
22873 bl .__tls_get_addr
22875 addi 9,3,x1@dtprel
22876 bl .__tls_get_addr
22878 addis 9,3,x2@dtprel@ha
22879 addi 9,9,x2@dtprel@l
22880 bl .__tls_get_addr
22882 ld 9,x3@got@dtprel(2)
22883 add 9,9,3
22884 bl .__tls_get_addr
22885 nop'
22886 tls_first_major=2
22887 tls_first_minor=14
22888 tls_as_opt="-a64 --fatal-warnings"
22890 s390-*-*)
22891 conftest_s='
22892 .section ".tdata","awT",@progbits
22893 foo: .long 25
22894 .text
22895 .long foo@TLSGD
22896 .long foo@TLSLDM
22897 .long foo@DTPOFF
22898 .long foo@NTPOFF
22899 .long foo@GOTNTPOFF
22900 .long foo@INDNTPOFF
22901 l %r1,foo@GOTNTPOFF(%r12)
22902 l %r1,0(%r1):tls_load:foo
22903 bas %r14,0(%r1,%r13):tls_gdcall:foo
22904 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22905 tls_first_major=2
22906 tls_first_minor=14
22907 tls_as_opt="-m31 --fatal-warnings"
22909 s390x-*-*)
22910 conftest_s='
22911 .section ".tdata","awT",@progbits
22912 foo: .long 25
22913 .text
22914 .quad foo@TLSGD
22915 .quad foo@TLSLDM
22916 .quad foo@DTPOFF
22917 .quad foo@NTPOFF
22918 .quad foo@GOTNTPOFF
22919 lg %r1,foo@GOTNTPOFF(%r12)
22920 larl %r1,foo@INDNTPOFF
22921 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22922 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22923 tls_first_major=2
22924 tls_first_minor=14
22925 tls_as_opt="-m64 -Aesame --fatal-warnings"
22927 sh-*-* | sh[34]-*-*)
22928 conftest_s='
22929 .section ".tdata","awT",@progbits
22930 foo: .long 25
22931 .text
22932 .long foo@TLSGD
22933 .long foo@TLSLDM
22934 .long foo@DTPOFF
22935 .long foo@GOTTPOFF
22936 .long foo@TPOFF'
22937 tls_first_major=2
22938 tls_first_minor=13
22939 tls_as_opt=--fatal-warnings
22941 sparc*-*-*)
22942 case "$target" in
22943 sparc*-sun-solaris2.*)
22944 on_solaris=yes
22945 tga_func=__tls_get_addr
22948 on_solaris=no
22950 esac
22951 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22952 conftest_s='
22953 .section ".tdata",#alloc,#write,#tls'
22954 tls_first_major=0
22955 tls_first_minor=0
22956 else
22957 conftest_s='
22958 .section ".tdata","awT",@progbits'
22959 tls_first_major=2
22960 tls_first_minor=14
22961 tls_as_opt="-32 --fatal-warnings"
22963 conftest_s="$conftest_s
22964 foo: .long 25
22965 .text
22966 sethi %tgd_hi22(foo), %o0
22967 add %o0, %tgd_lo10(foo), %o1
22968 add %l7, %o1, %o0, %tgd_add(foo)
22969 call __tls_get_addr, %tgd_call(foo)
22970 sethi %tldm_hi22(foo), %l1
22971 add %l1, %tldm_lo10(foo), %l2
22972 add %l7, %l2, %o0, %tldm_add(foo)
22973 call __tls_get_addr, %tldm_call(foo)
22974 sethi %tldo_hix22(foo), %l3
22975 xor %l3, %tldo_lox10(foo), %l4
22976 add %o0, %l4, %l5, %tldo_add(foo)
22977 sethi %tie_hi22(foo), %o3
22978 add %o3, %tie_lo10(foo), %o3
22979 ld [%l7 + %o3], %o2, %tie_ld(foo)
22980 add %g7, %o2, %o4, %tie_add(foo)
22981 sethi %tle_hix22(foo), %l1
22982 xor %l1, %tle_lox10(foo), %o5
22983 ld [%g7 + %o5], %o1"
22985 xtensa*-*-*)
22986 conftest_s='
22987 .section ".tdata","awT",@progbits
22988 foo: .long 25
22989 .text
22990 movi a8, foo@TLSFUNC
22991 movi a10, foo@TLSARG
22992 callx8.tls a8, foo@TLSCALL'
22993 tls_first_major=2
22994 tls_first_minor=19
22996 esac
22997 set_have_as_tls=no
22998 if test "x$enable_tls" = xno ; then
22999 : # TLS explicitly disabled.
23000 elif test "x$enable_tls" = xyes ; then
23001 set_have_as_tls=yes # TLS explicitly enabled.
23002 elif test -z "$tls_first_major"; then
23003 : # If we don't have a check, assume no support.
23004 else
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23006 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23007 if test "${gcc_cv_as_tls+set}" = set; then :
23008 $as_echo_n "(cached) " >&6
23009 else
23010 gcc_cv_as_tls=no
23011 if test $in_tree_gas = yes; then
23012 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23013 then gcc_cv_as_tls=yes
23015 elif test x$gcc_cv_as != x; then
23016 echo "$conftest_s" > conftest.s
23017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022 test $ac_status = 0; }; }
23023 then
23024 gcc_cv_as_tls=yes
23025 else
23026 echo "configure: failed program was" >&5
23027 cat conftest.s >&5
23029 rm -f conftest.o conftest.s
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23033 $as_echo "$gcc_cv_as_tls" >&6; }
23034 if test $gcc_cv_as_tls = yes; then
23035 set_have_as_tls=yes
23038 case "$target" in
23039 *-*-irix6*)
23040 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23041 # with TLS support are in use, native TLS cannot work.
23042 set_have_as_tls=no
23044 *-*-osf*)
23045 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23046 # gld with TLS support are in use, native TLS cannot work.
23047 set_have_as_tls=no
23049 # TLS was introduced in the Solaris 9 FCS release and backported to
23050 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23051 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23052 # ld and GCC don't support any longer.
23053 *-*-solaris2.*)
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23055 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23056 ld_tls_support=no
23057 # Check ld and ld.so.1 TLS support.
23058 if echo "$ld_ver" | grep GNU > /dev/null; then
23059 # Assume all interesting versions of GNU ld have TLS support.
23060 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23061 ld_tls_support=yes
23062 else
23063 case "$target" in
23064 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23065 i?86-*-solaris2.8)
23066 min_tls_ld_vers_minor=280
23068 # Solaris 8/SPARC ld has TLS support since version 1.272.
23069 sparc*-*-solaris2.8)
23070 min_tls_ld_vers_minor=272
23072 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23073 i?86-*-solaris2.9)
23074 min_tls_ld_vers_minor=374
23076 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23077 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23078 min_tls_ld_vers_minor=343
23080 esac
23081 if test "$ld_vers_major" -gt 1 || \
23082 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23083 ld_tls_support=yes
23084 else
23085 set_have_as_tls=no
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23089 $as_echo "$ld_tls_support" >&6; }
23091 save_LIBS="$LIBS"
23092 save_LDFLAGS="$LDFLAGS"
23093 LIBS=
23094 LDFLAGS=
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23097 $as_echo_n "checking alternate thread library... " >&6; }
23098 case "$target" in
23099 # TLS support was backported to Solaris 8 patches, but only lives in
23100 # the alternate thread library which became the default in Solaris 9.
23101 # We want to always use that, irrespective of TLS support.
23102 *-*-solaris2.8)
23103 # Take multilib subdir into account. There's no spec to handle
23104 # this. The 64 symlink exists since Solaris 8.
23105 lwp_dir=/usr/lib/lwp
23106 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23107 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23109 *-*-solaris2*)
23110 lwp_dir="none"
23111 lwp_spec=""
23113 esac
23114 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23116 cat >>confdefs.h <<_ACEOF
23117 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23118 _ACEOF
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23121 $as_echo "$lwp_dir" >&6; }
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23124 $as_echo_n "checking library containing $tga_func... " >&6; }
23125 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23126 # (32-bit x86) only lived in libthread, so check for that. Keep
23127 # set_have_as_tls if found, disable if not.
23128 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23130 $as_echo_n "checking for library containing $tga_func... " >&6; }
23131 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23132 $as_echo_n "(cached) " >&6
23133 else
23134 ac_func_search_save_LIBS=$LIBS
23135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23138 /* Override any GCC internal prototype to avoid an error.
23139 Use char because int might match the return type of a GCC
23140 builtin and then its argument prototype would still apply. */
23141 #ifdef __cplusplus
23142 extern "C"
23143 #endif
23144 char $tga_func ();
23146 main ()
23148 return $tga_func ();
23150 return 0;
23152 _ACEOF
23153 for ac_lib in '' thread; do
23154 if test -z "$ac_lib"; then
23155 ac_res="none required"
23156 else
23157 ac_res=-l$ac_lib
23158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23160 if ac_fn_c_try_link "$LINENO"; then :
23161 eval "$as_ac_Search=\$ac_res"
23163 rm -f core conftest.err conftest.$ac_objext \
23164 conftest$ac_exeext
23165 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23166 break
23168 done
23169 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23171 else
23172 eval "$as_ac_Search=no"
23174 rm conftest.$ac_ext
23175 LIBS=$ac_func_search_save_LIBS
23177 eval ac_res=\$$as_ac_Search
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23180 eval ac_res=\$$as_ac_Search
23181 if test "$ac_res" != no; then :
23182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23184 else
23185 set_have_as_tls=no
23188 # Clear LIBS if we cannot support TLS.
23189 if test $set_have_as_tls = no; then
23190 LIBS=
23192 # Always define LIB_TLS_SPEC, even without TLS support.
23194 cat >>confdefs.h <<_ACEOF
23195 #define LIB_TLS_SPEC "$LIBS"
23196 _ACEOF
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23199 $as_echo "$LIBS" >&6; }
23201 LIBS="$save_LIBS"
23202 LDFLAGS="$save_LDFLAGS"
23204 esac
23205 if test $set_have_as_tls = yes ; then
23207 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23211 # Target-specific assembler checks.
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23214 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23215 gcc_cv_ld_static_dynamic=no
23216 gcc_cv_ld_static_option='-Bstatic'
23217 gcc_cv_ld_dynamic_option='-Bdynamic'
23218 if test $in_tree_ld = yes ; then
23219 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
23220 gcc_cv_ld_static_dynamic=yes
23222 elif test x$gcc_cv_ld != x; then
23223 # Check if linker supports -Bstatic/-Bdynamic option
23224 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23225 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23226 gcc_cv_ld_static_dynamic=yes
23227 else
23228 case "$target" in
23229 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23230 alpha*-dec-osf*)
23231 gcc_cv_ld_static_dynamic=yes
23232 gcc_cv_ld_static_option="-noso"
23233 gcc_cv_ld_dynamic_option="-so_archive"
23235 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23236 mips-sgi-irix6*)
23237 gcc_cv_ld_static_dynamic=yes
23239 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23240 *-*-solaris2*)
23241 gcc_cv_ld_static_dynamic=yes
23243 esac
23246 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23248 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23251 cat >>confdefs.h <<_ACEOF
23252 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23253 _ACEOF
23256 cat >>confdefs.h <<_ACEOF
23257 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23258 _ACEOF
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23262 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23264 if test x"$demangler_in_ld" = xyes; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23266 $as_echo_n "checking linker --demangle support... " >&6; }
23267 gcc_cv_ld_demangle=no
23268 if test $in_tree_ld = yes; then
23269 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 \
23270 gcc_cv_ld_demangle=yes
23272 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23273 # Check if the GNU linker supports --demangle option
23274 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23275 gcc_cv_ld_demangle=yes
23278 if test x"$gcc_cv_ld_demangle" = xyes; then
23280 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23284 $as_echo "$gcc_cv_ld_demangle" >&6; }
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23288 $as_echo_n "checking linker plugin support... " >&6; }
23289 gcc_cv_lto_plugin=0
23290 if test -f liblto_plugin.la; then
23291 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23292 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
23293 gcc_cv_lto_plugin=2
23294 elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23295 gcc_cv_lto_plugin=1
23298 elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld" && echo "$ld_ver" | grep GNU > /dev/null; then
23299 # Require GNU ld or gold 2.21+ for plugin support by default.
23300 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23301 gcc_cv_lto_plugin=2
23302 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23303 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23304 gcc_cv_lto_plugin=1
23306 elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x"$gcc_cv_ld"; then
23307 # Allow -fuse-linker-plugin if plugin linker differs from
23308 # default/specified linker.
23309 gcc_cv_lto_plugin=1
23313 cat >>confdefs.h <<_ACEOF
23314 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23315 _ACEOF
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23318 $as_echo "$gcc_cv_lto_plugin" >&6; }
23320 case "$target" in
23321 # All TARGET_ABI_OSF targets.
23322 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23324 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23325 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23327 else
23328 gcc_cv_as_alpha_explicit_relocs=no
23329 if test $in_tree_gas = yes; then
23330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23331 then gcc_cv_as_alpha_explicit_relocs=yes
23333 elif test x$gcc_cv_as != x; then
23334 echo ' .set nomacro
23335 .text
23336 extbl $3, $2, $3 !lituse_bytoff!1
23337 ldq $2, a($29) !literal!1
23338 ldq $4, b($29) !literal!2
23339 ldq_u $3, 0($2) !lituse_base!1
23340 ldq $27, f($29) !literal!5
23341 jsr $26, ($27), f !lituse_jsr!5
23342 ldah $29, 0($26) !gpdisp!3
23343 lda $0, c($29) !gprel
23344 ldah $1, d($29) !gprelhigh
23345 lda $1, d($1) !gprellow
23346 lda $29, 0($29) !gpdisp!3' > conftest.s
23347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352 test $ac_status = 0; }; }
23353 then
23354 gcc_cv_as_alpha_explicit_relocs=yes
23355 else
23356 echo "configure: failed program was" >&5
23357 cat conftest.s >&5
23359 rm -f conftest.o conftest.s
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23363 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23364 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23366 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23370 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23371 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23372 $as_echo_n "(cached) " >&6
23373 else
23374 gcc_cv_as_alpha_jsrdirect_relocs=no
23375 if test $in_tree_gas = yes; then
23376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23377 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23379 elif test x$gcc_cv_as != x; then
23380 echo ' .set nomacro
23381 .text
23382 ldq $27, a($29) !literal!1
23383 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23389 test $ac_status = 0; }; }
23390 then
23391 gcc_cv_as_alpha_jsrdirect_relocs=yes
23392 else
23393 echo "configure: failed program was" >&5
23394 cat conftest.s >&5
23396 rm -f conftest.o conftest.s
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23400 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23401 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23403 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23408 cris-*-*)
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23410 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23411 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23412 $as_echo_n "(cached) " >&6
23413 else
23414 gcc_cv_as_cris_no_mul_bug=no
23415 if test $in_tree_gas = yes; then
23416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23417 then gcc_cv_as_cris_no_mul_bug=yes
23419 elif test x$gcc_cv_as != x; then
23420 echo '.text' > conftest.s
23421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23423 (eval $ac_try) 2>&5
23424 ac_status=$?
23425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23426 test $ac_status = 0; }; }
23427 then
23428 gcc_cv_as_cris_no_mul_bug=yes
23429 else
23430 echo "configure: failed program was" >&5
23431 cat conftest.s >&5
23433 rm -f conftest.o conftest.s
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23437 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23438 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23440 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23445 sparc*-*-*)
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23447 $as_echo_n "checking assembler for .register... " >&6; }
23448 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23449 $as_echo_n "(cached) " >&6
23450 else
23451 gcc_cv_as_sparc_register_op=no
23452 if test x$gcc_cv_as != x; then
23453 echo '.register %g2, #scratch' > conftest.s
23454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23459 test $ac_status = 0; }; }
23460 then
23461 gcc_cv_as_sparc_register_op=yes
23462 else
23463 echo "configure: failed program was" >&5
23464 cat conftest.s >&5
23466 rm -f conftest.o conftest.s
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23470 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23471 if test $gcc_cv_as_sparc_register_op = yes; then
23473 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23478 $as_echo_n "checking assembler for -relax option... " >&6; }
23479 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23481 else
23482 gcc_cv_as_sparc_relax=no
23483 if test x$gcc_cv_as != x; then
23484 echo '.text' > conftest.s
23485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23487 (eval $ac_try) 2>&5
23488 ac_status=$?
23489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23490 test $ac_status = 0; }; }
23491 then
23492 gcc_cv_as_sparc_relax=yes
23493 else
23494 echo "configure: failed program was" >&5
23495 cat conftest.s >&5
23497 rm -f conftest.o conftest.s
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23501 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23502 if test $gcc_cv_as_sparc_relax = yes; then
23504 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23509 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23510 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23512 else
23513 gcc_cv_as_sparc_gotdata_op=no
23514 if test x$gcc_cv_as != x; then
23515 echo '.text
23516 .align 4
23517 foo:
23519 bar:
23520 sethi %gdop_hix22(foo), %g1
23521 xor %g1, %gdop_lox10(foo), %g1
23522 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23528 test $ac_status = 0; }; }
23529 then
23530 if test x$gcc_cv_ld != x \
23531 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23532 if test x$gcc_cv_objdump != x; then
23533 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23534 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23535 gcc_cv_as_sparc_gotdata_op=no
23536 else
23537 gcc_cv_as_sparc_gotdata_op=yes
23541 rm -f conftest
23542 else
23543 echo "configure: failed program was" >&5
23544 cat conftest.s >&5
23546 rm -f conftest.o conftest.s
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23550 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23551 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23553 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23558 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23559 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23561 else
23562 gcc_cv_as_sparc_ua_pcrel=no
23563 if test x$gcc_cv_as != x; then
23564 echo '.text
23565 foo:
23567 .data
23568 .align 4
23569 .byte 0
23570 .uaword %r_disp32(foo)' > conftest.s
23571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23573 (eval $ac_try) 2>&5
23574 ac_status=$?
23575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23576 test $ac_status = 0; }; }
23577 then
23578 if test x$gcc_cv_ld != x \
23579 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23580 gcc_cv_as_sparc_ua_pcrel=yes
23582 rm -f conftest
23583 else
23584 echo "configure: failed program was" >&5
23585 cat conftest.s >&5
23587 rm -f conftest.o conftest.s
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23591 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23592 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23594 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23598 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23599 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23600 $as_echo_n "(cached) " >&6
23601 else
23602 gcc_cv_as_sparc_ua_pcrel_hidden=no
23603 if test x$gcc_cv_as != x; then
23604 echo '.data
23605 .align 4
23606 .byte 0x31
23607 .uaword %r_disp32(foo)
23608 .byte 0x32, 0x33, 0x34
23609 .global foo
23610 .hidden foo
23611 foo:
23612 .skip 4' > conftest.s
23613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23619 then
23620 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23621 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23622 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23623 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23624 if $gcc_cv_objdump -R conftest 2> /dev/null \
23625 | grep 'DISP32' > /dev/null 2>&1; then
23627 else
23628 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23631 rm -f conftest
23632 else
23633 echo "configure: failed program was" >&5
23634 cat conftest.s >&5
23636 rm -f conftest.o conftest.s
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23640 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23641 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23643 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23647 fi # unaligned pcrel relocs
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23650 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23651 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23652 $as_echo_n "(cached) " >&6
23653 else
23654 gcc_cv_as_sparc_offsetable_lo10=no
23655 if test x$gcc_cv_as != x; then
23656 echo '.text
23657 or %g1, %lo(ab) + 12, %g1
23658 or %g1, %lo(ab + 12), %g1' > conftest.s
23659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23664 test $ac_status = 0; }; }
23665 then
23666 if test x$gcc_cv_objdump != x \
23667 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23668 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23669 gcc_cv_as_sparc_offsetable_lo10=yes
23671 else
23672 echo "configure: failed program was" >&5
23673 cat conftest.s >&5
23675 rm -f conftest.o conftest.s
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23679 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23680 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23682 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23687 i[34567]86-*-* | x86_64-*-*)
23688 case $target_os in
23689 cygwin*)
23690 # Full C++ conformance when using a shared libstdc++-v3 requires some
23691 # support from the Cygwin DLL, which in more recent versions exports
23692 # wrappers to aid in interposing and redirecting operators new, delete,
23693 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23694 # are configuring for a version of Cygwin that exports the wrappers.
23695 if test x$host = x$target; then
23696 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23697 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23698 gcc_ac_cygwin_dll_wrappers=yes
23699 else
23700 gcc_ac_cygwin_dll_wrappers=no
23703 else
23704 # Can't check presence of libc functions during cross-compile, so
23705 # we just have to assume we're building for an up-to-date target.
23706 gcc_ac_cygwin_dll_wrappers=yes
23709 cat >>confdefs.h <<_ACEOF
23710 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23711 _ACEOF
23713 esac
23714 case $target_os in
23715 cygwin* | pe | mingw32*)
23716 # Recent binutils allows the three-operand form of ".comm" on PE. This
23717 # definition is used unconditionally to initialise the default state of
23718 # the target option variable that governs usage of the feature.
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23720 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23721 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 gcc_cv_as_comm_has_align=no
23725 if test $in_tree_gas = yes; then
23726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23727 then gcc_cv_as_comm_has_align=yes
23729 elif test x$gcc_cv_as != x; then
23730 echo '.comm foo,1,32' > conftest.s
23731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23736 test $ac_status = 0; }; }
23737 then
23738 gcc_cv_as_comm_has_align=yes
23739 else
23740 echo "configure: failed program was" >&5
23741 cat conftest.s >&5
23743 rm -f conftest.o conftest.s
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23747 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23750 cat >>confdefs.h <<_ACEOF
23751 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23752 _ACEOF
23754 # Used for DWARF 2 in PE
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23756 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23757 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23758 $as_echo_n "(cached) " >&6
23759 else
23760 gcc_cv_as_ix86_pe_secrel32=no
23761 if test $in_tree_gas = yes; then
23762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23763 then gcc_cv_as_ix86_pe_secrel32=yes
23765 elif test x$gcc_cv_as != x; then
23766 echo '.text
23767 foo: nop
23768 .data
23769 .secrel32 foo' > conftest.s
23770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23776 then
23777 if test x$gcc_cv_ld != x \
23778 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23779 gcc_cv_as_ix86_pe_secrel32=yes
23781 rm -f conftest
23782 else
23783 echo "configure: failed program was" >&5
23784 cat conftest.s >&5
23786 rm -f conftest.o conftest.s
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23790 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23791 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23793 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23796 # Test if the assembler supports the extended form of the .section
23797 # directive that specifies section alignment. LTO support uses this,
23798 # but normally only after installation, so we warn but don't fail the
23799 # configure if LTO is enabled but the assembler does not support it.
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23801 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23802 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 gcc_cv_as_section_has_align=no
23806 if test $in_tree_gas = yes; then
23807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23808 then gcc_cv_as_section_has_align=yes
23810 elif test x$gcc_cv_as != x; then
23811 echo '.section lto_test,"dr0"' > conftest.s
23812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23818 then
23819 gcc_cv_as_section_has_align=yes
23820 else
23821 echo "configure: failed program was" >&5
23822 cat conftest.s >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23828 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23830 if test x$gcc_cv_as_section_has_align != xyes; then
23831 case ",$enable_languages," in
23832 *,lto,*)
23833 { $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
23834 $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;}
23836 esac
23839 esac
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23842 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23843 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23844 $as_echo_n "(cached) " >&6
23845 else
23846 gcc_cv_as_ix86_filds=no
23847 if test x$gcc_cv_as != x; then
23848 echo 'filds mem; fists mem' > conftest.s
23849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23854 test $ac_status = 0; }; }
23855 then
23856 gcc_cv_as_ix86_filds=yes
23857 else
23858 echo "configure: failed program was" >&5
23859 cat conftest.s >&5
23861 rm -f conftest.o conftest.s
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23865 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23866 if test $gcc_cv_as_ix86_filds = yes; then
23868 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23873 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23874 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23876 else
23877 gcc_cv_as_ix86_fildq=no
23878 if test x$gcc_cv_as != x; then
23879 echo 'fildq mem; fistpq mem' > conftest.s
23880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23886 then
23887 gcc_cv_as_ix86_fildq=yes
23888 else
23889 echo "configure: failed program was" >&5
23890 cat conftest.s >&5
23892 rm -f conftest.o conftest.s
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23896 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23897 if test $gcc_cv_as_ix86_fildq = yes; then
23899 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23904 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23905 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23907 else
23908 gcc_cv_as_ix86_cmov_sun_syntax=no
23909 if test x$gcc_cv_as != x; then
23910 echo 'cmovl.l %edx, %eax' > conftest.s
23911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }
23917 then
23918 gcc_cv_as_ix86_cmov_sun_syntax=yes
23919 else
23920 echo "configure: failed program was" >&5
23921 cat conftest.s >&5
23923 rm -f conftest.o conftest.s
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23927 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23928 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23930 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23935 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23936 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23938 else
23939 gcc_cv_as_ix86_ffreep=no
23940 if test x$gcc_cv_as != x; then
23941 echo 'ffreep %st(1)' > conftest.s
23942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23944 (eval $ac_try) 2>&5
23945 ac_status=$?
23946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947 test $ac_status = 0; }; }
23948 then
23949 gcc_cv_as_ix86_ffreep=yes
23950 else
23951 echo "configure: failed program was" >&5
23952 cat conftest.s >&5
23954 rm -f conftest.o conftest.s
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23958 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23959 if test $gcc_cv_as_ix86_ffreep = yes; then
23961 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23966 $as_echo_n "checking assembler for .quad directive... " >&6; }
23967 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23968 $as_echo_n "(cached) " >&6
23969 else
23970 gcc_cv_as_ix86_quad=no
23971 if test x$gcc_cv_as != x; then
23972 echo '.quad 0' > conftest.s
23973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; }; }
23979 then
23980 gcc_cv_as_ix86_quad=yes
23981 else
23982 echo "configure: failed program was" >&5
23983 cat conftest.s >&5
23985 rm -f conftest.o conftest.s
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23989 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23990 if test $gcc_cv_as_ix86_quad = yes; then
23992 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23997 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23998 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23999 $as_echo_n "(cached) " >&6
24000 else
24001 gcc_cv_as_ix86_sahf=no
24002 if test x$gcc_cv_as != x; then
24003 echo '.code64
24004 sahf' > conftest.s
24005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24007 (eval $ac_try) 2>&5
24008 ac_status=$?
24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }; }
24011 then
24012 gcc_cv_as_ix86_sahf=yes
24013 else
24014 echo "configure: failed program was" >&5
24015 cat conftest.s >&5
24017 rm -f conftest.o conftest.s
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24021 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24022 if test $gcc_cv_as_ix86_sahf = yes; then
24024 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24029 $as_echo_n "checking assembler for swap suffix... " >&6; }
24030 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24031 $as_echo_n "(cached) " >&6
24032 else
24033 gcc_cv_as_ix86_swap=no
24034 if test x$gcc_cv_as != x; then
24035 echo 'movl.s %esp, %ebp' > conftest.s
24036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24042 then
24043 gcc_cv_as_ix86_swap=yes
24044 else
24045 echo "configure: failed program was" >&5
24046 cat conftest.s >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24052 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24053 if test $gcc_cv_as_ix86_swap = yes; then
24055 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24060 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24061 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24062 $as_echo_n "(cached) " >&6
24063 else
24064 gcc_cv_as_ix86_diff_sect_delta=no
24065 if test x$gcc_cv_as != x; then
24066 echo '.section .rodata
24067 .L1:
24068 .long .L2-.L1
24069 .long .L3-.L1
24070 .text
24071 .L3: nop
24072 .L2: nop' > conftest.s
24073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24075 (eval $ac_try) 2>&5
24076 ac_status=$?
24077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24078 test $ac_status = 0; }; }
24079 then
24080 gcc_cv_as_ix86_diff_sect_delta=yes
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_ix86_diff_sect_delta" >&5
24089 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24090 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24092 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24096 # These two are used unconditionally by i386.[ch]; it is to be defined
24097 # to 1 if the feature is present, 0 otherwise.
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24099 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24100 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24101 $as_echo_n "(cached) " >&6
24102 else
24103 gcc_cv_as_ix86_gotoff_in_data=no
24104 if test $in_tree_gas = yes; then
24105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24106 then gcc_cv_as_ix86_gotoff_in_data=yes
24108 elif test x$gcc_cv_as != x; then
24109 echo ' .text
24110 .L0:
24112 .data
24113 .long .L0@GOTOFF' > conftest.s
24114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24116 (eval $ac_try) 2>&5
24117 ac_status=$?
24118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24119 test $ac_status = 0; }; }
24120 then
24121 gcc_cv_as_ix86_gotoff_in_data=yes
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_ix86_gotoff_in_data" >&5
24130 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24133 cat >>confdefs.h <<_ACEOF
24134 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24135 _ACEOF
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24139 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24140 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24141 $as_echo_n "(cached) " >&6
24142 else
24143 gcc_cv_as_ix86_rep_lock_prefix=no
24144 if test x$gcc_cv_as != x; then
24145 echo 'rep movsl
24146 lock addl %edi, (%eax,%esi)
24147 lock orl $0, (%esp)' > conftest.s
24148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24154 then
24155 gcc_cv_as_ix86_rep_lock_prefix=yes
24156 else
24157 echo "configure: failed program was" >&5
24158 cat conftest.s >&5
24160 rm -f conftest.o conftest.s
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24164 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24165 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24167 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24172 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24173 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24175 else
24176 gcc_cv_as_ix86_tlsgdplt=no
24177 if test x$gcc_cv_as != x; then
24178 echo 'call tls_gd@tlsgdplt' > conftest.s
24179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24181 (eval $ac_try) 2>&5
24182 ac_status=$?
24183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24184 test $ac_status = 0; }; }
24185 then
24186 gcc_cv_as_ix86_tlsgdplt=yes
24187 else
24188 echo "configure: failed program was" >&5
24189 cat conftest.s >&5
24191 rm -f conftest.o conftest.s
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24195 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24196 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24198 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24203 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24204 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24206 else
24207 gcc_cv_as_ix86_tlsldmplt=no
24208 if test x$gcc_cv_as != x; then
24209 echo 'call tls_ld@tlsldmplt' > conftest.s
24210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24215 test $ac_status = 0; }; }
24216 then
24217 gcc_cv_as_ix86_tlsldmplt=yes
24218 else
24219 echo "configure: failed program was" >&5
24220 cat conftest.s >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24226 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24227 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24229 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24235 ia64*-*-*)
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24237 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24238 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24239 $as_echo_n "(cached) " >&6
24240 else
24241 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24242 if test $in_tree_gas = yes; then
24243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24244 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24246 elif test x$gcc_cv_as != x; then
24247 echo ' .text
24248 addl r15 = @ltoffx(x#), gp
24250 ld8.mov r16 = [r15], x#' > conftest.s
24251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24257 then
24258 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24259 else
24260 echo "configure: failed program was" >&5
24261 cat conftest.s >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24267 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24268 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24270 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24276 powerpc*-*-*)
24277 case $target in
24278 *-*-aix*) conftest_s=' .machine "pwr5"
24279 .csect .text[PR]
24280 mfcr 3,128';;
24281 *-*-darwin*)
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24283 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24284 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24286 else
24287 gcc_cv_as_machine_directive=no
24288 if test x$gcc_cv_as != x; then
24289 echo ' .machine ppc7400' > conftest.s
24290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24296 then
24297 gcc_cv_as_machine_directive=yes
24298 else
24299 echo "configure: failed program was" >&5
24300 cat conftest.s >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24306 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24308 if test x$gcc_cv_as_machine_directive != xyes; then
24309 echo "*** This target requires an assembler supporting \".machine\"" >&2
24310 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24311 test x$build = x$target && exit 1
24313 conftest_s=' .text
24314 mfcr r3,128';;
24315 *) conftest_s=' .machine power4
24316 .text
24317 mfcr 3,128';;
24318 esac
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24321 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24322 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24324 else
24325 gcc_cv_as_powerpc_mfcrf=no
24326 if test $in_tree_gas = yes; then
24327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24328 then gcc_cv_as_powerpc_mfcrf=yes
24330 elif test x$gcc_cv_as != x; then
24331 echo "$conftest_s" > conftest.s
24332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24337 test $ac_status = 0; }; }
24338 then
24339 gcc_cv_as_powerpc_mfcrf=yes
24340 else
24341 echo "configure: failed program was" >&5
24342 cat conftest.s >&5
24344 rm -f conftest.o conftest.s
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24348 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24349 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24351 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24355 case $target in
24356 *-*-aix*) conftest_s=' .machine "pwr5"
24357 .csect .text[PR]
24358 popcntb 3,3';;
24359 *) conftest_s=' .machine power5
24360 .text
24361 popcntb 3,3';;
24362 esac
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24365 $as_echo_n "checking assembler for popcntb support... " >&6; }
24366 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24367 $as_echo_n "(cached) " >&6
24368 else
24369 gcc_cv_as_powerpc_popcntb=no
24370 if test $in_tree_gas = yes; then
24371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24372 then gcc_cv_as_powerpc_popcntb=yes
24374 elif test x$gcc_cv_as != x; then
24375 echo "$conftest_s" > conftest.s
24376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24382 then
24383 gcc_cv_as_powerpc_popcntb=yes
24384 else
24385 echo "configure: failed program was" >&5
24386 cat conftest.s >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24392 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24393 if test $gcc_cv_as_powerpc_popcntb = yes; then
24395 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24399 case $target in
24400 *-*-aix*) conftest_s=' .machine "pwr5x"
24401 .csect .text[PR]
24402 frin 1,1';;
24403 *) conftest_s=' .machine power5
24404 .text
24405 frin 1,1';;
24406 esac
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24409 $as_echo_n "checking assembler for fp round support... " >&6; }
24410 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24411 $as_echo_n "(cached) " >&6
24412 else
24413 gcc_cv_as_powerpc_fprnd=no
24414 if test $in_tree_gas = yes; then
24415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24416 then gcc_cv_as_powerpc_fprnd=yes
24418 elif test x$gcc_cv_as != x; then
24419 echo "$conftest_s" > conftest.s
24420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24422 (eval $ac_try) 2>&5
24423 ac_status=$?
24424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24425 test $ac_status = 0; }; }
24426 then
24427 gcc_cv_as_powerpc_fprnd=yes
24428 else
24429 echo "configure: failed program was" >&5
24430 cat conftest.s >&5
24432 rm -f conftest.o conftest.s
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24436 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24437 if test $gcc_cv_as_powerpc_fprnd = yes; then
24439 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24443 case $target in
24444 *-*-aix*) conftest_s=' .machine "pwr6"
24445 .csect .text[PR]
24446 mffgpr 1,3';;
24447 *) conftest_s=' .machine power6
24448 .text
24449 mffgpr 1,3';;
24450 esac
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24453 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24454 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24456 else
24457 gcc_cv_as_powerpc_mfpgpr=no
24458 if test $in_tree_gas = yes; then
24459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24460 then gcc_cv_as_powerpc_mfpgpr=yes
24462 elif test x$gcc_cv_as != x; then
24463 echo "$conftest_s" > 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_powerpc_mfpgpr=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_powerpc_mfpgpr" >&5
24480 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24481 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24483 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24487 case $target in
24488 *-*-aix*) conftest_s=' .csect .text[PR]
24489 LCF..0:
24490 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24491 *-*-darwin*)
24492 conftest_s=' .text
24493 LCF0:
24494 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24495 *) conftest_s=' .text
24496 .LCF0:
24497 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24498 esac
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24501 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24502 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24504 else
24505 gcc_cv_as_powerpc_rel16=no
24506 if test $in_tree_gas = yes; then
24507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24508 then gcc_cv_as_powerpc_rel16=yes
24510 elif test x$gcc_cv_as != x; then
24511 echo "$conftest_s" > conftest.s
24512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24515 ac_status=$?
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24518 then
24519 gcc_cv_as_powerpc_rel16=yes
24520 else
24521 echo "configure: failed program was" >&5
24522 cat conftest.s >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24528 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24529 if test $gcc_cv_as_powerpc_rel16 = yes; then
24531 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24535 case $target in
24536 *-*-aix*) conftest_s=' .machine "pwr6"
24537 .csect .text[PR]
24538 cmpb 3,4,5';;
24539 *) conftest_s=' .machine power6
24540 .text
24541 cmpb 3,4,5';;
24542 esac
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24545 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24546 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 gcc_cv_as_powerpc_cmpb=no
24550 if test $in_tree_gas = yes; then
24551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24552 then gcc_cv_as_powerpc_cmpb=yes
24554 elif test x$gcc_cv_as != x; then
24555 echo "$conftest_s" > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_powerpc_cmpb=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24572 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24573 if test $gcc_cv_as_powerpc_cmpb = yes; then
24575 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24579 case $target in
24580 *-*-aix*) conftest_s=' .machine "pwr6"
24581 .csect .text[PR]
24582 dadd 1,2,3';;
24583 *) conftest_s=' .machine power6
24584 .text
24585 dadd 1,2,3';;
24586 esac
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24589 $as_echo_n "checking assembler for decimal float support... " >&6; }
24590 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24592 else
24593 gcc_cv_as_powerpc_dfp=no
24594 if test $in_tree_gas = yes; then
24595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24596 then gcc_cv_as_powerpc_dfp=yes
24598 elif test x$gcc_cv_as != x; then
24599 echo "$conftest_s" > conftest.s
24600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24606 then
24607 gcc_cv_as_powerpc_dfp=yes
24608 else
24609 echo "configure: failed program was" >&5
24610 cat conftest.s >&5
24612 rm -f conftest.o conftest.s
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24616 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24617 if test $gcc_cv_as_powerpc_dfp = yes; then
24619 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24623 case $target in
24624 *-*-aix*) conftest_s=' .machine "pwr7"
24625 .csect .text[PR]
24626 lxvd2x 1,2,3';;
24627 *) conftest_s=' .machine power7
24628 .text
24629 lxvd2x 1,2,3';;
24630 esac
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24633 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24634 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_powerpc_vsx=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24640 then gcc_cv_as_powerpc_vsx=yes
24642 elif test x$gcc_cv_as != x; then
24643 echo "$conftest_s" > conftest.s
24644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24650 then
24651 gcc_cv_as_powerpc_vsx=yes
24652 else
24653 echo "configure: failed program was" >&5
24654 cat conftest.s >&5
24656 rm -f conftest.o conftest.s
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24660 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24661 if test $gcc_cv_as_powerpc_vsx = yes; then
24663 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24667 case $target in
24668 *-*-aix*) conftest_s=' .machine "pwr7"
24669 .csect .text[PR]
24670 popcntd 3,3';;
24671 *) conftest_s=' .machine power7
24672 .text
24673 popcntd 3,3';;
24674 esac
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24677 $as_echo_n "checking assembler for popcntd support... " >&6; }
24678 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24680 else
24681 gcc_cv_as_powerpc_popcntd=no
24682 if test $in_tree_gas = yes; then
24683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24684 then gcc_cv_as_powerpc_popcntd=yes
24686 elif test x$gcc_cv_as != x; then
24687 echo "$conftest_s" > conftest.s
24688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24694 then
24695 gcc_cv_as_powerpc_popcntd=yes
24696 else
24697 echo "configure: failed program was" >&5
24698 cat conftest.s >&5
24700 rm -f conftest.o conftest.s
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24704 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24705 if test $gcc_cv_as_powerpc_popcntd = yes; then
24707 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24711 case $target in
24712 *-*-aix*) conftest_s=' .csect .text[PR]
24713 lwsync';;
24714 *) conftest_s=' .text
24715 lwsync';;
24716 esac
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24719 $as_echo_n "checking assembler for lwsync support... " >&6; }
24720 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 gcc_cv_as_powerpc_lwsync=no
24724 if test $in_tree_gas = yes; then
24725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24726 then gcc_cv_as_powerpc_lwsync=yes
24728 elif test x$gcc_cv_as != x; then
24729 echo "$conftest_s" > conftest.s
24730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24735 test $ac_status = 0; }; }
24736 then
24737 gcc_cv_as_powerpc_lwsync=yes
24738 else
24739 echo "configure: failed program was" >&5
24740 cat conftest.s >&5
24742 rm -f conftest.o conftest.s
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24746 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24747 if test $gcc_cv_as_powerpc_lwsync = yes; then
24749 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24753 case $target in
24754 *-*-aix*) conftest_s=' .machine "476"
24755 .csect .text[PR]
24756 dci 0';;
24757 *) conftest_s=' .machine "476"
24758 .text
24759 dci 0';;
24760 esac
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24763 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24764 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24766 else
24767 gcc_cv_as_powerpc_dci=no
24768 if test $in_tree_gas = yes; then
24769 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24770 then gcc_cv_as_powerpc_dci=yes
24772 elif test x$gcc_cv_as != x; then
24773 echo "$conftest_s" > conftest.s
24774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24780 then
24781 gcc_cv_as_powerpc_dci=yes
24782 else
24783 echo "configure: failed program was" >&5
24784 cat conftest.s >&5
24786 rm -f conftest.o conftest.s
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24790 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24791 if test $gcc_cv_as_powerpc_dci = yes; then
24793 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24798 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24799 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24800 $as_echo_n "(cached) " >&6
24801 else
24802 gcc_cv_as_powerpc_gnu_attribute=no
24803 if test $in_tree_gas = yes; then
24804 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24805 then gcc_cv_as_powerpc_gnu_attribute=yes
24807 elif test x$gcc_cv_as != x; then
24808 echo '.gnu_attribute 4,1' > conftest.s
24809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814 test $ac_status = 0; }; }
24815 then
24816 gcc_cv_as_powerpc_gnu_attribute=yes
24817 else
24818 echo "configure: failed program was" >&5
24819 cat conftest.s >&5
24821 rm -f conftest.o conftest.s
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24825 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24826 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24828 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24833 $as_echo_n "checking assembler for tls marker support... " >&6; }
24834 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24835 $as_echo_n "(cached) " >&6
24836 else
24837 gcc_cv_as_powerpc_tls_markers=no
24838 if test $in_tree_gas = yes; then
24839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24840 then gcc_cv_as_powerpc_tls_markers=yes
24842 elif test x$gcc_cv_as != x; then
24843 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24847 ac_status=$?
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24850 then
24851 gcc_cv_as_powerpc_tls_markers=yes
24852 else
24853 echo "configure: failed program was" >&5
24854 cat conftest.s >&5
24856 rm -f conftest.o conftest.s
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24860 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24861 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24863 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24867 case $target in
24868 *-*-aix*)
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24870 $as_echo_n "checking assembler for .ref support... " >&6; }
24871 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24873 else
24874 gcc_cv_as_aix_ref=no
24875 if test $in_tree_gas = yes; then
24876 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24877 then :
24879 elif test x$gcc_cv_as != x; then
24880 echo ' .csect stuff[rw]
24881 stuff:
24882 .long 1
24883 .extern sym
24884 .ref sym
24885 ' > conftest.s
24886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24892 then
24893 gcc_cv_as_aix_ref=yes
24894 else
24895 echo "configure: failed program was" >&5
24896 cat conftest.s >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24902 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24903 if test $gcc_cv_as_aix_ref = yes; then
24905 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24909 esac
24912 mips*-*-*)
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24914 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24915 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24916 $as_echo_n "(cached) " >&6
24917 else
24918 gcc_cv_as_mips_explicit_relocs=no
24919 if test $in_tree_gas = yes; then
24920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24921 then gcc_cv_as_mips_explicit_relocs=yes
24923 elif test x$gcc_cv_as != x; then
24924 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24927 (eval $ac_try) 2>&5
24928 ac_status=$?
24929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24930 test $ac_status = 0; }; }
24931 then
24932 gcc_cv_as_mips_explicit_relocs=yes
24933 else
24934 echo "configure: failed program was" >&5
24935 cat conftest.s >&5
24937 rm -f conftest.o conftest.s
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24941 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24942 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24943 if test x$target_cpu_default = x
24944 then target_cpu_default=MASK_EXPLICIT_RELOCS
24945 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24949 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24950 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24951 $as_echo_n "(cached) " >&6
24952 else
24953 gcc_cv_as_mips_no_shared=no
24954 if test $in_tree_gas = yes; then
24955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24956 then gcc_cv_as_mips_no_shared=yes
24958 elif test x$gcc_cv_as != x; then
24959 echo 'nop' > conftest.s
24960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24966 then
24967 gcc_cv_as_mips_no_shared=yes
24968 else
24969 echo "configure: failed program was" >&5
24970 cat conftest.s >&5
24972 rm -f conftest.o conftest.s
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24976 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24977 if test $gcc_cv_as_mips_no_shared = yes; then
24979 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24984 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24985 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24986 $as_echo_n "(cached) " >&6
24987 else
24988 gcc_cv_as_mips_gnu_attribute=no
24989 if test $in_tree_gas = yes; then
24990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24991 then gcc_cv_as_mips_gnu_attribute=yes
24993 elif test x$gcc_cv_as != x; then
24994 echo '.gnu_attribute 4,1' > conftest.s
24995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25001 then
25002 gcc_cv_as_mips_gnu_attribute=yes
25003 else
25004 echo "configure: failed program was" >&5
25005 cat conftest.s >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25011 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25012 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25014 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25019 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25020 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25022 else
25023 gcc_cv_as_mips_dtprelword=no
25024 if test $in_tree_gas = yes; then
25025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25026 then gcc_cv_as_mips_dtprelword=yes
25028 elif test x$gcc_cv_as != x; then
25029 echo '.section .tdata,"awT",@progbits
25031 .word 2
25032 .text
25033 .dtprelword x+0x8000' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25040 then
25041 gcc_cv_as_mips_dtprelword=yes
25042 else
25043 echo "configure: failed program was" >&5
25044 cat conftest.s >&5
25046 rm -f conftest.o conftest.s
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25050 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25051 if test $gcc_cv_as_mips_dtprelword = yes; then
25053 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25058 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25059 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25060 $as_echo_n "(cached) " >&6
25061 else
25062 gcc_cv_as_mips_dspr1_mult=no
25063 if test x$gcc_cv_as != x; then
25064 echo ' .set mips32r2
25065 .set nodspr2
25066 .set dsp
25067 madd $ac3,$4,$5
25068 maddu $ac3,$4,$5
25069 msub $ac3,$4,$5
25070 msubu $ac3,$4,$5
25071 mult $ac3,$4,$5
25072 multu $ac3,$4,$5' > conftest.s
25073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25078 test $ac_status = 0; }; }
25079 then
25080 gcc_cv_as_mips_dspr1_mult=yes
25081 else
25082 echo "configure: failed program was" >&5
25083 cat conftest.s >&5
25085 rm -f conftest.o conftest.s
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25089 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25090 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25092 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25097 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25098 gcc_cv_as_ld_jalr_reloc=no
25099 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25100 if test $in_tree_ld = yes ; then
25101 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 \
25102 && test $in_tree_ld_is_elf = yes; then
25103 gcc_cv_as_ld_jalr_reloc=yes
25105 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25106 echo ' .ent x' > conftest.s
25107 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25108 echo ' ld $25,%call16(y)($28)' >> conftest.s
25109 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25110 echo '1: jalr $25' >> conftest.s
25111 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25112 echo '1: jalr $25' >> conftest.s
25113 echo ' .end x' >> conftest.s
25114 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25115 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25116 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25117 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25118 gcc_cv_as_ld_jalr_reloc=yes
25121 rm -f conftest.*
25124 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25125 if test x$target_cpu_default = x; then
25126 target_cpu_default=MASK_RELAX_PIC_CALLS
25127 else
25128 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25132 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25135 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25136 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25137 $as_echo_n "(cached) " >&6
25138 else
25139 gcc_cv_ld_mips_personality_relaxation=no
25140 if test $in_tree_ld = yes ; then
25141 if test "$gcc_cv_gld_major_version" -eq 2 \
25142 -a "$gcc_cv_gld_minor_version" -ge 21 \
25143 -o "$gcc_cv_gld_major_version" -gt 2; then
25144 gcc_cv_ld_mips_personality_relaxation=yes
25146 elif test x$gcc_cv_as != x \
25147 -a x$gcc_cv_ld != x \
25148 -a x$gcc_cv_readelf != x ; then
25149 cat > conftest.s <<EOF
25150 .cfi_startproc
25151 .cfi_personality 0x80,indirect_ptr
25152 .ent test
25153 test:
25155 .end test
25156 .cfi_endproc
25158 .section .data,"aw",@progbits
25159 indirect_ptr:
25160 .dc.a personality
25162 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25163 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25164 if $gcc_cv_readelf -d conftest 2>&1 \
25165 | grep TEXTREL > /dev/null 2>&1; then
25167 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25168 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25170 else
25171 gcc_cv_ld_mips_personality_relaxation=yes
25175 rm -f conftest.s conftest.o conftest
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25178 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25179 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25181 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25185 esac
25187 # Mips and HP-UX need the GNU assembler.
25188 # Linux on IA64 might be able to use the Intel assembler.
25190 case "$target" in
25191 mips*-*-* | *-*-hpux* )
25192 if test x$gas_flag = xyes \
25193 || test x"$host" != x"$build" \
25194 || test ! -x "$gcc_cv_as" \
25195 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25197 else
25198 echo "*** This configuration requires the GNU assembler" >&2
25199 exit 1
25202 esac
25204 # ??? Not all targets support dwarf2 debug_line, even within a version
25205 # of gas. Moreover, we need to emit a valid instruction to trigger any
25206 # info to the output file. So, as supported targets are added to gas 2.11,
25207 # add some instruction here to (also) show we expect this might work.
25208 # ??? Once 2.11 is released, probably need to add first known working
25209 # version to the per-target configury.
25210 case "$cpu_type" in
25211 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25212 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25213 insn="nop"
25215 ia64 | s390)
25216 insn="nop 0"
25218 mmix)
25219 insn="swym 0"
25221 esac
25222 if test x"$insn" != x; then
25223 conftest_s="\
25224 .file 1 \"conftest.s\"
25225 .loc 1 3 0
25226 $insn"
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25228 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25229 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25230 $as_echo_n "(cached) " >&6
25231 else
25232 gcc_cv_as_dwarf2_debug_line=no
25233 if test $in_tree_gas = yes; then
25234 if test $in_tree_gas_is_elf = yes \
25235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25236 then gcc_cv_as_dwarf2_debug_line=yes
25238 elif test x$gcc_cv_as != x; then
25239 echo "$conftest_s" > conftest.s
25240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25246 then
25247 if test x$gcc_cv_objdump != x \
25248 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25249 | grep debug_line > /dev/null 2>&1; then
25250 gcc_cv_as_dwarf2_debug_line=yes
25252 else
25253 echo "configure: failed program was" >&5
25254 cat conftest.s >&5
25256 rm -f conftest.o conftest.s
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25260 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25263 # The .debug_line file table must be in the exact order that
25264 # we specified the files, since these indices are also used
25265 # by DW_AT_decl_file. Approximate this test by testing if
25266 # the assembler bitches if the same index is assigned twice.
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25268 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25269 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25270 $as_echo_n "(cached) " >&6
25271 else
25272 gcc_cv_as_dwarf2_file_buggy=no
25273 if test x$gcc_cv_as != x; then
25274 echo ' .file 1 "foo.s"
25275 .file 1 "bar.s"' > conftest.s
25276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; }
25282 then
25283 gcc_cv_as_dwarf2_file_buggy=yes
25284 else
25285 echo "configure: failed program was" >&5
25286 cat conftest.s >&5
25288 rm -f conftest.o conftest.s
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25292 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25295 if test $gcc_cv_as_dwarf2_debug_line = yes \
25296 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25298 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25303 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25304 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25306 else
25307 gcc_cv_as_gdwarf2_flag=no
25308 if test $in_tree_gas = yes; then
25309 if test $in_tree_gas_is_elf = yes \
25310 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25311 then gcc_cv_as_gdwarf2_flag=yes
25313 elif test x$gcc_cv_as != x; then
25314 echo "$insn" > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 gcc_cv_as_gdwarf2_flag=yes
25323 else
25324 echo "configure: failed program was" >&5
25325 cat conftest.s >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25331 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25332 if test $gcc_cv_as_gdwarf2_flag = yes; then
25334 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25339 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25340 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 gcc_cv_as_gstabs_flag=no
25344 if test $in_tree_gas = yes; then
25345 if test $in_tree_gas_is_elf = yes \
25346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25347 then gcc_cv_as_gstabs_flag=yes
25349 elif test x$gcc_cv_as != x; then
25350 echo "$insn" > conftest.s
25351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25357 then
25358 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25359 # and warns about it, but still exits successfully. So check for
25360 # this.
25361 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25366 test $ac_status = 0; }; }
25367 then :
25368 else gcc_cv_as_gstabs_flag=yes
25370 else
25371 echo "configure: failed program was" >&5
25372 cat conftest.s >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25378 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25379 if test $gcc_cv_as_gstabs_flag = yes; then
25381 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25386 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25387 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25389 else
25390 gcc_cv_as_debug_prefix_map_flag=no
25391 if test $in_tree_gas = yes; then
25392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25393 then gcc_cv_as_debug_prefix_map_flag=yes
25395 elif test x$gcc_cv_as != x; then
25396 echo "$insn" > conftest.s
25397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25403 then
25404 gcc_cv_as_debug_prefix_map_flag=yes
25405 else
25406 echo "configure: failed program was" >&5
25407 cat conftest.s >&5
25409 rm -f conftest.o conftest.s
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25413 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25414 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25416 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25422 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25423 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_lcomm_with_alignment=no
25427 if test x$gcc_cv_as != x; then
25428 echo '.lcomm bar,4,16' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_lcomm_with_alignment=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25441 rm -f conftest.o conftest.s
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25445 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25446 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25448 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25452 # Check whether --enable-gnu-unique-object was given.
25453 if test "${enable_gnu_unique_object+set}" = set; then :
25454 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25455 yes | no) ;;
25456 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25457 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25458 esac
25459 else
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25461 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25462 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 gcc_cv_as_gnu_unique_object=no
25466 if test $in_tree_gas = yes; then
25467 if test $in_tree_gas_is_elf = yes \
25468 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25469 then gcc_cv_as_gnu_unique_object=yes
25471 elif test x$gcc_cv_as != x; then
25472 echo '.type foo, @gnu_unique_object' > conftest.s
25473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25479 then
25480 gcc_cv_as_gnu_unique_object=yes
25481 else
25482 echo "configure: failed program was" >&5
25483 cat conftest.s >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25489 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25490 if test $gcc_cv_as_gnu_unique_object = yes; then
25491 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25492 if test x$host = x$build -a x$host = x$target &&
25493 ldd --version 2>/dev/null &&
25494 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25495 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25496 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25497 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25498 if test "$glibcnum" -ge 2011 ; then
25499 enable_gnu_unique_object=yes
25505 if test x$enable_gnu_unique_object = xyes; then
25507 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25512 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25513 if test "${gcc_cv_as_line_zero+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25515 else
25516 gcc_cv_as_line_zero=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25519 then gcc_cv_as_line_zero=yes
25521 elif test "x$gcc_cv_as" != x; then
25522 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25523 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25526 ac_status=$?
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; } &&
25529 test "x`cat conftest.out`" = x
25530 then
25531 gcc_cv_as_line_zero=yes
25532 else
25533 echo "configure: failed program was" >&5
25534 cat conftest.s >&5
25535 echo "configure: error output was" >&5
25536 cat conftest.out >&5
25538 rm -f conftest.o conftest.s conftest.out
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25542 $as_echo "$gcc_cv_as_line_zero" >&6; }
25543 if test "x$gcc_cv_as_line_zero" = xyes; then
25545 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25550 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25551 gcc_cv_ld_eh_frame_hdr=no
25552 if test $in_tree_ld = yes ; then
25553 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 \
25554 && test $in_tree_ld_is_elf = yes; then
25555 gcc_cv_ld_eh_frame_hdr=yes
25557 elif test x$gcc_cv_ld != x; then
25558 if echo "$ld_ver" | grep GNU > /dev/null; then
25559 # Check if linker supports --eh-frame-hdr option
25560 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25561 gcc_cv_ld_eh_frame_hdr=yes
25563 else
25564 case "$target" in
25565 *-*-solaris2*)
25566 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25567 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25568 gcc_cv_ld_eh_frame_hdr=yes
25571 esac
25575 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25577 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25581 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25584 $as_echo_n "checking linker position independent executable support... " >&6; }
25585 gcc_cv_ld_pie=no
25586 if test $in_tree_ld = yes ; then
25587 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 \
25588 && test $in_tree_ld_is_elf = yes; then
25589 gcc_cv_ld_pie=yes
25591 elif test x$gcc_cv_ld != x; then
25592 # Check if linker supports -pie option
25593 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25594 gcc_cv_ld_pie=yes
25597 if test x"$gcc_cv_ld_pie" = xyes; then
25599 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25603 $as_echo "$gcc_cv_ld_pie" >&6; }
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25606 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25607 gcc_cv_ld_eh_gc_sections=no
25608 if test $in_tree_ld = yes ; then
25609 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 \
25610 && test $in_tree_ld_is_elf = yes; then
25611 gcc_cv_ld_eh_gc_sections=yes
25613 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25614 cat > conftest.s <<EOF
25615 .section .text
25616 .globl _start
25617 .type _start, @function
25618 _start:
25619 .long foo
25620 .size _start, .-_start
25621 .section .text.foo,"ax",@progbits
25622 .type foo, @function
25623 foo:
25624 .long 0
25625 .size foo, .-foo
25626 .section .gcc_except_table.foo,"a",@progbits
25627 .L0:
25628 .long 0
25629 .section .eh_frame,"a",@progbits
25630 .long .L0
25632 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25633 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25634 | grep "gc-sections option ignored" > /dev/null; then
25635 gcc_cv_ld_eh_gc_sections=no
25636 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25637 | grep gcc_except_table > /dev/null; then
25638 gcc_cv_ld_eh_gc_sections=yes
25639 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25640 if test x$gcc_cv_as_comdat_group != xyes; then
25641 gcc_cv_ld_eh_gc_sections=no
25642 cat > conftest.s <<EOF
25643 .section .text
25644 .globl _start
25645 .type _start, @function
25646 _start:
25647 .long foo
25648 .size _start, .-_start
25649 .section .gnu.linkonce.t.foo,"ax",@progbits
25650 .type foo, @function
25651 foo:
25652 .long 0
25653 .size foo, .-foo
25654 .section .gcc_except_table.foo,"a",@progbits
25655 .L0:
25656 .long 0
25657 .section .eh_frame,"a",@progbits
25658 .long .L0
25660 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25661 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25662 | grep "gc-sections option ignored" > /dev/null; then
25663 gcc_cv_ld_eh_gc_sections=no
25664 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25665 | grep gcc_except_table > /dev/null; then
25666 gcc_cv_ld_eh_gc_sections=yes
25672 rm -f conftest.s conftest.o conftest
25674 case "$target" in
25675 hppa*-*-linux*)
25676 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25677 gcc_cv_ld_eh_gc_sections=no
25679 esac
25680 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25682 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25686 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25689 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25690 gcc_cv_ld_eh_gc_sections_bug=no
25691 if test $in_tree_ld = yes ; then
25692 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 \
25693 && test $in_tree_ld_is_elf = yes; then
25694 gcc_cv_ld_eh_gc_sections_bug=yes
25696 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
25697 gcc_cv_ld_eh_gc_sections_bug=yes
25698 cat > conftest.s <<EOF
25699 .section .text
25700 .globl _start
25701 .type _start, @function
25702 _start:
25703 .long foo
25704 .size _start, .-_start
25705 .section .text.startup.foo,"ax",@progbits
25706 .type foo, @function
25707 foo:
25708 .long 0
25709 .size foo, .-foo
25710 .section .gcc_except_table.foo,"a",@progbits
25711 .L0:
25712 .long 0
25713 .section .eh_frame,"a",@progbits
25714 .long .L0
25716 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25717 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25718 | grep "gc-sections option ignored" > /dev/null; then
25720 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25721 | grep gcc_except_table > /dev/null; then
25722 gcc_cv_ld_eh_gc_sections_bug=no
25725 rm -f conftest.s conftest.o conftest
25727 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25729 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25733 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25735 # --------
25736 # UNSORTED
25737 # --------
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25740 $as_echo_n "checking linker --as-needed support... " >&6; }
25741 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25743 else
25744 gcc_cv_ld_as_needed=no
25745 if test $in_tree_ld = yes ; then
25746 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 \
25747 && test $in_tree_ld_is_elf = yes; then
25748 gcc_cv_ld_as_needed=yes
25750 elif test x$gcc_cv_ld != x; then
25751 # Check if linker supports --as-needed and --no-as-needed options
25752 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25753 gcc_cv_ld_as_needed=yes
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25759 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25760 if test x"$gcc_cv_ld_as_needed" = xyes; then
25762 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25766 case "$target:$tm_file" in
25767 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25769 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25770 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25771 $as_echo_n "(cached) " >&6
25772 else
25773 gcc_cv_ld_no_dot_syms=no
25774 if test $in_tree_ld = yes ; then
25775 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
25776 gcc_cv_ld_no_dot_syms=yes
25778 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25779 cat > conftest1.s <<EOF
25780 .text
25781 bl .foo
25783 cat > conftest2.s <<EOF
25784 .section ".opd","aw"
25785 .align 3
25786 .globl foo
25787 .type foo,@function
25788 foo:
25789 .quad .LEfoo,.TOC.@tocbase,0
25790 .text
25791 .LEfoo:
25793 .size foo,.-.LEfoo
25795 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25796 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25797 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25798 gcc_cv_ld_no_dot_syms=yes
25800 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25805 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25806 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25808 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25813 $as_echo_n "checking linker large toc support... " >&6; }
25814 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 gcc_cv_ld_large_toc=no
25818 if test $in_tree_ld = yes ; then
25819 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
25820 gcc_cv_ld_large_toc=yes
25822 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25823 cat > conftest.s <<EOF
25824 .section ".tbss","awT",@nobits
25825 .align 3
25826 ie0: .space 8
25827 .global _start
25828 .text
25829 _start:
25830 addis 9,13,ie0@got@tprel@ha
25831 ld 9,ie0@got@tprel@l(9)
25833 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25834 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25835 gcc_cv_ld_large_toc=yes
25837 rm -f conftest conftest.o conftest.s
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25842 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25843 if test x"$gcc_cv_ld_large_toc" = xyes; then
25845 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25849 esac
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25852 $as_echo_n "checking linker --build-id support... " >&6; }
25853 if test "${gcc_cv_ld_buildid+set}" = set; then :
25854 $as_echo_n "(cached) " >&6
25855 else
25856 gcc_cv_ld_buildid=no
25857 if test $in_tree_ld = yes ; then
25858 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25859 "$gcc_cv_gld_minor_version" -ge 18 -o \
25860 "$gcc_cv_gld_major_version" -gt 2 \
25861 && test $in_tree_ld_is_elf = yes; then
25862 gcc_cv_ld_buildid=yes
25864 elif test x$gcc_cv_ld != x; then
25865 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25866 gcc_cv_ld_buildid=yes
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25871 $as_echo "$gcc_cv_ld_buildid" >&6; }
25872 if test x"$gcc_cv_ld_buildid" = xyes; then
25874 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25878 # Check whether --enable-linker-build-id was given.
25879 if test "${enable_linker_build_id+set}" = set; then :
25880 enableval=$enable_linker_build_id;
25881 else
25882 enable_linker_build_id=no
25886 if test x"$enable_linker_build_id" = xyes; then
25887 if test x"$gcc_cv_ld_buildid" = xyes; then
25889 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25891 else
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25893 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25897 # In binutils 2.21, GNU ld gained support for new emulations fully
25898 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25900 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25901 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25904 gcc_cv_ld_sol2_emulation=no
25905 if test $in_tree_ld = yes ; then
25906 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25907 "$gcc_cv_gld_minor_version" -ge 21 -o \
25908 "$gcc_cv_gld_major_version" -gt 2 \
25909 && test $in_tree_ld_is_elf = yes; then
25910 gcc_cv_ld_sol2_emulation=yes
25912 elif test x$gcc_cv_ld != x; then
25913 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25914 grep _sol2 > /dev/null; then
25915 gcc_cv_ld_sol2_emulation=yes
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25920 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25921 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25923 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25928 $as_echo_n "checking linker --sysroot support... " >&6; }
25929 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25930 $as_echo_n "(cached) " >&6
25931 else
25932 gcc_cv_ld_sysroot=no
25933 if test $in_tree_ld = yes ; then
25934 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
25935 gcc_cv_ld_sysroot=yes
25937 elif test x$gcc_cv_ld != x; then
25938 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25939 gcc_cv_ld_sysroot=yes
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25944 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25945 if test x"$gcc_cv_ld_sysroot" = xyes; then
25947 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25951 if test x$with_sysroot = x && test x$host = x$target \
25952 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25953 && test "$prefix" != "NONE"; then
25955 cat >>confdefs.h <<_ACEOF
25956 #define PREFIX_INCLUDE_DIR "$prefix/include"
25957 _ACEOF
25961 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25962 if test "x$with_headers" != x; then
25963 target_header_dir=$with_headers
25964 elif test "x$with_sysroot" = x; then
25965 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25966 elif test "x$with_build_sysroot" != "x"; then
25967 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
25968 elif test "x$with_sysroot" = xyes; then
25969 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
25970 else
25971 target_header_dir="${with_sysroot}${native_system_header_dir}"
25973 else
25974 target_header_dir=${native_system_header_dir}
25977 # Test for stack protector support in target C library.
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25979 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25980 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_libc_provides_ssp=no
25984 case "$target" in
25985 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25986 # glibc 2.4 and later provides __stack_chk_fail and
25987 # either __stack_chk_guard, or TLS access to stack guard canary.
25988 if test -f $target_header_dir/features.h \
25989 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25990 $target_header_dir/features.h > /dev/null; then
25991 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25992 $target_header_dir/features.h > /dev/null; then
25993 gcc_cv_libc_provides_ssp=yes
25994 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25995 $target_header_dir/features.h > /dev/null \
25996 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25997 $target_header_dir/features.h > /dev/null; then
25998 gcc_cv_libc_provides_ssp=yes
25999 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26000 $target_header_dir/features.h > /dev/null && \
26001 test -f $target_header_dir/bits/uClibc_config.h && \
26002 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26003 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26004 gcc_cv_libc_provides_ssp=yes
26008 *-*-gnu*)
26009 # Avoid complicated tests (see
26010 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26011 # simply assert that glibc does provide this, which is true for all
26012 # realistically usable GNU/Hurd configurations.
26013 gcc_cv_libc_provides_ssp=yes;;
26014 *-*-darwin* | *-*-freebsd*)
26015 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26016 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26017 gcc_cv_libc_provides_ssp=yes
26018 else
26019 echo "no __stack_chk_fail on this target"
26023 *) gcc_cv_libc_provides_ssp=no ;;
26024 esac
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26027 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26029 if test x$gcc_cv_libc_provides_ssp = xyes; then
26031 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26035 # Test for <sys/sdt.h> on the target.
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26038 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26039 have_sys_sdt_h=no
26040 if test -f $target_header_dir/sys/sdt.h; then
26042 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26046 $as_echo "$have_sys_sdt_h" >&6; }
26048 # Check if TFmode long double should be used by default or not.
26049 # Some glibc targets used DFmode long double, but with glibc 2.4
26050 # and later they can use TFmode.
26051 case "$target" in
26052 powerpc*-*-linux* | \
26053 sparc*-*-linux* | \
26054 s390*-*-linux* | \
26055 alpha*-*-linux*)
26057 # Check whether --with-long-double-128 was given.
26058 if test "${with_long_double_128+set}" = set; then :
26059 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26060 else
26061 gcc_cv_target_ldbl128=no
26062 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26063 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26064 && gcc_cv_target_ldbl128=yes
26069 esac
26070 if test x$gcc_cv_target_ldbl128 = xyes; then
26072 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26077 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26078 gcc_cv_target_dl_iterate_phdr=unknown
26079 case "$target" in
26080 *-*-solaris2*)
26081 # <link.h> needs both a dl_iterate_phdr declaration and support for
26082 # compilation with largefile support.
26083 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26084 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26085 gcc_cv_target_dl_iterate_phdr=yes
26086 else
26087 gcc_cv_target_dl_iterate_phdr=no
26090 esac
26092 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26094 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26098 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26100 # Find out what GC implementation we want, or may, use.
26102 # Check whether --with-gc was given.
26103 if test "${with_gc+set}" = set; then :
26104 withval=$with_gc; case "$withval" in
26105 page)
26106 GGC=ggc-$withval
26108 zone)
26109 GGC=ggc-$withval
26111 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26115 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26117 esac
26118 else
26119 GGC=ggc-page
26123 echo "Using $GGC for garbage collection."
26125 # Libraries to use on the host. This will normally be set by the top
26126 # level Makefile. Here we simply capture the value for our Makefile.
26127 if test -z "${HOST_LIBS+set}"; then
26128 HOST_LIBS=
26132 # Use the system's zlib library.
26133 zlibdir=-L../zlib
26134 zlibinc="-I\$(srcdir)/../zlib"
26136 # Check whether --with-system-zlib was given.
26137 if test "${with_system_zlib+set}" = set; then :
26138 withval=$with_system_zlib; zlibdir=
26139 zlibinc=
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26148 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26149 # Check whether --enable-maintainer-mode was given.
26150 if test "${enable_maintainer_mode+set}" = set; then :
26151 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26152 else
26153 maintainer_mode=no
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26158 $as_echo "$maintainer_mode" >&6; }
26160 if test "$maintainer_mode" = "yes"; then
26161 MAINT=''
26162 else
26163 MAINT='#'
26166 # --------------
26167 # Language hooks
26168 # --------------
26170 # Make empty files to contain the specs and options for each language.
26171 # Then add #include lines to for a compiler that has specs and/or options.
26173 subdirs=
26174 lang_opt_files=
26175 lang_specs_files=
26176 lang_tree_files=
26177 # These (without "all_") are set in each config-lang.in.
26178 # `language' must be a single word so is spelled singularly.
26179 all_languages=
26180 all_compilers=
26181 all_outputs='Makefile'
26182 # List of language makefile fragments.
26183 all_lang_makefrags=
26184 # Additional files for gengtype
26185 all_gtfiles="$target_gtfiles"
26187 # These are the languages that are set in --enable-languages,
26188 # and are available in the GCC tree.
26189 all_selected_languages=
26191 # Add the language fragments.
26192 # Languages are added via two mechanisms. Some information must be
26193 # recorded in makefile variables, these are defined in config-lang.in.
26194 # We accumulate them and plug them into the main Makefile.
26195 # The other mechanism is a set of hooks for each of the main targets
26196 # like `clean', `install', etc.
26198 language_hooks="Make-hooks"
26200 for lang in ${srcdir}/*/config-lang.in
26202 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26204 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26205 if test "x$lang_alias" = x
26206 then
26207 echo "$lang doesn't set \$language." 1>&2
26208 exit 1
26210 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26211 subdirs="$subdirs $subdir"
26213 # $gcc_subdir is where the gcc integration files are to be found
26214 # for a language, both for internal compiler purposes (compiler
26215 # sources implementing front-end to GCC tree converters), and for
26216 # build infrastructure purposes (Make-lang.in, etc.)
26218 # This will be <subdir> (relative to $srcdir) if a line like
26219 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26220 # is found in <langdir>/config-lang.in, and will remain <langdir>
26221 # otherwise.
26223 # Except for the language alias (fetched above), the regular
26224 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26225 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26226 # only this and the language alias.
26228 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26229 if [ "$gcc_subdir" = "" ]; then
26230 gcc_subdir="$subdir"
26233 case ",$enable_languages," in
26234 *,$lang_alias,*)
26235 all_selected_languages="$all_selected_languages $lang_alias"
26236 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26237 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26240 esac
26242 language=
26243 boot_language=
26244 compilers=
26245 outputs=
26246 gtfiles=
26247 subdir_requires=
26248 . ${srcdir}/$gcc_subdir/config-lang.in
26249 if test "x$language" = x
26250 then
26251 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26252 exit 1
26255 ok=:
26256 case ",$enable_languages," in
26257 *,$lang_alias,*) ;;
26259 for i in $subdir_requires; do
26260 test -f "${srcdir}/$i/config-lang.in" && continue
26261 ok=false
26262 break
26263 done
26265 esac
26266 $ok || continue
26268 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26269 if test -f $srcdir/$gcc_subdir/lang.opt; then
26270 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26271 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26273 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26274 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26276 all_languages="$all_languages $language"
26277 all_compilers="$all_compilers $compilers"
26278 all_outputs="$all_outputs $outputs"
26279 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26280 case ",$enable_languages," in
26281 *,lto,*)
26283 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26285 enable_lto=yes
26288 *) ;;
26289 esac
26290 done
26292 # Pick up gtfiles for c
26293 gtfiles=
26294 . ${srcdir}/c-config-lang.in
26295 all_gtfiles="$all_gtfiles [c] $gtfiles"
26297 check_languages=
26298 for language in $all_selected_languages
26300 check_languages="$check_languages check-$language"
26301 done
26303 # We link each language in with a set of hooks, reached indirectly via
26304 # lang.${target}. Only do so for selected languages.
26306 rm -f Make-hooks
26307 touch Make-hooks
26308 target_list="all.cross start.encap rest.encap tags \
26309 install-common install-man install-info install-pdf install-html dvi \
26310 pdf html uninstall info man srcextra srcman srcinfo \
26311 mostlyclean clean distclean maintainer-clean install-plugin"
26313 for t in $target_list
26316 for lang in $all_selected_languages
26318 x="$x $lang.$t"
26319 done
26320 echo "lang.$t: $x" >> Make-hooks
26321 done
26323 # --------
26324 # Option include files
26325 # --------
26327 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26328 option_includes="option-includes.mk"
26331 # --------
26332 # UNSORTED
26333 # --------
26335 # Create .gdbinit.
26337 echo "dir ." > .gdbinit
26338 echo "dir ${srcdir}" >> .gdbinit
26339 if test x$gdb_needs_out_file_path = xyes
26340 then
26341 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26343 if test "x$subdirs" != x; then
26344 for s in $subdirs
26346 echo "dir ${srcdir}/$s" >> .gdbinit
26347 done
26349 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26351 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26355 # Find a directory in which to install a shared libgcc.
26357 # Check whether --enable-version-specific-runtime-libs was given.
26358 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26359 enableval=$enable_version_specific_runtime_libs;
26364 # Check whether --with-slibdir was given.
26365 if test "${with_slibdir+set}" = set; then :
26366 withval=$with_slibdir; slibdir="$with_slibdir"
26367 else
26368 if test "${enable_version_specific_runtime_libs+set}" = set; then
26369 slibdir='$(libsubdir)'
26370 elif test "$host" != "$target"; then
26371 slibdir='$(build_tooldir)/lib'
26372 else
26373 slibdir='$(libdir)'
26379 # Set default prefix canonicalization.
26381 # Check whether --enable-canonical-prefixes was given.
26382 if test "${enable_canonical_prefixes+set}" = set; then :
26383 enableval=$enable_canonical_prefixes;
26384 else
26385 enable_canonical_prefixes=yes
26388 if test x"$enable_canonical_prefixes" = xyes; then
26390 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
26394 # Substitute configuration variables
26459 # Echo link setup.
26460 if test x${build} = x${host} ; then
26461 if test x${host} = x${target} ; then
26462 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26463 else
26464 echo "Links are now set up to build a cross-compiler" 1>&2
26465 echo " from ${host} to ${target}." 1>&2
26467 else
26468 if test x${host} = x${target} ; then
26469 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26470 echo " for ${target}." 1>&2
26471 else
26472 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26473 echo " from ${host} to ${target}." 1>&2
26485 if test "x${CLOOGLIBS}" != "x" ; then
26487 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26491 # Check for plugin support
26492 # Check whether --enable-plugin was given.
26493 if test "${enable_plugin+set}" = set; then :
26494 enableval=$enable_plugin; enable_plugin=$enableval
26495 else
26496 enable_plugin=yes; default_plugin=yes
26500 pluginlibs=
26502 case "${host}" in
26503 *-*-darwin*)
26504 if test x$build = x$host; then
26505 export_sym_check="nm${exeext} -g"
26506 elif test x$host = x$target; then
26507 export_sym_check="$gcc_cv_nm -g"
26508 else
26509 export_sym_check=
26513 if test x$build = x$host; then
26514 export_sym_check="objdump${exeext} -T"
26515 elif test x$host = x$target; then
26516 export_sym_check="$gcc_cv_objdump -T"
26517 else
26518 export_sym_check=
26521 esac
26523 if test x"$enable_plugin" = x"yes"; then
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26526 $as_echo_n "checking for exported symbols... " >&6; }
26527 if test "x$export_sym_check" != x; then
26528 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26529 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26530 if $export_sym_check conftest | grep foobar > /dev/null; then
26531 : # No need to use a flag
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26533 $as_echo "yes" >&6; }
26534 else
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26536 $as_echo "yes" >&6; }
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26538 $as_echo_n "checking for -rdynamic... " >&6; }
26539 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26540 if $export_sym_check conftest | grep foobar > /dev/null; then
26541 plugin_rdynamic=yes
26542 pluginlibs="-rdynamic"
26543 else
26544 plugin_rdynamic=no
26545 enable_plugin=no
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26548 $as_echo "$plugin_rdynamic" >&6; }
26550 else
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26552 $as_echo "unable to check" >&6; }
26555 # Check -ldl
26556 saved_LIBS="$LIBS"
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26558 $as_echo_n "checking for library containing dlopen... " >&6; }
26559 if test "${ac_cv_search_dlopen+set}" = set; then :
26560 $as_echo_n "(cached) " >&6
26561 else
26562 ac_func_search_save_LIBS=$LIBS
26563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26564 /* end confdefs.h. */
26566 /* Override any GCC internal prototype to avoid an error.
26567 Use char because int might match the return type of a GCC
26568 builtin and then its argument prototype would still apply. */
26569 #ifdef __cplusplus
26570 extern "C"
26571 #endif
26572 char dlopen ();
26574 main ()
26576 return dlopen ();
26578 return 0;
26580 _ACEOF
26581 for ac_lib in '' dl; do
26582 if test -z "$ac_lib"; then
26583 ac_res="none required"
26584 else
26585 ac_res=-l$ac_lib
26586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26588 if ac_fn_c_try_link "$LINENO"; then :
26589 ac_cv_search_dlopen=$ac_res
26591 rm -f core conftest.err conftest.$ac_objext \
26592 conftest$ac_exeext
26593 if test "${ac_cv_search_dlopen+set}" = set; then :
26594 break
26596 done
26597 if test "${ac_cv_search_dlopen+set}" = set; then :
26599 else
26600 ac_cv_search_dlopen=no
26602 rm conftest.$ac_ext
26603 LIBS=$ac_func_search_save_LIBS
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26606 $as_echo "$ac_cv_search_dlopen" >&6; }
26607 ac_res=$ac_cv_search_dlopen
26608 if test "$ac_res" != no; then :
26609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26613 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26614 pluginlibs="$pluginlibs -ldl"
26616 LIBS="$saved_LIBS"
26618 # Check that we can build shared objects with -fPIC -shared
26619 saved_LDFLAGS="$LDFLAGS"
26620 saved_CFLAGS="$CFLAGS"
26621 case "${host}" in
26622 *-*-darwin*)
26623 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26624 CFLAGS="$CFLAGS -fPIC"
26625 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26628 CFLAGS="$CFLAGS -fPIC"
26629 LDFLAGS="$LDFLAGS -fPIC -shared"
26631 esac
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26633 $as_echo_n "checking for -fPIC -shared... " >&6; }
26634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h. */
26636 extern int X;
26638 main ()
26640 return X == 0;
26642 return 0;
26644 _ACEOF
26645 if ac_fn_c_try_link "$LINENO"; then :
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26647 $as_echo "yes" >&6; }; have_pic_shared=yes
26648 else
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26650 $as_echo "no" >&6; }; have_pic_shared=no
26652 rm -f core conftest.err conftest.$ac_objext \
26653 conftest$ac_exeext conftest.$ac_ext
26654 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26655 pluginlibs=
26656 enable_plugin=no
26658 LDFLAGS="$saved_LDFLAGS"
26659 CFLAGS="$saved_CFLAGS"
26661 # If plugin support had been requested but not available, fail.
26662 if test x"$enable_plugin" = x"no" ; then
26663 if test x"$default_plugin" != x"yes"; then
26664 as_fn_error "
26665 Building GCC with plugin support requires a host that supports
26666 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26673 if test x"$enable_plugin" = x"yes"; then
26675 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26680 # Check whether --enable-libquadmath-support was given.
26681 if test "${enable_libquadmath_support+set}" = set; then :
26682 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26683 else
26684 ENABLE_LIBQUADMATH_SUPPORT=yes
26687 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26689 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26694 # Specify what hash style to use by default.
26696 # Check whether --with-linker-hash-style was given.
26697 if test "${with_linker_hash_style+set}" = set; then :
26698 withval=$with_linker_hash_style; case x"$withval" in
26699 xsysv)
26700 LINKER_HASH_STYLE=sysv
26702 xgnu)
26703 LINKER_HASH_STYLE=gnu
26705 xboth)
26706 LINKER_HASH_STYLE=both
26709 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26711 esac
26712 else
26713 LINKER_HASH_STYLE=''
26716 if test x"${LINKER_HASH_STYLE}" != x; then
26718 cat >>confdefs.h <<_ACEOF
26719 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26720 _ACEOF
26724 # Configure the subdirectories
26725 # AC_CONFIG_SUBDIRS($subdirs)
26727 # Create the Makefile
26728 # and configure language subdirectories
26729 ac_config_files="$ac_config_files $all_outputs"
26732 ac_config_commands="$ac_config_commands default"
26734 cat >confcache <<\_ACEOF
26735 # This file is a shell script that caches the results of configure
26736 # tests run on this system so they can be shared between configure
26737 # scripts and configure runs, see configure's option --config-cache.
26738 # It is not useful on other systems. If it contains results you don't
26739 # want to keep, you may remove or edit it.
26741 # config.status only pays attention to the cache file if you give it
26742 # the --recheck option to rerun configure.
26744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26746 # following values.
26748 _ACEOF
26750 # The following way of writing the cache mishandles newlines in values,
26751 # but we know of no workaround that is simple, portable, and efficient.
26752 # So, we kill variables containing newlines.
26753 # Ultrix sh set writes to stderr and can't be redirected directly,
26754 # and sets the high bit in the cache file unless we assign to the vars.
26756 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26757 eval ac_val=\$$ac_var
26758 case $ac_val in #(
26759 *${as_nl}*)
26760 case $ac_var in #(
26761 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26762 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26763 esac
26764 case $ac_var in #(
26765 _ | IFS | as_nl) ;; #(
26766 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26767 *) { eval $ac_var=; unset $ac_var;} ;;
26768 esac ;;
26769 esac
26770 done
26772 (set) 2>&1 |
26773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26774 *${as_nl}ac_space=\ *)
26775 # `set' does not quote correctly, so add quotes: double-quote
26776 # substitution turns \\\\ into \\, and sed turns \\ into \.
26777 sed -n \
26778 "s/'/'\\\\''/g;
26779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26780 ;; #(
26782 # `set' quotes correctly as required by POSIX, so do not add quotes.
26783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26785 esac |
26786 sort
26788 sed '
26789 /^ac_cv_env_/b end
26790 t clear
26791 :clear
26792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26793 t end
26794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26795 :end' >>confcache
26796 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26797 if test -w "$cache_file"; then
26798 test "x$cache_file" != "x/dev/null" &&
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26800 $as_echo "$as_me: updating cache $cache_file" >&6;}
26801 cat confcache >$cache_file
26802 else
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26804 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26807 rm -f confcache
26809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26810 # Let make expand exec_prefix.
26811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26813 DEFS=-DHAVE_CONFIG_H
26815 ac_libobjs=
26816 ac_ltlibobjs=
26817 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26818 # 1. Remove the extension, and $U if already installed.
26819 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26820 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26822 # will be set to the directory where LIBOBJS objects are built.
26823 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26824 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26825 done
26826 LIBOBJS=$ac_libobjs
26828 LTLIBOBJS=$ac_ltlibobjs
26833 : ${CONFIG_STATUS=./config.status}
26834 ac_write_fail=0
26835 ac_clean_files_save=$ac_clean_files
26836 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26838 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26839 as_write_fail=0
26840 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26841 #! $SHELL
26842 # Generated by $as_me.
26843 # Run this file to recreate the current configuration.
26844 # Compiler output produced by configure, useful for debugging
26845 # configure, is in config.log if it exists.
26847 debug=false
26848 ac_cs_recheck=false
26849 ac_cs_silent=false
26851 SHELL=\${CONFIG_SHELL-$SHELL}
26852 export SHELL
26853 _ASEOF
26854 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26855 ## -------------------- ##
26856 ## M4sh Initialization. ##
26857 ## -------------------- ##
26859 # Be more Bourne compatible
26860 DUALCASE=1; export DUALCASE # for MKS sh
26861 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26862 emulate sh
26863 NULLCMD=:
26864 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26865 # is contrary to our usage. Disable this feature.
26866 alias -g '${1+"$@"}'='"$@"'
26867 setopt NO_GLOB_SUBST
26868 else
26869 case `(set -o) 2>/dev/null` in #(
26870 *posix*) :
26871 set -o posix ;; #(
26872 *) :
26874 esac
26878 as_nl='
26880 export as_nl
26881 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26882 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26885 # Prefer a ksh shell builtin over an external printf program on Solaris,
26886 # but without wasting forks for bash or zsh.
26887 if test -z "$BASH_VERSION$ZSH_VERSION" \
26888 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26889 as_echo='print -r --'
26890 as_echo_n='print -rn --'
26891 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26892 as_echo='printf %s\n'
26893 as_echo_n='printf %s'
26894 else
26895 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26896 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26897 as_echo_n='/usr/ucb/echo -n'
26898 else
26899 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26900 as_echo_n_body='eval
26901 arg=$1;
26902 case $arg in #(
26903 *"$as_nl"*)
26904 expr "X$arg" : "X\\(.*\\)$as_nl";
26905 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26906 esac;
26907 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26909 export as_echo_n_body
26910 as_echo_n='sh -c $as_echo_n_body as_echo'
26912 export as_echo_body
26913 as_echo='sh -c $as_echo_body as_echo'
26916 # The user is always right.
26917 if test "${PATH_SEPARATOR+set}" != set; then
26918 PATH_SEPARATOR=:
26919 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26920 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26921 PATH_SEPARATOR=';'
26926 # IFS
26927 # We need space, tab and new line, in precisely that order. Quoting is
26928 # there to prevent editors from complaining about space-tab.
26929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26930 # splitting by setting IFS to empty value.)
26931 IFS=" "" $as_nl"
26933 # Find who we are. Look in the path if we contain no directory separator.
26934 case $0 in #((
26935 *[\\/]* ) as_myself=$0 ;;
26936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26937 for as_dir in $PATH
26939 IFS=$as_save_IFS
26940 test -z "$as_dir" && as_dir=.
26941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26942 done
26943 IFS=$as_save_IFS
26946 esac
26947 # We did not find ourselves, most probably we were run as `sh COMMAND'
26948 # in which case we are not to be found in the path.
26949 if test "x$as_myself" = x; then
26950 as_myself=$0
26952 if test ! -f "$as_myself"; then
26953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26954 exit 1
26957 # Unset variables that we do not need and which cause bugs (e.g. in
26958 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26959 # suppresses any "Segmentation fault" message there. '((' could
26960 # trigger a bug in pdksh 5.2.14.
26961 for as_var in BASH_ENV ENV MAIL MAILPATH
26962 do eval test x\${$as_var+set} = xset \
26963 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26964 done
26965 PS1='$ '
26966 PS2='> '
26967 PS4='+ '
26969 # NLS nuisances.
26970 LC_ALL=C
26971 export LC_ALL
26972 LANGUAGE=C
26973 export LANGUAGE
26975 # CDPATH.
26976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26979 # as_fn_error ERROR [LINENO LOG_FD]
26980 # ---------------------------------
26981 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26982 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26983 # script with status $?, using 1 if that was 0.
26984 as_fn_error ()
26986 as_status=$?; test $as_status -eq 0 && as_status=1
26987 if test "$3"; then
26988 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26991 $as_echo "$as_me: error: $1" >&2
26992 as_fn_exit $as_status
26993 } # as_fn_error
26996 # as_fn_set_status STATUS
26997 # -----------------------
26998 # Set $? to STATUS, without forking.
26999 as_fn_set_status ()
27001 return $1
27002 } # as_fn_set_status
27004 # as_fn_exit STATUS
27005 # -----------------
27006 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27007 as_fn_exit ()
27009 set +e
27010 as_fn_set_status $1
27011 exit $1
27012 } # as_fn_exit
27014 # as_fn_unset VAR
27015 # ---------------
27016 # Portably unset VAR.
27017 as_fn_unset ()
27019 { eval $1=; unset $1;}
27021 as_unset=as_fn_unset
27022 # as_fn_append VAR VALUE
27023 # ----------------------
27024 # Append the text in VALUE to the end of the definition contained in VAR. Take
27025 # advantage of any shell optimizations that allow amortized linear growth over
27026 # repeated appends, instead of the typical quadratic growth present in naive
27027 # implementations.
27028 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27029 eval 'as_fn_append ()
27031 eval $1+=\$2
27033 else
27034 as_fn_append ()
27036 eval $1=\$$1\$2
27038 fi # as_fn_append
27040 # as_fn_arith ARG...
27041 # ------------------
27042 # Perform arithmetic evaluation on the ARGs, and store the result in the
27043 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27044 # must be portable across $(()) and expr.
27045 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27046 eval 'as_fn_arith ()
27048 as_val=$(( $* ))
27050 else
27051 as_fn_arith ()
27053 as_val=`expr "$@" || test $? -eq 1`
27055 fi # as_fn_arith
27058 if expr a : '\(a\)' >/dev/null 2>&1 &&
27059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27060 as_expr=expr
27061 else
27062 as_expr=false
27065 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27066 as_basename=basename
27067 else
27068 as_basename=false
27071 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27072 as_dirname=dirname
27073 else
27074 as_dirname=false
27077 as_me=`$as_basename -- "$0" ||
27078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27079 X"$0" : 'X\(//\)$' \| \
27080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27081 $as_echo X/"$0" |
27082 sed '/^.*\/\([^/][^/]*\)\/*$/{
27083 s//\1/
27086 /^X\/\(\/\/\)$/{
27087 s//\1/
27090 /^X\/\(\/\).*/{
27091 s//\1/
27094 s/.*/./; q'`
27096 # Avoid depending upon Character Ranges.
27097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27100 as_cr_digits='0123456789'
27101 as_cr_alnum=$as_cr_Letters$as_cr_digits
27103 ECHO_C= ECHO_N= ECHO_T=
27104 case `echo -n x` in #(((((
27105 -n*)
27106 case `echo 'xy\c'` in
27107 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27108 xy) ECHO_C='\c';;
27109 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27110 ECHO_T=' ';;
27111 esac;;
27113 ECHO_N='-n';;
27114 esac
27116 rm -f conf$$ conf$$.exe conf$$.file
27117 if test -d conf$$.dir; then
27118 rm -f conf$$.dir/conf$$.file
27119 else
27120 rm -f conf$$.dir
27121 mkdir conf$$.dir 2>/dev/null
27123 if (echo >conf$$.file) 2>/dev/null; then
27124 if ln -s conf$$.file conf$$ 2>/dev/null; then
27125 as_ln_s='ln -s'
27126 # ... but there are two gotchas:
27127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27129 # In both cases, we have to default to `cp -p'.
27130 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27131 as_ln_s='cp -p'
27132 elif ln conf$$.file conf$$ 2>/dev/null; then
27133 as_ln_s=ln
27134 else
27135 as_ln_s='cp -p'
27137 else
27138 as_ln_s='cp -p'
27140 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27141 rmdir conf$$.dir 2>/dev/null
27144 # as_fn_mkdir_p
27145 # -------------
27146 # Create "$as_dir" as a directory, including parents if necessary.
27147 as_fn_mkdir_p ()
27150 case $as_dir in #(
27151 -*) as_dir=./$as_dir;;
27152 esac
27153 test -d "$as_dir" || eval $as_mkdir_p || {
27154 as_dirs=
27155 while :; do
27156 case $as_dir in #(
27157 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27158 *) as_qdir=$as_dir;;
27159 esac
27160 as_dirs="'$as_qdir' $as_dirs"
27161 as_dir=`$as_dirname -- "$as_dir" ||
27162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27163 X"$as_dir" : 'X\(//\)[^/]' \| \
27164 X"$as_dir" : 'X\(//\)$' \| \
27165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27166 $as_echo X"$as_dir" |
27167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27168 s//\1/
27171 /^X\(\/\/\)[^/].*/{
27172 s//\1/
27175 /^X\(\/\/\)$/{
27176 s//\1/
27179 /^X\(\/\).*/{
27180 s//\1/
27183 s/.*/./; q'`
27184 test -d "$as_dir" && break
27185 done
27186 test -z "$as_dirs" || eval "mkdir $as_dirs"
27187 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27190 } # as_fn_mkdir_p
27191 if mkdir -p . 2>/dev/null; then
27192 as_mkdir_p='mkdir -p "$as_dir"'
27193 else
27194 test -d ./-p && rmdir ./-p
27195 as_mkdir_p=false
27198 if test -x / >/dev/null 2>&1; then
27199 as_test_x='test -x'
27200 else
27201 if ls -dL / >/dev/null 2>&1; then
27202 as_ls_L_option=L
27203 else
27204 as_ls_L_option=
27206 as_test_x='
27207 eval sh -c '\''
27208 if test -d "$1"; then
27209 test -d "$1/.";
27210 else
27211 case $1 in #(
27212 -*)set "./$1";;
27213 esac;
27214 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27215 ???[sx]*):;;*)false;;esac;fi
27216 '\'' sh
27219 as_executable_p=$as_test_x
27221 # Sed expression to map a string onto a valid CPP name.
27222 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27224 # Sed expression to map a string onto a valid variable name.
27225 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27228 exec 6>&1
27229 ## ----------------------------------- ##
27230 ## Main body of $CONFIG_STATUS script. ##
27231 ## ----------------------------------- ##
27232 _ASEOF
27233 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27236 # Save the log message, to keep $0 and so on meaningful, and to
27237 # report actual input values of CONFIG_FILES etc. instead of their
27238 # values after options handling.
27239 ac_log="
27240 This file was extended by $as_me, which was
27241 generated by GNU Autoconf 2.64. Invocation command line was
27243 CONFIG_FILES = $CONFIG_FILES
27244 CONFIG_HEADERS = $CONFIG_HEADERS
27245 CONFIG_LINKS = $CONFIG_LINKS
27246 CONFIG_COMMANDS = $CONFIG_COMMANDS
27247 $ $0 $@
27249 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27252 _ACEOF
27254 case $ac_config_files in *"
27255 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27256 esac
27258 case $ac_config_headers in *"
27259 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27260 esac
27263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27264 # Files that config.status was made for.
27265 config_files="$ac_config_files"
27266 config_headers="$ac_config_headers"
27267 config_commands="$ac_config_commands"
27269 _ACEOF
27271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27272 ac_cs_usage="\
27273 \`$as_me' instantiates files and other configuration actions
27274 from templates according to the current configuration. Unless the files
27275 and actions are specified as TAGs, all are instantiated by default.
27277 Usage: $0 [OPTION]... [TAG]...
27279 -h, --help print this help, then exit
27280 -V, --version print version number and configuration settings, then exit
27281 -q, --quiet, --silent
27282 do not print progress messages
27283 -d, --debug don't remove temporary files
27284 --recheck update $as_me by reconfiguring in the same conditions
27285 --file=FILE[:TEMPLATE]
27286 instantiate the configuration file FILE
27287 --header=FILE[:TEMPLATE]
27288 instantiate the configuration header FILE
27290 Configuration files:
27291 $config_files
27293 Configuration headers:
27294 $config_headers
27296 Configuration commands:
27297 $config_commands
27299 Report bugs to the package provider."
27301 _ACEOF
27302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27303 ac_cs_version="\\
27304 config.status
27305 configured by $0, generated by GNU Autoconf 2.64,
27306 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27308 Copyright (C) 2009 Free Software Foundation, Inc.
27309 This config.status script is free software; the Free Software Foundation
27310 gives unlimited permission to copy, distribute and modify it."
27312 ac_pwd='$ac_pwd'
27313 srcdir='$srcdir'
27314 AWK='$AWK'
27315 test -n "\$AWK" || AWK=awk
27316 _ACEOF
27318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27319 # The default lists apply if the user does not specify any file.
27320 ac_need_defaults=:
27321 while test $# != 0
27323 case $1 in
27324 --*=*)
27325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27327 ac_shift=:
27330 ac_option=$1
27331 ac_optarg=$2
27332 ac_shift=shift
27334 esac
27336 case $ac_option in
27337 # Handling of the options.
27338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27339 ac_cs_recheck=: ;;
27340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27341 $as_echo "$ac_cs_version"; exit ;;
27342 --debug | --debu | --deb | --de | --d | -d )
27343 debug=: ;;
27344 --file | --fil | --fi | --f )
27345 $ac_shift
27346 case $ac_optarg in
27347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27348 esac
27349 as_fn_append CONFIG_FILES " '$ac_optarg'"
27350 ac_need_defaults=false;;
27351 --header | --heade | --head | --hea )
27352 $ac_shift
27353 case $ac_optarg in
27354 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27355 esac
27356 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27357 ac_need_defaults=false;;
27358 --he | --h)
27359 # Conflict between --help and --header
27360 as_fn_error "ambiguous option: \`$1'
27361 Try \`$0 --help' for more information.";;
27362 --help | --hel | -h )
27363 $as_echo "$ac_cs_usage"; exit ;;
27364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27366 ac_cs_silent=: ;;
27368 # This is an error.
27369 -*) as_fn_error "unrecognized option: \`$1'
27370 Try \`$0 --help' for more information." ;;
27372 *) as_fn_append ac_config_targets " $1"
27373 ac_need_defaults=false ;;
27375 esac
27376 shift
27377 done
27379 ac_configure_extra_args=
27381 if $ac_cs_silent; then
27382 exec 6>/dev/null
27383 ac_configure_extra_args="$ac_configure_extra_args --silent"
27386 _ACEOF
27387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27388 if \$ac_cs_recheck; then
27389 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27390 shift
27391 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27392 CONFIG_SHELL='$SHELL'
27393 export CONFIG_SHELL
27394 exec "\$@"
27397 _ACEOF
27398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27399 exec 5>>config.log
27401 echo
27402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27403 ## Running $as_me. ##
27404 _ASBOX
27405 $as_echo "$ac_log"
27406 } >&5
27408 _ACEOF
27409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27411 # INIT-COMMANDS
27413 subdirs='$subdirs'
27415 _ACEOF
27417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27419 # Handling of arguments.
27420 for ac_config_target in $ac_config_targets
27422 case $ac_config_target in
27423 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27424 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27425 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27426 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27427 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27428 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27430 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27431 esac
27432 done
27435 # If the user did not use the arguments to specify the items to instantiate,
27436 # then the envvar interface is used. Set only those that are not.
27437 # We use the long form for the default assignment because of an extremely
27438 # bizarre bug on SunOS 4.1.3.
27439 if $ac_need_defaults; then
27440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27445 # Have a temporary directory for convenience. Make it in the build tree
27446 # simply because there is no reason against having it here, and in addition,
27447 # creating and moving files from /tmp can sometimes cause problems.
27448 # Hook for its removal unless debugging.
27449 # Note that there is a small window in which the directory will not be cleaned:
27450 # after its creation but before its name has been assigned to `$tmp'.
27451 $debug ||
27453 tmp=
27454 trap 'exit_status=$?
27455 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27457 trap 'as_fn_exit 1' 1 2 13 15
27459 # Create a (secure) tmp directory for tmp files.
27462 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27463 test -n "$tmp" && test -d "$tmp"
27464 } ||
27466 tmp=./conf$$-$RANDOM
27467 (umask 077 && mkdir "$tmp")
27468 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27470 # Set up the scripts for CONFIG_FILES section.
27471 # No need to generate them if there are no CONFIG_FILES.
27472 # This happens for instance with `./config.status config.h'.
27473 if test -n "$CONFIG_FILES"; then
27475 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27476 ac_cs_awk_getline=:
27477 ac_cs_awk_pipe_init=
27478 ac_cs_awk_read_file='
27479 while ((getline aline < (F[key])) > 0)
27480 print(aline)
27481 close(F[key])'
27482 ac_cs_awk_pipe_fini=
27483 else
27484 ac_cs_awk_getline=false
27485 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27486 ac_cs_awk_read_file='
27487 print "|#_!!_#|"
27488 print "cat " F[key] " &&"
27489 '$ac_cs_awk_pipe_init
27490 # The final `:' finishes the AND list.
27491 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27493 ac_cr=`echo X | tr X '\015'`
27494 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27495 # But we know of no other shell where ac_cr would be empty at this
27496 # point, so we can use a bashism as a fallback.
27497 if test "x$ac_cr" = x; then
27498 eval ac_cr=\$\'\\r\'
27500 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27501 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27502 ac_cs_awk_cr='\r'
27503 else
27504 ac_cs_awk_cr=$ac_cr
27507 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27508 _ACEOF
27510 # Create commands to substitute file output variables.
27512 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27513 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27514 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27515 echo "_ACAWK" &&
27516 echo "_ACEOF"
27517 } >conf$$files.sh &&
27518 . ./conf$$files.sh ||
27519 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27520 rm -f conf$$files.sh
27523 echo "cat >conf$$subs.awk <<_ACEOF" &&
27524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27525 echo "_ACEOF"
27526 } >conf$$subs.sh ||
27527 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27528 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27529 ac_delim='%!_!# '
27530 for ac_last_try in false false false false false :; do
27531 . ./conf$$subs.sh ||
27532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27534 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27535 if test $ac_delim_n = $ac_delim_num; then
27536 break
27537 elif $ac_last_try; then
27538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27539 else
27540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27542 done
27543 rm -f conf$$subs.sh
27545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27546 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27547 _ACEOF
27548 sed -n '
27550 s/^/S["/; s/!.*/"]=/
27553 s/^[^!]*!//
27554 :repl
27555 t repl
27556 s/'"$ac_delim"'$//
27557 t delim
27560 s/\(.\{148\}\).*/\1/
27561 t more1
27562 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27565 b repl
27566 :more1
27567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27570 s/.\{148\}//
27571 t nl
27572 :delim
27574 s/\(.\{148\}\).*/\1/
27575 t more2
27576 s/["\\]/\\&/g; s/^/"/; s/$/"/
27579 :more2
27580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27583 s/.\{148\}//
27584 t delim
27585 ' <conf$$subs.awk | sed '
27586 /^[^""]/{
27588 s/\n//
27590 ' >>$CONFIG_STATUS || ac_write_fail=1
27591 rm -f conf$$subs.awk
27592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27593 _ACAWK
27594 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27595 for (key in S) S_is_set[key] = 1
27596 FS = "\a"
27597 \$ac_cs_awk_pipe_init
27600 line = $ 0
27601 nfields = split(line, field, "@")
27602 substed = 0
27603 len = length(field[1])
27604 for (i = 2; i < nfields; i++) {
27605 key = field[i]
27606 keylen = length(key)
27607 if (S_is_set[key]) {
27608 value = S[key]
27609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27610 len += length(value) + length(field[++i])
27611 substed = 1
27612 } else
27613 len += 1 + keylen
27615 if (nfields == 3 && !substed) {
27616 key = field[2]
27617 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27618 \$ac_cs_awk_read_file
27619 next
27622 print line
27624 \$ac_cs_awk_pipe_fini
27625 _ACAWK
27626 _ACEOF
27627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27628 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27630 else
27632 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27633 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27634 _ACEOF
27636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27638 # trailing colons and then remove the whole line if VPATH becomes empty
27639 # (actually we leave an empty line to preserve line numbers).
27640 if test "x$srcdir" = x.; then
27641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27642 s/:*\$(srcdir):*/:/
27643 s/:*\${srcdir}:*/:/
27644 s/:*@srcdir@:*/:/
27645 s/^\([^=]*=[ ]*\):*/\1/
27646 s/:*$//
27647 s/^[^=]*=[ ]*$//
27651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27652 fi # test -n "$CONFIG_FILES"
27654 # Set up the scripts for CONFIG_HEADERS section.
27655 # No need to generate them if there are no CONFIG_HEADERS.
27656 # This happens for instance with `./config.status Makefile'.
27657 if test -n "$CONFIG_HEADERS"; then
27658 cat >"$tmp/defines.awk" <<\_ACAWK ||
27659 BEGIN {
27660 _ACEOF
27662 # Transform confdefs.h into an awk script `defines.awk', embedded as
27663 # here-document in config.status, that substitutes the proper values into
27664 # config.h.in to produce config.h.
27666 # Create a delimiter string that does not exist in confdefs.h, to ease
27667 # handling of long lines.
27668 ac_delim='%!_!# '
27669 for ac_last_try in false false :; do
27670 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27671 if test -z "$ac_t"; then
27672 break
27673 elif $ac_last_try; then
27674 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27675 else
27676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27678 done
27680 # For the awk script, D is an array of macro values keyed by name,
27681 # likewise P contains macro parameters if any. Preserve backslash
27682 # newline sequences.
27684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27685 sed -n '
27686 s/.\{148\}/&'"$ac_delim"'/g
27687 t rset
27688 :rset
27689 s/^[ ]*#[ ]*define[ ][ ]*/ /
27690 t def
27692 :def
27693 s/\\$//
27694 t bsnl
27695 s/["\\]/\\&/g
27696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27697 D["\1"]=" \3"/p
27698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27700 :bsnl
27701 s/["\\]/\\&/g
27702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27703 D["\1"]=" \3\\\\\\n"\\/p
27704 t cont
27705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27706 t cont
27708 :cont
27710 s/.\{148\}/&'"$ac_delim"'/g
27711 t clear
27712 :clear
27713 s/\\$//
27714 t bsnlc
27715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27717 :bsnlc
27718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27719 b cont
27720 ' <confdefs.h | sed '
27721 s/'"$ac_delim"'/"\\\
27722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27725 for (key in D) D_is_set[key] = 1
27726 FS = "\a"
27728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27729 line = \$ 0
27730 split(line, arg, " ")
27731 if (arg[1] == "#") {
27732 defundef = arg[2]
27733 mac1 = arg[3]
27734 } else {
27735 defundef = substr(arg[1], 2)
27736 mac1 = arg[2]
27738 split(mac1, mac2, "(") #)
27739 macro = mac2[1]
27740 prefix = substr(line, 1, index(line, defundef) - 1)
27741 if (D_is_set[macro]) {
27742 # Preserve the white space surrounding the "#".
27743 print prefix "define", macro P[macro] D[macro]
27744 next
27745 } else {
27746 # Replace #undef with comments. This is necessary, for example,
27747 # in the case of _POSIX_SOURCE, which is predefined and required
27748 # on some systems where configure will not decide to define it.
27749 if (defundef == "undef") {
27750 print "/*", prefix defundef, macro, "*/"
27751 next
27755 { print }
27756 _ACAWK
27757 _ACEOF
27758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27759 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27760 fi # test -n "$CONFIG_HEADERS"
27763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27764 shift
27765 for ac_tag
27767 case $ac_tag in
27768 :[FHLC]) ac_mode=$ac_tag; continue;;
27769 esac
27770 case $ac_mode$ac_tag in
27771 :[FHL]*:*);;
27772 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27773 :[FH]-) ac_tag=-:-;;
27774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27775 esac
27776 ac_save_IFS=$IFS
27777 IFS=:
27778 set x $ac_tag
27779 IFS=$ac_save_IFS
27780 shift
27781 ac_file=$1
27782 shift
27784 case $ac_mode in
27785 :L) ac_source=$1;;
27786 :[FH])
27787 ac_file_inputs=
27788 for ac_f
27790 case $ac_f in
27791 -) ac_f="$tmp/stdin";;
27792 *) # Look for the file first in the build tree, then in the source tree
27793 # (if the path is not absolute). The absolute path cannot be DOS-style,
27794 # because $ac_f cannot contain `:'.
27795 test -f "$ac_f" ||
27796 case $ac_f in
27797 [\\/$]*) false;;
27798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27799 esac ||
27800 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27801 esac
27802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27803 as_fn_append ac_file_inputs " '$ac_f'"
27804 done
27806 # Let's still pretend it is `configure' which instantiates (i.e., don't
27807 # use $as_me), people would be surprised to read:
27808 # /* config.h. Generated by config.status. */
27809 configure_input='Generated from '`
27810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27811 `' by configure.'
27812 if test x"$ac_file" != x-; then
27813 configure_input="$ac_file. $configure_input"
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27815 $as_echo "$as_me: creating $ac_file" >&6;}
27817 # Neutralize special characters interpreted by sed in replacement strings.
27818 case $configure_input in #(
27819 *\&* | *\|* | *\\* )
27820 ac_sed_conf_input=`$as_echo "$configure_input" |
27821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27822 *) ac_sed_conf_input=$configure_input;;
27823 esac
27825 case $ac_tag in
27826 *:-:* | *:-) cat >"$tmp/stdin" \
27827 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27828 esac
27830 esac
27832 ac_dir=`$as_dirname -- "$ac_file" ||
27833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27834 X"$ac_file" : 'X\(//\)[^/]' \| \
27835 X"$ac_file" : 'X\(//\)$' \| \
27836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27837 $as_echo X"$ac_file" |
27838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27839 s//\1/
27842 /^X\(\/\/\)[^/].*/{
27843 s//\1/
27846 /^X\(\/\/\)$/{
27847 s//\1/
27850 /^X\(\/\).*/{
27851 s//\1/
27854 s/.*/./; q'`
27855 as_dir="$ac_dir"; as_fn_mkdir_p
27856 ac_builddir=.
27858 case "$ac_dir" in
27859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27862 # A ".." for each directory in $ac_dir_suffix.
27863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27864 case $ac_top_builddir_sub in
27865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27867 esac ;;
27868 esac
27869 ac_abs_top_builddir=$ac_pwd
27870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27871 # for backward compatibility:
27872 ac_top_builddir=$ac_top_build_prefix
27874 case $srcdir in
27875 .) # We are building in place.
27876 ac_srcdir=.
27877 ac_top_srcdir=$ac_top_builddir_sub
27878 ac_abs_top_srcdir=$ac_pwd ;;
27879 [\\/]* | ?:[\\/]* ) # Absolute name.
27880 ac_srcdir=$srcdir$ac_dir_suffix;
27881 ac_top_srcdir=$srcdir
27882 ac_abs_top_srcdir=$srcdir ;;
27883 *) # Relative name.
27884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27885 ac_top_srcdir=$ac_top_build_prefix$srcdir
27886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27887 esac
27888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27891 case $ac_mode in
27894 # CONFIG_FILE
27897 _ACEOF
27899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27900 # If the template does not know about datarootdir, expand it.
27901 # FIXME: This hack should be removed a few years after 2.60.
27902 ac_datarootdir_hack=; ac_datarootdir_seen=
27903 ac_sed_dataroot='
27904 /datarootdir/ {
27908 /@datadir@/p
27909 /@docdir@/p
27910 /@infodir@/p
27911 /@localedir@/p
27912 /@mandir@/p'
27913 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27914 *datarootdir*) ac_datarootdir_seen=yes;;
27915 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27917 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27918 _ACEOF
27919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27920 ac_datarootdir_hack='
27921 s&@datadir@&$datadir&g
27922 s&@docdir@&$docdir&g
27923 s&@infodir@&$infodir&g
27924 s&@localedir@&$localedir&g
27925 s&@mandir@&$mandir&g
27926 s&\\\${datarootdir}&$datarootdir&g' ;;
27927 esac
27928 _ACEOF
27930 # Neutralize VPATH when `$srcdir' = `.'.
27931 # Shell code in configure.ac might set extrasub.
27932 # FIXME: do we really want to maintain this feature?
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 ac_sed_extra="$ac_vpsub
27935 $extrasub
27936 _ACEOF
27937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27940 s|@configure_input@|$ac_sed_conf_input|;t t
27941 s&@top_builddir@&$ac_top_builddir_sub&;t t
27942 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27943 s&@srcdir@&$ac_srcdir&;t t
27944 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27945 s&@top_srcdir@&$ac_top_srcdir&;t t
27946 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27947 s&@builddir@&$ac_builddir&;t t
27948 s&@abs_builddir@&$ac_abs_builddir&;t t
27949 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27950 $ac_datarootdir_hack
27952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27953 if $ac_cs_awk_getline; then
27954 $AWK -f "$tmp/subs.awk"
27955 else
27956 $AWK -f "$tmp/subs.awk" | $SHELL
27957 fi >$tmp/out \
27958 || as_fn_error "could not create $ac_file" "$LINENO" 5
27960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27961 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27964 which seems to be undefined. Please make sure it is defined." >&5
27965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27966 which seems to be undefined. Please make sure it is defined." >&2;}
27968 rm -f "$tmp/stdin"
27969 case $ac_file in
27970 -) cat "$tmp/out" && rm -f "$tmp/out";;
27971 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27972 esac \
27973 || as_fn_error "could not create $ac_file" "$LINENO" 5
27977 # CONFIG_HEADER
27979 if test x"$ac_file" != x-; then
27981 $as_echo "/* $configure_input */" \
27982 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27983 } >"$tmp/config.h" \
27984 || as_fn_error "could not create $ac_file" "$LINENO" 5
27985 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27988 else
27989 rm -f "$ac_file"
27990 mv "$tmp/config.h" "$ac_file" \
27991 || as_fn_error "could not create $ac_file" "$LINENO" 5
27993 else
27994 $as_echo "/* $configure_input */" \
27995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27996 || as_fn_error "could not create -" "$LINENO" 5
28000 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28001 $as_echo "$as_me: executing $ac_file commands" >&6;}
28003 esac
28006 case $ac_file$ac_mode in
28007 "as":F) chmod +x as ;;
28008 "collect-ld":F) chmod +x collect-ld ;;
28009 "nm":F) chmod +x nm ;;
28010 "default":C)
28011 case ${CONFIG_HEADERS} in
28012 *auto-host.h:config.in*)
28013 echo > cstamp-h ;;
28014 esac
28015 # Make sure all the subdirs exist.
28016 for d in $subdirs doc build c-family
28018 test -d $d || mkdir $d
28019 done
28022 esac
28023 done # for ac_tag
28026 as_fn_exit 0
28027 _ACEOF
28028 ac_clean_files=$ac_clean_files_save
28030 test $ac_write_fail = 0 ||
28031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28034 # configure is writing to config.log, and then calls config.status.
28035 # config.status does its own redirection, appending to config.log.
28036 # Unfortunately, on DOS this fails, as config.log is still kept open
28037 # by configure, so config.status won't be able to write to it; its
28038 # output is simply discarded. So we exec the FD to /dev/null,
28039 # effectively closing config.log, so it can be properly (re)opened and
28040 # appended to by config.status. When coming back to configure, we
28041 # need to make the FD available again.
28042 if test "$no_create" != yes; then
28043 ac_cs_success=:
28044 ac_config_status_args=
28045 test "$silent" = yes &&
28046 ac_config_status_args="$ac_config_status_args --quiet"
28047 exec 5>/dev/null
28048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28049 exec 5>>config.log
28050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28051 # would make configure fail if this is the last instruction.
28052 $ac_cs_success || as_fn_exit $?
28054 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28056 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}