2010-04-19 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / configure
blob5b09daf75af3211489315b7e21eedc5f07c2d2be
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 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_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 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefiles
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 slibdir
672 dollar
673 gcc_tooldir
674 enable_lto
675 MAINT
676 zlibinc
677 zlibdir
678 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 CXXCPP
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
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 onestep
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 enable_multilib
768 ENABLE_BUILD_WITH_CXX
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
784 OUTPUT_OPTION
785 NO_MINUS_C_MINUS_O
786 GNATMAKE
787 GNATBIND
788 ac_ct_CXX
789 CXXFLAGS
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
798 GENINSRC
799 target_subdir
800 host_subdir
801 build_subdir
802 build_libsubdir
803 target_noncanonical
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='language_hooks'
855 ac_user_opts='
856 enable_option_checking
857 with_build_libsubdir
858 with_local_prefix
859 with_gxx_include_dir
860 with_cpp_install_dir
861 enable_generated_files_in_srcdir
862 with_gnu_ld
863 with_ld
864 with_demangler_in_ld
865 with_gnu_as
866 with_as
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 enable_intermodule
886 with_pkgversion
887 with_bugurl
888 enable_languages
889 with_multilib_list
890 enable_rpath
891 with_libiconv_prefix
892 enable_initfini_array
893 enable_sjlj_exceptions
894 with_system_libunwind
895 enable_secureplt
896 enable_cld
897 enable_win32_registry
898 enable_static
899 with_pic
900 enable_fast_install
901 enable_libtool_lock
902 with_plugin_ld
903 enable_comdat
904 enable_gnu_unique_object
905 enable_linker_build_id
906 with_long_double_128
907 with_gc
908 with_system_zlib
909 enable_maintainer_mode
910 enable_version_specific_runtime_libs
911 with_slibdir
912 enable_plugin
914 ac_precious_vars='build_alias
915 host_alias
916 target_alias
918 CFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
923 CXXFLAGS
926 CXXCPP
927 GMPLIBS
928 GMPINC
929 PPLLIBS
930 PPLINC
931 CLOOGLIBS
932 CLOOGINC
933 LIBELFLIBS
934 LIBELFINC'
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
985 ac_prev=
986 ac_dashdash=
987 for ac_option
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1005 ac_dashdash=yes ;;
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1269 -with-* | --with-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329 esac
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 esac
1342 done
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error "missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1351 no) ;;
1352 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 esac
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1365 case $ac_val in
1366 */ )
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1369 esac
1370 # Be sure to have absolute directory names.
1371 case $ac_val in
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374 esac
1375 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1392 cross_compiling=yes
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error "pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1428 /^X\(\/\/\)$/{
1429 s//\1/
1432 /^X\(\/\).*/{
1433 s//\1/
1436 s/.*/./; q'`
1437 srcdir=$ac_confdir
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 srcdir=..
1441 else
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1485 Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529 _ACEOF
1531 cat <<\_ACEOF
1533 Program names:
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538 System types:
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1542 _ACEOF
1545 if test -n "$ac_init_help"; then
1547 cat <<\_ACEOF
1549 Optional Features:
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files in source dir
1555 intended for creating source tarballs for users
1556 without texinfo bison or flex.
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST,
1560 enable only specific categories of checks.
1561 Categories are: yes,no,all,none,release.
1562 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1563 rtlflag,rtl,runtime,tree,valgrind,types.
1564 --enable-coverage=LEVEL
1565 enable compiler's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1569 default is noopt
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid'
1576 or 'dpd' choses which decimal floating point format
1577 to use
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don't provide a shared libgcc
1586 --enable-intermodule build the compiler in one step
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-cld enable -mcld by default for 32bit x86
1594 --disable-win32-registry
1595 disable lookup of installation paths in the
1596 Registry on Windows hosts
1597 --enable-win32-registry enable registry lookup (default)
1598 --enable-win32-registry=KEY
1599 use KEY instead of GCC version as the last portion
1600 of the registry key
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-static[=PKGS] build static libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606 --enable-comdat enable COMDAT group support
1607 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1608 glibc systems
1609 --enable-linker-build-id
1610 compiler will always pass --build-id to linker
1611 --enable-maintainer-mode
1612 enable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --enable-version-specific-runtime-libs
1615 specify that runtime libraries should be
1616 installed in a compiler-specific directory
1617 --enable-plugin enable plugin support
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-build-libsubdir=DIR Directory where to find libraries for build system
1623 --with-local-prefix=DIR specifies directory to put local include
1624 --with-gxx-include-dir=DIR
1625 specifies directory to put g++ header files
1626 --with-cpp-install-dir=DIR
1627 install the user visible C preprocessor in DIR
1628 (relative to PREFIX) as well as PREFIX/bin
1629 --with-gnu-ld arrange to work with GNU ld.
1630 --with-ld arrange to use the specified ld (full pathname)
1631 --with-demangler-in-ld try to use demangler in GNU ld.
1632 --with-gnu-as arrange to work with GNU as
1633 --with-as arrange to use the specified as (full pathname)
1634 --with-stabs arrange to use stabs instead of host debug format
1635 --with-dwarf2 force the default debug format to be DWARF 2
1636 --with-build-sysroot=sysroot
1637 use sysroot as the system root during the build
1638 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1639 --with-specs=SPECS add SPECS to driver command-line processing
1640 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1641 --with-bugurl=URL Direct users to URL to report a bug
1642 --with-multilib-list Select multilibs (SH only)
1643 --with-gnu-ld assume the C compiler uses GNU ld default=no
1644 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1646 --with-system-libunwind use installed libunwind
1647 --with-pic try to use only PIC/non-PIC objects [default=use
1648 both]
1649 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1650 --with-plugin-ld=[ARG] specify the plugin linker
1651 --with-long-double-128 Use 128-bit long double by default.
1652 --with-gc={page,zone} choose the garbage collection mechanism to use
1653 with the compiler
1654 --with-system-zlib use installed libz
1655 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1657 Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 CPP C preprocessor
1668 CXXCPP C++ preprocessor
1669 GMPLIBS How to link GMP
1670 GMPINC How to find GMP include files
1671 PPLLIBS How to link PPL
1672 PPLINC How to find PPL include files
1673 CLOOGLIBS How to link CLOOG
1674 CLOOGINC How to find CLOOG include files
1675 LIBELFLIBS How to link libelf
1676 LIBELFINC How to find libelf include files
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 continue
1692 ac_builddir=.
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1710 case $srcdir in
1711 .) # We are building in place.
1712 ac_srcdir=.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1719 *) # Relative name.
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1734 else
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 fi || ac_status=$?
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1738 done
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743 cat <<\_ACEOF
1744 configure
1745 generated by GNU Autoconf 2.64
1747 Copyright (C) 2009 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751 exit
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } >/dev/null && {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_c_try_cpp
1871 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874 # the include files in INCLUDES and setting the cache variable VAR
1875 # accordingly.
1876 ac_fn_c_check_header_mongrel ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 else
1889 # Is the header compilable?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891 $as_echo_n "checking $2 usability... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1895 #include <$2>
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898 ac_header_compiler=yes
1899 else
1900 ac_header_compiler=no
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904 $as_echo "$ac_header_compiler" >&6; }
1906 # Is the header present?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908 $as_echo_n "checking $2 presence... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_cpp "$LINENO"; then :
1914 ac_header_preproc=yes
1915 else
1916 ac_header_preproc=no
1918 rm -f conftest.err conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920 $as_echo "$ac_header_preproc" >&6; }
1922 # So? What about this header?
1923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 yes:no: )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 no:yes:* )
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 esac
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 eval "$3=\$ac_header_compiler"
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1962 ac_fn_c_try_run ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1973 ac_status=$?
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1983 ac_status=$?
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 return $ac_retval
1998 } # ac_fn_c_try_run
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$3=yes"
2019 else
2020 eval "$3=no"
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 } # ac_fn_c_check_header_compile
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2035 # computed
2036 ac_fn_c_compute_int ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if test "$cross_compiling" = yes; then
2040 # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 main ()
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2048 test_array [0] = 0
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=0 ac_mid=0
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 test_array [0] = 0
2067 return 0;
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid; break
2072 else
2073 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074 if test $ac_lo -le $ac_mid; then
2075 ac_lo= ac_hi=
2076 break
2078 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 static int test_array [1 - 2 * !(($2) < 0)];
2090 test_array [0] = 0
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=-1 ac_mid=-1
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_lo=$ac_mid; break
2114 else
2115 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116 if test $ac_mid -le $ac_hi; then
2117 ac_lo= ac_hi=
2118 break
2120 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 done
2124 else
2125 ac_lo= ac_hi=
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid
2148 else
2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 case $ac_lo in #((
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 '') ac_retval=1 ;;
2156 esac
2157 else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2163 #include <stdio.h>
2164 #include <stdlib.h>
2166 main ()
2169 FILE *f = fopen ("conftest.val", "w");
2170 if (! f)
2171 return 1;
2172 if (($2) < 0)
2174 long int i = longval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%ld", i);
2179 else
2181 unsigned long int i = ulongval ();
2182 if (i != ($2))
2183 return 1;
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2191 return 0;
2193 _ACEOF
2194 if ac_fn_c_try_run "$LINENO"; then :
2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 else
2197 ac_retval=1
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200 conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 rm -f conftest.val
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205 return $ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 eval "$3=no"
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 if (sizeof ($2))
2229 return 0;
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2239 main ()
2241 if (sizeof (($2)))
2242 return 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2249 else
2250 eval "$3=yes"
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_type
2263 # ac_fn_c_find_intX_t LINENO BITS VAR
2264 # -----------------------------------
2265 # Finds a signed integer type with width BITS, setting cache variable VAR
2266 # accordingly.
2267 ac_fn_c_find_intX_t ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2271 $as_echo_n "checking for int$2_t... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 eval "$3=no"
2276 for ac_type in int$2_t 'int' 'long int' \
2277 'long long int' 'short int' 'signed char'; do
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $ac_includes_default
2282 main ()
2284 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2285 test_array [0] = 0
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2296 main ()
2298 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2299 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2300 test_array [0] = 0
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2308 else
2309 case $ac_type in #(
2310 int$2_t) :
2311 eval "$3=yes" ;; #(
2312 *) :
2313 eval "$3=\$ac_type" ;;
2314 esac
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 eval as_val=\$$3
2320 if test "x$as_val" = x""no; then :
2322 else
2323 break
2325 done
2327 eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_find_intX_t
2334 # ac_fn_c_try_link LINENO
2335 # -----------------------
2336 # Try to link conftest.$ac_ext, and return whether this succeeded.
2337 ac_fn_c_try_link ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext conftest$ac_exeext
2341 if { { ac_try="$ac_link"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
2361 $as_test_x conftest$ac_exeext
2362 }; then :
2363 ac_retval=0
2364 else
2365 $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 ac_retval=1
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 return $ac_retval
2378 } # ac_fn_c_try_link
2380 # ac_fn_c_find_uintX_t LINENO BITS VAR
2381 # ------------------------------------
2382 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2383 # accordingly.
2384 ac_fn_c_find_uintX_t ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2388 $as_echo_n "checking for uint$2_t... " >&6; }
2389 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 eval "$3=no"
2393 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2394 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2399 main ()
2401 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2402 test_array [0] = 0
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 case $ac_type in #(
2410 uint$2_t) :
2411 eval "$3=yes" ;; #(
2412 *) :
2413 eval "$3=\$ac_type" ;;
2414 esac
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 eval as_val=\$$3
2418 if test "x$as_val" = x""no; then :
2420 else
2421 break
2423 done
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_find_uintX_t
2432 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2433 # ----------------------------------------------
2434 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_preproc ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 #include <$2>
2446 _ACEOF
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2448 eval "$3=yes"
2449 else
2450 eval "$3=no"
2452 rm -f conftest.err conftest.$ac_ext
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_check_header_preproc
2461 # ac_fn_c_check_func LINENO FUNC VAR
2462 # ----------------------------------
2463 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2464 ac_fn_c_check_func ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2476 #define $2 innocuous_$2
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $2 (); below.
2480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 <limits.h> exists even on freestanding compilers. */
2483 #ifdef __STDC__
2484 # include <limits.h>
2485 #else
2486 # include <assert.h>
2487 #endif
2489 #undef $2
2491 /* Override any GCC internal prototype to avoid an error.
2492 Use char because int might match the return type of a GCC
2493 builtin and then its argument prototype would still apply. */
2494 #ifdef __cplusplus
2495 extern "C"
2496 #endif
2497 char $2 ();
2498 /* The GNU C library defines this for functions which it implements
2499 to always fail with ENOSYS. Some functions are actually named
2500 something starting with __ and the normal name is an alias. */
2501 #if defined __stub_$2 || defined __stub___$2
2502 choke me
2503 #endif
2506 main ()
2508 return $2 ();
2510 return 0;
2512 _ACEOF
2513 if ac_fn_c_try_link "$LINENO"; then :
2514 eval "$3=yes"
2515 else
2516 eval "$3=no"
2518 rm -f core conftest.err conftest.$ac_objext \
2519 conftest$ac_exeext conftest.$ac_ext
2521 eval ac_res=\$$3
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2523 $as_echo "$ac_res" >&6; }
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 } # ac_fn_c_check_func
2528 # ac_fn_cxx_try_cpp LINENO
2529 # ------------------------
2530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2531 ac_fn_cxx_try_cpp ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 if { { ac_try="$ac_cpp conftest.$ac_ext"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2542 ac_status=$?
2543 if test -s conftest.err; then
2544 grep -v '^ *+' conftest.err >conftest.er1
2545 cat conftest.er1 >&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } >/dev/null && {
2550 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2552 }; then :
2553 ac_retval=0
2554 else
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2558 ac_retval=1
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2561 return $ac_retval
2563 } # ac_fn_cxx_try_cpp
2565 # ac_fn_cxx_try_link LINENO
2566 # -------------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded.
2568 ac_fn_cxx_try_link ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 rm -f conftest.$ac_objext conftest$ac_exeext
2572 if { { ac_try="$ac_link"
2573 case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>conftest.err
2580 ac_status=$?
2581 if test -s conftest.err; then
2582 grep -v '^ *+' conftest.err >conftest.er1
2583 cat conftest.er1 >&5
2584 mv -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; } && {
2588 test -z "$ac_cxx_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest$ac_exeext && {
2591 test "$cross_compiling" = yes ||
2592 $as_test_x conftest$ac_exeext
2593 }; then :
2594 ac_retval=0
2595 else
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_retval=1
2601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2603 # interfere with the next link command; also delete a directory that is
2604 # left behind by Apple's compiler. We do this before executing the actions.
2605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607 return $ac_retval
2609 } # ac_fn_cxx_try_link
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by $as_me, which was
2615 generated by GNU Autoconf 2.64. Invocation command line was
2617 $ $0 $@
2619 _ACEOF
2620 exec 5>>config.log
2622 cat <<_ASUNAME
2623 ## --------- ##
2624 ## Platform. ##
2625 ## --------- ##
2627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2644 _ASUNAME
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2652 done
2653 IFS=$as_save_IFS
2655 } >&5
2657 cat >&5 <<_ACEOF
2660 ## ----------- ##
2661 ## Core tests. ##
2662 ## ----------- ##
2664 _ACEOF
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_configure_args=
2673 ac_configure_args0=
2674 ac_configure_args1=
2675 ac_must_keep_next=false
2676 for ac_pass in 1 2
2678 for ac_arg
2680 case $ac_arg in
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2684 continue ;;
2685 *\'*)
2686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 esac
2688 case $ac_pass in
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2694 else
2695 case $ac_arg in
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2702 esac
2704 -* ) ac_must_keep_next=true ;;
2705 esac
2707 as_fn_append ac_configure_args " '$ac_arg'"
2709 esac
2710 done
2711 done
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2723 echo
2725 cat <<\_ASBOX
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2729 _ASBOX
2730 echo
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2735 case $ac_val in #(
2736 *${as_nl}*)
2737 case $ac_var in #(
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2740 esac
2741 case $ac_var in #(
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2745 esac ;;
2746 esac
2747 done
2748 (set) 2>&1 |
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2751 sed -n \
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2754 ;; #(
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2758 esac |
2759 sort
2761 echo
2763 cat <<\_ASBOX
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2767 _ASBOX
2768 echo
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2772 case $ac_val in
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 esac
2775 $as_echo "$ac_var='\''$ac_val'\''"
2776 done | sort
2777 echo
2779 if test -n "$ac_subst_files"; then
2780 cat <<\_ASBOX
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2784 _ASBOX
2785 echo
2786 for ac_var in $ac_subst_files
2788 eval ac_val=\$$ac_var
2789 case $ac_val in
2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 esac
2792 $as_echo "$ac_var='\''$ac_val'\''"
2793 done | sort
2794 echo
2797 if test -s confdefs.h; then
2798 cat <<\_ASBOX
2799 ## ----------- ##
2800 ## confdefs.h. ##
2801 ## ----------- ##
2802 _ASBOX
2803 echo
2804 cat confdefs.h
2805 echo
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2810 } >&5
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2813 exit $exit_status
2815 for ac_signal in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2817 done
2818 ac_signal=0
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2845 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2849 _ACEOF
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2854 ac_site_file1=NONE
2855 ac_site_file2=NONE
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE; then
2859 ac_site_file1=$prefix/share/config.site
2860 ac_site_file2=$prefix/etc/config.site
2861 else
2862 ac_site_file1=$ac_default_prefix/share/config.site
2863 ac_site_file2=$ac_default_prefix/etc/config.site
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE && continue
2868 if test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2872 . "$ac_site_file"
2874 done
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special
2878 # files actually), so we avoid doing that.
2879 if test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2882 case $cache_file in
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2885 esac
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 >$cache_file
2893 # Check that the precious variables saved in the cache have kept the same
2894 # value.
2895 ac_cache_corrupted=false
2896 for ac_var in $ac_precious_vars; do
2897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2898 eval ac_new_set=\$ac_env_${ac_var}_set
2899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2900 eval ac_new_val=\$ac_env_${ac_var}_value
2901 case $ac_old_set,$ac_new_set in
2902 set,)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2904 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2905 ac_cache_corrupted=: ;;
2906 ,set)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2910 ,);;
2912 if test "x$ac_old_val" != "x$ac_new_val"; then
2913 # differences in whitespace do not lead to failure.
2914 ac_old_val_w=`echo x $ac_old_val`
2915 ac_new_val_w=`echo x $ac_new_val`
2916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2919 ac_cache_corrupted=:
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2923 eval $ac_var=\$ac_old_val
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2926 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2929 fi;;
2930 esac
2931 # Pass precious variables to config.status.
2932 if test "$ac_new_set" = set; then
2933 case $ac_new_val in
2934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2935 *) ac_arg=$ac_var=$ac_new_val ;;
2936 esac
2937 case " $ac_configure_args " in
2938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2939 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940 esac
2942 done
2943 if $ac_cache_corrupted; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2948 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2950 ## -------------------- ##
2951 ## Main body of script. ##
2952 ## -------------------- ##
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968 gcc_version=`cat $srcdir/BASE-VER`
2970 # Determine the host, build, and target systems
2971 ac_aux_dir=
2972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t in install-sh install.sh shtool; do
2974 if test -f "$ac_dir/$ac_t"; then
2975 ac_aux_dir=$ac_dir
2976 ac_install_sh="$ac_aux_dir/$ac_t -c"
2977 break 2
2979 done
2980 done
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Make sure we can run config.sub.
2995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2996 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2999 $as_echo_n "checking build system type... " >&6; }
3000 if test "${ac_cv_build+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 ac_build_alias=$build_alias
3004 test "x$ac_build_alias" = x &&
3005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3006 test "x$ac_build_alias" = x &&
3007 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3008 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3009 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3013 $as_echo "$ac_cv_build" >&6; }
3014 case $ac_cv_build in
3015 *-*-*) ;;
3016 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3017 esac
3018 build=$ac_cv_build
3019 ac_save_IFS=$IFS; IFS='-'
3020 set x $ac_cv_build
3021 shift
3022 build_cpu=$1
3023 build_vendor=$2
3024 shift; shift
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3027 build_os=$*
3028 IFS=$ac_save_IFS
3029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3033 $as_echo_n "checking host system type... " >&6; }
3034 if test "${ac_cv_host+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test "x$host_alias" = x; then
3038 ac_cv_host=$ac_cv_build
3039 else
3040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3041 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3046 $as_echo "$ac_cv_host" >&6; }
3047 case $ac_cv_host in
3048 *-*-*) ;;
3049 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3050 esac
3051 host=$ac_cv_host
3052 ac_save_IFS=$IFS; IFS='-'
3053 set x $ac_cv_host
3054 shift
3055 host_cpu=$1
3056 host_vendor=$2
3057 shift; shift
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3060 host_os=$*
3061 IFS=$ac_save_IFS
3062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3066 $as_echo_n "checking target system type... " >&6; }
3067 if test "${ac_cv_target+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test "x$target_alias" = x; then
3071 ac_cv_target=$ac_cv_host
3072 else
3073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3074 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3079 $as_echo "$ac_cv_target" >&6; }
3080 case $ac_cv_target in
3081 *-*-*) ;;
3082 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3083 esac
3084 target=$ac_cv_target
3085 ac_save_IFS=$IFS; IFS='-'
3086 set x $ac_cv_target
3087 shift
3088 target_cpu=$1
3089 target_vendor=$2
3090 shift; shift
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3093 target_os=$*
3094 IFS=$ac_save_IFS
3095 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3098 # The aliases save the names the user supplied, while $host etc.
3099 # will get canonicalized.
3100 test -n "$target_alias" &&
3101 test "$program_prefix$program_suffix$program_transform_name" = \
3102 NONENONEs,x,x, &&
3103 program_prefix=${target_alias}-
3105 # Determine the noncanonical target name, for directory use.
3106 case ${build_alias} in
3107 "") build_noncanonical=${build} ;;
3108 *) build_noncanonical=${build_alias} ;;
3109 esac
3111 case ${host_alias} in
3112 "") host_noncanonical=${build_noncanonical} ;;
3113 *) host_noncanonical=${host_alias} ;;
3114 esac
3116 case ${target_alias} in
3117 "") target_noncanonical=${host_noncanonical} ;;
3118 *) target_noncanonical=${target_alias} ;;
3119 esac
3124 # Determine the target- and build-specific subdirectories
3126 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3127 # have matching libraries, they should use host libraries: Makefile.tpl
3128 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3129 # However, they still use the build modules, because the corresponding
3130 # host modules (e.g. bison) are only built for the host when bootstrap
3131 # finishes. So:
3132 # - build_subdir is where we find build modules, and never changes.
3133 # - build_libsubdir is where we find build libraries, and can be overridden.
3135 # Prefix 'build-' so this never conflicts with target_subdir.
3136 build_subdir="build-${build_noncanonical}"
3138 # Check whether --with-build-libsubdir was given.
3139 if test "${with_build_libsubdir+set}" = set; then :
3140 withval=$with_build_libsubdir; build_libsubdir="$withval"
3141 else
3142 build_libsubdir="$build_subdir"
3145 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3146 if ( test $srcdir = . && test -d gcc ) \
3147 || test -d $srcdir/../host-${host_noncanonical}; then
3148 host_subdir="host-${host_noncanonical}"
3149 else
3150 host_subdir=.
3152 # No prefix.
3153 target_subdir=${target_noncanonical}
3156 # Set program_transform_name
3157 test "$program_prefix" != NONE &&
3158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3159 # Use a double $ so make ignores it.
3160 test "$program_suffix" != NONE &&
3161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3162 # Double any \ or $.
3163 # By default was `s,x,x', remove it if useless.
3164 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3165 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3168 # Check for bogus environment variables.
3169 # Test if LIBRARY_PATH contains the notation for the current directory
3170 # since this would lead to problems installing/building glibc.
3171 # LIBRARY_PATH contains the current directory if one of the following
3172 # is true:
3173 # - one of the terminals (":" and ";") is the first or last sign
3174 # - two terminals occur directly after each other
3175 # - the path contains an element with a dot in it
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3177 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3178 case ${LIBRARY_PATH} in
3179 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3180 library_path_setting="contains current directory"
3183 library_path_setting="ok"
3185 esac
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3187 $as_echo "$library_path_setting" >&6; }
3188 if test "$library_path_setting" != "ok"; then
3189 as_fn_error "
3190 *** LIBRARY_PATH shouldn't contain the current directory when
3191 *** building gcc. Please change the environment variable
3192 *** and run configure again." "$LINENO" 5
3195 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3196 # since this would lead to problems installing/building glibc.
3197 # GCC_EXEC_PREFIX contains the current directory if one of the following
3198 # is true:
3199 # - one of the terminals (":" and ";") is the first or last sign
3200 # - two terminals occur directly after each other
3201 # - the path contains an element with a dot in it
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3203 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3204 case ${GCC_EXEC_PREFIX} in
3205 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3206 gcc_exec_prefix_setting="contains current directory"
3209 gcc_exec_prefix_setting="ok"
3211 esac
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3213 $as_echo "$gcc_exec_prefix_setting" >&6; }
3214 if test "$gcc_exec_prefix_setting" != "ok"; then
3215 as_fn_error "
3216 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3217 *** building gcc. Please change the environment variable
3218 *** and run configure again." "$LINENO" 5
3221 # -----------
3222 # Directories
3223 # -----------
3225 # Specify the local prefix
3226 local_prefix=
3228 # Check whether --with-local-prefix was given.
3229 if test "${with_local_prefix+set}" = set; then :
3230 withval=$with_local_prefix; case "${withval}" in
3231 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3232 no) ;;
3233 *) local_prefix=$with_local_prefix ;;
3234 esac
3238 # Default local prefix if it is empty
3239 if test x$local_prefix = x; then
3240 local_prefix=/usr/local
3243 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3244 # passed in by the toplevel make and thus we'd get different behavior
3245 # depending on where we built the sources.
3246 gcc_gxx_include_dir=
3247 # Specify the g++ header file directory
3249 # Check whether --with-gxx-include-dir was given.
3250 if test "${with_gxx_include_dir+set}" = set; then :
3251 withval=$with_gxx_include_dir; case "${withval}" in
3252 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3253 no) ;;
3254 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3255 esac
3259 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3260 if test x${gcc_gxx_include_dir} = x; then
3261 if test x${enable_version_specific_runtime_libs} = xyes; then
3262 gcc_gxx_include_dir='${libsubdir}/include/c++'
3263 else
3264 libstdcxx_incdir='include/c++/$(version)'
3265 if test x$host != x$target; then
3266 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3268 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273 # Check whether --with-cpp_install_dir was given.
3274 if test "${with_cpp_install_dir+set}" = set; then :
3275 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3276 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3277 elif test x$withval != xno; then
3278 cpp_install_dir=$withval
3283 # We would like to our source tree to be readonly. However when releases or
3284 # pre-releases are generated, the flex/bison generated files as well as the
3285 # various formats of manuals need to be included along with the rest of the
3286 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3287 # just that.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3290 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3291 # Check whether --enable-generated-files-in-srcdir was given.
3292 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3293 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3294 else
3295 generated_files_in_srcdir=no
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3300 $as_echo "$generated_files_in_srcdir" >&6; }
3302 if test "$generated_files_in_srcdir" = "yes"; then
3303 GENINSRC=''
3304 else
3305 GENINSRC='#'
3309 # -------------------
3310 # Find default linker
3311 # -------------------
3313 # With GNU ld
3315 # Check whether --with-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then :
3317 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3318 else
3319 gnu_ld_flag=no
3323 # With pre-defined ld
3325 # Check whether --with-ld was given.
3326 if test "${with_ld+set}" = set; then :
3327 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3330 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3331 if test ! -x "$DEFAULT_LINKER"; then
3332 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3333 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3334 gnu_ld_flag=yes
3337 cat >>confdefs.h <<_ACEOF
3338 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3339 _ACEOF
3343 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3345 cat >>confdefs.h <<_ACEOF
3346 #define HAVE_GNU_LD $gnu_ld
3347 _ACEOF
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3351 $as_echo_n "checking whether a default linker was specified... " >&6; }
3352 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3353 if test x"$gnu_ld_flag" = x"no"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3355 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3365 # With demangler in GNU ld
3367 # Check whether --with-demangler-in-ld was given.
3368 if test "${with_demangler_in_ld+set}" = set; then :
3369 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3370 else
3371 demangler_in_ld=no
3375 # ----------------------
3376 # Find default assembler
3377 # ----------------------
3379 # With GNU as
3381 # Check whether --with-gnu-as was given.
3382 if test "${with_gnu_as+set}" = set; then :
3383 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3384 else
3385 gas_flag=no
3390 # Check whether --with-as was given.
3391 if test "${with_as+set}" = set; then :
3392 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3395 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3396 if test ! -x "$DEFAULT_ASSEMBLER"; then
3397 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3398 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3399 gas_flag=yes
3402 cat >>confdefs.h <<_ACEOF
3403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3404 _ACEOF
3408 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3410 cat >>confdefs.h <<_ACEOF
3411 #define HAVE_GNU_AS $gnu_as
3412 _ACEOF
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3416 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3417 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3418 if test x"$gas_flag" = x"no"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3420 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3430 # ---------------
3431 # Find C compiler
3432 # ---------------
3434 # If a non-executable a.out is present (e.g. created by GNU as above even if
3435 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3436 # file, even when creating an executable, so an execution test fails.
3437 # Remove possible default executable files to avoid this.
3439 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3440 # Autoconf includes it.
3441 rm -f a.out a.exe b.out
3443 # Find the native compiler
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 if test -n "$ac_tool_prefix"; then
3450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3471 done
3472 done
3473 IFS=$as_save_IFS
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 if test -z "$ac_cv_prog_CC"; then
3489 ac_ct_CC=$CC
3490 # Extract the first word of "gcc", so it can be a program name with args.
3491 set dummy gcc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC="gcc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3526 if test "x$ac_ct_CC" = x; then
3527 CC=""
3528 else
3529 case $cross_compiling:$ac_tool_warned in
3530 yes:)
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535 CC=$ac_ct_CC
3537 else
3538 CC="$ac_cv_prog_CC"
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3582 if test -z "$CC"; then
3583 # Extract the first word of "cc", so it can be a program name with args.
3584 set dummy cc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 ac_prog_rejected=no
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3602 ac_prog_rejected=yes
3603 continue
3605 ac_cv_prog_CC="cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3613 if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy $ac_cv_prog_CC
3616 shift
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3621 shift
3622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog in cl.exe
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$CC" && break
3680 done
3682 if test -z "$CC"; then
3683 ac_ct_CC=$CC
3684 for ac_prog in cl.exe
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_ac_ct_CC="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3714 if test -n "$ac_ct_CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716 $as_echo "$ac_ct_CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$ac_ct_CC" && break
3724 done
3726 if test "x$ac_ct_CC" = x; then
3727 CC=""
3728 else
3729 case $cross_compiling:$ac_tool_warned in
3730 yes:)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733 ac_tool_warned=yes ;;
3734 esac
3735 CC=$ac_ct_CC
3742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "no acceptable C compiler found in \$PATH
3745 See \`config.log' for more details." "$LINENO" 5; }
3747 # Provide some information about the compiler.
3748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3749 set X $ac_compile
3750 ac_compiler=$2
3751 for ac_option in --version -v -V -qversion; do
3752 { { ac_try="$ac_compiler $ac_option >&5"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3760 ac_status=$?
3761 if test -s conftest.err; then
3762 sed '10a\
3763 ... rest of stderr output deleted ...
3764 10q' conftest.err >conftest.er1
3765 cat conftest.er1 >&5
3766 rm -f conftest.er1 conftest.err
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 done
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 ac_clean_files_save=$ac_clean_files
3784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3785 # Try to create an executable without -o first, disregard a.out.
3786 # It will help us diagnose broken compilers, and finding out an intuition
3787 # of exeext.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3789 $as_echo_n "checking for C compiler default output file name... " >&6; }
3790 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3792 # The possible output files:
3793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3795 ac_rmfiles=
3796 for ac_file in $ac_files
3798 case $ac_file in
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3801 esac
3802 done
3803 rm -f $ac_rmfiles
3805 if { { ac_try="$ac_link_default"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link_default") 2>&5
3813 ac_status=$?
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3819 # so that the user can short-circuit this test for compilers unknown to
3820 # Autoconf.
3821 for ac_file in $ac_files ''
3823 test -f "$ac_file" || continue
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3827 [ab].out )
3828 # We found the default executable, but exeext='' is most
3829 # certainly right.
3830 break;;
3831 *.* )
3832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3833 then :; else
3834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 # We set ac_cv_exeext here because the later test for it is not
3837 # safe: cross compilers may not add the suffix if given an `-o'
3838 # argument, so we may need to know it at that point already.
3839 # Even if this section looks crufty: it has the advantage of
3840 # actually working.
3841 break;;
3843 break;;
3844 esac
3845 done
3846 test "$ac_cv_exeext" = no && ac_cv_exeext=
3848 else
3849 ac_file=''
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852 $as_echo "$ac_file" >&6; }
3853 if test -z "$ac_file"; then :
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 { as_fn_set_status 77
3860 as_fn_error "C compiler cannot create executables
3861 See \`config.log' for more details." "$LINENO" 5; }; }
3863 ac_exeext=$ac_cv_exeext
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 # If not cross compiling, check that we can run a simple program.
3870 if test "$cross_compiling" != yes; then
3871 if { ac_try='./$ac_file'
3872 { { case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3882 cross_compiling=no
3883 else
3884 if test "$cross_compiling" = maybe; then
3885 cross_compiling=yes
3886 else
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot run C compiled programs.
3890 If you meant to cross compile, use \`--host'.
3891 See \`config.log' for more details." "$LINENO" 5; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3899 ac_clean_files=$ac_clean_files_save
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903 $as_echo_n "checking whether we are cross compiling... " >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3905 $as_echo "$cross_compiling" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3908 $as_echo_n "checking for suffix of executables... " >&6; }
3909 if { { ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3922 # work properly (i.e., refer to `conftest.exe'), while it won't with
3923 # `rm'.
3924 for ac_file in conftest.exe conftest conftest.*; do
3925 test -f "$ac_file" || continue
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 break;;
3930 * ) break;;
3931 esac
3932 done
3933 else
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error "cannot compute suffix of executables: cannot compile and link
3937 See \`config.log' for more details." "$LINENO" 5; }
3939 rm -f conftest$ac_cv_exeext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3941 $as_echo "$ac_cv_exeext" >&6; }
3943 rm -f conftest.$ac_ext
3944 EXEEXT=$ac_cv_exeext
3945 ac_exeext=$EXEEXT
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947 $as_echo_n "checking for suffix of object files... " >&6; }
3948 if test "${ac_cv_objext+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.o conftest.obj
3963 if { { ac_try="$ac_compile"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3979 break;;
3980 esac
3981 done
3982 else
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error "cannot compute suffix of object files: cannot compile
3989 See \`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3994 $as_echo "$ac_cv_objext" >&6; }
3995 OBJEXT=$ac_cv_objext
3996 ac_objext=$OBJEXT
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4008 #ifndef __GNUC__
4009 choke me
4010 #endif
4013 return 0;
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_compiler_gnu=yes
4018 else
4019 ac_compiler_gnu=no
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4028 GCC=yes
4029 else
4030 GCC=
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if test "${ac_cv_prog_cc_g+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4041 ac_cv_prog_cc_g=no
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 main ()
4051 return 0;
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
4056 else
4057 CFLAGS=""
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4071 else
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4105 else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 ac_cv_prog_cc_c89=no
4118 ac_save_CC=$CC
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <stdarg.h>
4122 #include <stdio.h>
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4129 char **p;
4130 int i;
4132 return p[i];
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4136 char *s;
4137 va_list v;
4138 va_start (v,p);
4139 s = g (p, va_arg (v,int));
4140 va_end (v);
4141 return s;
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4155 #define FOO(x) 'x'
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 int argc;
4163 char **argv;
4165 main ()
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 return 0;
4171 _ACEOF
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4181 done
4182 rm -f conftest.$ac_ext
4183 CC=$ac_save_CC
4186 # AC_CACHE_VAL
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4198 esac
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 if test "x$CC" != xcc; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4211 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4214 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4216 set dummy $CC; ac_cc=`$as_echo "$2" |
4217 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4218 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 # Make sure it works both with $CC and with simple cc.
4233 # We do the test twice because some compilers refuse to overwrite an
4234 # existing .o file with -o, though they will create one.
4235 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4236 rm -f conftest2.*
4237 if { { case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; } &&
4247 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_try") 2>&5
4254 ac_status=$?
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; };
4257 then
4258 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4259 if test "x$CC" != xcc; then
4260 # Test first that cc exists at all.
4261 if { ac_try='cc -c conftest.$ac_ext >&5'
4262 { { case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; }; then
4272 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4273 rm -f conftest2.*
4274 if { { case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; } &&
4284 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; };
4294 then
4295 # cc works too.
4297 else
4298 # cc exists but doesn't like -o.
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4303 else
4304 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4306 rm -f core conftest*
4309 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4316 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4320 # expand $ac_aux_dir to an absolute path
4321 am_aux_dir=`cd $ac_aux_dir && pwd`
4323 # FIXME: we rely on the cache variable name because
4324 # there is no other way.
4325 set dummy $CC
4326 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4327 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4328 if test "$am_t" != yes; then
4329 # Losing compiler, so override with the script.
4330 # FIXME: It is wrong to rewrite CC.
4331 # But if we don't then we get into trouble of one sort or another.
4332 # A longer-term fix would be to have automake use am__CC in this case,
4333 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4334 CC="$am_aux_dir/compile $CC"
4338 ac_ext=cpp
4339 ac_cpp='$CXXCPP $CPPFLAGS'
4340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4343 if test -z "$CXX"; then
4344 if test -n "$CCC"; then
4345 CXX=$CCC
4346 else
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$CXX"; then
4358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 CXX=$ac_cv_prog_CXX
4378 if test -n "$CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4380 $as_echo "$CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$CXX" && break
4388 done
4390 if test -z "$CXX"; then
4391 ac_ct_CXX=$CXX
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$ac_ct_CXX"; then
4402 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CXX="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4422 if test -n "$ac_ct_CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4424 $as_echo "$ac_ct_CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_CXX" && break
4432 done
4434 if test "x$ac_ct_CXX" = x; then
4435 CXX="g++"
4436 else
4437 case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443 CXX=$ac_ct_CXX
4449 # Provide some information about the compiler.
4450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4451 set X $ac_compile
4452 ac_compiler=$2
4453 for ac_option in --version -v -V -qversion; do
4454 { { ac_try="$ac_compiler $ac_option >&5"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4462 ac_status=$?
4463 if test -s conftest.err; then
4464 sed '10a\
4465 ... rest of stderr output deleted ...
4466 10q' conftest.err >conftest.er1
4467 cat conftest.er1 >&5
4468 rm -f conftest.er1 conftest.err
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4472 done
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4475 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4483 main ()
4485 #ifndef __GNUC__
4486 choke me
4487 #endif
4490 return 0;
4492 _ACEOF
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4494 ac_compiler_gnu=yes
4495 else
4496 ac_compiler_gnu=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4503 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4504 if test $ac_compiler_gnu = yes; then
4505 GXX=yes
4506 else
4507 GXX=
4509 ac_test_CXXFLAGS=${CXXFLAGS+set}
4510 ac_save_CXXFLAGS=$CXXFLAGS
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4512 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4513 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4517 ac_cxx_werror_flag=yes
4518 ac_cv_prog_cxx_g=no
4519 CXXFLAGS="-g"
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4524 main ()
4528 return 0;
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_cv_prog_cxx_g=yes
4533 else
4534 CXXFLAGS=""
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4548 else
4549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4550 CXXFLAGS="-g"
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4555 main ()
4559 return 0;
4561 _ACEOF
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4563 ac_cv_prog_cxx_g=yes
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 if test "$ac_test_CXXFLAGS" = set; then
4575 CXXFLAGS=$ac_save_CXXFLAGS
4576 elif test $ac_cv_prog_cxx_g = yes; then
4577 if test "$GXX" = yes; then
4578 CXXFLAGS="-g -O2"
4579 else
4580 CXXFLAGS="-g"
4582 else
4583 if test "$GXX" = yes; then
4584 CXXFLAGS="-O2"
4585 else
4586 CXXFLAGS=
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$GNATBIND"; then
4607 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 GNATBIND=$ac_cv_prog_GNATBIND
4627 if test -n "$GNATBIND"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4629 $as_echo "$GNATBIND" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_GNATBIND"; then
4638 ac_ct_GNATBIND=$GNATBIND
4639 # Extract the first word of "gnatbind", so it can be a program name with args.
4640 set dummy gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$ac_ct_GNATBIND"; then
4647 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4667 if test -n "$ac_ct_GNATBIND"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4669 $as_echo "$ac_ct_GNATBIND" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_GNATBIND" = x; then
4676 GNATBIND="no"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 GNATBIND=$ac_ct_GNATBIND
4686 else
4687 GNATBIND="$ac_cv_prog_GNATBIND"
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$GNATMAKE"; then
4699 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 GNATMAKE=$ac_cv_prog_GNATMAKE
4719 if test -n "$GNATMAKE"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4721 $as_echo "$GNATMAKE" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 if test -z "$ac_cv_prog_GNATMAKE"; then
4730 ac_ct_GNATMAKE=$GNATMAKE
4731 # Extract the first word of "gnatmake", so it can be a program name with args.
4732 set dummy gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$ac_ct_GNATMAKE"; then
4739 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4759 if test -n "$ac_ct_GNATMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4761 $as_echo "$ac_ct_GNATMAKE" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4767 if test "x$ac_ct_GNATMAKE" = x; then
4768 GNATMAKE="no"
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771 yes:)
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 GNATMAKE=$ac_ct_GNATMAKE
4778 else
4779 GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4783 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4784 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat >conftest.adb <<EOF
4788 procedure conftest is begin null; end conftest;
4790 acx_cv_cc_gcc_supports_ada=no
4791 # There is a bug in old released versions of GCC which causes the
4792 # driver to exit successfully when the appropriate language module
4793 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4794 # Therefore we must check for the error message as well as an
4795 # unsuccessful exit.
4796 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4797 # given a .adb file, but produce no object file. So we must check
4798 # if an object file was really produced to guard against this.
4799 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4800 if test x"$errors" = x && test -f conftest.$ac_objext; then
4801 acx_cv_cc_gcc_supports_ada=yes
4803 rm -f conftest.*
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4806 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4808 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4809 have_gnat=yes
4810 else
4811 have_gnat=no
4815 # autoconf is lame and doesn't give us any substitution variable for this.
4816 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4817 NO_MINUS_C_MINUS_O=yes
4818 else
4819 OUTPUT_OPTION='-o $@'
4824 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4825 # optimizations to be activated explicitly by the toplevel.
4826 case "$CC" in
4827 */prev-gcc/xgcc*) ;;
4828 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4829 esac
4832 # -------------------------
4833 # Check C compiler features
4834 # -------------------------
4837 ac_ext=c
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4844 # On Suns, sometimes $CPP names a directory.
4845 if test -n "$CPP" && test -d "$CPP"; then
4846 CPP=
4848 if test -z "$CPP"; then
4849 if test "${ac_cv_prog_CPP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 # Double quotes because CPP needs to be expanded
4853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4855 ac_preproc_ok=false
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871 Syntax error
4872 _ACEOF
4873 if ac_fn_c_try_cpp "$LINENO"; then :
4875 else
4876 # Broken: fails on valid input.
4877 continue
4879 rm -f conftest.err conftest.$ac_ext
4881 # OK, works on sane cases. Now check whether nonexistent headers
4882 # can be detected and how.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888 # Broken: success on invalid input.
4889 continue
4890 else
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4895 rm -f conftest.err conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then :
4901 break
4904 done
4905 ac_cv_prog_CPP=$CPP
4908 CPP=$ac_cv_prog_CPP
4909 else
4910 ac_cv_prog_CPP=$CPP
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4913 $as_echo "$CPP" >&6; }
4914 ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #ifdef __STDC__
4926 # include <limits.h>
4927 #else
4928 # include <assert.h>
4929 #endif
4930 Syntax error
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4934 else
4935 # Broken: fails on valid input.
4936 continue
4938 rm -f conftest.err conftest.$ac_ext
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947 # Broken: success on invalid input.
4948 continue
4949 else
4950 # Passes both tests.
4951 ac_preproc_ok=:
4952 break
4954 rm -f conftest.err conftest.$ac_ext
4956 done
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.err conftest.$ac_ext
4959 if $ac_preproc_ok; then :
4961 else
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4965 See \`config.log' for more details." "$LINENO" 5; }
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 if test "${ac_cv_path_GREP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -z "$GREP"; then
4981 ac_path_GREP_found=false
4982 # Loop through the user's path and test for each of PROGNAME-LIST
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_prog in grep ggrep; do
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4992 # Check for GNU ac_path_GREP and select it if it is found.
4993 # Check for GNU $ac_path_GREP
4994 case `"$ac_path_GREP" --version 2>&1` in
4995 *GNU*)
4996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4998 ac_count=0
4999 $as_echo_n 0123456789 >"conftest.in"
5000 while :
5002 cat "conftest.in" "conftest.in" >"conftest.tmp"
5003 mv "conftest.tmp" "conftest.in"
5004 cp "conftest.in" "conftest.nl"
5005 $as_echo 'GREP' >> "conftest.nl"
5006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008 as_fn_arith $ac_count + 1 && ac_count=$as_val
5009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5010 # Best one so far, save it but keep looking for a better one
5011 ac_cv_path_GREP="$ac_path_GREP"
5012 ac_path_GREP_max=$ac_count
5014 # 10*(2^10) chars as input seems more than enough
5015 test $ac_count -gt 10 && break
5016 done
5017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018 esac
5020 $ac_path_GREP_found && break 3
5021 done
5022 done
5023 done
5024 IFS=$as_save_IFS
5025 if test -z "$ac_cv_path_GREP"; then
5026 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5028 else
5029 ac_cv_path_GREP=$GREP
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5034 $as_echo "$ac_cv_path_GREP" >&6; }
5035 GREP="$ac_cv_path_GREP"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039 $as_echo_n "checking for egrep... " >&6; }
5040 if test "${ac_cv_path_EGREP+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5044 then ac_cv_path_EGREP="$GREP -E"
5045 else
5046 if test -z "$EGREP"; then
5047 ac_path_EGREP_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in egrep; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5058 # Check for GNU ac_path_EGREP and select it if it is found.
5059 # Check for GNU $ac_path_EGREP
5060 case `"$ac_path_EGREP" --version 2>&1` in
5061 *GNU*)
5062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo 'EGREP' >> "conftest.nl"
5072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 as_fn_arith $ac_count + 1 && ac_count=$as_val
5075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_EGREP="$ac_path_EGREP"
5078 ac_path_EGREP_max=$ac_count
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084 esac
5086 $ac_path_EGREP_found && break 3
5087 done
5088 done
5089 done
5090 IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_EGREP"; then
5092 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094 else
5095 ac_cv_path_EGREP=$EGREP
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5101 $as_echo "$ac_cv_path_EGREP" >&6; }
5102 EGREP="$ac_cv_path_EGREP"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5106 $as_echo_n "checking for ANSI C header files... " >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <stdlib.h>
5113 #include <stdarg.h>
5114 #include <string.h>
5115 #include <float.h>
5118 main ()
5122 return 0;
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_header_stdc=yes
5127 else
5128 ac_cv_header_stdc=no
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 if test $ac_cv_header_stdc = yes; then
5133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <string.h>
5138 _ACEOF
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "memchr" >/dev/null 2>&1; then :
5142 else
5143 ac_cv_header_stdc=no
5145 rm -f conftest*
5149 if test $ac_cv_header_stdc = yes; then
5150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <stdlib.h>
5155 _ACEOF
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 $EGREP "free" >/dev/null 2>&1; then :
5159 else
5160 ac_cv_header_stdc=no
5162 rm -f conftest*
5166 if test $ac_cv_header_stdc = yes; then
5167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5168 if test "$cross_compiling" = yes; then :
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #include <ctype.h>
5174 #include <stdlib.h>
5175 #if ((' ' & 0x0FF) == 0x020)
5176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5178 #else
5179 # define ISLOWER(c) \
5180 (('a' <= (c) && (c) <= 'i') \
5181 || ('j' <= (c) && (c) <= 'r') \
5182 || ('s' <= (c) && (c) <= 'z'))
5183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5184 #endif
5186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5188 main ()
5190 int i;
5191 for (i = 0; i < 256; i++)
5192 if (XOR (islower (i), ISLOWER (i))
5193 || toupper (i) != TOUPPER (i))
5194 return 2;
5195 return 0;
5197 _ACEOF
5198 if ac_fn_c_try_run "$LINENO"; then :
5200 else
5201 ac_cv_header_stdc=no
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5204 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5210 $as_echo "$ac_cv_header_stdc" >&6; }
5211 if test $ac_cv_header_stdc = yes; then
5213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5219 inttypes.h stdint.h unistd.h
5220 do :
5221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5224 eval as_val=\$$as_ac_Header
5225 if test "x$as_val" = x""yes; then :
5226 cat >>confdefs.h <<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228 _ACEOF
5232 done
5236 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5237 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5238 MINIX=yes
5239 else
5240 MINIX=
5244 if test "$MINIX" = yes; then
5246 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252 $as_echo "#define _MINIX 1" >>confdefs.h
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5258 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5259 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 # define __EXTENSIONS__ 1
5266 $ac_includes_default
5268 main ()
5272 return 0;
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_cv_safe_to_define___extensions__=yes
5277 else
5278 ac_cv_safe_to_define___extensions__=no
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5283 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5284 test $ac_cv_safe_to_define___extensions__ = yes &&
5285 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5287 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5293 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5296 ac_ext=c
5297 ac_cpp='$CPP $CPPFLAGS'
5298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5303 # On Suns, sometimes $CPP names a directory.
5304 if test -n "$CPP" && test -d "$CPP"; then
5305 CPP=
5307 if test -z "$CPP"; then
5308 if test "${ac_cv_prog_CPP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 # Double quotes because CPP needs to be expanded
5312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5314 ac_preproc_ok=false
5315 for ac_c_preproc_warn_flag in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330 Syntax error
5331 _ACEOF
5332 if ac_fn_c_try_cpp "$LINENO"; then :
5334 else
5335 # Broken: fails on valid input.
5336 continue
5338 rm -f conftest.err conftest.$ac_ext
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5345 _ACEOF
5346 if ac_fn_c_try_cpp "$LINENO"; then :
5347 # Broken: success on invalid input.
5348 continue
5349 else
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5354 rm -f conftest.err conftest.$ac_ext
5356 done
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.$ac_ext
5359 if $ac_preproc_ok; then :
5360 break
5363 done
5364 ac_cv_prog_CPP=$CPP
5367 CPP=$ac_cv_prog_CPP
5368 else
5369 ac_cv_prog_CPP=$CPP
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5372 $as_echo "$CPP" >&6; }
5373 ac_preproc_ok=false
5374 for ac_c_preproc_warn_flag in '' yes
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 #ifdef __STDC__
5385 # include <limits.h>
5386 #else
5387 # include <assert.h>
5388 #endif
5389 Syntax error
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5393 else
5394 # Broken: fails on valid input.
5395 continue
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <ac_nonexistent.h>
5404 _ACEOF
5405 if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: success on invalid input.
5407 continue
5408 else
5409 # Passes both tests.
5410 ac_preproc_ok=:
5411 break
5413 rm -f conftest.err conftest.$ac_ext
5415 done
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.err conftest.$ac_ext
5418 if $ac_preproc_ok; then :
5420 else
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5424 See \`config.log' for more details." "$LINENO" 5; }
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5434 $as_echo_n "checking for inline... " >&6; }
5435 if test "${ac_cv_c_inline+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_cv_c_inline=no
5439 for ac_kw in inline __inline__ __inline; do
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #ifndef __cplusplus
5443 typedef int foo_t;
5444 static $ac_kw foo_t static_foo () {return 0; }
5445 $ac_kw foo_t foo () {return 0; }
5446 #endif
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 ac_cv_c_inline=$ac_kw
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 test "$ac_cv_c_inline" != no && break
5454 done
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5458 $as_echo "$ac_cv_c_inline" >&6; }
5460 case $ac_cv_c_inline in
5461 inline | yes) ;;
5463 case $ac_cv_c_inline in
5464 no) ac_val=;;
5465 *) ac_val=$ac_cv_c_inline;;
5466 esac
5467 cat >>confdefs.h <<_ACEOF
5468 #ifndef __cplusplus
5469 #define inline $ac_val
5470 #endif
5471 _ACEOF
5473 esac
5476 # sizeof(char) is 1 by definition.
5477 # The cast to long int works around a bug in the HP C Compiler
5478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480 # This bug is HP SR number 8606223364.
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5482 $as_echo_n "checking size of void *... " >&6; }
5483 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5488 else
5489 if test "$ac_cv_type_void_p" = yes; then
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 { as_fn_set_status 77
5493 as_fn_error "cannot compute sizeof (void *)
5494 See \`config.log' for more details." "$LINENO" 5; }; }
5495 else
5496 ac_cv_sizeof_void_p=0
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5502 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5506 cat >>confdefs.h <<_ACEOF
5507 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5508 _ACEOF
5511 # The cast to long int works around a bug in the HP C Compiler
5512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514 # This bug is HP SR number 8606223364.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5516 $as_echo_n "checking size of short... " >&6; }
5517 if test "${ac_cv_sizeof_short+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5522 else
5523 if test "$ac_cv_type_short" = yes; then
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 { as_fn_set_status 77
5527 as_fn_error "cannot compute sizeof (short)
5528 See \`config.log' for more details." "$LINENO" 5; }; }
5529 else
5530 ac_cv_sizeof_short=0
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5536 $as_echo "$ac_cv_sizeof_short" >&6; }
5540 cat >>confdefs.h <<_ACEOF
5541 #define SIZEOF_SHORT $ac_cv_sizeof_short
5542 _ACEOF
5545 # The cast to long int works around a bug in the HP C Compiler
5546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5548 # This bug is HP SR number 8606223364.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5550 $as_echo_n "checking size of int... " >&6; }
5551 if test "${ac_cv_sizeof_int+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5556 else
5557 if test "$ac_cv_type_int" = yes; then
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 { as_fn_set_status 77
5561 as_fn_error "cannot compute sizeof (int)
5562 See \`config.log' for more details." "$LINENO" 5; }; }
5563 else
5564 ac_cv_sizeof_int=0
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5570 $as_echo "$ac_cv_sizeof_int" >&6; }
5574 cat >>confdefs.h <<_ACEOF
5575 #define SIZEOF_INT $ac_cv_sizeof_int
5576 _ACEOF
5579 # The cast to long int works around a bug in the HP C Compiler
5580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5582 # This bug is HP SR number 8606223364.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5584 $as_echo_n "checking size of long... " >&6; }
5585 if test "${ac_cv_sizeof_long+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5590 else
5591 if test "$ac_cv_type_long" = yes; then
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { as_fn_set_status 77
5595 as_fn_error "cannot compute sizeof (long)
5596 See \`config.log' for more details." "$LINENO" 5; }; }
5597 else
5598 ac_cv_sizeof_long=0
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5604 $as_echo "$ac_cv_sizeof_long" >&6; }
5608 cat >>confdefs.h <<_ACEOF
5609 #define SIZEOF_LONG $ac_cv_sizeof_long
5610 _ACEOF
5613 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5614 if test "x$ac_cv_type_long_long" = x""yes; then :
5616 cat >>confdefs.h <<_ACEOF
5617 #define HAVE_LONG_LONG 1
5618 _ACEOF
5620 # The cast to long int works around a bug in the HP C Compiler
5621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5623 # This bug is HP SR number 8606223364.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5625 $as_echo_n "checking size of long long... " >&6; }
5626 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5631 else
5632 if test "$ac_cv_type_long_long" = yes; then
5633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5635 { as_fn_set_status 77
5636 as_fn_error "cannot compute sizeof (long long)
5637 See \`config.log' for more details." "$LINENO" 5; }; }
5638 else
5639 ac_cv_sizeof_long_long=0
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5649 cat >>confdefs.h <<_ACEOF
5650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5651 _ACEOF
5656 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5657 if test "x$ac_cv_type___int64" = x""yes; then :
5659 cat >>confdefs.h <<_ACEOF
5660 #define HAVE___INT64 1
5661 _ACEOF
5663 # The cast to long int works around a bug in the HP C Compiler
5664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5666 # This bug is HP SR number 8606223364.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5668 $as_echo_n "checking size of __int64... " >&6; }
5669 if test "${ac_cv_sizeof___int64+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5674 else
5675 if test "$ac_cv_type___int64" = yes; then
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 { as_fn_set_status 77
5679 as_fn_error "cannot compute sizeof (__int64)
5680 See \`config.log' for more details." "$LINENO" 5; }; }
5681 else
5682 ac_cv_sizeof___int64=0
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5688 $as_echo "$ac_cv_sizeof___int64" >&6; }
5692 cat >>confdefs.h <<_ACEOF
5693 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5694 _ACEOF
5699 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5700 case $ac_cv_c_int8_t in #(
5701 no|yes) ;; #(
5704 cat >>confdefs.h <<_ACEOF
5705 #define int8_t $ac_cv_c_int8_t
5706 _ACEOF
5708 esac
5710 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5711 case $ac_cv_c_int16_t in #(
5712 no|yes) ;; #(
5715 cat >>confdefs.h <<_ACEOF
5716 #define int16_t $ac_cv_c_int16_t
5717 _ACEOF
5719 esac
5721 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5722 case $ac_cv_c_int32_t in #(
5723 no|yes) ;; #(
5726 cat >>confdefs.h <<_ACEOF
5727 #define int32_t $ac_cv_c_int32_t
5728 _ACEOF
5730 esac
5732 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5733 case $ac_cv_c_int64_t in #(
5734 no|yes) ;; #(
5737 cat >>confdefs.h <<_ACEOF
5738 #define int64_t $ac_cv_c_int64_t
5739 _ACEOF
5741 esac
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5745 $as_echo_n "checking for long long int... " >&6; }
5746 if test "${ac_cv_type_long_long_int+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 /* For now, do not test the preprocessor; as of 2007 there are too many
5753 implementations with broken preprocessors. Perhaps this can
5754 be revisited in 2012. In the meantime, code should not expect
5755 #if to work with literals wider than 32 bits. */
5756 /* Test literals. */
5757 long long int ll = 9223372036854775807ll;
5758 long long int nll = -9223372036854775807LL;
5759 unsigned long long int ull = 18446744073709551615ULL;
5760 /* Test constant expressions. */
5761 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5762 ? 1 : -1)];
5763 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5764 ? 1 : -1)];
5765 int i = 63;
5767 main ()
5769 /* Test availability of runtime routines for shift and division. */
5770 long long int llmax = 9223372036854775807ll;
5771 unsigned long long int ullmax = 18446744073709551615ull;
5772 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5773 | (llmax / ll) | (llmax % ll)
5774 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5775 | (ullmax / ull) | (ullmax % ull));
5777 return 0;
5780 _ACEOF
5781 if ac_fn_c_try_link "$LINENO"; then :
5782 if test "$cross_compiling" = yes; then :
5783 ac_cv_type_long_long_int=yes
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <limits.h>
5788 #ifndef LLONG_MAX
5789 # define HALF \
5790 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5791 # define LLONG_MAX (HALF - 1 + HALF)
5792 #endif
5794 main ()
5796 long long int n = 1;
5797 int i;
5798 for (i = 0; ; i++)
5800 long long int m = n << i;
5801 if (m >> i != n)
5802 return 1;
5803 if (LLONG_MAX / 2 < m)
5804 break;
5806 return 0;
5808 return 0;
5810 _ACEOF
5811 if ac_fn_c_try_run "$LINENO"; then :
5812 ac_cv_type_long_long_int=yes
5813 else
5814 ac_cv_type_long_long_int=no
5816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5817 conftest.$ac_objext conftest.beam conftest.$ac_ext
5820 else
5821 ac_cv_type_long_long_int=no
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5827 $as_echo "$ac_cv_type_long_long_int" >&6; }
5828 if test $ac_cv_type_long_long_int = yes; then
5830 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5836 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5837 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5839 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5841 else
5842 test $ac_cv_type_long_long_int = yes \
5843 && ac_type='long long int' \
5844 || ac_type='long int'
5846 cat >>confdefs.h <<_ACEOF
5847 #define intmax_t $ac_type
5848 _ACEOF
5854 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5855 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5857 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5859 else
5860 for ac_type in 'int' 'long int' 'long long int'; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5865 main ()
5867 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5868 test_array [0] = 0
5871 return 0;
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define intptr_t $ac_type
5878 _ACEOF
5880 ac_type=
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 test -z "$ac_type" && break
5884 done
5888 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5889 case $ac_cv_c_uint8_t in #(
5890 no|yes) ;; #(
5893 $as_echo "#define _UINT8_T 1" >>confdefs.h
5896 cat >>confdefs.h <<_ACEOF
5897 #define uint8_t $ac_cv_c_uint8_t
5898 _ACEOF
5900 esac
5902 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5903 case $ac_cv_c_uint16_t in #(
5904 no|yes) ;; #(
5908 cat >>confdefs.h <<_ACEOF
5909 #define uint16_t $ac_cv_c_uint16_t
5910 _ACEOF
5912 esac
5914 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5915 case $ac_cv_c_uint32_t in #(
5916 no|yes) ;; #(
5919 $as_echo "#define _UINT32_T 1" >>confdefs.h
5922 cat >>confdefs.h <<_ACEOF
5923 #define uint32_t $ac_cv_c_uint32_t
5924 _ACEOF
5926 esac
5928 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5929 case $ac_cv_c_uint64_t in #(
5930 no|yes) ;; #(
5933 $as_echo "#define _UINT64_T 1" >>confdefs.h
5936 cat >>confdefs.h <<_ACEOF
5937 #define uint64_t $ac_cv_c_uint64_t
5938 _ACEOF
5940 esac
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5944 $as_echo_n "checking for unsigned long long int... " >&6; }
5945 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* For now, do not test the preprocessor; as of 2007 there are too many
5952 implementations with broken preprocessors. Perhaps this can
5953 be revisited in 2012. In the meantime, code should not expect
5954 #if to work with literals wider than 32 bits. */
5955 /* Test literals. */
5956 long long int ll = 9223372036854775807ll;
5957 long long int nll = -9223372036854775807LL;
5958 unsigned long long int ull = 18446744073709551615ULL;
5959 /* Test constant expressions. */
5960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5961 ? 1 : -1)];
5962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5963 ? 1 : -1)];
5964 int i = 63;
5966 main ()
5968 /* Test availability of runtime routines for shift and division. */
5969 long long int llmax = 9223372036854775807ll;
5970 unsigned long long int ullmax = 18446744073709551615ull;
5971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5972 | (llmax / ll) | (llmax % ll)
5973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5974 | (ullmax / ull) | (ullmax % ull));
5976 return 0;
5979 _ACEOF
5980 if ac_fn_c_try_link "$LINENO"; then :
5981 ac_cv_type_unsigned_long_long_int=yes
5982 else
5983 ac_cv_type_unsigned_long_long_int=no
5985 rm -f core conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5989 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5990 if test $ac_cv_type_unsigned_long_long_int = yes; then
5992 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5998 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6001 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6003 else
6004 test $ac_cv_type_unsigned_long_long_int = yes \
6005 && ac_type='unsigned long long int' \
6006 || ac_type='unsigned long int'
6008 cat >>confdefs.h <<_ACEOF
6009 #define uintmax_t $ac_type
6010 _ACEOF
6016 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6017 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6019 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6021 else
6022 for ac_type in 'unsigned int' 'unsigned long int' \
6023 'unsigned long long int'; do
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 $ac_includes_default
6028 main ()
6030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6031 test_array [0] = 0
6034 return 0;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6039 cat >>confdefs.h <<_ACEOF
6040 #define uintptr_t $ac_type
6041 _ACEOF
6043 ac_type=
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 test -z "$ac_type" && break
6047 done
6064 # ---------------------
6065 # Warnings and checking
6066 # ---------------------
6068 # Check $CC warning features (if it's GCC).
6069 # We want to use -pedantic, but we don't want warnings about
6070 # * 'long long'
6071 # * variadic macros
6072 # * overlong strings
6073 # So, we only use -pedantic if we can disable those warnings.
6075 loose_warn=
6076 save_CFLAGS="$CFLAGS"
6077 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6078 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6081 $as_echo_n "checking whether $CC supports $option... " >&6; }
6082 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 CFLAGS="$option"
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6090 main ()
6094 return 0;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 eval "$as_acx_Woption=yes"
6099 else
6100 eval "$as_acx_Woption=no"
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 eval ac_res=\$$as_acx_Woption
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6107 $as_echo "$ac_res" >&6; }
6108 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6109 loose_warn="$loose_warn${loose_warn:+ }$option"
6111 done
6112 CFLAGS="$save_CFLAGS"
6114 c_loose_warn=
6115 save_CFLAGS="$CFLAGS"
6116 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6117 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6120 $as_echo_n "checking whether $CC supports $option... " >&6; }
6121 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 CFLAGS="$option"
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6129 main ()
6133 return 0;
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"; then :
6137 eval "$as_acx_Woption=yes"
6138 else
6139 eval "$as_acx_Woption=no"
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 eval ac_res=\$$as_acx_Woption
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6148 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6150 done
6151 CFLAGS="$save_CFLAGS"
6153 strict_warn=
6154 save_CFLAGS="$CFLAGS"
6155 for option in -Wmissing-format-attribute; do
6156 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6159 $as_echo_n "checking whether $CC supports $option... " >&6; }
6160 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 CFLAGS="$option"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6168 main ()
6172 return 0;
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"; then :
6176 eval "$as_acx_Woption=yes"
6177 else
6178 eval "$as_acx_Woption=no"
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 eval ac_res=\$$as_acx_Woption
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6186 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6187 strict_warn="$strict_warn${strict_warn:+ }$option"
6189 done
6190 CFLAGS="$save_CFLAGS"
6192 c_strict_warn=
6193 save_CFLAGS="$CFLAGS"
6194 for option in -Wold-style-definition -Wc++-compat; do
6195 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6198 $as_echo_n "checking whether $CC supports $option... " >&6; }
6199 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 CFLAGS="$option"
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6207 main ()
6211 return 0;
6213 _ACEOF
6214 if ac_fn_c_try_compile "$LINENO"; then :
6215 eval "$as_acx_Woption=yes"
6216 else
6217 eval "$as_acx_Woption=no"
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 eval ac_res=\$$as_acx_Woption
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6224 $as_echo "$ac_res" >&6; }
6225 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6226 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6228 done
6229 CFLAGS="$save_CFLAGS"
6231 if test "$GCC" = yes; then :
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6233 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6234 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 save_CFLAGS="$CFLAGS"
6238 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6243 main ()
6247 return 0;
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6252 else
6253 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 CFLAGS="$save_CFLAGS"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6259 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6260 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6261 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6266 # Check whether --enable-werror-always was given.
6267 if test "${enable_werror_always+set}" = set; then :
6268 enableval=$enable_werror_always;
6269 else
6270 enable_werror_always=no
6273 if test $enable_werror_always = yes; then :
6274 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6279 # The above macros do nothing if the compiler is not GCC. However, the
6280 # Makefile has more goo to add other flags, so these variables are used
6281 # to enable warnings only for GCC.
6282 warn_cflags=
6283 warn_cxxflags=
6284 if test "x$GCC" = "xyes"; then
6285 warn_cflags='$(GCC_WARN_CFLAGS)'
6286 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6291 # Enable expensive internal checks
6292 is_release=
6293 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6294 is_release=yes
6297 # Check whether --enable-checking was given.
6298 if test "${enable_checking+set}" = set; then :
6299 enableval=$enable_checking; ac_checking_flags="${enableval}"
6300 else
6302 # Determine the default checks.
6303 if test x$is_release = x ; then
6304 ac_checking_flags=yes
6305 else
6306 ac_checking_flags=release
6310 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6311 for check in release $ac_checking_flags
6313 case $check in
6314 # these set all the flags to specific states
6315 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6316 ac_fold_checking= ; ac_gc_checking=1 ;
6317 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6318 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6319 ac_tree_checking=1 ; ac_valgrind_checking= ;
6320 ac_types_checking=1 ;;
6321 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6322 ac_fold_checking= ; ac_gc_checking= ;
6323 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6324 ac_rtlflag_checking= ; ac_runtime_checking= ;
6325 ac_tree_checking= ; ac_valgrind_checking= ;
6326 ac_types_checking= ;;
6327 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6328 ac_fold_checking=1 ; ac_gc_checking=1 ;
6329 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6330 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6331 ac_tree_checking=1 ; ac_valgrind_checking= ;
6332 ac_types_checking=1 ;;
6333 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6334 ac_fold_checking= ; ac_gc_checking= ;
6335 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6336 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6337 ac_tree_checking= ; ac_valgrind_checking= ;
6338 ac_types_checking= ;;
6339 # these enable particular checks
6340 assert) ac_assert_checking=1 ;;
6341 df) ac_df_checking=1 ;;
6342 fold) ac_fold_checking=1 ;;
6343 gc) ac_gc_checking=1 ;;
6344 gcac) ac_gc_always_collect=1 ;;
6345 gimple) ac_gimple_checking=1 ;;
6346 misc) ac_checking=1 ;;
6347 rtl) ac_rtl_checking=1 ;;
6348 rtlflag) ac_rtlflag_checking=1 ;;
6349 runtime) ac_runtime_checking=1 ;;
6350 tree) ac_tree_checking=1 ;;
6351 types) ac_types_checking=1 ;;
6352 valgrind) ac_valgrind_checking=1 ;;
6353 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6354 esac
6355 done
6356 IFS="$ac_save_IFS"
6358 nocommon_flag=""
6359 if test x$ac_checking != x ; then
6361 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6363 nocommon_flag=-fno-common
6366 if test x$ac_df_checking != x ; then
6368 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6371 if test x$ac_assert_checking != x ; then
6373 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6376 if test x$ac_gimple_checking != x ; then
6378 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6382 if test x$ac_runtime_checking != x ; then
6384 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6387 if test x$ac_tree_checking != x ; then
6389 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6391 TREEBROWSER=tree-browser.o
6393 if test x$ac_types_checking != x ; then
6395 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6399 if test x$ac_rtl_checking != x ; then
6401 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6404 if test x$ac_rtlflag_checking != x ; then
6406 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6409 if test x$ac_gc_checking != x ; then
6411 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6414 if test x$ac_gc_always_collect != x ; then
6416 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6419 if test x$ac_fold_checking != x ; then
6421 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6424 valgrind_path_defines=
6425 valgrind_command=
6427 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6429 have_valgrind_h=yes
6430 else
6431 have_valgrind_h=no
6436 if test x$ac_valgrind_checking != x ; then
6437 # It is certainly possible that there's valgrind but no valgrind.h.
6438 # GCC relies on making annotations so we must have both.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6440 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <valgrind/memcheck.h>
6444 #ifndef VALGRIND_DISCARD
6445 #error VALGRIND_DISCARD not defined
6446 #endif
6447 _ACEOF
6448 if ac_fn_c_try_cpp "$LINENO"; then :
6449 gcc_cv_header_valgrind_memcheck_h=yes
6450 else
6451 gcc_cv_header_valgrind_memcheck_h=no
6453 rm -f conftest.err conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6455 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6457 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <memcheck.h>
6461 #ifndef VALGRIND_DISCARD
6462 #error VALGRIND_DISCARD not defined
6463 #endif
6464 _ACEOF
6465 if ac_fn_c_try_cpp "$LINENO"; then :
6466 gcc_cv_header_memcheck_h=yes
6467 else
6468 gcc_cv_header_memcheck_h=no
6470 rm -f conftest.err conftest.$ac_ext
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6472 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6474 # Prepare PATH_SEPARATOR.
6475 # The user is always right.
6476 if test "${PATH_SEPARATOR+set}" != set; then
6477 echo "#! /bin/sh" >conf$$.sh
6478 echo "exit 0" >>conf$$.sh
6479 chmod +x conf$$.sh
6480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6481 PATH_SEPARATOR=';'
6482 else
6483 PATH_SEPARATOR=:
6485 rm -f conf$$.sh
6488 # Find out how to test for executable files. Don't use a zero-byte file,
6489 # as systems may use methods other than mode bits to determine executability.
6490 cat >conf$$.file <<_ASEOF
6491 #! /bin/sh
6492 exit 0
6493 _ASEOF
6494 chmod +x conf$$.file
6495 if test -x conf$$.file >/dev/null 2>&1; then
6496 ac_executable_p="test -x"
6497 else
6498 ac_executable_p="test -f"
6500 rm -f conf$$.file
6502 # Extract the first word of "valgrind", so it can be a program name with args.
6503 set dummy valgrind; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 case "$valgrind_path" in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6514 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6515 for ac_dir in $PATH; do
6516 IFS="$ac_save_IFS"
6517 test -z "$ac_dir" && ac_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6520 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6521 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6522 break 2
6525 done
6526 done
6527 IFS="$ac_save_IFS"
6529 esac
6531 valgrind_path="$ac_cv_path_valgrind_path"
6532 if test -n "$valgrind_path"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6534 $as_echo "$valgrind_path" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$valgrind_path" = "x" \
6541 || (test $have_valgrind_h = no \
6542 && test $gcc_cv_header_memcheck_h = no \
6543 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6544 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6546 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6547 valgrind_command="$valgrind_path -q"
6549 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6551 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6553 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6556 if test $gcc_cv_header_memcheck_h = yes; then
6558 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6565 # Enable code coverage collection
6566 # Check whether --enable-coverage was given.
6567 if test "${enable_coverage+set}" = set; then :
6568 enableval=$enable_coverage; case "${enableval}" in
6569 yes|noopt)
6570 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6572 opt)
6573 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6576 # a.k.a. --disable-coverage
6577 coverage_flags=""
6580 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6582 esac
6583 else
6584 coverage_flags=""
6589 # Check whether --enable-gather-detailed-mem-stats was given.
6590 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6591 enableval=$enable_gather_detailed_mem_stats;
6592 else
6593 enable_gather_detailed_mem_stats=no
6596 if test x$enable_gather_detailed_mem_stats = xyes ; then
6598 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6602 # -------------------------------
6603 # Miscenalleous configure options
6604 # -------------------------------
6606 # See if we are building gcc with C++.
6607 # Check whether --enable-build-with-cxx was given.
6608 if test "${enable_build_with_cxx+set}" = set; then :
6609 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6610 else
6611 ENABLE_BUILD_WITH_CXX=no
6616 # With stabs
6618 # Check whether --with-stabs was given.
6619 if test "${with_stabs+set}" = set; then :
6620 withval=$with_stabs; stabs="$with_stabs"
6621 else
6622 stabs=no
6626 # Determine whether or not multilibs are enabled.
6627 # Check whether --enable-multilib was given.
6628 if test "${enable_multilib+set}" = set; then :
6629 enableval=$enable_multilib;
6630 else
6631 enable_multilib=yes
6636 # Enable __cxa_atexit for C++.
6637 # Check whether --enable-__cxa_atexit was given.
6638 if test "${enable___cxa_atexit+set}" = set; then :
6639 enableval=$enable___cxa_atexit;
6643 # Enable C extension for decimal float if target supports it.
6644 # Check whether --enable-decimal-float was given.
6645 if test "${enable_decimal_float+set}" = set; then :
6646 enableval=$enable_decimal_float;
6647 case $enable_decimal_float in
6648 yes | no | bid | dpd) ;;
6649 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6650 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6651 esac
6653 else
6655 case $target in
6656 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6657 enable_decimal_float=yes
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6661 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6662 enable_decimal_float=no
6664 esac
6669 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6671 cat >>confdefs.h <<_ACEOF
6672 #define ENABLE_DECIMAL_FLOAT $dfp
6673 _ACEOF
6676 # x86's use BID format instead of DPD
6677 case x$enable_decimal_float in
6678 xyes)
6679 case $target in
6680 i?86*-*-linux* | x86_64*-*-linux*)
6681 enable_decimal_float=bid
6684 enable_decimal_float=dpd
6686 esac
6688 xno)
6689 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6690 # dependency on libdecnumber.
6691 enable_decimal_float=dpd
6693 esac
6696 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6698 cat >>confdefs.h <<_ACEOF
6699 #define ENABLE_DECIMAL_BID_FORMAT $bid
6700 _ACEOF
6703 # Enable C extension for fixed-point arithmetic.
6704 # Check whether --enable-fixed-point was given.
6705 if test "${enable_fixed_point+set}" = set; then :
6706 enableval=$enable_fixed_point;
6708 else
6710 case $target in
6711 mips*-*-*)
6712 case $host in
6713 mips*-sgi-irix*)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6715 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6716 enable_fixed_point=no
6719 enable_fixed_point=yes
6721 esac
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6725 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6726 enable_fixed_point=no
6728 esac
6734 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6736 cat >>confdefs.h <<_ACEOF
6737 #define ENABLE_FIXED_POINT $fixedpoint
6738 _ACEOF
6741 # Enable threads
6742 # Pass with no value to take the default
6743 # Pass with a value to specify a thread package
6744 # Check whether --enable-threads was given.
6745 if test "${enable_threads+set}" = set; then :
6746 enableval=$enable_threads;
6747 else
6748 enable_threads=''
6752 # Check whether --enable-tls was given.
6753 if test "${enable_tls+set}" = set; then :
6754 enableval=$enable_tls;
6755 case $enable_tls in
6756 yes | no) ;;
6757 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6758 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6759 esac
6761 else
6762 enable_tls=''
6766 # Check whether --enable-objc-gc was given.
6767 if test "${enable_objc_gc+set}" = set; then :
6768 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6769 objc_boehm_gc=''
6770 else
6771 objc_boehm_gc=1
6773 else
6774 objc_boehm_gc=''
6779 # Check whether --with-dwarf2 was given.
6780 if test "${with_dwarf2+set}" = set; then :
6781 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6782 else
6783 dwarf2=no
6787 # Check whether --enable-shared was given.
6788 if test "${enable_shared+set}" = set; then :
6789 enableval=$enable_shared;
6790 case $enable_shared in
6791 yes | no) ;;
6793 enable_shared=no
6794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6795 for pkg in $enableval; do
6796 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6797 enable_shared=yes
6799 done
6800 IFS="$ac_save_ifs"
6802 esac
6804 else
6805 enable_shared=yes
6811 # Check whether --with-build-sysroot was given.
6812 if test "${with_build_sysroot+set}" = set; then :
6813 withval=$with_build_sysroot;
6818 # Check whether --with-sysroot was given.
6819 if test "${with_sysroot+set}" = set; then :
6820 withval=$with_sysroot;
6821 case ${with_sysroot} in
6822 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6823 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6824 esac
6826 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6827 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6829 if test "x$prefix" = xNONE; then
6830 test_prefix=/usr/local
6831 else
6832 test_prefix=$prefix
6834 if test "x$exec_prefix" = xNONE; then
6835 test_exec_prefix=$test_prefix
6836 else
6837 test_exec_prefix=$exec_prefix
6839 case ${TARGET_SYSTEM_ROOT} in
6840 "${test_prefix}"|"${test_prefix}/"*|\
6841 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6842 '${prefix}'|'${prefix}/'*|\
6843 '${exec_prefix}'|'${exec_prefix}/'*)
6844 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6845 TARGET_SYSTEM_ROOT_DEFINE="$t"
6847 esac
6849 else
6851 TARGET_SYSTEM_ROOT=
6852 TARGET_SYSTEM_ROOT_DEFINE=
6853 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6862 # Check whether --with-specs was given.
6863 if test "${with_specs+set}" = set; then :
6864 withval=$with_specs; CONFIGURE_SPECS=$withval
6865 else
6866 CONFIGURE_SPECS=
6872 # Build with intermodule optimisations
6873 # Check whether --enable-intermodule was given.
6874 if test "${enable_intermodule+set}" = set; then :
6875 enableval=$enable_intermodule; case ${enable_intermodule} in
6876 yes) onestep="-onestep";;
6877 *) onestep="";;
6878 esac
6879 else
6880 onestep=""
6887 # Check whether --with-pkgversion was given.
6888 if test "${with_pkgversion+set}" = set; then :
6889 withval=$with_pkgversion; case "$withval" in
6890 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6891 no) PKGVERSION= ;;
6892 *) PKGVERSION="($withval) " ;;
6893 esac
6894 else
6895 PKGVERSION="(GCC) "
6903 # Check whether --with-bugurl was given.
6904 if test "${with_bugurl+set}" = set; then :
6905 withval=$with_bugurl; case "$withval" in
6906 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6907 no) BUGURL=
6909 *) BUGURL="$withval"
6911 esac
6912 else
6913 BUGURL="http://gcc.gnu.org/bugs.html"
6917 case ${BUGURL} in
6919 REPORT_BUGS_TO=
6920 REPORT_BUGS_TEXI=
6923 REPORT_BUGS_TO="<$BUGURL>"
6924 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6926 esac;
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages was given.
6934 if test "${enable_languages+set}" = set; then :
6935 enableval=$enable_languages; case ,${enable_languages}, in
6936 ,,|,yes,)
6937 # go safe -- we cannot be much sure without the toplevel
6938 # configure's
6939 # analysis of which target libs are present and usable
6940 enable_languages=c
6942 *,all,*)
6943 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6945 *,c,*)
6948 enable_languages=c,${enable_languages}
6950 esac
6951 else
6952 enable_languages=c
6957 # Check whether --with-multilib-list was given.
6958 if test "${with_multilib_list+set}" = set; then :
6959 withval=$with_multilib_list; :
6960 else
6961 with_multilib_list=default
6965 # -------------------------
6966 # Checks for other programs
6967 # -------------------------
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6971 set x ${MAKE-make}
6972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6973 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat >conftest.make <<\_ACEOF
6977 SHELL = /bin/sh
6978 all:
6979 @echo '@@@%%%=$(MAKE)=@@@%%%'
6980 _ACEOF
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6983 *@@@%%%=?*=@@@%%%*)
6984 eval ac_cv_prog_make_${ac_make}_set=yes;;
6986 eval ac_cv_prog_make_${ac_make}_set=no;;
6987 esac
6988 rm -f conftest.make
6990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6993 SET_MAKE=
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 SET_MAKE="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog in gawk mawk nawk awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_AWK+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_AWK="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7041 test -n "$AWK" && break
7042 done
7044 # We need awk to create options.c and options.h.
7045 # Bail out if it's missing.
7046 case ${AWK} in
7047 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7048 esac
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7051 $as_echo_n "checking whether ln -s works... " >&6; }
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7058 then
7059 gcc_cv_prog_LN_S="ln -s"
7060 else
7061 if ln conftestdata_f conftestdata_t 2>/dev/null
7062 then
7063 gcc_cv_prog_LN_S=ln
7064 else
7065 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S="cp -p"
7068 else
7069 gcc_cv_prog_LN_S=cp
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7080 else
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7083 $as_echo "no, using ln" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7091 $as_echo_n "checking whether ln works... " >&6; }
7092 if test "${acx_cv_prog_LN+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t 2>/dev/null
7098 then
7099 acx_cv_prog_LN=ln
7100 else
7101 acx_cv_prog_LN=no
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no; then
7107 LN="$LN_S"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7109 $as_echo "no, using $LN" >&6; }
7110 else
7111 LN="$acx_cv_prog_LN"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7140 IFS=$as_save_IFS
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7147 $as_echo "$RANLIB" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_RANLIB="ranlib"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7178 done
7179 done
7180 IFS=$as_save_IFS
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7187 $as_echo "$ac_ct_RANLIB" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_RANLIB" = x; then
7194 RANLIB=":"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202 RANLIB=$ac_ct_RANLIB
7204 else
7205 RANLIB="$ac_cv_prog_RANLIB"
7208 case "${host}" in
7209 *-*-darwin*)
7210 # By default, the Darwin ranlib will not treat common symbols as
7211 # definitions when building the archive table of contents. Other
7212 # ranlibs do that; pass an option to the Darwin ranlib that makes
7213 # it behave similarly.
7214 ranlib_flags="-c"
7217 ranlib_flags=""
7218 esac
7221 # Find a good install program. We prefer a C program (faster),
7222 # so one script is as good as another. But avoid the broken or
7223 # incompatible versions:
7224 # SysV /etc/install, /usr/sbin/install
7225 # SunOS /usr/etc/install
7226 # IRIX /sbin/install
7227 # AIX /bin/install
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7232 $as_echo_n "checking for a BSD compatible install... " >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7238 for ac_dir in $PATH; do
7239 # Account for people who put trailing slashes in PATH elements.
7240 case "$ac_dir/" in
7241 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7243 # OSF1 and SCO ODT 3.0 have their own names for install.
7244 for ac_prog in ginstall scoinst install; do
7245 if test -f $ac_dir/$ac_prog; then
7246 if test $ac_prog = install &&
7247 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7248 # AIX install. It has an incompatible calling convention.
7249 # OSF/1 installbsd also uses dspmsg, but is usable.
7251 else
7252 ac_cv_path_install="$ac_dir/$ac_prog -c"
7253 break 2
7256 done
7258 esac
7259 done
7260 IFS="$ac_save_IFS"
7263 if test "${ac_cv_path_install+set}" = set; then
7264 INSTALL="$ac_cv_path_install"
7265 else
7266 # As a last resort, use the slow shell script. We don't cache a
7267 # path for INSTALL within a source directory, because that will
7268 # break other packages using the cache if that directory is
7269 # removed, or if the path is relative.
7270 INSTALL="$ac_install_sh"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7274 $as_echo "$INSTALL" >&6; }
7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7277 # It thinks the first close brace ends the variable substitution.
7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7283 # See if cmp has --ignore-initial.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7285 $as_echo_n "checking for cmp's capabilities... " >&6; }
7286 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 echo abfoo >t1
7290 echo cdfoo >t2
7291 gcc_cv_prog_cmp_skip=slowcompare
7292 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7293 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7295 else
7296 gcc_cv_prog_cmp_skip=gnucompare
7299 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7300 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7301 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7303 else
7304 gcc_cv_prog_cmp_skip=fastcompare
7308 rm t1 t2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7312 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7313 make_compare_target=$gcc_cv_prog_cmp_skip
7317 # See if we have the mktemp command.
7318 # Extract the first word of "mktemp", so it can be a program name with args.
7319 set dummy mktemp; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$have_mktemp_command"; then
7326 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_have_mktemp_command="yes"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7343 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7346 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7347 if test -n "$have_mktemp_command"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7349 $as_echo "$have_mktemp_command" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 # See if makeinfo has been installed and is modern enough
7358 # that we can use it.
7360 # Extract the first word of "makeinfo", so it can be a program name with args.
7361 set dummy makeinfo; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$MAKEINFO"; then
7368 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_MAKEINFO="makeinfo"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 MAKEINFO=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7390 $as_echo "$MAKEINFO" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 if test -n "$MAKEINFO"; then
7398 # Found it, now check the version.
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7400 $as_echo_n "checking for modern makeinfo... " >&6; }
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7407 case $ac_prog_version in
7408 '') gcc_cv_prog_makeinfo_modern=no;;
7409 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7410 *) gcc_cv_prog_makeinfo_modern=no;;
7411 esac
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7416 else
7417 gcc_cv_prog_makeinfo_modern=no
7419 if test $gcc_cv_prog_makeinfo_modern = no; then
7420 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7423 if test $gcc_cv_prog_makeinfo_modern = no; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7425 *** Makeinfo is missing or too old.
7426 *** Info documentation will not be built." >&5
7427 $as_echo "$as_me: WARNING:
7428 *** Makeinfo is missing or too old.
7429 *** Info documentation will not be built." >&2;}
7430 BUILD_INFO=
7431 else
7432 BUILD_INFO=info
7436 # Is pod2man recent enough to regenerate manpages?
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7438 $as_echo_n "checking for recent Pod::Man... " >&6; }
7439 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7442 GENERATED_MANPAGES=generated-manpages
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 GENERATED_MANPAGES=
7450 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7452 # How about lex?
7453 for ac_prog in flex
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if test "${ac_cv_prog_FLEX+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$FLEX"; then
7463 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_FLEX="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7482 FLEX=$ac_cv_prog_FLEX
7483 if test -n "$FLEX"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7485 $as_echo "$FLEX" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$FLEX" && break
7493 done
7494 test -n "$FLEX" || FLEX="$MISSING flex"
7497 # Bison?
7498 for ac_prog in bison
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_BISON+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$BISON"; then
7508 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_BISON="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 BISON=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7530 $as_echo "$BISON" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$BISON" && break
7538 done
7539 test -n "$BISON" || BISON="$MISSING bison"
7542 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7543 # check for build == host before using them.
7545 # NM
7546 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7547 && test -d ../binutils ; then
7548 NM='$(objdir)/../binutils/nm-new'
7549 else
7550 # Extract the first word of "nm", so it can be a program name with args.
7551 set dummy nm; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_NM+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$NM"; then
7558 ac_cv_prog_NM="$NM" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_NM="nm"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7575 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7578 NM=$ac_cv_prog_NM
7579 if test -n "$NM"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7581 $as_echo "$NM" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7590 # AR
7591 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7592 && test -d ../binutils ; then
7593 AR='$(objdir)/../binutils/ar'
7594 else
7595 # Extract the first word of "ar", so it can be a program name with args.
7596 set dummy ar; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_AR+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$AR"; then
7603 ac_cv_prog_AR="$AR" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_AR="ar"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7620 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7623 AR=$ac_cv_prog_AR
7624 if test -n "$AR"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7626 $as_echo "$AR" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7636 # --------------------
7637 # Checks for C headers
7638 # --------------------
7640 # Need to reject headers which give warnings, so that the -Werror bootstrap
7641 # works later. *sigh* This needs to come before all header checks.
7643 ac_c_preproc_warn_flag=yes
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7646 $as_echo_n "checking for ANSI C header files... " >&6; }
7647 if test "${ac_cv_header_stdc+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <stdlib.h>
7653 #include <stdarg.h>
7654 #include <string.h>
7655 #include <float.h>
7658 main ()
7662 return 0;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 ac_cv_header_stdc=yes
7667 else
7668 ac_cv_header_stdc=no
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 if test $ac_cv_header_stdc = yes; then
7673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 #include <string.h>
7678 _ACEOF
7679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7680 $EGREP "memchr" >/dev/null 2>&1; then :
7682 else
7683 ac_cv_header_stdc=no
7685 rm -f conftest*
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <stdlib.h>
7695 _ACEOF
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "free" >/dev/null 2>&1; then :
7699 else
7700 ac_cv_header_stdc=no
7702 rm -f conftest*
7706 if test $ac_cv_header_stdc = yes; then
7707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708 if test "$cross_compiling" = yes; then :
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <ctype.h>
7714 #include <stdlib.h>
7715 #if ((' ' & 0x0FF) == 0x020)
7716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7718 #else
7719 # define ISLOWER(c) \
7720 (('a' <= (c) && (c) <= 'i') \
7721 || ('j' <= (c) && (c) <= 'r') \
7722 || ('s' <= (c) && (c) <= 'z'))
7723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7724 #endif
7726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7728 main ()
7730 int i;
7731 for (i = 0; i < 256; i++)
7732 if (XOR (islower (i), ISLOWER (i))
7733 || toupper (i) != TOUPPER (i))
7734 return 2;
7735 return 0;
7737 _ACEOF
7738 if ac_fn_c_try_run "$LINENO"; then :
7740 else
7741 ac_cv_header_stdc=no
7743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7744 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7750 $as_echo "$ac_cv_header_stdc" >&6; }
7751 if test $ac_cv_header_stdc = yes; then
7753 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7758 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7759 if test "${ac_cv_header_time+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <sys/time.h>
7766 #include <time.h>
7769 main ()
7771 if ((struct tm *) 0)
7772 return 0;
7774 return 0;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 ac_cv_header_time=yes
7779 else
7780 ac_cv_header_time=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7785 $as_echo "$ac_cv_header_time" >&6; }
7786 if test $ac_cv_header_time = yes; then
7788 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7793 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7794 if test "${gcc_cv_header_string+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #include <string.h>
7800 #include <strings.h>
7802 main ()
7806 return 0;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 gcc_cv_header_string=yes
7811 else
7812 gcc_cv_header_string=no
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7817 $as_echo "$gcc_cv_header_string" >&6; }
7818 if test $gcc_cv_header_string = yes; then
7820 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7826 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <sys/wait.h>
7833 #ifndef WEXITSTATUS
7834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7835 #endif
7836 #ifndef WIFEXITED
7837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7838 #endif
7841 main ()
7843 int s;
7844 wait (&s);
7845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7847 return 0;
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 ac_cv_header_sys_wait_h=yes
7852 else
7853 ac_cv_header_sys_wait_h=no
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7859 if test $ac_cv_header_sys_wait_h = yes; then
7861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7865 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7866 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7867 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7868 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7869 do :
7870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7872 eval as_val=\$$as_ac_Header
7873 if test "x$as_val" = x""yes; then :
7874 cat >>confdefs.h <<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 _ACEOF
7879 done
7882 # Check for thread headers.
7883 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7884 if test "x$ac_cv_header_thread_h" = x""yes; then :
7885 have_thread_h=yes
7886 else
7887 have_thread_h=
7890 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7891 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7892 have_pthread_h=yes
7893 else
7894 have_pthread_h=
7898 # These tests can't be done till we know if we have limits.h.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7900 $as_echo_n "checking for CHAR_BIT... " >&6; }
7901 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef HAVE_LIMITS_H
7907 #include <limits.h>
7908 #endif
7909 #ifdef CHAR_BIT
7910 found
7911 #endif
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "found" >/dev/null 2>&1; then :
7915 gcc_cv_decl_char_bit=yes
7916 else
7917 gcc_cv_decl_char_bit=no
7919 rm -f conftest*
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7924 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7925 if test $gcc_cv_decl_char_bit = no; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7927 $as_echo_n "checking number of bits in a byte... " >&6; }
7928 if test "${gcc_cv_c_nbby+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7932 gcc_cv_c_nbby=
7933 while test $i -lt 65; do
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7938 main ()
7940 switch(0) {
7941 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7942 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7945 return 0;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 gcc_cv_c_nbby=$i; break
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 i=`expr $i + 1`
7953 done
7954 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7958 $as_echo "$gcc_cv_c_nbby" >&6; }
7959 if test $gcc_cv_c_nbby = failed; then
7960 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7961 else
7963 cat >>confdefs.h <<_ACEOF
7964 #define CHAR_BIT $gcc_cv_c_nbby
7965 _ACEOF
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7971 if test "${ac_cv_c_bigendian+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 ac_cv_c_bigendian=unknown
7975 # See if we're dealing with a universal compiler.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #ifndef __APPLE_CC__
7979 not a universal capable compiler
7980 #endif
7981 typedef int dummy;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7986 # Check for potential -arch flags. It is not universal unless
7987 # there are at least two -arch flags with different values.
7988 ac_arch=
7989 ac_prev=
7990 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7991 if test -n "$ac_prev"; then
7992 case $ac_word in
7993 i?86 | x86_64 | ppc | ppc64)
7994 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7995 ac_arch=$ac_word
7996 else
7997 ac_cv_c_bigendian=universal
7998 break
8001 esac
8002 ac_prev=
8003 elif test "x$ac_word" = "x-arch"; then
8004 ac_prev=arch
8006 done
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 if test $ac_cv_c_bigendian = unknown; then
8010 # See if sys/param.h defines the BYTE_ORDER macro.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <sys/types.h>
8014 #include <sys/param.h>
8017 main ()
8019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8021 && LITTLE_ENDIAN)
8022 bogus endian macros
8023 #endif
8026 return 0;
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 # It does; now see whether it defined to BIG_ENDIAN or not.
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <sys/types.h>
8034 #include <sys/param.h>
8037 main ()
8039 #if BYTE_ORDER != BIG_ENDIAN
8040 not big endian
8041 #endif
8044 return 0;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 ac_cv_c_bigendian=yes
8049 else
8050 ac_cv_c_bigendian=no
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 if test $ac_cv_c_bigendian = unknown; then
8057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 #include <limits.h>
8063 main ()
8065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8066 bogus endian macros
8067 #endif
8070 return 0;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 # It does; now see whether it defined to _BIG_ENDIAN or not.
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <limits.h>
8080 main ()
8082 #ifndef _BIG_ENDIAN
8083 not big endian
8084 #endif
8087 return 0;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 ac_cv_c_bigendian=yes
8092 else
8093 ac_cv_c_bigendian=no
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 if test $ac_cv_c_bigendian = unknown; then
8100 # Compile a test program.
8101 if test "$cross_compiling" = yes; then :
8102 # Try to guess by grepping values from an object file.
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 short int ascii_mm[] =
8106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8107 short int ascii_ii[] =
8108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8109 int use_ascii (int i) {
8110 return ascii_mm[i] + ascii_ii[i];
8112 short int ebcdic_ii[] =
8113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8114 short int ebcdic_mm[] =
8115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8116 int use_ebcdic (int i) {
8117 return ebcdic_mm[i] + ebcdic_ii[i];
8119 extern int foo;
8122 main ()
8124 return use_ascii (foo) == use_ebcdic (foo);
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8131 ac_cv_c_bigendian=yes
8133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8134 if test "$ac_cv_c_bigendian" = unknown; then
8135 ac_cv_c_bigendian=no
8136 else
8137 # finding both strings is unlikely to happen, but who knows?
8138 ac_cv_c_bigendian=unknown
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 else
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 $ac_includes_default
8148 main ()
8151 /* Are we little or big endian? From Harbison&Steele. */
8152 union
8154 long int l;
8155 char c[sizeof (long int)];
8156 } u;
8157 u.l = 1;
8158 return u.c[sizeof (long int) - 1] == 1;
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_run "$LINENO"; then :
8165 ac_cv_c_bigendian=no
8166 else
8167 ac_cv_c_bigendian=yes
8169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8170 conftest.$ac_objext conftest.beam conftest.$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8176 $as_echo "$ac_cv_c_bigendian" >&6; }
8177 case $ac_cv_c_bigendian in #(
8178 yes)
8179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8180 ;; #(
8182 ;; #(
8183 universal)
8185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8187 ;; #(
8189 as_fn_error "unknown endianness
8190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8191 esac
8194 # --------
8195 # UNSORTED
8196 # --------
8199 # These libraries may be used by collect2.
8200 # We may need a special search path to get them linked.
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8202 $as_echo_n "checking for collect2 libraries... " >&6; }
8203 if test "${gcc_cv_collect2_libs+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 save_LIBS="$LIBS"
8207 for libs in '' -lld -lmld \
8208 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8209 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8211 LIBS="$libs"
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8215 /* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8218 #ifdef __cplusplus
8219 extern "C"
8220 #endif
8221 char ldopen ();
8223 main ()
8225 return ldopen ();
8227 return 0;
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 gcc_cv_collect2_libs="$libs"; break
8233 rm -f core conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235 done
8236 LIBS="$save_LIBS"
8237 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8240 $as_echo "$gcc_cv_collect2_libs" >&6; }
8241 case $gcc_cv_collect2_libs in
8242 "none required") ;;
8243 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8244 esac
8247 # When building Ada code on Alpha, we need exc_resume which is usually in
8248 # -lexc. So test for it.
8249 save_LIBS="$LIBS"
8250 LIBS=
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8252 $as_echo_n "checking for library containing exc_resume... " >&6; }
8253 if test "${ac_cv_search_exc_resume+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 ac_func_search_save_LIBS=$LIBS
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 char exc_resume ();
8268 main ()
8270 return exc_resume ();
8272 return 0;
8274 _ACEOF
8275 for ac_lib in '' exc; do
8276 if test -z "$ac_lib"; then
8277 ac_res="none required"
8278 else
8279 ac_res=-l$ac_lib
8280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 ac_cv_search_exc_resume=$ac_res
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext
8287 if test "${ac_cv_search_exc_resume+set}" = set; then :
8288 break
8290 done
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8293 else
8294 ac_cv_search_exc_resume=no
8296 rm conftest.$ac_ext
8297 LIBS=$ac_func_search_save_LIBS
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8300 $as_echo "$ac_cv_search_exc_resume" >&6; }
8301 ac_res=$ac_cv_search_exc_resume
8302 if test "$ac_res" != no; then :
8303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8307 GNAT_LIBEXC="$LIBS"
8308 LIBS="$save_LIBS"
8311 # Some systems put ldexp and frexp in libm instead of libc; assume
8312 # they're both in the same place. jcf-dump needs them.
8313 save_LIBS="$LIBS"
8314 LIBS=
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8316 $as_echo_n "checking for library containing ldexp... " >&6; }
8317 if test "${ac_cv_search_ldexp+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 ac_func_search_save_LIBS=$LIBS
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char ldexp ();
8332 main ()
8334 return ldexp ();
8336 return 0;
8338 _ACEOF
8339 for ac_lib in '' m; do
8340 if test -z "$ac_lib"; then
8341 ac_res="none required"
8342 else
8343 ac_res=-l$ac_lib
8344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 ac_cv_search_ldexp=$ac_res
8349 rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext
8351 if test "${ac_cv_search_ldexp+set}" = set; then :
8352 break
8354 done
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8357 else
8358 ac_cv_search_ldexp=no
8360 rm conftest.$ac_ext
8361 LIBS=$ac_func_search_save_LIBS
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8364 $as_echo "$ac_cv_search_ldexp" >&6; }
8365 ac_res=$ac_cv_search_ldexp
8366 if test "$ac_res" != no; then :
8367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8371 LDEXP_LIB="$LIBS"
8372 LIBS="$save_LIBS"
8375 # Use <inttypes.h> only if it exists,
8376 # doesn't clash with <sys/types.h>, and declares intmax_t.
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8378 $as_echo_n "checking for inttypes.h... " >&6; }
8379 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <inttypes.h>
8387 main ()
8389 intmax_t i = -1;
8391 return 0;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 gcc_cv_header_inttypes_h=yes
8396 else
8397 gcc_cv_header_inttypes_h=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8403 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8404 if test $gcc_cv_header_inttypes_h = yes; then
8406 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8412 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8413 sysconf strsignal getrusage nl_langinfo \
8414 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8415 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
8416 do :
8417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8419 eval as_val=\$$as_ac_var
8420 if test "x$as_val" = x""yes; then :
8421 cat >>confdefs.h <<_ACEOF
8422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8423 _ACEOF
8426 done
8429 if test x$ac_cv_func_mbstowcs = xyes; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8431 $as_echo_n "checking whether mbstowcs works... " >&6; }
8432 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test "$cross_compiling" = yes; then :
8436 gcc_cv_func_mbstowcs_works=yes
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <stdlib.h>
8441 int main()
8443 mbstowcs(0, "", 0);
8444 return 0;
8446 _ACEOF
8447 if ac_fn_c_try_run "$LINENO"; then :
8448 gcc_cv_func_mbstowcs_works=yes
8449 else
8450 gcc_cv_func_mbstowcs_works=no
8452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8458 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8459 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8461 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8466 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8467 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8469 else
8471 cat >>confdefs.h <<_ACEOF
8472 #define ssize_t int
8473 _ACEOF
8477 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8478 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8480 else
8482 cat >>confdefs.h <<_ACEOF
8483 #define caddr_t char *
8484 _ACEOF
8490 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8491 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8492 gcc_header_sys_mman_h=yes
8493 else
8494 gcc_header_sys_mman_h=no
8497 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8498 if test "x$ac_cv_func_mmap" = x""yes; then :
8499 gcc_func_mmap=yes
8500 else
8501 gcc_func_mmap=no
8504 if test "$gcc_header_sys_mman_h" != yes \
8505 || test "$gcc_func_mmap" != yes; then
8506 gcc_cv_func_mmap_file=no
8507 gcc_cv_func_mmap_dev_zero=no
8508 gcc_cv_func_mmap_anon=no
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8511 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8512 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 # Add a system to this blacklist if
8516 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8517 # memory area containing the same data that you'd get if you applied
8518 # read() to the same fd. The only system known to have a problem here
8519 # is VMS, where text files have record structure.
8520 case "$host_os" in
8521 vms* | ultrix*)
8522 gcc_cv_func_mmap_file=no ;;
8524 gcc_cv_func_mmap_file=yes;;
8525 esac
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8528 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8530 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8531 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 # Add a system to this blacklist if it has mmap() but /dev/zero
8535 # does not exist, or if mmapping /dev/zero does not give anonymous
8536 # zeroed pages with both the following properties:
8537 # 1. If you map N consecutive pages in with one call, and then
8538 # unmap any subset of those pages, the pages that were not
8539 # explicitly unmapped remain accessible.
8540 # 2. If you map two adjacent blocks of memory and then unmap them
8541 # both at once, they must both go away.
8542 # Systems known to be in this category are Windows (all variants),
8543 # VMS, and Darwin.
8544 case "$host_os" in
8545 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8546 gcc_cv_func_mmap_dev_zero=no ;;
8548 gcc_cv_func_mmap_dev_zero=yes;;
8549 esac
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8552 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8554 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8556 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8557 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 #include <sys/types.h>
8563 #include <sys/mman.h>
8564 #include <unistd.h>
8566 #ifndef MAP_ANONYMOUS
8567 #define MAP_ANONYMOUS MAP_ANON
8568 #endif
8571 main ()
8573 int n = MAP_ANONYMOUS;
8575 return 0;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579 gcc_cv_decl_map_anon=yes
8580 else
8581 gcc_cv_decl_map_anon=no
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8586 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8588 if test $gcc_cv_decl_map_anon = no; then
8589 gcc_cv_func_mmap_anon=no
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8592 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8593 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8597 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8598 # doesn't give anonymous zeroed pages with the same properties listed
8599 # above for use of /dev/zero.
8600 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8601 case "$host_os" in
8602 vms* | cygwin* | pe | mingw* | sco* | udk* )
8603 gcc_cv_func_mmap_anon=no ;;
8605 gcc_cv_func_mmap_anon=yes;;
8606 esac
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8609 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8613 if test $gcc_cv_func_mmap_file = yes; then
8615 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8618 if test $gcc_cv_func_mmap_dev_zero = yes; then
8620 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8623 if test $gcc_cv_func_mmap_anon = yes; then
8625 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8630 case "${host}" in
8631 *-*-*vms*)
8632 # Under VMS, vfork works very differently than on Unix. The standard test
8633 # won't work, and it isn't easily adaptable. It makes more sense to
8634 # just force it.
8635 ac_cv_func_vfork_works=yes
8637 esac
8638 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8639 if test "x$ac_cv_type_pid_t" = x""yes; then :
8641 else
8643 cat >>confdefs.h <<_ACEOF
8644 #define pid_t int
8645 _ACEOF
8649 for ac_header in vfork.h
8650 do :
8651 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8652 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_VFORK_H 1
8655 _ACEOF
8658 done
8660 for ac_func in fork vfork
8661 do :
8662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8664 eval as_val=\$$as_ac_var
8665 if test "x$as_val" = x""yes; then :
8666 cat >>confdefs.h <<_ACEOF
8667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8668 _ACEOF
8671 done
8673 if test "x$ac_cv_func_fork" = xyes; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8675 $as_echo_n "checking for working fork... " >&6; }
8676 if test "${ac_cv_func_fork_works+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 if test "$cross_compiling" = yes; then :
8680 ac_cv_func_fork_works=cross
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 $ac_includes_default
8686 main ()
8689 /* By Ruediger Kuhlmann. */
8690 return fork () < 0;
8693 return 0;
8695 _ACEOF
8696 if ac_fn_c_try_run "$LINENO"; then :
8697 ac_cv_func_fork_works=yes
8698 else
8699 ac_cv_func_fork_works=no
8701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8702 conftest.$ac_objext conftest.beam conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8707 $as_echo "$ac_cv_func_fork_works" >&6; }
8709 else
8710 ac_cv_func_fork_works=$ac_cv_func_fork
8712 if test "x$ac_cv_func_fork_works" = xcross; then
8713 case $host in
8714 *-*-amigaos* | *-*-msdosdjgpp*)
8715 # Override, as these systems have only a dummy fork() stub
8716 ac_cv_func_fork_works=no
8719 ac_cv_func_fork_works=yes
8721 esac
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8723 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8725 ac_cv_func_vfork_works=$ac_cv_func_vfork
8726 if test "x$ac_cv_func_vfork" = xyes; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8728 $as_echo_n "checking for working vfork... " >&6; }
8729 if test "${ac_cv_func_vfork_works+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test "$cross_compiling" = yes; then :
8733 ac_cv_func_vfork_works=cross
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 /* Thanks to Paul Eggert for this test. */
8738 $ac_includes_default
8739 #include <sys/wait.h>
8740 #ifdef HAVE_VFORK_H
8741 # include <vfork.h>
8742 #endif
8743 /* On some sparc systems, changes by the child to local and incoming
8744 argument registers are propagated back to the parent. The compiler
8745 is told about this with #include <vfork.h>, but some compilers
8746 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8747 static variable whose address is put into a register that is
8748 clobbered by the vfork. */
8749 static void
8750 #ifdef __cplusplus
8751 sparc_address_test (int arg)
8752 # else
8753 sparc_address_test (arg) int arg;
8754 #endif
8756 static pid_t child;
8757 if (!child) {
8758 child = vfork ();
8759 if (child < 0) {
8760 perror ("vfork");
8761 _exit(2);
8763 if (!child) {
8764 arg = getpid();
8765 write(-1, "", 0);
8766 _exit (arg);
8772 main ()
8774 pid_t parent = getpid ();
8775 pid_t child;
8777 sparc_address_test (0);
8779 child = vfork ();
8781 if (child == 0) {
8782 /* Here is another test for sparc vfork register problems. This
8783 test uses lots of local variables, at least as many local
8784 variables as main has allocated so far including compiler
8785 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8786 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8787 reuse the register of parent for one of the local variables,
8788 since it will think that parent can't possibly be used any more
8789 in this routine. Assigning to the local variable will thus
8790 munge parent in the parent process. */
8791 pid_t
8792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8794 /* Convince the compiler that p..p7 are live; otherwise, it might
8795 use the same hardware register for all 8 local variables. */
8796 if (p != p1 || p != p2 || p != p3 || p != p4
8797 || p != p5 || p != p6 || p != p7)
8798 _exit(1);
8800 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8801 from child file descriptors. If the child closes a descriptor
8802 before it execs or exits, this munges the parent's descriptor
8803 as well. Test for this by closing stdout in the child. */
8804 _exit(close(fileno(stdout)) != 0);
8805 } else {
8806 int status;
8807 struct stat st;
8809 while (wait(&status) != child)
8811 return (
8812 /* Was there some problem with vforking? */
8813 child < 0
8815 /* Did the child fail? (This shouldn't happen.) */
8816 || status
8818 /* Did the vfork/compiler bug occur? */
8819 || parent != getpid()
8821 /* Did the file descriptor bug occur? */
8822 || fstat(fileno(stdout), &st) != 0
8826 _ACEOF
8827 if ac_fn_c_try_run "$LINENO"; then :
8828 ac_cv_func_vfork_works=yes
8829 else
8830 ac_cv_func_vfork_works=no
8832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8833 conftest.$ac_objext conftest.beam conftest.$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8838 $as_echo "$ac_cv_func_vfork_works" >&6; }
8841 if test "x$ac_cv_func_fork_works" = xcross; then
8842 ac_cv_func_vfork_works=$ac_cv_func_vfork
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8844 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8847 if test "x$ac_cv_func_vfork_works" = xyes; then
8849 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8851 else
8853 $as_echo "#define vfork fork" >>confdefs.h
8856 if test "x$ac_cv_func_fork_works" = xyes; then
8858 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8864 if test "X$prefix" = "XNONE"; then
8865 acl_final_prefix="$ac_default_prefix"
8866 else
8867 acl_final_prefix="$prefix"
8869 if test "X$exec_prefix" = "XNONE"; then
8870 acl_final_exec_prefix='${prefix}'
8871 else
8872 acl_final_exec_prefix="$exec_prefix"
8874 acl_save_prefix="$prefix"
8875 prefix="$acl_final_prefix"
8876 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8877 prefix="$acl_save_prefix"
8880 # Check whether --with-gnu-ld was given.
8881 if test "${with_gnu_ld+set}" = set; then :
8882 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8883 else
8884 with_gnu_ld=no
8887 # Prepare PATH_SEPARATOR.
8888 # The user is always right.
8889 if test "${PATH_SEPARATOR+set}" != set; then
8890 echo "#! /bin/sh" >conf$$.sh
8891 echo "exit 0" >>conf$$.sh
8892 chmod +x conf$$.sh
8893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8894 PATH_SEPARATOR=';'
8895 else
8896 PATH_SEPARATOR=:
8898 rm -f conf$$.sh
8900 ac_prog=ld
8901 if test "$GCC" = yes; then
8902 # Check if gcc -print-prog-name=ld gives a path.
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8904 $as_echo_n "checking for ld used by GCC... " >&6; }
8905 case $host in
8906 *-*-mingw*)
8907 # gcc leaves a trailing carriage return which upsets mingw
8908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8911 esac
8912 case $ac_prog in
8913 # Accept absolute paths.
8914 [\\/]* | [A-Za-z]:[\\/]*)
8915 re_direlt='/[^/][^/]*/\.\./'
8916 # Canonicalize the path of ld
8917 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8918 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8919 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8920 done
8921 test -z "$LD" && LD="$ac_prog"
8924 # If it fails, then pretend we aren't using GCC.
8925 ac_prog=ld
8928 # If it is relative, then search for the first ld in PATH.
8929 with_gnu_ld=unknown
8931 esac
8932 elif test "$with_gnu_ld" = yes; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8934 $as_echo_n "checking for GNU ld... " >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8937 $as_echo_n "checking for non-GNU ld... " >&6; }
8939 if test "${acl_cv_path_LD+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 if test -z "$LD"; then
8943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8944 for ac_dir in $PATH; do
8945 test -z "$ac_dir" && ac_dir=.
8946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8947 acl_cv_path_LD="$ac_dir/$ac_prog"
8948 # Check to see if the program is GNU ld. I'd rather use --version,
8949 # but apparently some GNU ld's only accept -v.
8950 # Break only if it was the GNU/non-GNU ld that we prefer.
8951 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8952 test "$with_gnu_ld" != no && break
8953 else
8954 test "$with_gnu_ld" != yes && break
8957 done
8958 IFS="$ac_save_ifs"
8959 else
8960 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8964 LD="$acl_cv_path_LD"
8965 if test -n "$LD"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8967 $as_echo "$LD" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8972 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8974 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8975 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8979 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8980 acl_cv_prog_gnu_ld=yes
8981 else
8982 acl_cv_prog_gnu_ld=no
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8986 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8987 with_gnu_ld=$acl_cv_prog_gnu_ld
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8992 $as_echo_n "checking for shared library run path origin... " >&6; }
8993 if test "${acl_cv_rpath+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8997 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8998 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8999 . ./conftest.sh
9000 rm -f ./conftest.sh
9001 acl_cv_rpath=done
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9005 $as_echo "$acl_cv_rpath" >&6; }
9006 wl="$acl_cv_wl"
9007 libext="$acl_cv_libext"
9008 shlibext="$acl_cv_shlibext"
9009 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9010 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9011 hardcode_direct="$acl_cv_hardcode_direct"
9012 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9013 # Check whether --enable-rpath was given.
9014 if test "${enable_rpath+set}" = set; then :
9015 enableval=$enable_rpath; :
9016 else
9017 enable_rpath=yes
9027 use_additional=yes
9029 acl_save_prefix="$prefix"
9030 prefix="$acl_final_prefix"
9031 acl_save_exec_prefix="$exec_prefix"
9032 exec_prefix="$acl_final_exec_prefix"
9034 eval additional_includedir=\"$includedir\"
9035 eval additional_libdir=\"$libdir\"
9037 exec_prefix="$acl_save_exec_prefix"
9038 prefix="$acl_save_prefix"
9041 # Check whether --with-libiconv-prefix was given.
9042 if test "${with_libiconv_prefix+set}" = set; then :
9043 withval=$with_libiconv_prefix;
9044 if test "X$withval" = "Xno"; then
9045 use_additional=no
9046 else
9047 if test "X$withval" = "X"; then
9049 acl_save_prefix="$prefix"
9050 prefix="$acl_final_prefix"
9051 acl_save_exec_prefix="$exec_prefix"
9052 exec_prefix="$acl_final_exec_prefix"
9054 eval additional_includedir=\"$includedir\"
9055 eval additional_libdir=\"$libdir\"
9057 exec_prefix="$acl_save_exec_prefix"
9058 prefix="$acl_save_prefix"
9060 else
9061 additional_includedir="$withval/include"
9062 additional_libdir="$withval/lib"
9068 LIBICONV=
9069 LTLIBICONV=
9070 INCICONV=
9071 rpathdirs=
9072 ltrpathdirs=
9073 names_already_handled=
9074 names_next_round='iconv '
9075 while test -n "$names_next_round"; do
9076 names_this_round="$names_next_round"
9077 names_next_round=
9078 for name in $names_this_round; do
9079 already_handled=
9080 for n in $names_already_handled; do
9081 if test "$n" = "$name"; then
9082 already_handled=yes
9083 break
9085 done
9086 if test -z "$already_handled"; then
9087 names_already_handled="$names_already_handled $name"
9088 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9089 eval value=\"\$HAVE_LIB$uppername\"
9090 if test -n "$value"; then
9091 if test "$value" = yes; then
9092 eval value=\"\$LIB$uppername\"
9093 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9094 eval value=\"\$LTLIB$uppername\"
9095 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9096 else
9099 else
9100 found_dir=
9101 found_la=
9102 found_so=
9103 found_a=
9104 if test $use_additional = yes; then
9105 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9106 found_dir="$additional_libdir"
9107 found_so="$additional_libdir/lib$name.$shlibext"
9108 if test -f "$additional_libdir/lib$name.la"; then
9109 found_la="$additional_libdir/lib$name.la"
9111 else
9112 if test -f "$additional_libdir/lib$name.$libext"; then
9113 found_dir="$additional_libdir"
9114 found_a="$additional_libdir/lib$name.$libext"
9115 if test -f "$additional_libdir/lib$name.la"; then
9116 found_la="$additional_libdir/lib$name.la"
9121 if test "X$found_dir" = "X"; then
9122 for x in $LDFLAGS $LTLIBICONV; do
9124 acl_save_prefix="$prefix"
9125 prefix="$acl_final_prefix"
9126 acl_save_exec_prefix="$exec_prefix"
9127 exec_prefix="$acl_final_exec_prefix"
9128 eval x=\"$x\"
9129 exec_prefix="$acl_save_exec_prefix"
9130 prefix="$acl_save_prefix"
9132 case "$x" in
9133 -L*)
9134 dir=`echo "X$x" | sed -e 's/^X-L//'`
9135 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9136 found_dir="$dir"
9137 found_so="$dir/lib$name.$shlibext"
9138 if test -f "$dir/lib$name.la"; then
9139 found_la="$dir/lib$name.la"
9141 else
9142 if test -f "$dir/lib$name.$libext"; then
9143 found_dir="$dir"
9144 found_a="$dir/lib$name.$libext"
9145 if test -f "$dir/lib$name.la"; then
9146 found_la="$dir/lib$name.la"
9151 esac
9152 if test "X$found_dir" != "X"; then
9153 break
9155 done
9157 if test "X$found_dir" != "X"; then
9158 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9159 if test "X$found_so" != "X"; then
9160 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9162 else
9163 haveit=
9164 for x in $ltrpathdirs; do
9165 if test "X$x" = "X$found_dir"; then
9166 haveit=yes
9167 break
9169 done
9170 if test -z "$haveit"; then
9171 ltrpathdirs="$ltrpathdirs $found_dir"
9173 if test "$hardcode_direct" = yes; then
9174 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9175 else
9176 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9177 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9178 haveit=
9179 for x in $rpathdirs; do
9180 if test "X$x" = "X$found_dir"; then
9181 haveit=yes
9182 break
9184 done
9185 if test -z "$haveit"; then
9186 rpathdirs="$rpathdirs $found_dir"
9188 else
9189 haveit=
9190 for x in $LDFLAGS $LIBICONV; do
9192 acl_save_prefix="$prefix"
9193 prefix="$acl_final_prefix"
9194 acl_save_exec_prefix="$exec_prefix"
9195 exec_prefix="$acl_final_exec_prefix"
9196 eval x=\"$x\"
9197 exec_prefix="$acl_save_exec_prefix"
9198 prefix="$acl_save_prefix"
9200 if test "X$x" = "X-L$found_dir"; then
9201 haveit=yes
9202 break
9204 done
9205 if test -z "$haveit"; then
9206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9208 if test "$hardcode_minus_L" != no; then
9209 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9210 else
9211 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9216 else
9217 if test "X$found_a" != "X"; then
9218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9219 else
9220 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9223 additional_includedir=
9224 case "$found_dir" in
9225 */lib | */lib/)
9226 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9227 additional_includedir="$basedir/include"
9229 esac
9230 if test "X$additional_includedir" != "X"; then
9231 if test "X$additional_includedir" != "X/usr/include"; then
9232 haveit=
9233 if test "X$additional_includedir" = "X/usr/local/include"; then
9234 if test -n "$GCC"; then
9235 case $host_os in
9236 linux*) haveit=yes;;
9237 esac
9240 if test -z "$haveit"; then
9241 for x in $CPPFLAGS $INCICONV; do
9243 acl_save_prefix="$prefix"
9244 prefix="$acl_final_prefix"
9245 acl_save_exec_prefix="$exec_prefix"
9246 exec_prefix="$acl_final_exec_prefix"
9247 eval x=\"$x\"
9248 exec_prefix="$acl_save_exec_prefix"
9249 prefix="$acl_save_prefix"
9251 if test "X$x" = "X-I$additional_includedir"; then
9252 haveit=yes
9253 break
9255 done
9256 if test -z "$haveit"; then
9257 if test -d "$additional_includedir"; then
9258 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9264 if test -n "$found_la"; then
9265 save_libdir="$libdir"
9266 case "$found_la" in
9267 */* | *\\*) . "$found_la" ;;
9268 *) . "./$found_la" ;;
9269 esac
9270 libdir="$save_libdir"
9271 for dep in $dependency_libs; do
9272 case "$dep" in
9273 -L*)
9274 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9275 if test "X$additional_libdir" != "X/usr/lib"; then
9276 haveit=
9277 if test "X$additional_libdir" = "X/usr/local/lib"; then
9278 if test -n "$GCC"; then
9279 case $host_os in
9280 linux*) haveit=yes;;
9281 esac
9284 if test -z "$haveit"; then
9285 haveit=
9286 for x in $LDFLAGS $LIBICONV; do
9288 acl_save_prefix="$prefix"
9289 prefix="$acl_final_prefix"
9290 acl_save_exec_prefix="$exec_prefix"
9291 exec_prefix="$acl_final_exec_prefix"
9292 eval x=\"$x\"
9293 exec_prefix="$acl_save_exec_prefix"
9294 prefix="$acl_save_prefix"
9296 if test "X$x" = "X-L$additional_libdir"; then
9297 haveit=yes
9298 break
9300 done
9301 if test -z "$haveit"; then
9302 if test -d "$additional_libdir"; then
9303 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9306 haveit=
9307 for x in $LDFLAGS $LTLIBICONV; do
9309 acl_save_prefix="$prefix"
9310 prefix="$acl_final_prefix"
9311 acl_save_exec_prefix="$exec_prefix"
9312 exec_prefix="$acl_final_exec_prefix"
9313 eval x=\"$x\"
9314 exec_prefix="$acl_save_exec_prefix"
9315 prefix="$acl_save_prefix"
9317 if test "X$x" = "X-L$additional_libdir"; then
9318 haveit=yes
9319 break
9321 done
9322 if test -z "$haveit"; then
9323 if test -d "$additional_libdir"; then
9324 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9330 -R*)
9331 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9332 if test "$enable_rpath" != no; then
9333 haveit=
9334 for x in $rpathdirs; do
9335 if test "X$x" = "X$dir"; then
9336 haveit=yes
9337 break
9339 done
9340 if test -z "$haveit"; then
9341 rpathdirs="$rpathdirs $dir"
9343 haveit=
9344 for x in $ltrpathdirs; do
9345 if test "X$x" = "X$dir"; then
9346 haveit=yes
9347 break
9349 done
9350 if test -z "$haveit"; then
9351 ltrpathdirs="$ltrpathdirs $dir"
9355 -l*)
9356 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9358 *.la)
9359 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9365 esac
9366 done
9368 else
9369 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9374 done
9375 done
9376 if test "X$rpathdirs" != "X"; then
9377 if test -n "$hardcode_libdir_separator"; then
9378 alldirs=
9379 for found_dir in $rpathdirs; do
9380 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9381 done
9382 acl_save_libdir="$libdir"
9383 libdir="$alldirs"
9384 eval flag=\"$hardcode_libdir_flag_spec\"
9385 libdir="$acl_save_libdir"
9386 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9387 else
9388 for found_dir in $rpathdirs; do
9389 acl_save_libdir="$libdir"
9390 libdir="$found_dir"
9391 eval flag=\"$hardcode_libdir_flag_spec\"
9392 libdir="$acl_save_libdir"
9393 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9394 done
9397 if test "X$ltrpathdirs" != "X"; then
9398 for found_dir in $ltrpathdirs; do
9399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9400 done
9409 am_save_CPPFLAGS="$CPPFLAGS"
9411 for element in $INCICONV; do
9412 haveit=
9413 for x in $CPPFLAGS; do
9415 acl_save_prefix="$prefix"
9416 prefix="$acl_final_prefix"
9417 acl_save_exec_prefix="$exec_prefix"
9418 exec_prefix="$acl_final_exec_prefix"
9419 eval x=\"$x\"
9420 exec_prefix="$acl_save_exec_prefix"
9421 prefix="$acl_save_prefix"
9423 if test "X$x" = "X$element"; then
9424 haveit=yes
9425 break
9427 done
9428 if test -z "$haveit"; then
9429 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9431 done
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9435 $as_echo_n "checking for iconv... " >&6; }
9436 if test "${am_cv_func_iconv+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9440 am_cv_func_iconv="no, consider installing GNU libiconv"
9441 am_cv_lib_iconv=no
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <stdlib.h>
9445 #include <iconv.h>
9447 main ()
9449 iconv_t cd = iconv_open("","");
9450 iconv(cd,NULL,NULL,NULL,NULL);
9451 iconv_close(cd);
9453 return 0;
9455 _ACEOF
9456 if ac_fn_c_try_link "$LINENO"; then :
9457 am_cv_func_iconv=yes
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 if test "$am_cv_func_iconv" != yes; then
9462 am_save_LIBS="$LIBS"
9463 LIBS="$LIBS $LIBICONV"
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <stdlib.h>
9467 #include <iconv.h>
9469 main ()
9471 iconv_t cd = iconv_open("","");
9472 iconv(cd,NULL,NULL,NULL,NULL);
9473 iconv_close(cd);
9475 return 0;
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479 am_cv_lib_iconv=yes
9480 am_cv_func_iconv=yes
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 LIBS="$am_save_LIBS"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9489 $as_echo "$am_cv_func_iconv" >&6; }
9490 if test "$am_cv_func_iconv" = yes; then
9492 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9495 if test "$am_cv_lib_iconv" = yes; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9497 $as_echo_n "checking how to link with libiconv... " >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9499 $as_echo "$LIBICONV" >&6; }
9500 else
9501 CPPFLAGS="$am_save_CPPFLAGS"
9502 LIBICONV=
9503 LTLIBICONV=
9508 if test "$am_cv_func_iconv" = yes; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9510 $as_echo_n "checking for iconv declaration... " >&6; }
9511 if test "${am_cv_proto_iconv+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9518 #include <stdlib.h>
9519 #include <iconv.h>
9520 extern
9521 #ifdef __cplusplus
9523 #endif
9524 #if defined(__STDC__) || defined(__cplusplus)
9525 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9526 #else
9527 size_t iconv();
9528 #endif
9531 main ()
9535 return 0;
9537 _ACEOF
9538 if ac_fn_c_try_compile "$LINENO"; then :
9539 am_cv_proto_iconv_arg1=""
9540 else
9541 am_cv_proto_iconv_arg1="const"
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 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);"
9547 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9549 }$am_cv_proto_iconv" >&5
9550 $as_echo "${ac_t:-
9551 }$am_cv_proto_iconv" >&6; }
9553 cat >>confdefs.h <<_ACEOF
9554 #define ICONV_CONST $am_cv_proto_iconv_arg1
9555 _ACEOF
9559 # Until we have in-tree GNU iconv:
9560 LIBICONV_DEP=
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9565 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9566 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 #include <locale.h>
9573 main ()
9575 return LC_MESSAGES
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 am_cv_val_LC_MESSAGES=yes
9582 else
9583 am_cv_val_LC_MESSAGES=no
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9589 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9590 if test $am_cv_val_LC_MESSAGES = yes; then
9592 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9599 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9600 if test "${am_cv_langinfo_codeset+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 #include <langinfo.h>
9607 main ()
9609 char* cs = nl_langinfo(CODESET);
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 am_cv_langinfo_codeset=yes
9616 else
9617 am_cv_langinfo_codeset=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9624 $as_echo "$am_cv_langinfo_codeset" >&6; }
9625 if test $am_cv_langinfo_codeset = yes; then
9627 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9632 # We will need to find libiberty.h and ansidecl.h
9633 saved_CFLAGS="$CFLAGS"
9634 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9635 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9636 strsignal strstr strverscmp \
9637 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9638 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
9640 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9642 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9643 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #undef $ac_tr_decl
9649 #define $ac_tr_decl 1
9651 #include "ansidecl.h"
9652 #include "system.h"
9655 main ()
9657 #ifndef $ac_func
9658 char *(*pfn) = (char *(*)) $ac_func ;
9659 #endif
9661 return 0;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 eval "gcc_cv_have_decl_$ac_func=yes"
9666 else
9667 eval "gcc_cv_have_decl_$ac_func=no"
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9674 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9675 #define $ac_tr_decl 1
9676 _ACEOF
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9681 #define $ac_tr_decl 0
9682 _ACEOF
9686 done
9689 for ac_func in getrlimit setrlimit getrusage
9691 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9693 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9694 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #undef $ac_tr_decl
9700 #define $ac_tr_decl 1
9702 #include "ansidecl.h"
9703 #include "system.h"
9704 #ifdef HAVE_SYS_RESOURCE_H
9705 #include <sys/resource.h>
9706 #endif
9710 main ()
9712 #ifndef $ac_func
9713 char *(*pfn) = (char *(*)) $ac_func ;
9714 #endif
9716 return 0;
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720 eval "gcc_cv_have_decl_$ac_func=yes"
9721 else
9722 eval "gcc_cv_have_decl_$ac_func=no"
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9729 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9730 #define $ac_tr_decl 1
9731 _ACEOF
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9736 #define $ac_tr_decl 0
9737 _ACEOF
9741 done
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9747 #include "ansidecl.h"
9748 #include "system.h"
9749 #ifdef HAVE_SYS_RESOURCE_H
9750 #include <sys/resource.h>
9751 #endif
9754 main ()
9756 rlim_t l = 0;
9758 return 0;
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"; then :
9763 else
9765 $as_echo "#define rlim_t long" >>confdefs.h
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9770 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9771 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9772 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9773 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9774 for ac_func in ldgetname
9776 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9778 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9779 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #undef $ac_tr_decl
9785 #define $ac_tr_decl 1
9787 #include "ansidecl.h"
9788 #include "system.h"
9789 #ifdef HAVE_LDFCN_H
9790 #undef FREAD
9791 #undef FWRITE
9792 #include <ldfcn.h>
9793 #endif
9797 main ()
9799 #ifndef $ac_func
9800 char *(*pfn) = (char *(*)) $ac_func ;
9801 #endif
9803 return 0;
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"; then :
9807 eval "gcc_cv_have_decl_$ac_func=yes"
9808 else
9809 eval "gcc_cv_have_decl_$ac_func=no"
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9816 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9817 #define $ac_tr_decl 1
9818 _ACEOF
9820 else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9823 #define $ac_tr_decl 0
9824 _ACEOF
9828 done
9831 for ac_func in times
9833 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9836 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #undef $ac_tr_decl
9842 #define $ac_tr_decl 1
9844 #include "ansidecl.h"
9845 #include "system.h"
9846 #ifdef HAVE_SYS_TIMES_H
9847 #include <sys/times.h>
9848 #endif
9852 main ()
9854 #ifndef $ac_func
9855 char *(*pfn) = (char *(*)) $ac_func ;
9856 #endif
9858 return 0;
9860 _ACEOF
9861 if ac_fn_c_try_compile "$LINENO"; then :
9862 eval "gcc_cv_have_decl_$ac_func=yes"
9863 else
9864 eval "gcc_cv_have_decl_$ac_func=no"
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9872 #define $ac_tr_decl 1
9873 _ACEOF
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9878 #define $ac_tr_decl 0
9879 _ACEOF
9883 done
9886 for ac_func in sigaltstack
9888 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9890 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9891 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 #undef $ac_tr_decl
9897 #define $ac_tr_decl 1
9899 #include "ansidecl.h"
9900 #include "system.h"
9901 #include <signal.h>
9905 main ()
9907 #ifndef $ac_func
9908 char *(*pfn) = (char *(*)) $ac_func ;
9909 #endif
9911 return 0;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 eval "gcc_cv_have_decl_$ac_func=yes"
9916 else
9917 eval "gcc_cv_have_decl_$ac_func=no"
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9925 #define $ac_tr_decl 1
9926 _ACEOF
9928 else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9931 #define $ac_tr_decl 0
9932 _ACEOF
9936 done
9939 # More time-related stuff.
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9941 $as_echo_n "checking for struct tms... " >&6; }
9942 if test "${ac_cv_struct_tms+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 #include "ansidecl.h"
9950 #include "system.h"
9951 #ifdef HAVE_SYS_TIMES_H
9952 #include <sys/times.h>
9953 #endif
9956 main ()
9958 struct tms tms;
9960 return 0;
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964 ac_cv_struct_tms=yes
9965 else
9966 ac_cv_struct_tms=no
9968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9971 $as_echo "$ac_cv_struct_tms" >&6; }
9972 if test $ac_cv_struct_tms = yes; then
9974 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9978 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9979 # revisit after autoconf 2.50.
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9981 $as_echo_n "checking for clock_t... " >&6; }
9982 if test "${gcc_cv_type_clock_t+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 #include "ansidecl.h"
9990 #include "system.h"
9993 main ()
9995 clock_t x;
9997 return 0;
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"; then :
10001 gcc_cv_type_clock_t=yes
10002 else
10003 gcc_cv_type_clock_t=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10008 $as_echo "$gcc_cv_type_clock_t" >&6; }
10009 if test $gcc_cv_type_clock_t = yes; then
10011 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10015 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10016 CFLAGS="$saved_CFLAGS"
10018 # Check whether --enable-initfini-array was given.
10019 if test "${enable_initfini_array+set}" = set; then :
10020 enableval=$enable_initfini_array;
10021 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10024 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10025 if test "${gcc_cv_initfini_array+set}" = set; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 if test "$cross_compiling" = yes; then :
10029 gcc_cv_initfini_array=no
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10034 static int x = -1;
10035 int main (void) { return x; }
10036 int foo (void) { x = 0; }
10037 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10038 _ACEOF
10039 if ac_fn_c_try_run "$LINENO"; then :
10040 gcc_cv_initfini_array=yes
10041 else
10042 gcc_cv_initfini_array=no
10044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10045 conftest.$ac_objext conftest.beam conftest.$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10050 $as_echo "$gcc_cv_initfini_array" >&6; }
10051 enable_initfini_array=$gcc_cv_initfini_array
10055 if test $enable_initfini_array = yes; then
10057 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10061 # mkdir takes a single argument on some systems.
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10063 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10064 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 #include <sys/types.h>
10071 #ifdef HAVE_SYS_STAT_H
10072 # include <sys/stat.h>
10073 #endif
10074 #ifdef HAVE_UNISTD_H
10075 # include <unistd.h>
10076 #endif
10077 #ifdef HAVE_DIRECT_H
10078 # include <direct.h>
10079 #endif
10081 main ()
10083 mkdir ("foo", 0);
10085 return 0;
10087 _ACEOF
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 gcc_cv_mkdir_takes_one_arg=no
10090 else
10091 gcc_cv_mkdir_takes_one_arg=yes
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10096 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10097 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10099 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10104 # File extensions
10105 manext='.1'
10106 objext='.o'
10110 # With Setjmp/Longjmp based exception handling.
10111 # Check whether --enable-sjlj-exceptions was given.
10112 if test "${enable_sjlj_exceptions+set}" = set; then :
10113 enableval=$enable_sjlj_exceptions; case $target in
10114 *-*-hpux10*)
10115 if test $enableval != yes; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10117 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10118 enableval=yes
10121 esac
10122 force_sjlj_exceptions=yes
10123 else
10124 case $target in
10125 *-*-hpux10*)
10126 force_sjlj_exceptions=yes
10127 enableval=yes
10130 force_sjlj_exceptions=no
10132 esac
10135 if test $force_sjlj_exceptions = yes; then
10136 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10138 cat >>confdefs.h <<_ACEOF
10139 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10140 _ACEOF
10144 # For platforms with the unwind ABI which includes an unwind library,
10145 # libunwind, we can choose to use the system libunwind.
10146 # config.gcc also contains tests of with_system_libunwind.
10149 # Check whether --with-system-libunwind was given.
10150 if test "${with_system_libunwind+set}" = set; then :
10151 withval=$with_system_libunwind;
10154 # If system-libunwind was not specifically set, pick a default setting.
10155 if test x$with_system_libunwind = x; then
10156 case ${target} in
10157 ia64-*-hpux*) with_system_libunwind=yes ;;
10158 *) with_system_libunwind=no ;;
10159 esac
10161 # Based on system-libunwind and target, do we have ipinfo?
10162 if test x$with_system_libunwind = xyes; then
10163 case ${target} in
10164 ia64-*-*) have_unwind_getipinfo=no ;;
10165 *) have_unwind_getipinfo=yes ;;
10166 esac
10167 else
10168 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10170 case ${target} in
10171 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10172 *) have_unwind_getipinfo=yes ;;
10173 esac
10177 if test x$have_unwind_getipinfo = xyes; then
10179 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10184 # --------------------------------------------------------
10185 # Build, host, and target specific configuration fragments
10186 # --------------------------------------------------------
10188 # Collect build-machine-specific information.
10189 . ${srcdir}/config.build
10191 # Collect host-machine-specific information.
10192 . ${srcdir}/config.host
10194 target_gtfiles=
10196 # Collect target-machine-specific information.
10197 . ${srcdir}/config.gcc
10199 extra_objs="${host_extra_objs} ${extra_objs}"
10200 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10202 # Default the target-machine variables that were not explicitly set.
10203 if test x"$tm_file" = x
10204 then tm_file=$cpu_type/$cpu_type.h; fi
10206 if test x"$extra_headers" = x
10207 then extra_headers=; fi
10209 if test x$md_file = x
10210 then md_file=$cpu_type/$cpu_type.md; fi
10212 if test x$out_file = x
10213 then out_file=$cpu_type/$cpu_type.c; fi
10215 if test x"$tmake_file" = x
10216 then tmake_file=$cpu_type/t-$cpu_type
10219 if test x"$dwarf2" = xyes
10220 then tm_file="$tm_file tm-dwarf2.h"
10223 # Say what files are being used for the output code and MD file.
10224 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10225 echo "Using \`$srcdir/config/$md_file' as machine description file."
10227 # If any of the xm_file variables contain nonexistent files, warn
10228 # about them and drop them.
10231 for x in $build_xm_file; do
10232 if test -f $srcdir/config/$x
10233 then bx="$bx $x"
10234 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10235 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10237 done
10238 build_xm_file="$bx"
10241 for x in $host_xm_file; do
10242 if test -f $srcdir/config/$x
10243 then hx="$hx $x"
10244 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10247 done
10248 host_xm_file="$hx"
10251 for x in $xm_file; do
10252 if test -f $srcdir/config/$x
10253 then tx="$tx $x"
10254 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10257 done
10258 xm_file="$tx"
10260 count=a
10261 for f in $tm_file; do
10262 count=${count}x
10263 done
10264 if test $count = ax; then
10265 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10266 else
10267 echo "Using the following target machine macro files:"
10268 for f in $tm_file; do
10269 echo " $srcdir/config/$f"
10270 done
10273 if test x$need_64bit_hwint = xyes; then
10275 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10279 if test x$use_long_long_for_widest_fast_int = xyes; then
10281 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10285 count=a
10286 for f in $host_xm_file; do
10287 count=${count}x
10288 done
10289 if test $count = a; then
10291 elif test $count = ax; then
10292 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10293 else
10294 echo "Using the following host machine macro files:"
10295 for f in $host_xm_file; do
10296 echo " $srcdir/config/$f"
10297 done
10299 echo "Using ${out_host_hook_obj} for host machine hooks."
10301 if test "$host_xm_file" != "$build_xm_file"; then
10302 count=a
10303 for f in $build_xm_file; do
10304 count=${count}x
10305 done
10306 if test $count = a; then
10308 elif test $count = ax; then
10309 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10310 else
10311 echo "Using the following build machine macro files:"
10312 for f in $build_xm_file; do
10313 echo " $srcdir/config/$f"
10314 done
10318 case ${host} in
10319 powerpc*-*-darwin*)
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10321 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10322 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10328 #include <sys/cdefs.h>
10329 #include <sys/signal.h>
10330 #include <ucontext.h>
10331 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10333 _ACEOF
10334 if ac_fn_c_try_compile "$LINENO"; then :
10335 gcc_cv_mcontext_underscores=no
10336 else
10337 gcc_cv_mcontext_underscores=yes
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10342 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10343 if test $gcc_cv_mcontext_underscores = yes; then
10345 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10349 esac
10351 # ---------
10352 # Threading
10353 # ---------
10355 # Check if a valid thread package
10356 case ${enable_threads} in
10357 "" | no)
10358 # No threads
10359 target_thread_file='single'
10361 yes)
10362 # default
10363 target_thread_file='single'
10365 aix | dce | gnat | irix | posix | posix95 | rtems | \
10366 single | solaris | vxworks | win32 | mipssde)
10367 target_thread_file=${enable_threads}
10370 echo "${enable_threads} is an unknown thread package" 1>&2
10371 exit 1
10373 esac
10375 if test x${thread_file} = x; then
10376 # No thread file set by target-specific clauses in config.gcc,
10377 # so use file chosen by default logic above
10378 thread_file=${target_thread_file}
10381 # Make gthr-default.h if we have a thread file.
10382 gthread_flags=
10383 if test $thread_file != single; then
10384 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10385 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10386 rm -f gthr-default.h-t
10387 else
10388 mv -f gthr-default.h-t gthr-default.h
10390 gthread_flags=-DHAVE_GTHR_DEFAULT
10394 # --------
10395 # UNSORTED
10396 # --------
10398 use_cxa_atexit=no
10399 if test x$enable___cxa_atexit = xyes || \
10400 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10401 if test x$host = x$target; then
10402 case $host in
10403 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10404 # keyed to flag_use_cxa_atexit
10405 *-*-mingw32*)
10406 use_cxa_atexit=yes
10409 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10410 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10411 use_cxa_atexit=yes
10412 else
10413 echo "__cxa_atexit can't be enabled on this target"
10417 esac
10418 else
10419 # We can't check for __cxa_atexit when building a cross, so assume
10420 # it is available
10421 use_cxa_atexit=yes
10423 if test x$use_cxa_atexit = xyes; then
10425 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10430 # Look for a file containing extra machine modes.
10431 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10432 extra_modes_file='$(srcdir)'/config/${extra_modes}
10435 cat >>confdefs.h <<_ACEOF
10436 #define EXTRA_MODES_FILE "config/$extra_modes"
10437 _ACEOF
10441 # Convert extra_options into a form suitable for Makefile use.
10442 extra_opt_files=
10443 for f in $extra_options; do
10444 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10445 done
10448 # auto-host.h is the file containing items generated by autoconf and is
10449 # the first file included by config.h.
10450 # If host=build, it is correct to have bconfig include auto-host.h
10451 # as well. If host!=build, we are in error and need to do more
10452 # work to find out the build config parameters.
10453 if test x$host = x$build
10454 then
10455 build_auto=auto-host.h
10456 else
10457 # We create a subdir, then run autoconf in the subdir.
10458 # To prevent recursion we set host and build for the new
10459 # invocation of configure to the build for this invocation
10460 # of configure.
10461 tempdir=build.$$
10462 rm -rf $tempdir
10463 mkdir $tempdir
10464 cd $tempdir
10465 case ${srcdir} in
10466 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10467 *) realsrcdir=../${srcdir};;
10468 esac
10469 saved_CFLAGS="${CFLAGS}"
10470 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10471 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10472 ${realsrcdir}/configure \
10473 --enable-languages=${enable_languages-all} \
10474 --target=$target_alias --host=$build_alias --build=$build_alias
10475 CFLAGS="${saved_CFLAGS}"
10477 # We just finished tests for the build machine, so rename
10478 # the file auto-build.h in the gcc directory.
10479 mv auto-host.h ../auto-build.h
10480 cd ..
10481 rm -rf $tempdir
10482 build_auto=auto-build.h
10486 tm_file="${tm_file} defaults.h"
10487 tm_p_file="${tm_p_file} tm-preds.h"
10488 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10489 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10490 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10491 # put this back in temporarily.
10492 xm_file="auto-host.h ansidecl.h ${xm_file}"
10494 # --------
10495 # UNSORTED
10496 # --------
10498 # Compile in configure arguments.
10499 if test -f configargs.h ; then
10500 # Being re-configured.
10501 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10502 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10503 else
10504 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10507 # Double all backslashes and backslash all quotes to turn
10508 # gcc_config_arguments into a C string.
10509 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10510 $gcc_config_arguments
10512 gcc_config_arguments_str=`cat conftest.out`
10513 rm -f conftest.out
10515 cat > configargs.h <<EOF
10516 /* Generated automatically. */
10517 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10518 static const char thread_model[] = "$thread_file";
10520 static const struct {
10521 const char *name, *value;
10522 } configure_default_options[] = $configure_default_options;
10525 gcc_BASEVER=`cat $srcdir/BASE-VER`
10526 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10527 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10528 if test -f $srcdir/REVISION ; then
10529 gcc_REVISION=`cat $srcdir/REVISION`
10530 else
10531 gcc_REVISION=""
10533 cat > plugin-version.h <<EOF
10534 #include "configargs.h"
10536 static char basever[] = "$gcc_BASEVER";
10537 static char datestamp[] = "$gcc_DATESTAMP";
10538 static char devphase[] = "$gcc_DEVPHASE";
10539 static char revision[] = "$gcc_REVISION";
10541 /* FIXME plugins: We should make the version information more precise.
10542 One way to do is to add a checksum. */
10544 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10545 devphase, revision,
10546 configuration_arguments};
10549 # Internationalization
10550 # If we haven't got the data from the intl directory,
10551 # assume NLS is disabled.
10552 USE_NLS=no
10553 LIBINTL=
10554 LIBINTL_DEP=
10555 INCINTL=
10556 XGETTEXT=
10557 GMSGFMT=
10558 POSUB=
10560 if test -f ../intl/config.intl; then
10561 . ../intl/config.intl
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10564 $as_echo_n "checking whether NLS is requested... " >&6; }
10565 if test x"$USE_NLS" != xyes; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570 $as_echo "yes" >&6; }
10572 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10576 $as_echo_n "checking for catalogs to be installed... " >&6; }
10577 # Look for .po and .gmo files in the source directory.
10578 CATALOGS=
10579 XLINGUAS=
10580 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10581 # If there aren't any .gmo files the shell will give us the
10582 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10583 # weeded out.
10584 case "$cat" in *\**)
10585 continue;;
10586 esac
10587 # The quadruple backslash is collapsed to a double backslash
10588 # by the backticks, then collapsed again by the double quotes,
10589 # leaving us with one backslash in the sed expression (right
10590 # before the dot that mustn't act as a wildcard).
10591 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10592 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10593 # The user is allowed to set LINGUAS to a list of languages to
10594 # install catalogs for. If it's empty that means "all of them."
10595 if test "x$LINGUAS" = x; then
10596 CATALOGS="$CATALOGS $cat"
10597 XLINGUAS="$XLINGUAS $lang"
10598 else
10599 case "$LINGUAS" in *$lang*)
10600 CATALOGS="$CATALOGS $cat"
10601 XLINGUAS="$XLINGUAS $lang"
10603 esac
10605 done
10606 LINGUAS="$XLINGUAS"
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10608 $as_echo "$LINGUAS" >&6; }
10611 DATADIRNAME=share
10613 INSTOBJEXT=.mo
10615 GENCAT=gencat
10617 CATOBJEXT=.gmo
10621 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10622 # -liconv on the link line twice.
10623 case "$LIBINTL" in *$LIBICONV*)
10624 LIBICONV= ;;
10625 esac
10627 # Check whether --enable-secureplt was given.
10628 if test "${enable_secureplt+set}" = set; then :
10629 enableval=$enable_secureplt;
10633 # Check whether --enable-cld was given.
10634 if test "${enable_cld+set}" = set; then :
10635 enableval=$enable_cld;
10636 else
10637 enable_cld=no
10641 # Windows32 Registry support for specifying GCC installation paths.
10642 # Check whether --enable-win32-registry was given.
10643 if test "${enable_win32_registry+set}" = set; then :
10644 enableval=$enable_win32_registry;
10648 case $host_os in
10649 win32 | pe | cygwin* | mingw32* | uwin*)
10650 if test "x$enable_win32_registry" != xno; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10652 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10653 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 ac_func_search_save_LIBS=$LIBS
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char RegOpenKeyExA ();
10668 main ()
10670 return RegOpenKeyExA ();
10672 return 0;
10674 _ACEOF
10675 for ac_lib in '' advapi32; do
10676 if test -z "$ac_lib"; then
10677 ac_res="none required"
10678 else
10679 ac_res=-l$ac_lib
10680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10682 if ac_fn_c_try_link "$LINENO"; then :
10683 ac_cv_search_RegOpenKeyExA=$ac_res
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext
10687 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10688 break
10690 done
10691 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10693 else
10694 ac_cv_search_RegOpenKeyExA=no
10696 rm conftest.$ac_ext
10697 LIBS=$ac_func_search_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10700 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10701 ac_res=$ac_cv_search_RegOpenKeyExA
10702 if test "$ac_res" != no; then :
10703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10705 else
10706 enable_win32_registry=no
10711 if test "x$enable_win32_registry" != xno; then
10713 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10716 if test "x$enable_win32_registry" != xyes \
10717 && test "x$enable_win32_registry" != x; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10721 _ACEOF
10726 esac
10728 # Get an absolute path to the GCC top-level source directory
10729 holddir=`${PWDCMD-pwd}`
10730 cd $srcdir
10731 topdir=`${PWDCMD-pwd}`
10732 cd $holddir
10734 # Conditionalize the makefile for this host machine.
10735 xmake_file=
10736 for f in ${host_xmake_file}
10738 if test -f ${srcdir}/config/$f
10739 then
10740 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10742 done
10744 # Conditionalize the makefile for this target machine.
10745 tmake_file_=
10746 for f in ${tmake_file}
10748 if test -f ${srcdir}/config/$f
10749 then
10750 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10752 done
10753 tmake_file="${tmake_file_}"
10755 out_object_file=`basename $out_file .c`.o
10757 tm_file_list="options.h"
10758 tm_include_list="options.h"
10759 for f in $tm_file; do
10760 case $f in
10761 ./* )
10762 f=`echo $f | sed 's/^..//'`
10763 tm_file_list="${tm_file_list} $f"
10764 tm_include_list="${tm_include_list} $f"
10766 defaults.h )
10767 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10768 tm_include_list="${tm_include_list} $f"
10771 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10772 tm_include_list="${tm_include_list} config/$f"
10774 esac
10775 done
10777 tm_p_file_list=
10778 tm_p_include_list=
10779 for f in $tm_p_file; do
10780 case $f in
10781 tm-preds.h )
10782 tm_p_file_list="${tm_p_file_list} $f"
10783 tm_p_include_list="${tm_p_include_list} $f"
10786 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10787 tm_p_include_list="${tm_p_include_list} config/$f"
10788 esac
10789 done
10791 xm_file_list=
10792 xm_include_list=
10793 for f in $xm_file; do
10794 case $f in
10795 ansidecl.h )
10796 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10797 xm_include_list="${xm_include_list} $f"
10799 auto-host.h )
10800 xm_file_list="${xm_file_list} $f"
10801 xm_include_list="${xm_include_list} $f"
10804 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10805 xm_include_list="${xm_include_list} config/$f"
10807 esac
10808 done
10810 host_xm_file_list=
10811 host_xm_include_list=
10812 for f in $host_xm_file; do
10813 case $f in
10814 ansidecl.h )
10815 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10816 host_xm_include_list="${host_xm_include_list} $f"
10818 auto-host.h )
10819 host_xm_file_list="${host_xm_file_list} $f"
10820 host_xm_include_list="${host_xm_include_list} $f"
10823 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10824 host_xm_include_list="${host_xm_include_list} config/$f"
10826 esac
10827 done
10829 build_xm_file_list=
10830 for f in $build_xm_file; do
10831 case $f in
10832 ansidecl.h )
10833 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10834 build_xm_include_list="${build_xm_include_list} $f"
10836 auto-build.h | auto-host.h )
10837 build_xm_file_list="${build_xm_file_list} $f"
10838 build_xm_include_list="${build_xm_include_list} $f"
10841 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10842 build_xm_include_list="${build_xm_include_list} config/$f"
10844 esac
10845 done
10847 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10848 # cross-compiler which does not use the native headers and libraries.
10849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10850 CROSS=
10851 ALL=all.internal
10852 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10854 if test "x$with_build_sysroot" != x; then
10855 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10856 else
10857 # This value is used, even on a native system, because
10858 # CROSS_SYSTEM_HEADER_DIR is just
10859 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10860 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10863 if test x$host != x$target
10864 then
10865 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10866 ALL=all.cross
10867 SYSTEM_HEADER_DIR=$build_system_header_dir
10868 case "$host","$target" in
10869 # Darwin crosses can use the host system's libraries and headers,
10870 # because of the fat library support. Of course, it must be the
10871 # same version of Darwin on both sides. Allow the user to
10872 # just say --target=foo-darwin without a version number to mean
10873 # "the version on this system".
10874 *-*-darwin*,*-*-darwin*)
10875 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10876 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10877 if test $hostos = $targetos -o $targetos = darwin ; then
10878 CROSS=
10879 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10880 with_headers=yes
10884 i?86-*-*,x86_64-*-* \
10885 | powerpc*-*-*,powerpc64*-*-*)
10886 CROSS="$CROSS -DNATIVE_CROSS" ;;
10887 esac
10888 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10889 SYSTEM_HEADER_DIR=$build_system_header_dir
10892 # If this is a cross-compiler that does not
10893 # have its own set of headers then define
10894 # inhibit_libc
10896 # If this is using newlib, without having the headers available now,
10897 # then define inhibit_libc in LIBGCC2_CFLAGS.
10898 # This prevents libgcc2 from containing any code which requires libc
10899 # support.
10900 : ${inhibit_libc=false}
10901 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10902 test x$with_newlib = xyes ; } &&
10903 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10904 inhibit_libc=true
10908 # When building gcc with a cross-compiler, we need to adjust things so
10909 # that the generator programs are still built with the native compiler.
10910 # Also, we cannot run fixincludes.
10912 # These are the normal (build=host) settings:
10913 CC_FOR_BUILD='$(CC)'
10914 BUILD_CFLAGS='$(ALL_CFLAGS)'
10915 BUILD_LDFLAGS='$(LDFLAGS)'
10916 STMP_FIXINC=stmp-fixinc
10918 # And these apply if build != host, or we are generating coverage data
10919 if test x$build != x$host || test "x$coverage_flags" != x
10920 then
10921 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10922 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10925 # Expand extra_headers to include complete path.
10926 # This substitutes for lots of t-* files.
10927 extra_headers_list=
10928 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10929 for file in ${extra_headers} ; do
10930 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10931 done
10933 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10934 if test x"$use_gcc_tgmath" = xyes
10935 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10938 # Define collect2 in Makefile.
10939 case $host_can_use_collect2 in
10940 no) collect2= ;;
10941 *) collect2='collect2$(exeext)' ;;
10942 esac
10945 # Add a definition of USE_COLLECT2 if system wants one.
10946 case $use_collect2 in
10947 no) use_collect2= ;;
10948 "") ;;
10950 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10951 xm_defines="${xm_defines} USE_COLLECT2"
10952 case $host_can_use_collect2 in
10954 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10956 esac
10958 esac
10960 # ---------------------------
10961 # Assembler & linker features
10962 # ---------------------------
10964 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10965 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10966 # However when ld-new is first executed from the build tree, libtool will
10967 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10968 # to the build tree. While doing this we need to use the previous-stage
10969 # linker, or we have an infinite loop. The presence of a shell script as
10970 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10971 # the gcc/collect-ld script. So we need to know how libtool works, or
10972 # exec-tool will fail.
10975 case `pwd` in
10976 *\ * | *\ *)
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10978 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10979 esac
10983 macro_version='2.2.7a'
10984 macro_revision='1.3134'
10998 ltmain="$ac_aux_dir/ltmain.sh"
11000 # Backslashify metacharacters that are still active within
11001 # double-quoted strings.
11002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11004 # Same as above, but do not quote variable references.
11005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11007 # Sed substitution to delay expansion of an escaped shell variable in a
11008 # double_quote_subst'ed string.
11009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11011 # Sed substitution to delay expansion of an escaped single quote.
11012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11014 # Sed substitution to avoid accidental globbing in evaled expressions
11015 no_glob_subst='s/\*/\\\*/g'
11017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11022 $as_echo_n "checking how to print strings... " >&6; }
11023 # Test print first, because it will be a builtin if present.
11024 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11026 ECHO='print -r --'
11027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11028 ECHO='printf %s\n'
11029 else
11030 # Use this function as a fallback that always works.
11031 func_fallback_echo ()
11033 eval 'cat <<_LTECHO_EOF
11035 _LTECHO_EOF'
11037 ECHO='func_fallback_echo'
11040 # func_echo_all arg...
11041 # Invoke $ECHO with all args, space-separated.
11042 func_echo_all ()
11044 $ECHO ""
11047 case "$ECHO" in
11048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11049 $as_echo "printf" >&6; } ;;
11050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11051 $as_echo "print -r" >&6; } ;;
11052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11053 $as_echo "cat" >&6; } ;;
11054 esac
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11071 if test "${ac_cv_path_SED+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11075 for ac_i in 1 2 3 4 5 6 7; do
11076 ac_script="$ac_script$as_nl$ac_script"
11077 done
11078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11079 { ac_script=; unset ac_script;}
11080 if test -z "$SED"; then
11081 ac_path_SED_found=false
11082 # Loop through the user's path and test for each of PROGNAME-LIST
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_prog in sed gsed; do
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11091 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11092 # Check for GNU ac_path_SED and select it if it is found.
11093 # Check for GNU $ac_path_SED
11094 case `"$ac_path_SED" --version 2>&1` in
11095 *GNU*)
11096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11098 ac_count=0
11099 $as_echo_n 0123456789 >"conftest.in"
11100 while :
11102 cat "conftest.in" "conftest.in" >"conftest.tmp"
11103 mv "conftest.tmp" "conftest.in"
11104 cp "conftest.in" "conftest.nl"
11105 $as_echo '' >> "conftest.nl"
11106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11108 as_fn_arith $ac_count + 1 && ac_count=$as_val
11109 if test $ac_count -gt ${ac_path_SED_max-0}; then
11110 # Best one so far, save it but keep looking for a better one
11111 ac_cv_path_SED="$ac_path_SED"
11112 ac_path_SED_max=$ac_count
11114 # 10*(2^10) chars as input seems more than enough
11115 test $ac_count -gt 10 && break
11116 done
11117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11118 esac
11120 $ac_path_SED_found && break 3
11121 done
11122 done
11123 done
11124 IFS=$as_save_IFS
11125 if test -z "$ac_cv_path_SED"; then
11126 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11128 else
11129 ac_cv_path_SED=$SED
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11134 $as_echo "$ac_cv_path_SED" >&6; }
11135 SED="$ac_cv_path_SED"
11136 rm -f conftest.sed
11138 test -z "$SED" && SED=sed
11139 Xsed="$SED -e 1s/^X//"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11152 $as_echo_n "checking for fgrep... " >&6; }
11153 if test "${ac_cv_path_FGREP+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11157 then ac_cv_path_FGREP="$GREP -F"
11158 else
11159 if test -z "$FGREP"; then
11160 ac_path_FGREP_found=false
11161 # Loop through the user's path and test for each of PROGNAME-LIST
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_prog in fgrep; do
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11170 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11171 # Check for GNU ac_path_FGREP and select it if it is found.
11172 # Check for GNU $ac_path_FGREP
11173 case `"$ac_path_FGREP" --version 2>&1` in
11174 *GNU*)
11175 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11177 ac_count=0
11178 $as_echo_n 0123456789 >"conftest.in"
11179 while :
11181 cat "conftest.in" "conftest.in" >"conftest.tmp"
11182 mv "conftest.tmp" "conftest.in"
11183 cp "conftest.in" "conftest.nl"
11184 $as_echo 'FGREP' >> "conftest.nl"
11185 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11187 as_fn_arith $ac_count + 1 && ac_count=$as_val
11188 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11189 # Best one so far, save it but keep looking for a better one
11190 ac_cv_path_FGREP="$ac_path_FGREP"
11191 ac_path_FGREP_max=$ac_count
11193 # 10*(2^10) chars as input seems more than enough
11194 test $ac_count -gt 10 && break
11195 done
11196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11197 esac
11199 $ac_path_FGREP_found && break 3
11200 done
11201 done
11202 done
11203 IFS=$as_save_IFS
11204 if test -z "$ac_cv_path_FGREP"; then
11205 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11207 else
11208 ac_cv_path_FGREP=$FGREP
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11214 $as_echo "$ac_cv_path_FGREP" >&6; }
11215 FGREP="$ac_cv_path_FGREP"
11218 test -z "$GREP" && GREP=grep
11238 # Check whether --with-gnu-ld was given.
11239 if test "${with_gnu_ld+set}" = set; then :
11240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11241 else
11242 with_gnu_ld=no
11245 ac_prog=ld
11246 if test "$GCC" = yes; then
11247 # Check if gcc -print-prog-name=ld gives a path.
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11249 $as_echo_n "checking for ld used by $CC... " >&6; }
11250 case $host in
11251 *-*-mingw*)
11252 # gcc leaves a trailing carriage return which upsets mingw
11253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11256 esac
11257 case $ac_prog in
11258 # Accept absolute paths.
11259 [\\/]* | ?:[\\/]*)
11260 re_direlt='/[^/][^/]*/\.\./'
11261 # Canonicalize the pathname of ld
11262 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11263 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11264 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11265 done
11266 test -z "$LD" && LD="$ac_prog"
11269 # If it fails, then pretend we aren't using GCC.
11270 ac_prog=ld
11273 # If it is relative, then search for the first ld in PATH.
11274 with_gnu_ld=unknown
11276 esac
11277 elif test "$with_gnu_ld" = yes; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11279 $as_echo_n "checking for GNU ld... " >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11282 $as_echo_n "checking for non-GNU ld... " >&6; }
11284 if test "${lt_cv_path_LD+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 if test -z "$LD"; then
11288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11289 for ac_dir in $PATH; do
11290 IFS="$lt_save_ifs"
11291 test -z "$ac_dir" && ac_dir=.
11292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11293 lt_cv_path_LD="$ac_dir/$ac_prog"
11294 # Check to see if the program is GNU ld. I'd rather use --version,
11295 # but apparently some variants of GNU ld only accept -v.
11296 # Break only if it was the GNU/non-GNU ld that we prefer.
11297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11298 *GNU* | *'with BFD'*)
11299 test "$with_gnu_ld" != no && break
11302 test "$with_gnu_ld" != yes && break
11304 esac
11306 done
11307 IFS="$lt_save_ifs"
11308 else
11309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11313 LD="$lt_cv_path_LD"
11314 if test -n "$LD"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11316 $as_echo "$LD" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11321 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11328 case `$LD -v 2>&1 </dev/null` in
11329 *GNU* | *'with BFD'*)
11330 lt_cv_prog_gnu_ld=yes
11333 lt_cv_prog_gnu_ld=no
11335 esac
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11339 with_gnu_ld=$lt_cv_prog_gnu_ld
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11351 if test "${lt_cv_path_NM+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 if test -n "$NM"; then
11355 # Let the user override the test.
11356 lt_cv_path_NM="$NM"
11357 else
11358 lt_nm_to_check="${ac_tool_prefix}nm"
11359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11360 lt_nm_to_check="$lt_nm_to_check nm"
11362 for lt_tmp_nm in $lt_nm_to_check; do
11363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11364 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11365 IFS="$lt_save_ifs"
11366 test -z "$ac_dir" && ac_dir=.
11367 tmp_nm="$ac_dir/$lt_tmp_nm"
11368 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11369 # Check to see if the nm accepts a BSD-compat flag.
11370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11371 # nm: unknown option "B" ignored
11372 # Tru64's nm complains that /dev/null is an invalid object file
11373 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11374 */dev/null* | *'Invalid file or object type'*)
11375 lt_cv_path_NM="$tmp_nm -B"
11376 break
11379 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11380 */dev/null*)
11381 lt_cv_path_NM="$tmp_nm -p"
11382 break
11385 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11386 continue # so that we can try to find one that supports BSD flags
11388 esac
11390 esac
11392 done
11393 IFS="$lt_save_ifs"
11394 done
11395 : ${lt_cv_path_NM=no}
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11399 $as_echo "$lt_cv_path_NM" >&6; }
11400 if test "$lt_cv_path_NM" != "no"; then
11401 NM="$lt_cv_path_NM"
11402 else
11403 # Didn't find any BSD compatible name lister, look for dumpbin.
11404 if test -n "$DUMPBIN"; then :
11405 # Let the user override the test.
11406 else
11407 if test -n "$ac_tool_prefix"; then
11408 for ac_prog in dumpbin "link -dump"
11410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test -n "$DUMPBIN"; then
11418 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11437 DUMPBIN=$ac_cv_prog_DUMPBIN
11438 if test -n "$DUMPBIN"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11440 $as_echo "$DUMPBIN" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 test -n "$DUMPBIN" && break
11448 done
11450 if test -z "$DUMPBIN"; then
11451 ac_ct_DUMPBIN=$DUMPBIN
11452 for ac_prog in dumpbin "link -dump"
11454 # Extract the first word of "$ac_prog", so it can be a program name with args.
11455 set dummy $ac_prog; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$ac_ct_DUMPBIN"; then
11462 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11482 if test -n "$ac_ct_DUMPBIN"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11484 $as_echo "$ac_ct_DUMPBIN" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11491 test -n "$ac_ct_DUMPBIN" && break
11492 done
11494 if test "x$ac_ct_DUMPBIN" = x; then
11495 DUMPBIN=":"
11496 else
11497 case $cross_compiling:$ac_tool_warned in
11498 yes:)
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11501 ac_tool_warned=yes ;;
11502 esac
11503 DUMPBIN=$ac_ct_DUMPBIN
11507 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11508 *COFF*)
11509 DUMPBIN="$DUMPBIN -symbols"
11512 DUMPBIN=:
11514 esac
11517 if test "$DUMPBIN" != ":"; then
11518 NM="$DUMPBIN"
11521 test -z "$NM" && NM=nm
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11529 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11530 if test "${lt_cv_nm_interface+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 lt_cv_nm_interface="BSD nm"
11534 echo "int some_variable = 0;" > conftest.$ac_ext
11535 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11536 (eval "$ac_compile" 2>conftest.err)
11537 cat conftest.err >&5
11538 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11539 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11540 cat conftest.err >&5
11541 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11542 cat conftest.out >&5
11543 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11544 lt_cv_nm_interface="MS dumpbin"
11546 rm -f conftest*
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11549 $as_echo "$lt_cv_nm_interface" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11552 $as_echo_n "checking whether ln -s works... " >&6; }
11553 LN_S=$as_ln_s
11554 if test "$LN_S" = "ln -s"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11559 $as_echo "no, using $LN_S" >&6; }
11562 # find the maximum length of command line arguments
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11564 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11565 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11569 teststring="ABCD"
11571 case $build_os in
11572 msdosdjgpp*)
11573 # On DJGPP, this test can blow up pretty badly due to problems in libc
11574 # (any single argument exceeding 2000 bytes causes a buffer overrun
11575 # during glob expansion). Even if it were fixed, the result of this
11576 # check would be larger than it should be.
11577 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11580 gnu*)
11581 # Under GNU Hurd, this test is not required because there is
11582 # no limit to the length of command line arguments.
11583 # Libtool will interpret -1 as no limit whatsoever
11584 lt_cv_sys_max_cmd_len=-1;
11587 cygwin* | mingw* | cegcc*)
11588 # On Win9x/ME, this test blows up -- it succeeds, but takes
11589 # about 5 minutes as the teststring grows exponentially.
11590 # Worse, since 9x/ME are not pre-emptively multitasking,
11591 # you end up with a "frozen" computer, even though with patience
11592 # the test eventually succeeds (with a max line length of 256k).
11593 # Instead, let's just punt: use the minimum linelength reported by
11594 # all of the supported platforms: 8192 (on NT/2K/XP).
11595 lt_cv_sys_max_cmd_len=8192;
11598 mint*)
11599 # On MiNT this can take a long time and run out of memory.
11600 lt_cv_sys_max_cmd_len=8192;
11603 amigaos*)
11604 # On AmigaOS with pdksh, this test takes hours, literally.
11605 # So we just punt and use a minimum line length of 8192.
11606 lt_cv_sys_max_cmd_len=8192;
11609 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11610 # This has been around since 386BSD, at least. Likely further.
11611 if test -x /sbin/sysctl; then
11612 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11613 elif test -x /usr/sbin/sysctl; then
11614 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11615 else
11616 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11618 # And add a safety zone
11619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11623 interix*)
11624 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11625 lt_cv_sys_max_cmd_len=196608
11628 osf*)
11629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11631 # nice to cause kernel panics so lets avoid the loop below.
11632 # First set a reasonable default.
11633 lt_cv_sys_max_cmd_len=16384
11635 if test -x /sbin/sysconfig; then
11636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11637 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11638 esac
11641 sco3.2v5*)
11642 lt_cv_sys_max_cmd_len=102400
11644 sysv5* | sco5v6* | sysv4.2uw2*)
11645 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11646 if test -n "$kargmax"; then
11647 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11648 else
11649 lt_cv_sys_max_cmd_len=32768
11653 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11654 if test -n "$lt_cv_sys_max_cmd_len"; then
11655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11657 else
11658 # Make teststring a little bigger before we do anything with it.
11659 # a 1K string should be a reasonable start.
11660 for i in 1 2 3 4 5 6 7 8 ; do
11661 teststring=$teststring$teststring
11662 done
11663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11664 # If test is not a shell built-in, we'll probably end up computing a
11665 # maximum length that is only half of the actual maximum length, but
11666 # we can't tell.
11667 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11668 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11669 test $i != 17 # 1/2 MB should be enough
11671 i=`expr $i + 1`
11672 teststring=$teststring$teststring
11673 done
11674 # Only check the string length outside the loop.
11675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11676 teststring=
11677 # Add a significant safety factor because C++ compilers can tack on
11678 # massive amounts of additional arguments before passing them to the
11679 # linker. It appears as though 1/2 is a usable value.
11680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11683 esac
11687 if test -n $lt_cv_sys_max_cmd_len ; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11690 else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11692 $as_echo "none" >&6; }
11694 max_cmd_len=$lt_cv_sys_max_cmd_len
11701 : ${CP="cp -f"}
11702 : ${MV="mv -f"}
11703 : ${RM="rm -f"}
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11707 # Try some XSI features
11708 xsi_shell=no
11709 ( _lt_dummy="a/b/c"
11710 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11711 = c,a/b,, \
11712 && eval 'test $(( 1 + 1 )) -eq 2 \
11713 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11714 && xsi_shell=yes
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11716 $as_echo "$xsi_shell" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11720 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11721 lt_shell_append=no
11722 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11723 >/dev/null 2>&1 \
11724 && lt_shell_append=yes
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11726 $as_echo "$lt_shell_append" >&6; }
11729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11730 lt_unset=unset
11731 else
11732 lt_unset=false
11739 # test EBCDIC or ASCII
11740 case `echo X|tr X '\101'` in
11741 A) # ASCII based system
11742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11743 lt_SP2NL='tr \040 \012'
11744 lt_NL2SP='tr \015\012 \040\040'
11746 *) # EBCDIC based system
11747 lt_SP2NL='tr \100 \n'
11748 lt_NL2SP='tr \r\n \100\100'
11750 esac
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11761 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11762 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 lt_cv_ld_reload_flag='-r'
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11768 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11769 reload_flag=$lt_cv_ld_reload_flag
11770 case $reload_flag in
11771 "" | " "*) ;;
11772 *) reload_flag=" $reload_flag" ;;
11773 esac
11774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11775 case $host_os in
11776 darwin*)
11777 if test "$GCC" = yes; then
11778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11779 else
11780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11783 esac
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$OBJDUMP"; then
11802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11821 OBJDUMP=$ac_cv_prog_OBJDUMP
11822 if test -n "$OBJDUMP"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11824 $as_echo "$OBJDUMP" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11832 if test -z "$ac_cv_prog_OBJDUMP"; then
11833 ac_ct_OBJDUMP=$OBJDUMP
11834 # Extract the first word of "objdump", so it can be a program name with args.
11835 set dummy objdump; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test -n "$ac_ct_OBJDUMP"; then
11842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11855 done
11856 done
11857 IFS=$as_save_IFS
11861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11862 if test -n "$ac_ct_OBJDUMP"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11864 $as_echo "$ac_ct_OBJDUMP" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11870 if test "x$ac_ct_OBJDUMP" = x; then
11871 OBJDUMP="false"
11872 else
11873 case $cross_compiling:$ac_tool_warned in
11874 yes:)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877 ac_tool_warned=yes ;;
11878 esac
11879 OBJDUMP=$ac_ct_OBJDUMP
11881 else
11882 OBJDUMP="$ac_cv_prog_OBJDUMP"
11885 test -z "$OBJDUMP" && OBJDUMP=objdump
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11896 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11897 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 lt_cv_file_magic_cmd='$MAGIC_CMD'
11901 lt_cv_file_magic_test_file=
11902 lt_cv_deplibs_check_method='unknown'
11903 # Need to set the preceding variable on all platforms that support
11904 # interlibrary dependencies.
11905 # 'none' -- dependencies not supported.
11906 # `unknown' -- same as none, but documents that we really don't know.
11907 # 'pass_all' -- all dependencies passed with no checks.
11908 # 'test_compile' -- check by making test program.
11909 # 'file_magic [[regex]]' -- check by looking for files in library path
11910 # which responds to the $file_magic_cmd with a given extended regex.
11911 # If you have `file' or equivalent on your system and you're not sure
11912 # whether `pass_all' will *always* work, you probably want this one.
11914 case $host_os in
11915 aix[4-9]*)
11916 lt_cv_deplibs_check_method=pass_all
11919 beos*)
11920 lt_cv_deplibs_check_method=pass_all
11923 bsdi[45]*)
11924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11925 lt_cv_file_magic_cmd='/usr/bin/file -L'
11926 lt_cv_file_magic_test_file=/shlib/libc.so
11929 cygwin*)
11930 # func_win32_libid is a shell function defined in ltmain.sh
11931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11932 lt_cv_file_magic_cmd='func_win32_libid'
11935 mingw* | pw32*)
11936 # Base MSYS/MinGW do not provide the 'file' command needed by
11937 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11938 # unless we find 'file', for example because we are cross-compiling.
11939 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11940 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11942 lt_cv_file_magic_cmd='func_win32_libid'
11943 else
11944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11945 lt_cv_file_magic_cmd='$OBJDUMP -f'
11949 cegcc*)
11950 # use the weaker test based on 'objdump'. See mingw*.
11951 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11952 lt_cv_file_magic_cmd='$OBJDUMP -f'
11955 darwin* | rhapsody*)
11956 lt_cv_deplibs_check_method=pass_all
11959 freebsd* | dragonfly*)
11960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11961 case $host_cpu in
11962 i*86 )
11963 # Not sure whether the presence of OpenBSD here was a mistake.
11964 # Let's accept both of them until this is cleared up.
11965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11966 lt_cv_file_magic_cmd=/usr/bin/file
11967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11969 esac
11970 else
11971 lt_cv_deplibs_check_method=pass_all
11975 gnu*)
11976 lt_cv_deplibs_check_method=pass_all
11979 haiku*)
11980 lt_cv_deplibs_check_method=pass_all
11983 hpux10.20* | hpux11*)
11984 lt_cv_file_magic_cmd=/usr/bin/file
11985 case $host_cpu in
11986 ia64*)
11987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11990 hppa*64*)
11991 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]'
11992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11998 esac
12001 interix[3-9]*)
12002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12006 irix5* | irix6* | nonstopux*)
12007 case $LD in
12008 *-32|*"-32 ") libmagic=32-bit;;
12009 *-n32|*"-n32 ") libmagic=N32;;
12010 *-64|*"-64 ") libmagic=64-bit;;
12011 *) libmagic=never-match;;
12012 esac
12013 lt_cv_deplibs_check_method=pass_all
12016 # This must be Linux ELF.
12017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12018 lt_cv_deplibs_check_method=pass_all
12021 netbsd*)
12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12024 else
12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12029 newos6*)
12030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12031 lt_cv_file_magic_cmd=/usr/bin/file
12032 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12035 *nto* | *qnx*)
12036 lt_cv_deplibs_check_method=pass_all
12039 openbsd*)
12040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12042 else
12043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12047 osf3* | osf4* | osf5*)
12048 lt_cv_deplibs_check_method=pass_all
12051 rdos*)
12052 lt_cv_deplibs_check_method=pass_all
12055 solaris*)
12056 lt_cv_deplibs_check_method=pass_all
12059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12060 lt_cv_deplibs_check_method=pass_all
12063 sysv4 | sysv4.3*)
12064 case $host_vendor in
12065 motorola)
12066 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]'
12067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12069 ncr)
12070 lt_cv_deplibs_check_method=pass_all
12072 sequent)
12073 lt_cv_file_magic_cmd='/bin/file'
12074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12076 sni)
12077 lt_cv_file_magic_cmd='/bin/file'
12078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12079 lt_cv_file_magic_test_file=/lib/libc.so
12081 siemens)
12082 lt_cv_deplibs_check_method=pass_all
12085 lt_cv_deplibs_check_method=pass_all
12087 esac
12090 tpf*)
12091 lt_cv_deplibs_check_method=pass_all
12093 esac
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12097 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12098 file_magic_cmd=$lt_cv_file_magic_cmd
12099 deplibs_check_method=$lt_cv_deplibs_check_method
12100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12113 if test -n "$ac_tool_prefix"; then
12114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12115 set dummy ${ac_tool_prefix}ar; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if test "${ac_cv_prog_AR+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 if test -n "$AR"; then
12122 ac_cv_prog_AR="$AR" # Let the user override the test.
12123 else
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_prog_AR="${ac_tool_prefix}ar"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12135 done
12136 done
12137 IFS=$as_save_IFS
12141 AR=$ac_cv_prog_AR
12142 if test -n "$AR"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12144 $as_echo "$AR" >&6; }
12145 else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12152 if test -z "$ac_cv_prog_AR"; then
12153 ac_ct_AR=$AR
12154 # Extract the first word of "ar", so it can be a program name with args.
12155 set dummy ar; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -n "$ac_ct_AR"; then
12162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12171 ac_cv_prog_ac_ct_AR="ar"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12175 done
12176 done
12177 IFS=$as_save_IFS
12181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12182 if test -n "$ac_ct_AR"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12184 $as_echo "$ac_ct_AR" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12190 if test "x$ac_ct_AR" = x; then
12191 AR="false"
12192 else
12193 case $cross_compiling:$ac_tool_warned in
12194 yes:)
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12197 ac_tool_warned=yes ;;
12198 esac
12199 AR=$ac_ct_AR
12201 else
12202 AR="$ac_cv_prog_AR"
12205 test -z "$AR" && AR=ar
12206 test -z "$AR_FLAGS" && AR_FLAGS=cru
12218 if test -n "$ac_tool_prefix"; then
12219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12220 set dummy ${ac_tool_prefix}strip; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_prog_STRIP+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test -n "$STRIP"; then
12227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12228 else
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12240 done
12241 done
12242 IFS=$as_save_IFS
12246 STRIP=$ac_cv_prog_STRIP
12247 if test -n "$STRIP"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12249 $as_echo "$STRIP" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12257 if test -z "$ac_cv_prog_STRIP"; then
12258 ac_ct_STRIP=$STRIP
12259 # Extract the first word of "strip", so it can be a program name with args.
12260 set dummy strip; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test -n "$ac_ct_STRIP"; then
12267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_ac_ct_STRIP="strip"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12280 done
12281 done
12282 IFS=$as_save_IFS
12286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12287 if test -n "$ac_ct_STRIP"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12289 $as_echo "$ac_ct_STRIP" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12295 if test "x$ac_ct_STRIP" = x; then
12296 STRIP=":"
12297 else
12298 case $cross_compiling:$ac_tool_warned in
12299 yes:)
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12302 ac_tool_warned=yes ;;
12303 esac
12304 STRIP=$ac_ct_STRIP
12306 else
12307 STRIP="$ac_cv_prog_STRIP"
12310 test -z "$STRIP" && STRIP=:
12317 if test -n "$ac_tool_prefix"; then
12318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -n "$RANLIB"; then
12326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12339 done
12340 done
12341 IFS=$as_save_IFS
12345 RANLIB=$ac_cv_prog_RANLIB
12346 if test -n "$RANLIB"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12348 $as_echo "$RANLIB" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test -z "$ac_cv_prog_RANLIB"; then
12357 ac_ct_RANLIB=$RANLIB
12358 # Extract the first word of "ranlib", so it can be a program name with args.
12359 set dummy ranlib; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 if test -n "$ac_ct_RANLIB"; then
12366 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_ac_ct_RANLIB="ranlib"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12379 done
12380 done
12381 IFS=$as_save_IFS
12385 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12386 if test -n "$ac_ct_RANLIB"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12388 $as_echo "$ac_ct_RANLIB" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12394 if test "x$ac_ct_RANLIB" = x; then
12395 RANLIB=":"
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398 yes:)
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401 ac_tool_warned=yes ;;
12402 esac
12403 RANLIB=$ac_ct_RANLIB
12405 else
12406 RANLIB="$ac_cv_prog_RANLIB"
12409 test -z "$RANLIB" && RANLIB=:
12416 # Determine commands to create old-style static archives.
12417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12418 old_postinstall_cmds='chmod 644 $oldlib'
12419 old_postuninstall_cmds=
12421 if test -n "$RANLIB"; then
12422 case $host_os in
12423 openbsd*)
12424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12429 esac
12430 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12433 case $host_os in
12434 darwin*)
12435 lock_old_archive_extraction=yes ;;
12437 lock_old_archive_extraction=no ;;
12438 esac
12478 # If no C compiler was specified, use CC.
12479 LTCC=${LTCC-"$CC"}
12481 # If no C compiler flags were specified, use CFLAGS.
12482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12484 # Allow CC to be a program name with arguments.
12485 compiler=$CC
12488 # Check for command to grab the raw symbol name followed by C symbol from nm.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12490 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12491 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12495 # These are sane defaults that work on at least a few old systems.
12496 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12498 # Character class describing NM global symbol codes.
12499 symcode='[BCDEGRST]'
12501 # Regexp to match symbols that can be accessed directly from C.
12502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12504 # Define system-specific variables.
12505 case $host_os in
12506 aix*)
12507 symcode='[BCDT]'
12509 cygwin* | mingw* | pw32* | cegcc*)
12510 symcode='[ABCDGISTW]'
12512 hpux*)
12513 if test "$host_cpu" = ia64; then
12514 symcode='[ABCDEGRST]'
12517 irix* | nonstopux*)
12518 symcode='[BCDEGRST]'
12520 osf*)
12521 symcode='[BCDEGQRST]'
12523 solaris*)
12524 symcode='[BDRT]'
12526 sco3.2v5*)
12527 symcode='[DT]'
12529 sysv4.2uw2*)
12530 symcode='[DT]'
12532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12533 symcode='[ABDT]'
12535 sysv4)
12536 symcode='[DFNSTU]'
12538 esac
12540 # If we're using GNU nm, then use its standard symbol codes.
12541 case `$NM -V 2>&1` in
12542 *GNU* | *'with BFD'*)
12543 symcode='[ABCDGIRSTW]' ;;
12544 esac
12546 # Transform an extracted symbol line into a proper C declaration.
12547 # Some systems (esp. on ia64) link data and code symbols differently,
12548 # so use this general approach.
12549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12551 # Transform an extracted symbol line into symbol name and symbol address
12552 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12553 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'"
12555 # Handle CRLF in mingw tool chain
12556 opt_cr=
12557 case $build_os in
12558 mingw*)
12559 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12561 esac
12563 # Try without a prefix underscore, then with it.
12564 for ac_symprfx in "" "_"; do
12566 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12567 symxfrm="\\1 $ac_symprfx\\2 \\2"
12569 # Write the raw and C identifiers.
12570 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12571 # Fake it for dumpbin and say T for any non-static function
12572 # and D for any global variable.
12573 # Also find C++ and __fastcall symbols from MSVC++,
12574 # which start with @ or ?.
12575 lt_cv_sys_global_symbol_pipe="$AWK '"\
12576 " {last_section=section; section=\$ 3};"\
12577 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12578 " \$ 0!~/External *\|/{next};"\
12579 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12580 " {if(hide[section]) next};"\
12581 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12582 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12583 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12584 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12585 " ' prfx=^$ac_symprfx"
12586 else
12587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12590 # Check to see that the pipe works correctly.
12591 pipe_works=no
12593 rm -f conftest*
12594 cat > conftest.$ac_ext <<_LT_EOF
12595 #ifdef __cplusplus
12596 extern "C" {
12597 #endif
12598 char nm_test_var;
12599 void nm_test_func(void);
12600 void nm_test_func(void){}
12601 #ifdef __cplusplus
12603 #endif
12604 int main(){nm_test_var='a';nm_test_func();return(0);}
12605 _LT_EOF
12607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12608 (eval $ac_compile) 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12611 test $ac_status = 0; }; then
12612 # Now try to grab the symbols.
12613 nlist=conftest.nm
12614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12615 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12616 ac_status=$?
12617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12618 test $ac_status = 0; } && test -s "$nlist"; then
12619 # Try sorting and uniquifying the output.
12620 if sort "$nlist" | uniq > "$nlist"T; then
12621 mv -f "$nlist"T "$nlist"
12622 else
12623 rm -f "$nlist"T
12626 # Make sure that we snagged all the symbols we need.
12627 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12628 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12629 cat <<_LT_EOF > conftest.$ac_ext
12630 #ifdef __cplusplus
12631 extern "C" {
12632 #endif
12634 _LT_EOF
12635 # Now generate the symbol file.
12636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12638 cat <<_LT_EOF >> conftest.$ac_ext
12640 /* The mapping between symbol names and symbols. */
12641 const struct {
12642 const char *name;
12643 void *address;
12645 lt__PROGRAM__LTX_preloaded_symbols[] =
12647 { "@PROGRAM@", (void *) 0 },
12648 _LT_EOF
12649 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12650 cat <<\_LT_EOF >> conftest.$ac_ext
12651 {0, (void *) 0}
12654 /* This works around a problem in FreeBSD linker */
12655 #ifdef FREEBSD_WORKAROUND
12656 static const void *lt_preloaded_setup() {
12657 return lt__PROGRAM__LTX_preloaded_symbols;
12659 #endif
12661 #ifdef __cplusplus
12663 #endif
12664 _LT_EOF
12665 # Now try linking the two files.
12666 mv conftest.$ac_objext conftstm.$ac_objext
12667 lt_save_LIBS="$LIBS"
12668 lt_save_CFLAGS="$CFLAGS"
12669 LIBS="conftstm.$ac_objext"
12670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12676 pipe_works=yes
12678 LIBS="$lt_save_LIBS"
12679 CFLAGS="$lt_save_CFLAGS"
12680 else
12681 echo "cannot find nm_test_func in $nlist" >&5
12683 else
12684 echo "cannot find nm_test_var in $nlist" >&5
12686 else
12687 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12689 else
12690 echo "$progname: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12693 rm -rf conftest* conftst*
12695 # Do not use the global_symbol_pipe unless it works.
12696 if test "$pipe_works" = yes; then
12697 break
12698 else
12699 lt_cv_sys_global_symbol_pipe=
12701 done
12705 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12706 lt_cv_sys_global_symbol_to_cdecl=
12708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12710 $as_echo "failed" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12713 $as_echo "ok" >&6; }
12737 # Check whether --enable-libtool-lock was given.
12738 if test "${enable_libtool_lock+set}" = set; then :
12739 enableval=$enable_libtool_lock;
12742 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12744 # Some flags need to be propagated to the compiler or linker for good
12745 # libtool support.
12746 case $host in
12747 ia64-*-hpux*)
12748 # Find out which ABI we are using.
12749 echo 'int i;' > conftest.$ac_ext
12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12751 (eval $ac_compile) 2>&5
12752 ac_status=$?
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; then
12755 case `/usr/bin/file conftest.$ac_objext` in
12756 *ELF-32*)
12757 HPUX_IA64_MODE="32"
12759 *ELF-64*)
12760 HPUX_IA64_MODE="64"
12762 esac
12764 rm -rf conftest*
12766 *-*-irix6*)
12767 # Find out which ABI we are using.
12768 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773 test $ac_status = 0; }; then
12774 if test "$lt_cv_prog_gnu_ld" = yes; then
12775 case `/usr/bin/file conftest.$ac_objext` in
12776 *32-bit*)
12777 LD="${LD-ld} -melf32bsmip"
12779 *N32*)
12780 LD="${LD-ld} -melf32bmipn32"
12782 *64-bit*)
12783 LD="${LD-ld} -melf64bmip"
12785 esac
12786 else
12787 case `/usr/bin/file conftest.$ac_objext` in
12788 *32-bit*)
12789 LD="${LD-ld} -32"
12791 *N32*)
12792 LD="${LD-ld} -n32"
12794 *64-bit*)
12795 LD="${LD-ld} -64"
12797 esac
12800 rm -rf conftest*
12803 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12804 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12805 # Find out which ABI we are using.
12806 echo 'int i;' > conftest.$ac_ext
12807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12808 (eval $ac_compile) 2>&5
12809 ac_status=$?
12810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12811 test $ac_status = 0; }; then
12812 case `/usr/bin/file conftest.o` in
12813 *32-bit*)
12814 case $host in
12815 x86_64-*kfreebsd*-gnu)
12816 LD="${LD-ld} -m elf_i386_fbsd"
12818 x86_64-*linux*)
12819 LD="${LD-ld} -m elf_i386"
12821 ppc64-*linux*|powerpc64-*linux*)
12822 LD="${LD-ld} -m elf32ppclinux"
12824 s390x-*linux*)
12825 LD="${LD-ld} -m elf_s390"
12827 sparc64-*linux*)
12828 LD="${LD-ld} -m elf32_sparc"
12830 esac
12832 *64-bit*)
12833 case $host in
12834 x86_64-*kfreebsd*-gnu)
12835 LD="${LD-ld} -m elf_x86_64_fbsd"
12837 x86_64-*linux*)
12838 LD="${LD-ld} -m elf_x86_64"
12840 ppc*-*linux*|powerpc*-*linux*)
12841 LD="${LD-ld} -m elf64ppc"
12843 s390*-*linux*|s390*-*tpf*)
12844 LD="${LD-ld} -m elf64_s390"
12846 sparc*-*linux*)
12847 LD="${LD-ld} -m elf64_sparc"
12849 esac
12851 esac
12853 rm -rf conftest*
12856 *-*-sco3.2v5*)
12857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858 SAVE_CFLAGS="$CFLAGS"
12859 CFLAGS="$CFLAGS -belf"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12861 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12862 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 ac_ext=c
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12875 main ()
12879 return 0;
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 lt_cv_cc_needs_belf=yes
12884 else
12885 lt_cv_cc_needs_belf=no
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 ac_ext=c
12890 ac_cpp='$CPP $CPPFLAGS'
12891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12897 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12900 CFLAGS="$SAVE_CFLAGS"
12903 sparc*-*solaris*)
12904 # Find out which ABI we are using.
12905 echo 'int i;' > conftest.$ac_ext
12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12907 (eval $ac_compile) 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; }; then
12911 case `/usr/bin/file conftest.o` in
12912 *64-bit*)
12913 case $lt_cv_prog_gnu_ld in
12914 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12917 LD="${LD-ld} -64"
12920 esac
12922 esac
12924 rm -rf conftest*
12926 esac
12928 need_locks="$enable_libtool_lock"
12931 case $host_os in
12932 rhapsody* | darwin*)
12933 if test -n "$ac_tool_prefix"; then
12934 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12935 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if test -n "$DSYMUTIL"; then
12942 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12955 done
12956 done
12957 IFS=$as_save_IFS
12961 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12962 if test -n "$DSYMUTIL"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12964 $as_echo "$DSYMUTIL" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12972 if test -z "$ac_cv_prog_DSYMUTIL"; then
12973 ac_ct_DSYMUTIL=$DSYMUTIL
12974 # Extract the first word of "dsymutil", so it can be a program name with args.
12975 set dummy dsymutil; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 $as_echo_n "checking for $ac_word... " >&6; }
12978 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 if test -n "$ac_ct_DSYMUTIL"; then
12982 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12983 else
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12995 done
12996 done
12997 IFS=$as_save_IFS
13001 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13002 if test -n "$ac_ct_DSYMUTIL"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13004 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13010 if test "x$ac_ct_DSYMUTIL" = x; then
13011 DSYMUTIL=":"
13012 else
13013 case $cross_compiling:$ac_tool_warned in
13014 yes:)
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13017 ac_tool_warned=yes ;;
13018 esac
13019 DSYMUTIL=$ac_ct_DSYMUTIL
13021 else
13022 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13025 if test -n "$ac_tool_prefix"; then
13026 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13027 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$NMEDIT"; then
13034 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13047 done
13048 done
13049 IFS=$as_save_IFS
13053 NMEDIT=$ac_cv_prog_NMEDIT
13054 if test -n "$NMEDIT"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13056 $as_echo "$NMEDIT" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13064 if test -z "$ac_cv_prog_NMEDIT"; then
13065 ac_ct_NMEDIT=$NMEDIT
13066 # Extract the first word of "nmedit", so it can be a program name with args.
13067 set dummy nmedit; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 $as_echo_n "checking for $ac_word... " >&6; }
13070 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 if test -n "$ac_ct_NMEDIT"; then
13074 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13075 else
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13083 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13087 done
13088 done
13089 IFS=$as_save_IFS
13093 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13094 if test -n "$ac_ct_NMEDIT"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13096 $as_echo "$ac_ct_NMEDIT" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13102 if test "x$ac_ct_NMEDIT" = x; then
13103 NMEDIT=":"
13104 else
13105 case $cross_compiling:$ac_tool_warned in
13106 yes:)
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13109 ac_tool_warned=yes ;;
13110 esac
13111 NMEDIT=$ac_ct_NMEDIT
13113 else
13114 NMEDIT="$ac_cv_prog_NMEDIT"
13117 if test -n "$ac_tool_prefix"; then
13118 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13119 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if test "${ac_cv_prog_LIPO+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 if test -n "$LIPO"; then
13126 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13127 else
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13139 done
13140 done
13141 IFS=$as_save_IFS
13145 LIPO=$ac_cv_prog_LIPO
13146 if test -n "$LIPO"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13148 $as_echo "$LIPO" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13156 if test -z "$ac_cv_prog_LIPO"; then
13157 ac_ct_LIPO=$LIPO
13158 # Extract the first word of "lipo", so it can be a program name with args.
13159 set dummy lipo; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test -n "$ac_ct_LIPO"; then
13166 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175 ac_cv_prog_ac_ct_LIPO="lipo"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13179 done
13180 done
13181 IFS=$as_save_IFS
13185 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13186 if test -n "$ac_ct_LIPO"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13188 $as_echo "$ac_ct_LIPO" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13194 if test "x$ac_ct_LIPO" = x; then
13195 LIPO=":"
13196 else
13197 case $cross_compiling:$ac_tool_warned in
13198 yes:)
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13201 ac_tool_warned=yes ;;
13202 esac
13203 LIPO=$ac_ct_LIPO
13205 else
13206 LIPO="$ac_cv_prog_LIPO"
13209 if test -n "$ac_tool_prefix"; then
13210 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13211 set dummy ${ac_tool_prefix}otool; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213 $as_echo_n "checking for $ac_word... " >&6; }
13214 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 if test -n "$OTOOL"; then
13218 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13219 else
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13231 done
13232 done
13233 IFS=$as_save_IFS
13237 OTOOL=$ac_cv_prog_OTOOL
13238 if test -n "$OTOOL"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13240 $as_echo "$OTOOL" >&6; }
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13248 if test -z "$ac_cv_prog_OTOOL"; then
13249 ac_ct_OTOOL=$OTOOL
13250 # Extract the first word of "otool", so it can be a program name with args.
13251 set dummy otool; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test -n "$ac_ct_OTOOL"; then
13258 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_ac_ct_OTOOL="otool"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13271 done
13272 done
13273 IFS=$as_save_IFS
13277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13278 if test -n "$ac_ct_OTOOL"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13280 $as_echo "$ac_ct_OTOOL" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13286 if test "x$ac_ct_OTOOL" = x; then
13287 OTOOL=":"
13288 else
13289 case $cross_compiling:$ac_tool_warned in
13290 yes:)
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293 ac_tool_warned=yes ;;
13294 esac
13295 OTOOL=$ac_ct_OTOOL
13297 else
13298 OTOOL="$ac_cv_prog_OTOOL"
13301 if test -n "$ac_tool_prefix"; then
13302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13303 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$OTOOL64"; then
13310 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13323 done
13324 done
13325 IFS=$as_save_IFS
13329 OTOOL64=$ac_cv_prog_OTOOL64
13330 if test -n "$OTOOL64"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13332 $as_echo "$OTOOL64" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13340 if test -z "$ac_cv_prog_OTOOL64"; then
13341 ac_ct_OTOOL64=$OTOOL64
13342 # Extract the first word of "otool64", so it can be a program name with args.
13343 set dummy otool64; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 if test -n "$ac_ct_OTOOL64"; then
13350 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_ac_ct_OTOOL64="otool64"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13365 IFS=$as_save_IFS
13369 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13370 if test -n "$ac_ct_OTOOL64"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13372 $as_echo "$ac_ct_OTOOL64" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13378 if test "x$ac_ct_OTOOL64" = x; then
13379 OTOOL64=":"
13380 else
13381 case $cross_compiling:$ac_tool_warned in
13382 yes:)
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13385 ac_tool_warned=yes ;;
13386 esac
13387 OTOOL64=$ac_ct_OTOOL64
13389 else
13390 OTOOL64="$ac_cv_prog_OTOOL64"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13420 $as_echo_n "checking for -single_module linker flag... " >&6; }
13421 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 lt_cv_apple_cc_single_mod=no
13425 if test -z "${LT_MULTI_MODULE}"; then
13426 # By default we will add the -single_module flag. You can override
13427 # by either setting the environment variable LT_MULTI_MODULE
13428 # non-empty at configure time, or by adding -multi_module to the
13429 # link flags.
13430 rm -rf libconftest.dylib*
13431 echo "int foo(void){return 1;}" > conftest.c
13432 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13433 -dynamiclib -Wl,-single_module conftest.c" >&5
13434 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13435 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13436 _lt_result=$?
13437 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13438 lt_cv_apple_cc_single_mod=yes
13439 else
13440 cat conftest.err >&5
13442 rm -rf libconftest.dylib*
13443 rm -f conftest.*
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13449 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13450 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 lt_cv_ld_exported_symbols_list=no
13454 save_LDFLAGS=$LDFLAGS
13455 echo "_main" > conftest.sym
13456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13461 main ()
13465 return 0;
13467 _ACEOF
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 lt_cv_ld_exported_symbols_list=yes
13470 else
13471 lt_cv_ld_exported_symbols_list=no
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 LDFLAGS="$save_LDFLAGS"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13479 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13481 $as_echo_n "checking for -force_load linker flag... " >&6; }
13482 if test "${lt_cv_ld_force_load+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 lt_cv_ld_force_load=no
13486 cat > conftest.c << _LT_EOF
13487 int forced_loaded() { return 2;}
13488 _LT_EOF
13489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13491 echo "$AR cru libconftest.a conftest.o" >&5
13492 $AR cru libconftest.a conftest.o 2>&5
13493 cat > conftest.c << _LT_EOF
13494 int main() { return 0;}
13495 _LT_EOF
13496 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13497 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13498 _lt_result=$?
13499 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13500 lt_cv_ld_force_load=yes
13501 else
13502 cat conftest.err >&5
13504 rm -f conftest.err libconftest.a conftest conftest.c
13505 rm -rf conftest.dSYM
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13509 $as_echo "$lt_cv_ld_force_load" >&6; }
13510 case $host_os in
13511 rhapsody* | darwin1.[012])
13512 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13513 darwin1.*)
13514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13515 darwin*) # darwin 5.x on
13516 # if running on 10.5 or later, the deployment target defaults
13517 # to the OS version, if on x86, and 10.4, the deployment
13518 # target defaults to 10.4. Don't you love it?
13519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13522 10.[012]*)
13523 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13524 10.*)
13525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13526 esac
13528 esac
13529 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13530 _lt_dar_single_mod='$single_module'
13532 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13533 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13534 else
13535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13537 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13538 _lt_dsymutil='~$DSYMUTIL $lib || :'
13539 else
13540 _lt_dsymutil=
13543 esac
13545 for ac_header in dlfcn.h
13546 do :
13547 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13548 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_DLFCN_H 1
13551 _ACEOF
13554 done
13561 # Set options
13565 enable_dlopen=no
13568 enable_win32_dll=no
13571 # Check whether --enable-shared was given.
13572 if test "${enable_shared+set}" = set; then :
13573 enableval=$enable_shared; p=${PACKAGE-default}
13574 case $enableval in
13575 yes) enable_shared=yes ;;
13576 no) enable_shared=no ;;
13578 enable_shared=no
13579 # Look at the argument we got. We use all the common list separators.
13580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13581 for pkg in $enableval; do
13582 IFS="$lt_save_ifs"
13583 if test "X$pkg" = "X$p"; then
13584 enable_shared=yes
13586 done
13587 IFS="$lt_save_ifs"
13589 esac
13590 else
13591 enable_shared=yes
13602 # Check whether --enable-static was given.
13603 if test "${enable_static+set}" = set; then :
13604 enableval=$enable_static; p=${PACKAGE-default}
13605 case $enableval in
13606 yes) enable_static=yes ;;
13607 no) enable_static=no ;;
13609 enable_static=no
13610 # Look at the argument we got. We use all the common list separators.
13611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13612 for pkg in $enableval; do
13613 IFS="$lt_save_ifs"
13614 if test "X$pkg" = "X$p"; then
13615 enable_static=yes
13617 done
13618 IFS="$lt_save_ifs"
13620 esac
13621 else
13622 enable_static=yes
13634 # Check whether --with-pic was given.
13635 if test "${with_pic+set}" = set; then :
13636 withval=$with_pic; pic_mode="$withval"
13637 else
13638 pic_mode=default
13642 test -z "$pic_mode" && pic_mode=default
13650 # Check whether --enable-fast-install was given.
13651 if test "${enable_fast_install+set}" = set; then :
13652 enableval=$enable_fast_install; p=${PACKAGE-default}
13653 case $enableval in
13654 yes) enable_fast_install=yes ;;
13655 no) enable_fast_install=no ;;
13657 enable_fast_install=no
13658 # Look at the argument we got. We use all the common list separators.
13659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13660 for pkg in $enableval; do
13661 IFS="$lt_save_ifs"
13662 if test "X$pkg" = "X$p"; then
13663 enable_fast_install=yes
13665 done
13666 IFS="$lt_save_ifs"
13668 esac
13669 else
13670 enable_fast_install=yes
13683 # This can be used to rebuild libtool when needed
13684 LIBTOOL_DEPS="$ltmain"
13686 # Always use our own libtool.
13687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13714 test -z "$LN_S" && LN_S="ln -s"
13729 if test -n "${ZSH_VERSION+set}" ; then
13730 setopt NO_GLOB_SUBST
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13734 $as_echo_n "checking for objdir... " >&6; }
13735 if test "${lt_cv_objdir+set}" = set; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 rm -f .libs 2>/dev/null
13739 mkdir .libs 2>/dev/null
13740 if test -d .libs; then
13741 lt_cv_objdir=.libs
13742 else
13743 # MS-DOS does not allow filenames that begin with a dot.
13744 lt_cv_objdir=_libs
13746 rmdir .libs 2>/dev/null
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13749 $as_echo "$lt_cv_objdir" >&6; }
13750 objdir=$lt_cv_objdir
13756 cat >>confdefs.h <<_ACEOF
13757 #define LT_OBJDIR "$lt_cv_objdir/"
13758 _ACEOF
13763 case $host_os in
13764 aix3*)
13765 # AIX sometimes has problems with the GCC collect2 program. For some
13766 # reason, if we set the COLLECT_NAMES environment variable, the problems
13767 # vanish in a puff of smoke.
13768 if test "X${COLLECT_NAMES+set}" != Xset; then
13769 COLLECT_NAMES=
13770 export COLLECT_NAMES
13773 esac
13775 # Global variables:
13776 ofile=libtool
13777 can_build_shared=yes
13779 # All known linkers require a `.a' archive for static linking (except MSVC,
13780 # which needs '.lib').
13781 libext=a
13783 with_gnu_ld="$lt_cv_prog_gnu_ld"
13785 old_CC="$CC"
13786 old_CFLAGS="$CFLAGS"
13788 # Set sane defaults for various variables
13789 test -z "$CC" && CC=cc
13790 test -z "$LTCC" && LTCC=$CC
13791 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13792 test -z "$LD" && LD=ld
13793 test -z "$ac_objext" && ac_objext=o
13795 for cc_temp in $compiler""; do
13796 case $cc_temp in
13797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13799 \-*) ;;
13800 *) break;;
13801 esac
13802 done
13803 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13806 # Only perform the check for file, if the check method requires it
13807 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13808 case $deplibs_check_method in
13809 file_magic*)
13810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13812 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 case $MAGIC_CMD in
13817 [\\/*] | ?:[\\/]*)
13818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13821 lt_save_MAGIC_CMD="$MAGIC_CMD"
13822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13824 for ac_dir in $ac_dummy; do
13825 IFS="$lt_save_ifs"
13826 test -z "$ac_dir" && ac_dir=.
13827 if test -f $ac_dir/${ac_tool_prefix}file; then
13828 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13829 if test -n "$file_magic_test_file"; then
13830 case $deplibs_check_method in
13831 "file_magic "*)
13832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13835 $EGREP "$file_magic_regex" > /dev/null; then
13837 else
13838 cat <<_LT_EOF 1>&2
13840 *** Warning: the command libtool uses to detect shared libraries,
13841 *** $file_magic_cmd, produces output that libtool cannot recognize.
13842 *** The result is that libtool may fail to recognize shared libraries
13843 *** as such. This will affect the creation of libtool libraries that
13844 *** depend on shared libraries, but programs linked with such libtool
13845 *** libraries will work regardless of this problem. Nevertheless, you
13846 *** may want to report the problem to your system manager and/or to
13847 *** bug-libtool@gnu.org
13849 _LT_EOF
13850 fi ;;
13851 esac
13853 break
13855 done
13856 IFS="$lt_save_ifs"
13857 MAGIC_CMD="$lt_save_MAGIC_CMD"
13859 esac
13862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13863 if test -n "$MAGIC_CMD"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13865 $as_echo "$MAGIC_CMD" >&6; }
13866 else
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13875 if test -z "$lt_cv_path_MAGIC_CMD"; then
13876 if test -n "$ac_tool_prefix"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13878 $as_echo_n "checking for file... " >&6; }
13879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 case $MAGIC_CMD in
13883 [\\/*] | ?:[\\/]*)
13884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13887 lt_save_MAGIC_CMD="$MAGIC_CMD"
13888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13890 for ac_dir in $ac_dummy; do
13891 IFS="$lt_save_ifs"
13892 test -z "$ac_dir" && ac_dir=.
13893 if test -f $ac_dir/file; then
13894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13895 if test -n "$file_magic_test_file"; then
13896 case $deplibs_check_method in
13897 "file_magic "*)
13898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13901 $EGREP "$file_magic_regex" > /dev/null; then
13903 else
13904 cat <<_LT_EOF 1>&2
13906 *** Warning: the command libtool uses to detect shared libraries,
13907 *** $file_magic_cmd, produces output that libtool cannot recognize.
13908 *** The result is that libtool may fail to recognize shared libraries
13909 *** as such. This will affect the creation of libtool libraries that
13910 *** depend on shared libraries, but programs linked with such libtool
13911 *** libraries will work regardless of this problem. Nevertheless, you
13912 *** may want to report the problem to your system manager and/or to
13913 *** bug-libtool@gnu.org
13915 _LT_EOF
13916 fi ;;
13917 esac
13919 break
13921 done
13922 IFS="$lt_save_ifs"
13923 MAGIC_CMD="$lt_save_MAGIC_CMD"
13925 esac
13928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13929 if test -n "$MAGIC_CMD"; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13931 $as_echo "$MAGIC_CMD" >&6; }
13932 else
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934 $as_echo "no" >&6; }
13938 else
13939 MAGIC_CMD=:
13945 esac
13947 # Use C for the default configuration in the libtool script
13949 lt_save_CC="$CC"
13950 ac_ext=c
13951 ac_cpp='$CPP $CPPFLAGS'
13952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957 # Source file extension for C test sources.
13958 ac_ext=c
13960 # Object file extension for compiled C test sources.
13961 objext=o
13962 objext=$objext
13964 # Code to be used in simple compile tests
13965 lt_simple_compile_test_code="int some_variable = 0;"
13967 # Code to be used in simple link tests
13968 lt_simple_link_test_code='int main(){return(0);}'
13976 # If no C compiler was specified, use CC.
13977 LTCC=${LTCC-"$CC"}
13979 # If no C compiler flags were specified, use CFLAGS.
13980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13982 # Allow CC to be a program name with arguments.
13983 compiler=$CC
13985 # Save the default compiler, since it gets overwritten when the other
13986 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13987 compiler_DEFAULT=$CC
13989 # save warnings/boilerplate of simple test code
13990 ac_outfile=conftest.$ac_objext
13991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13993 _lt_compiler_boilerplate=`cat conftest.err`
13994 $RM conftest*
13996 ac_outfile=conftest.$ac_objext
13997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13999 _lt_linker_boilerplate=`cat conftest.err`
14000 $RM -r conftest*
14003 ## CAVEAT EMPTOR:
14004 ## There is no encapsulation within the following macros, do not change
14005 ## the running order or otherwise move them around unless you know exactly
14006 ## what you are doing...
14007 if test -n "$compiler"; then
14009 lt_prog_compiler_no_builtin_flag=
14011 if test "$GCC" = yes; then
14012 case $cc_basename in
14013 nvcc*)
14014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14017 esac
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14020 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14021 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_rtti_exceptions=no
14025 ac_outfile=conftest.$ac_objext
14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 lt_compiler_flag="-fno-rtti -fno-exceptions"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 # The option is referenced via a variable to avoid confusing sed.
14033 lt_compile=`echo "$ac_compile" | $SED \
14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036 -e 's:$: $lt_compiler_flag:'`
14037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038 (eval "$lt_compile" 2>conftest.err)
14039 ac_status=$?
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 if (exit $ac_status) && test -s "$ac_outfile"; then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings other than the usual output.
14045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_rtti_exceptions=yes
14051 $RM conftest*
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14055 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14057 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14059 else
14070 lt_prog_compiler_wl=
14071 lt_prog_compiler_pic=
14072 lt_prog_compiler_static=
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14077 if test "$GCC" = yes; then
14078 lt_prog_compiler_wl='-Wl,'
14079 lt_prog_compiler_static='-static'
14081 case $host_os in
14082 aix*)
14083 # All AIX code is PIC.
14084 if test "$host_cpu" = ia64; then
14085 # AIX 5 now supports IA64 processor
14086 lt_prog_compiler_static='-Bstatic'
14090 amigaos*)
14091 case $host_cpu in
14092 powerpc)
14093 # see comment about AmigaOS4 .so support
14094 lt_prog_compiler_pic='-fPIC'
14096 m68k)
14097 # FIXME: we need at least 68020 code to build shared libraries, but
14098 # adding the `-m68020' flag to GCC prevents building anything better,
14099 # like `-m68040'.
14100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14102 esac
14105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14106 # PIC is the default for these OSes.
14109 mingw* | cygwin* | pw32* | os2* | cegcc*)
14110 # This hack is so that the source file can tell whether it is being
14111 # built for inclusion in a dll (and should export symbols for example).
14112 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14113 # (--disable-auto-import) libraries
14114 lt_prog_compiler_pic='-DDLL_EXPORT'
14117 darwin* | rhapsody*)
14118 # PIC is the default on this platform
14119 # Common symbols not allowed in MH_DYLIB files
14120 lt_prog_compiler_pic='-fno-common'
14123 haiku*)
14124 # PIC is the default for Haiku.
14125 # The "-static" flag exists, but is broken.
14126 lt_prog_compiler_static=
14129 hpux*)
14130 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14131 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14132 # sets the default TLS model and affects inlining.
14133 case $host_cpu in
14134 hppa*64*)
14135 # +Z the default
14138 lt_prog_compiler_pic='-fPIC'
14140 esac
14143 interix[3-9]*)
14144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14145 # Instead, we relocate shared libraries at runtime.
14148 msdosdjgpp*)
14149 # Just because we use GCC doesn't mean we suddenly get shared libraries
14150 # on systems that don't support them.
14151 lt_prog_compiler_can_build_shared=no
14152 enable_shared=no
14155 *nto* | *qnx*)
14156 # QNX uses GNU C++, but need to define -shared option too, otherwise
14157 # it will coredump.
14158 lt_prog_compiler_pic='-fPIC -shared'
14161 sysv4*MP*)
14162 if test -d /usr/nec; then
14163 lt_prog_compiler_pic=-Kconform_pic
14168 lt_prog_compiler_pic='-fPIC'
14170 esac
14172 case $cc_basename in
14173 nvcc*) # Cuda Compiler Driver 2.2
14174 lt_prog_compiler_wl='-Xlinker '
14175 lt_prog_compiler_pic='-Xcompiler -fPIC'
14177 esac
14178 else
14179 # PORTME Check for flag to pass linker flags through the system compiler.
14180 case $host_os in
14181 aix*)
14182 lt_prog_compiler_wl='-Wl,'
14183 if test "$host_cpu" = ia64; then
14184 # AIX 5 now supports IA64 processor
14185 lt_prog_compiler_static='-Bstatic'
14186 else
14187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14191 mingw* | cygwin* | pw32* | os2* | cegcc*)
14192 # This hack is so that the source file can tell whether it is being
14193 # built for inclusion in a dll (and should export symbols for example).
14194 lt_prog_compiler_pic='-DDLL_EXPORT'
14197 hpux9* | hpux10* | hpux11*)
14198 lt_prog_compiler_wl='-Wl,'
14199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14200 # not for PA HP-UX.
14201 case $host_cpu in
14202 hppa*64*|ia64*)
14203 # +Z the default
14206 lt_prog_compiler_pic='+Z'
14208 esac
14209 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14210 lt_prog_compiler_static='${wl}-a ${wl}archive'
14213 irix5* | irix6* | nonstopux*)
14214 lt_prog_compiler_wl='-Wl,'
14215 # PIC (with -KPIC) is the default.
14216 lt_prog_compiler_static='-non_shared'
14219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14220 case $cc_basename in
14221 # old Intel for x86_64 which still supported -KPIC.
14222 ecc*)
14223 lt_prog_compiler_wl='-Wl,'
14224 lt_prog_compiler_pic='-KPIC'
14225 lt_prog_compiler_static='-static'
14227 # icc used to be incompatible with GCC.
14228 # ICC 10 doesn't accept -KPIC any more.
14229 icc* | ifort*)
14230 lt_prog_compiler_wl='-Wl,'
14231 lt_prog_compiler_pic='-fPIC'
14232 lt_prog_compiler_static='-static'
14234 # Lahey Fortran 8.1.
14235 lf95*)
14236 lt_prog_compiler_wl='-Wl,'
14237 lt_prog_compiler_pic='--shared'
14238 lt_prog_compiler_static='--static'
14240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14241 # Portland Group compilers (*not* the Pentium gcc compiler,
14242 # which looks to be a dead project)
14243 lt_prog_compiler_wl='-Wl,'
14244 lt_prog_compiler_pic='-fpic'
14245 lt_prog_compiler_static='-Bstatic'
14247 ccc*)
14248 lt_prog_compiler_wl='-Wl,'
14249 # All Alpha code is PIC.
14250 lt_prog_compiler_static='-non_shared'
14252 xl* | bgxl* | bgf* | mpixl*)
14253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14254 lt_prog_compiler_wl='-Wl,'
14255 lt_prog_compiler_pic='-qpic'
14256 lt_prog_compiler_static='-qstaticlink'
14259 case `$CC -V 2>&1 | sed 5q` in
14260 *Sun\ F* | *Sun*Fortran*)
14261 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14262 lt_prog_compiler_pic='-KPIC'
14263 lt_prog_compiler_static='-Bstatic'
14264 lt_prog_compiler_wl=''
14266 *Sun\ C*)
14267 # Sun C 5.9
14268 lt_prog_compiler_pic='-KPIC'
14269 lt_prog_compiler_static='-Bstatic'
14270 lt_prog_compiler_wl='-Wl,'
14272 esac
14274 esac
14277 newsos6)
14278 lt_prog_compiler_pic='-KPIC'
14279 lt_prog_compiler_static='-Bstatic'
14282 *nto* | *qnx*)
14283 # QNX uses GNU C++, but need to define -shared option too, otherwise
14284 # it will coredump.
14285 lt_prog_compiler_pic='-fPIC -shared'
14288 osf3* | osf4* | osf5*)
14289 lt_prog_compiler_wl='-Wl,'
14290 # All OSF/1 code is PIC.
14291 lt_prog_compiler_static='-non_shared'
14294 rdos*)
14295 lt_prog_compiler_static='-non_shared'
14298 solaris*)
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-Bstatic'
14301 case $cc_basename in
14302 f77* | f90* | f95*)
14303 lt_prog_compiler_wl='-Qoption ld ';;
14305 lt_prog_compiler_wl='-Wl,';;
14306 esac
14309 sunos4*)
14310 lt_prog_compiler_wl='-Qoption ld '
14311 lt_prog_compiler_pic='-PIC'
14312 lt_prog_compiler_static='-Bstatic'
14315 sysv4 | sysv4.2uw2* | sysv4.3*)
14316 lt_prog_compiler_wl='-Wl,'
14317 lt_prog_compiler_pic='-KPIC'
14318 lt_prog_compiler_static='-Bstatic'
14321 sysv4*MP*)
14322 if test -d /usr/nec ;then
14323 lt_prog_compiler_pic='-Kconform_pic'
14324 lt_prog_compiler_static='-Bstatic'
14328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14329 lt_prog_compiler_wl='-Wl,'
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14334 unicos*)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_can_build_shared=no
14339 uts4*)
14340 lt_prog_compiler_pic='-pic'
14341 lt_prog_compiler_static='-Bstatic'
14345 lt_prog_compiler_can_build_shared=no
14347 esac
14350 case $host_os in
14351 # For platforms which do not support PIC, -DPIC is meaningless:
14352 *djgpp*)
14353 lt_prog_compiler_pic=
14356 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14358 esac
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14360 $as_echo "$lt_prog_compiler_pic" >&6; }
14368 # Check to make sure the PIC flag actually works.
14370 if test -n "$lt_prog_compiler_pic"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14372 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14373 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 lt_cv_prog_compiler_pic_works=no
14377 ac_outfile=conftest.$ac_objext
14378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14379 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14380 # Insert the option either (1) after the last *FLAGS variable, or
14381 # (2) before a word containing "conftest.", or (3) at the end.
14382 # Note that $ac_compile itself does not contain backslashes and begins
14383 # with a dollar sign (not a hyphen), so the echo should work correctly.
14384 # The option is referenced via a variable to avoid confusing sed.
14385 lt_compile=`echo "$ac_compile" | $SED \
14386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14388 -e 's:$: $lt_compiler_flag:'`
14389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14390 (eval "$lt_compile" 2>conftest.err)
14391 ac_status=$?
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 if (exit $ac_status) && test -s "$ac_outfile"; then
14395 # The compiler can only warn and ignore the option if not recognized
14396 # So say no if there are warnings other than the usual output.
14397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14400 lt_cv_prog_compiler_pic_works=yes
14403 $RM conftest*
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14407 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14409 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14410 case $lt_prog_compiler_pic in
14411 "" | " "*) ;;
14412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14413 esac
14414 else
14415 lt_prog_compiler_pic=
14416 lt_prog_compiler_can_build_shared=no
14427 # Check to make sure the static flag actually works.
14429 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14431 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14432 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 lt_cv_prog_compiler_static_works=no
14436 save_LDFLAGS="$LDFLAGS"
14437 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14440 # The linker can only warn and ignore the option if not recognized
14441 # So say no if there are warnings
14442 if test -s conftest.err; then
14443 # Append any errors to the config.log.
14444 cat conftest.err 1>&5
14445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14447 if diff conftest.exp conftest.er2 >/dev/null; then
14448 lt_cv_prog_compiler_static_works=yes
14450 else
14451 lt_cv_prog_compiler_static_works=yes
14454 $RM -r conftest*
14455 LDFLAGS="$save_LDFLAGS"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14459 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14461 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14463 else
14464 lt_prog_compiler_static=
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14474 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14475 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 lt_cv_prog_compiler_c_o=no
14479 $RM -r conftest 2>/dev/null
14480 mkdir conftest
14481 cd conftest
14482 mkdir out
14483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14485 lt_compiler_flag="-o out/conftest2.$ac_objext"
14486 # Insert the option either (1) after the last *FLAGS variable, or
14487 # (2) before a word containing "conftest.", or (3) at the end.
14488 # Note that $ac_compile itself does not contain backslashes and begins
14489 # with a dollar sign (not a hyphen), so the echo should work correctly.
14490 lt_compile=`echo "$ac_compile" | $SED \
14491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
14494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14495 (eval "$lt_compile" 2>out/conftest.err)
14496 ac_status=$?
14497 cat out/conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14500 then
14501 # The compiler can only warn and ignore the option if not recognized
14502 # So say no if there are warnings
14503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14506 lt_cv_prog_compiler_c_o=yes
14509 chmod u+w . 2>&5
14510 $RM conftest*
14511 # SGI C++ compiler will create directory out/ii_files/ for
14512 # template instantiation
14513 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14514 $RM out/* && rmdir out
14515 cd ..
14516 $RM -r conftest
14517 $RM conftest*
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14521 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14530 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 lt_cv_prog_compiler_c_o=no
14534 $RM -r conftest 2>/dev/null
14535 mkdir conftest
14536 cd conftest
14537 mkdir out
14538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540 lt_compiler_flag="-o out/conftest2.$ac_objext"
14541 # Insert the option either (1) after the last *FLAGS variable, or
14542 # (2) before a word containing "conftest.", or (3) at the end.
14543 # Note that $ac_compile itself does not contain backslashes and begins
14544 # with a dollar sign (not a hyphen), so the echo should work correctly.
14545 lt_compile=`echo "$ac_compile" | $SED \
14546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14548 -e 's:$: $lt_compiler_flag:'`
14549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14550 (eval "$lt_compile" 2>out/conftest.err)
14551 ac_status=$?
14552 cat out/conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14555 then
14556 # The compiler can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14561 lt_cv_prog_compiler_c_o=yes
14564 chmod u+w . 2>&5
14565 $RM conftest*
14566 # SGI C++ compiler will create directory out/ii_files/ for
14567 # template instantiation
14568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14569 $RM out/* && rmdir out
14570 cd ..
14571 $RM -r conftest
14572 $RM conftest*
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14576 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14581 hard_links="nottested"
14582 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14583 # do not overwrite the value of need_locks provided by the user
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14585 $as_echo_n "checking if we can lock with hard links... " >&6; }
14586 hard_links=yes
14587 $RM conftest*
14588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14589 touch conftest.a
14590 ln conftest.a conftest.b 2>&5 || hard_links=no
14591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14593 $as_echo "$hard_links" >&6; }
14594 if test "$hard_links" = no; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14596 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14597 need_locks=warn
14599 else
14600 need_locks=no
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14609 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14611 runpath_var=
14612 allow_undefined_flag=
14613 always_export_symbols=no
14614 archive_cmds=
14615 archive_expsym_cmds=
14616 compiler_needs_object=no
14617 enable_shared_with_static_runtimes=no
14618 export_dynamic_flag_spec=
14619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14620 hardcode_automatic=no
14621 hardcode_direct=no
14622 hardcode_direct_absolute=no
14623 hardcode_libdir_flag_spec=
14624 hardcode_libdir_flag_spec_ld=
14625 hardcode_libdir_separator=
14626 hardcode_minus_L=no
14627 hardcode_shlibpath_var=unsupported
14628 inherit_rpath=no
14629 link_all_deplibs=unknown
14630 module_cmds=
14631 module_expsym_cmds=
14632 old_archive_from_new_cmds=
14633 old_archive_from_expsyms_cmds=
14634 thread_safe_flag_spec=
14635 whole_archive_flag_spec=
14636 # include_expsyms should be a list of space-separated symbols to be *always*
14637 # included in the symbol list
14638 include_expsyms=
14639 # exclude_expsyms can be an extended regexp of symbols to exclude
14640 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14641 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14642 # as well as any symbol that contains `d'.
14643 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14644 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14645 # platforms (ab)use it in PIC code, but their linkers get confused if
14646 # the symbol is explicitly referenced. Since portable code cannot
14647 # rely on this symbol name, it's probably fine to never include it in
14648 # preloaded symbol tables.
14649 # Exclude shared library initialization/finalization symbols.
14650 extract_expsyms_cmds=
14652 case $host_os in
14653 cygwin* | mingw* | pw32* | cegcc*)
14654 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14655 # When not using gcc, we currently assume that we are using
14656 # Microsoft Visual C++.
14657 if test "$GCC" != yes; then
14658 with_gnu_ld=no
14661 interix*)
14662 # we just hope/assume this is gcc and not c89 (= MSVC++)
14663 with_gnu_ld=yes
14665 openbsd*)
14666 with_gnu_ld=no
14668 esac
14670 ld_shlibs=yes
14672 # On some targets, GNU ld is compatible enough with the native linker
14673 # that we're better off using the native interface for both.
14674 lt_use_gnu_ld_interface=no
14675 if test "$with_gnu_ld" = yes; then
14676 case $host_os in
14677 aix*)
14678 # The AIX port of GNU ld has always aspired to compatibility
14679 # with the native linker. However, as the warning in the GNU ld
14680 # block says, versions before 2.19.5* couldn't really create working
14681 # shared libraries, regardless of the interface used.
14682 case `$LD -v 2>&1` in
14683 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14684 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14685 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14687 lt_use_gnu_ld_interface=yes
14689 esac
14692 lt_use_gnu_ld_interface=yes
14694 esac
14697 if test "$lt_use_gnu_ld_interface" = yes; then
14698 # If archive_cmds runs LD, not CC, wlarc should be empty
14699 wlarc='${wl}'
14701 # Set some defaults for GNU ld with shared library support. These
14702 # are reset later if shared libraries are not supported. Putting them
14703 # here allows them to be overridden if necessary.
14704 runpath_var=LD_RUN_PATH
14705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14706 export_dynamic_flag_spec='${wl}--export-dynamic'
14707 # ancient GNU ld didn't support --whole-archive et. al.
14708 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14709 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14710 else
14711 whole_archive_flag_spec=
14713 supports_anon_versioning=no
14714 case `$LD -v 2>&1` in
14715 *GNU\ gold*) supports_anon_versioning=yes ;;
14716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719 *\ 2.11.*) ;; # other 2.11 versions
14720 *) supports_anon_versioning=yes ;;
14721 esac
14723 # See if GNU ld supports shared libraries.
14724 case $host_os in
14725 aix[3-9]*)
14726 # On AIX/PPC, the GNU linker is very broken
14727 if test "$host_cpu" != ia64; then
14728 ld_shlibs=no
14729 cat <<_LT_EOF 1>&2
14731 *** Warning: the GNU linker, at least up to release 2.19, is reported
14732 *** to be unable to reliably create shared libraries on AIX.
14733 *** Therefore, libtool is disabling shared libraries support. If you
14734 *** really care for shared libraries, you may want to install binutils
14735 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14736 *** You will then need to restart the configuration process.
14738 _LT_EOF
14742 amigaos*)
14743 case $host_cpu in
14744 powerpc)
14745 # see comment about AmigaOS4 .so support
14746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747 archive_expsym_cmds=''
14749 m68k)
14750 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)'
14751 hardcode_libdir_flag_spec='-L$libdir'
14752 hardcode_minus_L=yes
14754 esac
14757 beos*)
14758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14759 allow_undefined_flag=unsupported
14760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14761 # support --undefined. This deserves some investigation. FIXME
14762 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763 else
14764 ld_shlibs=no
14768 cygwin* | mingw* | pw32* | cegcc*)
14769 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14770 # as there is no search path for DLLs.
14771 hardcode_libdir_flag_spec='-L$libdir'
14772 export_dynamic_flag_spec='${wl}--export-all-symbols'
14773 allow_undefined_flag=unsupported
14774 always_export_symbols=no
14775 enable_shared_with_static_runtimes=yes
14776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14778 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780 # If the export-symbols file already is a .def file (1st line
14781 # is EXPORTS), use it as is; otherwise, prepend...
14782 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14783 cp $export_symbols $output_objdir/$soname.def;
14784 else
14785 echo EXPORTS > $output_objdir/$soname.def;
14786 cat $export_symbols >> $output_objdir/$soname.def;
14788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789 else
14790 ld_shlibs=no
14794 haiku*)
14795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796 link_all_deplibs=yes
14799 interix[3-9]*)
14800 hardcode_direct=no
14801 hardcode_shlibpath_var=no
14802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14803 export_dynamic_flag_spec='${wl}-E'
14804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14805 # Instead, shared libraries are loaded at an image base (0x10000000 by
14806 # default) and relocated if they conflict, which is a slow very memory
14807 # consuming and fragmenting process. To avoid this, we pick a random,
14808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14811 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'
14814 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14815 tmp_diet=no
14816 if test "$host_os" = linux-dietlibc; then
14817 case $cc_basename in
14818 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14819 esac
14821 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14822 && test "$tmp_diet" = no
14823 then
14824 tmp_addflag=
14825 tmp_sharedflag='-shared'
14826 case $cc_basename,$host_cpu in
14827 pgcc*) # Portland Group C compiler
14828 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'
14829 tmp_addflag=' $pic_flag'
14831 pgf77* | pgf90* | pgf95* | pgfortran*)
14832 # Portland Group f77 and f90 compilers
14833 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'
14834 tmp_addflag=' $pic_flag -Mnomain' ;;
14835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14836 tmp_addflag=' -i_dynamic' ;;
14837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14838 tmp_addflag=' -i_dynamic -nofor_main' ;;
14839 ifc* | ifort*) # Intel Fortran compiler
14840 tmp_addflag=' -nofor_main' ;;
14841 lf95*) # Lahey Fortran 8.1
14842 whole_archive_flag_spec=
14843 tmp_sharedflag='--shared' ;;
14844 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14845 tmp_sharedflag='-qmkshrobj'
14846 tmp_addflag= ;;
14847 nvcc*) # Cuda Compiler Driver 2.2
14848 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'
14849 compiler_needs_object=yes
14851 esac
14852 case `$CC -V 2>&1 | sed 5q` in
14853 *Sun\ C*) # Sun C 5.9
14854 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'
14855 compiler_needs_object=yes
14856 tmp_sharedflag='-G' ;;
14857 *Sun\ F*) # Sun Fortran 8.3
14858 tmp_sharedflag='-G' ;;
14859 esac
14860 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 if test "x$supports_anon_versioning" = xyes; then
14863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14865 echo "local: *; };" >> $output_objdir/$libname.ver~
14866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14869 case $cc_basename in
14870 xlf* | bgf* | bgxlf* | mpixlf*)
14871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14872 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14873 hardcode_libdir_flag_spec=
14874 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14875 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14876 if test "x$supports_anon_versioning" = xyes; then
14877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14879 echo "local: *; };" >> $output_objdir/$libname.ver~
14880 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14883 esac
14884 else
14885 ld_shlibs=no
14889 netbsd*)
14890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14891 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14892 wlarc=
14893 else
14894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14899 solaris*)
14900 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14901 ld_shlibs=no
14902 cat <<_LT_EOF 1>&2
14904 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14905 *** create shared libraries on Solaris systems. Therefore, libtool
14906 *** is disabling shared libraries support. We urge you to upgrade GNU
14907 *** binutils to release 2.9.1 or newer. Another option is to modify
14908 *** your PATH or compiler configuration so that the native linker is
14909 *** used, and then restart.
14911 _LT_EOF
14912 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14915 else
14916 ld_shlibs=no
14920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14921 case `$LD -v 2>&1` in
14922 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14923 ld_shlibs=no
14924 cat <<_LT_EOF 1>&2
14926 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14927 *** reliably create shared libraries on SCO systems. Therefore, libtool
14928 *** is disabling shared libraries support. We urge you to upgrade GNU
14929 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14930 *** your PATH or compiler configuration so that the native linker is
14931 *** used, and then restart.
14933 _LT_EOF
14936 # For security reasons, it is highly recommended that you always
14937 # use absolute paths for naming shared libraries, and exclude the
14938 # DT_RUNPATH tag from executables and libraries. But doing so
14939 # requires that you compile everything twice, which is a pain.
14940 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14944 else
14945 ld_shlibs=no
14948 esac
14951 sunos4*)
14952 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14953 wlarc=
14954 hardcode_direct=yes
14955 hardcode_shlibpath_var=no
14959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14962 else
14963 ld_shlibs=no
14966 esac
14968 if test "$ld_shlibs" = no; then
14969 runpath_var=
14970 hardcode_libdir_flag_spec=
14971 export_dynamic_flag_spec=
14972 whole_archive_flag_spec=
14974 else
14975 # PORTME fill in a description of your system's linker (not GNU ld)
14976 case $host_os in
14977 aix3*)
14978 allow_undefined_flag=unsupported
14979 always_export_symbols=yes
14980 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'
14981 # Note: this linker hardcodes the directories in LIBPATH if there
14982 # are no directories specified by -L.
14983 hardcode_minus_L=yes
14984 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14985 # Neither direct hardcoding nor static linking is supported with a
14986 # broken collect2.
14987 hardcode_direct=unsupported
14991 aix[4-9]*)
14992 if test "$host_cpu" = ia64; then
14993 # On IA64, the linker does run time linking by default, so we don't
14994 # have to do anything special.
14995 aix_use_runtimelinking=no
14996 exp_sym_flag='-Bexport'
14997 no_entry_flag=""
14998 else
14999 # If we're using GNU nm, then we don't want the "-C" option.
15000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15001 # Also, AIX nm treats weak defined symbols like other global
15002 # defined symbols, whereas GNU nm marks them as "W".
15003 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15004 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'
15005 else
15006 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'
15008 aix_use_runtimelinking=no
15010 # Test if we are trying to use run time linking or normal
15011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15012 # need to do runtime linking.
15013 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15014 for ld_flag in $LDFLAGS; do
15015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15016 aix_use_runtimelinking=yes
15017 break
15019 done
15021 esac
15023 exp_sym_flag='-bexport'
15024 no_entry_flag='-bnoentry'
15027 # When large executables or shared objects are built, AIX ld can
15028 # have problems creating the table of contents. If linking a library
15029 # or program results in "error TOC overflow" add -mminimal-toc to
15030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15033 archive_cmds=''
15034 hardcode_direct=yes
15035 hardcode_direct_absolute=yes
15036 hardcode_libdir_separator=':'
15037 link_all_deplibs=yes
15038 file_list_spec='${wl}-f,'
15040 if test "$GCC" = yes; then
15041 case $host_os in aix4.[012]|aix4.[012].*)
15042 # We only want to do this on AIX 4.2 and lower, the check
15043 # below for broken collect2 doesn't work under 4.3+
15044 collect2name=`${CC} -print-prog-name=collect2`
15045 if test -f "$collect2name" &&
15046 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15047 then
15048 # We have reworked collect2
15050 else
15051 # We have old collect2
15052 hardcode_direct=unsupported
15053 # It fails to find uninstalled libraries when the uninstalled
15054 # path is not listed in the libpath. Setting hardcode_minus_L
15055 # to unsupported forces relinking
15056 hardcode_minus_L=yes
15057 hardcode_libdir_flag_spec='-L$libdir'
15058 hardcode_libdir_separator=
15061 esac
15062 shared_flag='-shared'
15063 if test "$aix_use_runtimelinking" = yes; then
15064 shared_flag="$shared_flag "'${wl}-G'
15066 else
15067 # not using gcc
15068 if test "$host_cpu" = ia64; then
15069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15070 # chokes on -Wl,-G. The following line is correct:
15071 shared_flag='-G'
15072 else
15073 if test "$aix_use_runtimelinking" = yes; then
15074 shared_flag='${wl}-G'
15075 else
15076 shared_flag='${wl}-bM:SRE'
15081 export_dynamic_flag_spec='${wl}-bexpall'
15082 # It seems that -bexpall does not export symbols beginning with
15083 # underscore (_), so it is better to generate a list of symbols to export.
15084 always_export_symbols=yes
15085 if test "$aix_use_runtimelinking" = yes; then
15086 # Warning - without using the other runtime loading flags (-brtl),
15087 # -berok will link without error, but may produce a broken library.
15088 allow_undefined_flag='-berok'
15089 # Determine the default libpath from the value encoded in an
15090 # empty executable.
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15095 main ()
15099 return 0;
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15104 lt_aix_libpath_sed='
15105 /Import File Strings/,/^$/ {
15106 /^0/ {
15107 s/^0 *\(.*\)$/\1/
15111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15112 # Check for a 64-bit object if we didn't find anything.
15113 if test -z "$aix_libpath"; then
15114 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15122 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"
15123 else
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag="-z nodefs"
15127 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"
15128 else
15129 # Determine the default libpath from the value encoded in an
15130 # empty executable.
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15135 main ()
15139 return 0;
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"; then :
15144 lt_aix_libpath_sed='
15145 /Import File Strings/,/^$/ {
15146 /^0/ {
15147 s/^0 *\(.*\)$/\1/
15151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15152 # Check for a 64-bit object if we didn't find anything.
15153 if test -z "$aix_libpath"; then
15154 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15157 rm -f core conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15159 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15162 # Warning - without using the other run time loading flags,
15163 # -berok will link without error, but may produce a broken library.
15164 no_undefined_flag=' ${wl}-bernotok'
15165 allow_undefined_flag=' ${wl}-berok'
15166 if test "$with_gnu_ld" = yes; then
15167 # We only use this code for GNU lds that support --whole-archive.
15168 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15169 else
15170 # Exported symbols can be pulled into shared objects from archives
15171 whole_archive_flag_spec='$convenience'
15173 archive_cmds_need_lc=yes
15174 # This is similar to how AIX traditionally builds its shared libraries.
15175 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'
15180 amigaos*)
15181 case $host_cpu in
15182 powerpc)
15183 # see comment about AmigaOS4 .so support
15184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds=''
15187 m68k)
15188 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)'
15189 hardcode_libdir_flag_spec='-L$libdir'
15190 hardcode_minus_L=yes
15192 esac
15195 bsdi[45]*)
15196 export_dynamic_flag_spec=-rdynamic
15199 cygwin* | mingw* | pw32* | cegcc*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
15204 hardcode_libdir_flag_spec=' '
15205 allow_undefined_flag=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15207 libext=lib
15208 # Tell ltmain to make .dll files, not .so files.
15209 shrext_cmds=".dll"
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_from_new_cmds='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15216 fix_srcfile_path='`cygpath -w "$srcfile"`'
15217 enable_shared_with_static_runtimes=yes
15220 darwin* | rhapsody*)
15223 archive_cmds_need_lc=no
15224 hardcode_direct=no
15225 hardcode_automatic=yes
15226 hardcode_shlibpath_var=unsupported
15227 if test "$lt_cv_ld_force_load" = "yes"; then
15228 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\"`'
15229 else
15230 whole_archive_flag_spec=''
15232 link_all_deplibs=yes
15233 allow_undefined_flag="$_lt_dar_allow_undefined"
15234 case $cc_basename in
15235 ifort*) _lt_dar_can_shared=yes ;;
15236 *) _lt_dar_can_shared=$GCC ;;
15237 esac
15238 if test "$_lt_dar_can_shared" = "yes"; then
15239 output_verbose_link_cmd=func_echo_all
15240 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15241 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15242 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}"
15243 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}"
15245 else
15246 ld_shlibs=no
15251 dgux*)
15252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15253 hardcode_libdir_flag_spec='-L$libdir'
15254 hardcode_shlibpath_var=no
15257 freebsd1*)
15258 ld_shlibs=no
15261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15262 # support. Future versions do this automatically, but an explicit c++rt0.o
15263 # does not break anything, and helps significantly (at the cost of a little
15264 # extra space).
15265 freebsd2.2*)
15266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15267 hardcode_libdir_flag_spec='-R$libdir'
15268 hardcode_direct=yes
15269 hardcode_shlibpath_var=no
15272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15273 freebsd2*)
15274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_direct=yes
15276 hardcode_minus_L=yes
15277 hardcode_shlibpath_var=no
15280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15281 freebsd* | dragonfly*)
15282 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15283 hardcode_libdir_flag_spec='-R$libdir'
15284 hardcode_direct=yes
15285 hardcode_shlibpath_var=no
15288 hpux9*)
15289 if test "$GCC" = yes; then
15290 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'
15291 else
15292 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'
15294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15295 hardcode_libdir_separator=:
15296 hardcode_direct=yes
15298 # hardcode_minus_L: Not really in the search PATH,
15299 # but as the default location of the library.
15300 hardcode_minus_L=yes
15301 export_dynamic_flag_spec='${wl}-E'
15304 hpux10*)
15305 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15306 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15307 else
15308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15310 if test "$with_gnu_ld" = no; then
15311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15312 hardcode_libdir_flag_spec_ld='+b $libdir'
15313 hardcode_libdir_separator=:
15314 hardcode_direct=yes
15315 hardcode_direct_absolute=yes
15316 export_dynamic_flag_spec='${wl}-E'
15317 # hardcode_minus_L: Not really in the search PATH,
15318 # but as the default location of the library.
15319 hardcode_minus_L=yes
15323 hpux11*)
15324 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15325 case $host_cpu in
15326 hppa*64*)
15327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15329 ia64*)
15330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15335 esac
15336 else
15337 case $host_cpu in
15338 hppa*64*)
15339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15341 ia64*)
15342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15346 # Older versions of the 11.00 compiler do not understand -b yet
15347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15349 $as_echo_n "checking if $CC understands -b... " >&6; }
15350 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15353 lt_cv_prog_compiler__b=no
15354 save_LDFLAGS="$LDFLAGS"
15355 LDFLAGS="$LDFLAGS -b"
15356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15358 # The linker can only warn and ignore the option if not recognized
15359 # So say no if there are warnings
15360 if test -s conftest.err; then
15361 # Append any errors to the config.log.
15362 cat conftest.err 1>&5
15363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15365 if diff conftest.exp conftest.er2 >/dev/null; then
15366 lt_cv_prog_compiler__b=yes
15368 else
15369 lt_cv_prog_compiler__b=yes
15372 $RM -r conftest*
15373 LDFLAGS="$save_LDFLAGS"
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15377 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15379 if test x"$lt_cv_prog_compiler__b" = xyes; then
15380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15381 else
15382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15386 esac
15388 if test "$with_gnu_ld" = no; then
15389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15390 hardcode_libdir_separator=:
15392 case $host_cpu in
15393 hppa*64*|ia64*)
15394 hardcode_direct=no
15395 hardcode_shlibpath_var=no
15398 hardcode_direct=yes
15399 hardcode_direct_absolute=yes
15400 export_dynamic_flag_spec='${wl}-E'
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L=yes
15406 esac
15410 irix5* | irix6* | nonstopux*)
15411 if test "$GCC" = yes; then
15412 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'
15413 # Try to use the -exported_symbol ld option, if it does not
15414 # work, assume that -exports_file does not work either and
15415 # implicitly export all symbols.
15416 save_LDFLAGS="$LDFLAGS"
15417 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420 int foo(void) {}
15421 _ACEOF
15422 if ac_fn_c_try_link "$LINENO"; then :
15423 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'
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LDFLAGS="$save_LDFLAGS"
15429 else
15430 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'
15431 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'
15433 archive_cmds_need_lc='no'
15434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15435 hardcode_libdir_separator=:
15436 inherit_rpath=yes
15437 link_all_deplibs=yes
15440 netbsd*)
15441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15443 else
15444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15446 hardcode_libdir_flag_spec='-R$libdir'
15447 hardcode_direct=yes
15448 hardcode_shlibpath_var=no
15451 newsos6)
15452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_direct=yes
15454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15455 hardcode_libdir_separator=:
15456 hardcode_shlibpath_var=no
15459 *nto* | *qnx*)
15462 openbsd*)
15463 if test -f /usr/libexec/ld.so; then
15464 hardcode_direct=yes
15465 hardcode_shlibpath_var=no
15466 hardcode_direct_absolute=yes
15467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15471 export_dynamic_flag_spec='${wl}-E'
15472 else
15473 case $host_os in
15474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec='-R$libdir'
15479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15482 esac
15484 else
15485 ld_shlibs=no
15489 os2*)
15490 hardcode_libdir_flag_spec='-L$libdir'
15491 hardcode_minus_L=yes
15492 allow_undefined_flag=unsupported
15493 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'
15494 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15497 osf3*)
15498 if test "$GCC" = yes; then
15499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15500 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'
15501 else
15502 allow_undefined_flag=' -expect_unresolved \*'
15503 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'
15505 archive_cmds_need_lc='no'
15506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15507 hardcode_libdir_separator=:
15510 osf4* | osf5*) # as osf3* with the addition of -msym flag
15511 if test "$GCC" = yes; then
15512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15513 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'
15514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15515 else
15516 allow_undefined_flag=' -expect_unresolved \*'
15517 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'
15518 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~
15519 $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'
15521 # Both c and cxx compiler support -rpath directly
15522 hardcode_libdir_flag_spec='-rpath $libdir'
15524 archive_cmds_need_lc='no'
15525 hardcode_libdir_separator=:
15528 solaris*)
15529 no_undefined_flag=' -z defs'
15530 if test "$GCC" = yes; then
15531 wlarc='${wl}'
15532 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15534 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15535 else
15536 case `$CC -V 2>&1` in
15537 *"Compilers 5.0"*)
15538 wlarc=''
15539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15544 wlarc='${wl}'
15545 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15549 esac
15551 hardcode_libdir_flag_spec='-R$libdir'
15552 hardcode_shlibpath_var=no
15553 case $host_os in
15554 solaris2.[0-5] | solaris2.[0-5].*) ;;
15556 # The compiler driver will combine and reorder linker options,
15557 # but understands `-z linker_flag'. GCC discards it without `$wl',
15558 # but is careful enough not to reorder.
15559 # Supported since Solaris 2.6 (maybe 2.5.1?)
15560 if test "$GCC" = yes; then
15561 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15562 else
15563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15566 esac
15567 link_all_deplibs=yes
15570 sunos4*)
15571 if test "x$host_vendor" = xsequent; then
15572 # Use $CC to link under sequent, because it throws in some extra .o
15573 # files that make .init and .fini sections work.
15574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15575 else
15576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_libdir_flag_spec='-L$libdir'
15579 hardcode_direct=yes
15580 hardcode_minus_L=yes
15581 hardcode_shlibpath_var=no
15584 sysv4)
15585 case $host_vendor in
15586 sni)
15587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_direct=yes # is this really true???
15590 siemens)
15591 ## LD is ld it makes a PLAMLIB
15592 ## CC just makes a GrossModule.
15593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15594 reload_cmds='$CC -r -o $output$reload_objs'
15595 hardcode_direct=no
15597 motorola)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15601 esac
15602 runpath_var='LD_RUN_PATH'
15603 hardcode_shlibpath_var=no
15606 sysv4.3*)
15607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_shlibpath_var=no
15609 export_dynamic_flag_spec='-Bexport'
15612 sysv4*MP*)
15613 if test -d /usr/nec; then
15614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_shlibpath_var=no
15616 runpath_var=LD_RUN_PATH
15617 hardcode_runpath_var=yes
15618 ld_shlibs=yes
15622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15623 no_undefined_flag='${wl}-z,text'
15624 archive_cmds_need_lc=no
15625 hardcode_shlibpath_var=no
15626 runpath_var='LD_RUN_PATH'
15628 if test "$GCC" = yes; then
15629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631 else
15632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 sysv5* | sco3.2v5* | sco5v6*)
15638 # Note: We can NOT use -z defs as we might desire, because we do not
15639 # link with -lc, and that would cause any symbols used from libc to
15640 # always be unresolved, which means just about no library would
15641 # ever link correctly. If we're not using GNU ld we use -z text
15642 # though, which does catch some bad symbols but isn't as heavy-handed
15643 # as -z defs.
15644 no_undefined_flag='${wl}-z,text'
15645 allow_undefined_flag='${wl}-z,nodefs'
15646 archive_cmds_need_lc=no
15647 hardcode_shlibpath_var=no
15648 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15649 hardcode_libdir_separator=':'
15650 link_all_deplibs=yes
15651 export_dynamic_flag_spec='${wl}-Bexport'
15652 runpath_var='LD_RUN_PATH'
15654 if test "$GCC" = yes; then
15655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 else
15658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 uts4*)
15664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_libdir_flag_spec='-L$libdir'
15666 hardcode_shlibpath_var=no
15670 ld_shlibs=no
15672 esac
15674 if test x$host_vendor = xsni; then
15675 case $host in
15676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15677 export_dynamic_flag_spec='${wl}-Blargedynsym'
15679 esac
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15684 $as_echo "$ld_shlibs" >&6; }
15685 test "$ld_shlibs" = no && can_build_shared=no
15687 with_gnu_ld=$with_gnu_ld
15704 # Do we need to explicitly link libc?
15706 case "x$archive_cmds_need_lc" in
15707 x|xyes)
15708 # Assume -lc should be added
15709 archive_cmds_need_lc=yes
15711 if test "$enable_shared" = yes && test "$GCC" = yes; then
15712 case $archive_cmds in
15713 *'~'*)
15714 # FIXME: we may have to deal with multi-command sequences.
15716 '$CC '*)
15717 # Test whether the compiler implicitly links with -lc since on some
15718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15719 # to ld, don't add -lc before -lgcc.
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15722 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 $RM conftest*
15726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15729 (eval $ac_compile) 2>&5
15730 ac_status=$?
15731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732 test $ac_status = 0; } 2>conftest.err; then
15733 soname=conftest
15734 lib=conftest
15735 libobjs=conftest.$ac_objext
15736 deplibs=
15737 wl=$lt_prog_compiler_wl
15738 pic_flag=$lt_prog_compiler_pic
15739 compiler_flags=-v
15740 linker_flags=-v
15741 verstring=
15742 output_objdir=.
15743 libname=conftest
15744 lt_save_allow_undefined_flag=$allow_undefined_flag
15745 allow_undefined_flag=
15746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15748 ac_status=$?
15749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15750 test $ac_status = 0; }
15751 then
15752 lt_cv_archive_cmds_need_lc=no
15753 else
15754 lt_cv_archive_cmds_need_lc=yes
15756 allow_undefined_flag=$lt_save_allow_undefined_flag
15757 else
15758 cat conftest.err 1>&5
15760 $RM conftest*
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15764 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15765 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15767 esac
15770 esac
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15931 if test "$GCC" = yes; then
15932 case $host_os in
15933 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15934 *) lt_awk_arg="/^libraries:/" ;;
15935 esac
15936 case $host_os in
15937 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15938 *) lt_sed_strip_eq="s,=/,/,g" ;;
15939 esac
15940 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15941 case $lt_search_path_spec in
15942 *\;*)
15943 # if the path contains ";" then we assume it to be the separator
15944 # otherwise default to the standard path separator (i.e. ":") - it is
15945 # assumed that no part of a normal pathname contains ";" but that should
15946 # okay in the real world where ";" in dirpaths is itself problematic.
15947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15952 esac
15953 # Ok, now we have the path, separated by spaces, we can step through it
15954 # and add multilib dir if necessary.
15955 lt_tmp_lt_search_path_spec=
15956 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15957 for lt_sys_path in $lt_search_path_spec; do
15958 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15960 else
15961 test -d "$lt_sys_path" && \
15962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15964 done
15965 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15966 BEGIN {RS=" "; FS="/|\n";} {
15967 lt_foo="";
15968 lt_count=0;
15969 for (lt_i = NF; lt_i > 0; lt_i--) {
15970 if ($lt_i != "" && $lt_i != ".") {
15971 if ($lt_i == "..") {
15972 lt_count++;
15973 } else {
15974 if (lt_count == 0) {
15975 lt_foo="/" $lt_i lt_foo;
15976 } else {
15977 lt_count--;
15982 if (lt_foo != "") { lt_freq[lt_foo]++; }
15983 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15985 # AWK program above erroneously prepends '/' to C:/dos/paths
15986 # for these hosts.
15987 case $host_os in
15988 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15989 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15990 esac
15991 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15992 else
15993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15995 library_names_spec=
15996 libname_spec='lib$name'
15997 soname_spec=
15998 shrext_cmds=".so"
15999 postinstall_cmds=
16000 postuninstall_cmds=
16001 finish_cmds=
16002 finish_eval=
16003 shlibpath_var=
16004 shlibpath_overrides_runpath=unknown
16005 version_type=none
16006 dynamic_linker="$host_os ld.so"
16007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16008 need_lib_prefix=unknown
16009 hardcode_into_libs=no
16011 # when you set need_version to no, make sure it does not cause -set_version
16012 # flags to be left without arguments
16013 need_version=unknown
16015 case $host_os in
16016 aix3*)
16017 version_type=linux
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16019 shlibpath_var=LIBPATH
16021 # AIX 3 has no versioning support, so we append a major version to the name.
16022 soname_spec='${libname}${release}${shared_ext}$major'
16025 aix[4-9]*)
16026 version_type=linux
16027 need_lib_prefix=no
16028 need_version=no
16029 hardcode_into_libs=yes
16030 if test "$host_cpu" = ia64; then
16031 # AIX 5 supports IA64
16032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 else
16035 # With GCC up to 2.95.x, collect2 would create an import file
16036 # for dependence libraries. The import file would start with
16037 # the line `#! .'. This would cause the generated library to
16038 # depend on `.', always an invalid library. This was fixed in
16039 # development snapshots of GCC prior to 3.0.
16040 case $host_os in
16041 aix4 | aix4.[01] | aix4.[01].*)
16042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16043 echo ' yes '
16044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16046 else
16047 can_build_shared=no
16050 esac
16051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16052 # soname into executable. Probably we can add versioning support to
16053 # collect2, so additional links can be useful in future.
16054 if test "$aix_use_runtimelinking" = yes; then
16055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16056 # instead of lib<name>.a to let people know that these are not
16057 # typical AIX shared libraries.
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 else
16060 # We preserve .a as extension for shared libraries through AIX4.2
16061 # and later when we are not doing run time linking.
16062 library_names_spec='${libname}${release}.a $libname.a'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16065 shlibpath_var=LIBPATH
16069 amigaos*)
16070 case $host_cpu in
16071 powerpc)
16072 # Since July 2007 AmigaOS4 officially supports .so libraries.
16073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 m68k)
16077 library_names_spec='$libname.ixlibrary $libname.a'
16078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16079 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'
16081 esac
16084 beos*)
16085 library_names_spec='${libname}${shared_ext}'
16086 dynamic_linker="$host_os ld.so"
16087 shlibpath_var=LIBRARY_PATH
16090 bsdi[45]*)
16091 version_type=linux
16092 need_version=no
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16099 # the default ld.so.conf also contains /usr/contrib/lib and
16100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16101 # libtool to hard-code these into programs
16104 cygwin* | mingw* | pw32* | cegcc*)
16105 version_type=windows
16106 shrext_cmds=".dll"
16107 need_version=no
16108 need_lib_prefix=no
16110 case $GCC,$host_os in
16111 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16112 library_names_spec='$libname.dll.a'
16113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16114 postinstall_cmds='base_file=`basename \${file}`~
16115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16116 dldir=$destdir/`dirname \$dlpath`~
16117 test -d \$dldir || mkdir -p \$dldir~
16118 $install_prog $dir/$dlname \$dldir/$dlname~
16119 chmod a+x \$dldir/$dlname~
16120 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16121 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16124 dlpath=$dir/\$dldll~
16125 $RM \$dlpath'
16126 shlibpath_overrides_runpath=yes
16128 case $host_os in
16129 cygwin*)
16130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16131 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16133 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16135 mingw* | cegcc*)
16136 # MinGW DLLs use traditional 'lib' prefix
16137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16139 pw32*)
16140 # pw32 DLLs use 'pw' prefix rather than 'lib'
16141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16143 esac
16147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16149 esac
16150 dynamic_linker='Win32 ld.exe'
16151 # FIXME: first we should search . and the directory the executable is in
16152 shlibpath_var=PATH
16155 darwin* | rhapsody*)
16156 dynamic_linker="$host_os dyld"
16157 version_type=darwin
16158 need_lib_prefix=no
16159 need_version=no
16160 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16161 soname_spec='${libname}${release}${major}$shared_ext'
16162 shlibpath_overrides_runpath=yes
16163 shlibpath_var=DYLD_LIBRARY_PATH
16164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170 dgux*)
16171 version_type=linux
16172 need_lib_prefix=no
16173 need_version=no
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16179 freebsd1*)
16180 dynamic_linker=no
16183 freebsd* | dragonfly*)
16184 # DragonFly does not have aout. When/if they implement a new
16185 # versioning mechanism, adjust this.
16186 if test -x /usr/bin/objformat; then
16187 objformat=`/usr/bin/objformat`
16188 else
16189 case $host_os in
16190 freebsd[123]*) objformat=aout ;;
16191 *) objformat=elf ;;
16192 esac
16194 version_type=freebsd-$objformat
16195 case $version_type in
16196 freebsd-elf*)
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16198 need_version=no
16199 need_lib_prefix=no
16201 freebsd-*)
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16203 need_version=yes
16205 esac
16206 shlibpath_var=LD_LIBRARY_PATH
16207 case $host_os in
16208 freebsd2*)
16209 shlibpath_overrides_runpath=yes
16211 freebsd3.[01]* | freebsdelf3.[01]*)
16212 shlibpath_overrides_runpath=yes
16213 hardcode_into_libs=yes
16215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16217 shlibpath_overrides_runpath=no
16218 hardcode_into_libs=yes
16220 *) # from 4.6 on, and DragonFly
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16224 esac
16227 gnu*)
16228 version_type=linux
16229 need_lib_prefix=no
16230 need_version=no
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 hardcode_into_libs=yes
16237 haiku*)
16238 version_type=linux
16239 need_lib_prefix=no
16240 need_version=no
16241 dynamic_linker="$host_os runtime_loader"
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LIBRARY_PATH
16245 shlibpath_overrides_runpath=yes
16246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16247 hardcode_into_libs=yes
16250 hpux9* | hpux10* | hpux11*)
16251 # Give a soname corresponding to the major version so that dld.sl refuses to
16252 # link against other versions.
16253 version_type=sunos
16254 need_lib_prefix=no
16255 need_version=no
16256 case $host_cpu in
16257 ia64*)
16258 shrext_cmds='.so'
16259 hardcode_into_libs=yes
16260 dynamic_linker="$host_os dld.so"
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 if test "X$HPUX_IA64_MODE" = X32; then
16266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16267 else
16268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 hppa*64*)
16273 shrext_cmds='.sl'
16274 hardcode_into_libs=yes
16275 dynamic_linker="$host_os dld.sl"
16276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16284 shrext_cmds='.sl'
16285 dynamic_linker="$host_os dld.sl"
16286 shlibpath_var=SHLIB_PATH
16287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16291 esac
16292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16293 postinstall_cmds='chmod 555 $lib'
16294 # or fails outright, so override atomically:
16295 install_override_mode=555
16298 interix[3-9]*)
16299 version_type=linux
16300 need_lib_prefix=no
16301 need_version=no
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=no
16307 hardcode_into_libs=yes
16310 irix5* | irix6* | nonstopux*)
16311 case $host_os in
16312 nonstopux*) version_type=nonstopux ;;
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16315 version_type=linux
16316 else
16317 version_type=irix
16318 fi ;;
16319 esac
16320 need_lib_prefix=no
16321 need_version=no
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 case $host_os in
16325 irix5* | nonstopux*)
16326 libsuff= shlibsuff=
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331 libsuff= shlibsuff= libmagic=32-bit;;
16332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333 libsuff=32 shlibsuff=N32 libmagic=N32;;
16334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336 *) libsuff= shlibsuff= libmagic=never-match;;
16337 esac
16339 esac
16340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341 shlibpath_overrides_runpath=no
16342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs=yes
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux*oldld* | linux*aout* | linux*coff*)
16349 dynamic_linker=no
16352 # This must be Linux ELF.
16353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16354 version_type=linux
16355 need_lib_prefix=no
16356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16363 # Some binutils ld are patched to set DT_RUNPATH
16364 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 lt_cv_shlibpath_overrides_runpath=no
16368 save_LDFLAGS=$LDFLAGS
16369 save_libdir=$libdir
16370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16376 main ()
16380 return 0;
16382 _ACEOF
16383 if ac_fn_c_try_link "$LINENO"; then :
16384 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16385 lt_cv_shlibpath_overrides_runpath=yes
16388 rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 LDFLAGS=$save_LDFLAGS
16391 libdir=$save_libdir
16395 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16397 # This implies no fast_install, which is unacceptable.
16398 # Some rework will be needed to allow for fast_install
16399 # before this can be enabled.
16400 hardcode_into_libs=yes
16402 # Append ld.so.conf contents to the search path
16403 if test -f /etc/ld.so.conf; then
16404 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' ' '`
16405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16408 # We used to test for /lib/ld.so.1 and disable shared libraries on
16409 # powerpc, because MkLinux only supported shared libraries with the
16410 # GNU dynamic linker. Since this was broken with cross compilers,
16411 # most powerpc-linux boxes support dynamic linking these days and
16412 # people can always --disable-shared, the test was removed, and we
16413 # assume the GNU/Linux dynamic linker is in use.
16414 dynamic_linker='GNU/Linux ld.so'
16417 netbsd*)
16418 version_type=sunos
16419 need_lib_prefix=no
16420 need_version=no
16421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16424 dynamic_linker='NetBSD (a.out) ld.so'
16425 else
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 dynamic_linker='NetBSD ld.elf_so'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=yes
16432 hardcode_into_libs=yes
16435 newsos6)
16436 version_type=linux
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16442 *nto* | *qnx*)
16443 version_type=qnx
16444 need_lib_prefix=no
16445 need_version=no
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=no
16450 hardcode_into_libs=yes
16451 dynamic_linker='ldqnx.so'
16454 openbsd*)
16455 version_type=sunos
16456 sys_lib_dlsearch_path_spec="/usr/lib"
16457 need_lib_prefix=no
16458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16459 case $host_os in
16460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16461 *) need_version=no ;;
16462 esac
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16467 case $host_os in
16468 openbsd2.[89] | openbsd2.[89].*)
16469 shlibpath_overrides_runpath=no
16472 shlibpath_overrides_runpath=yes
16474 esac
16475 else
16476 shlibpath_overrides_runpath=yes
16480 os2*)
16481 libname_spec='$name'
16482 shrext_cmds=".dll"
16483 need_lib_prefix=no
16484 library_names_spec='$libname${shared_ext} $libname.a'
16485 dynamic_linker='OS/2 ld.exe'
16486 shlibpath_var=LIBPATH
16489 osf3* | osf4* | osf5*)
16490 version_type=osf
16491 need_lib_prefix=no
16492 need_version=no
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16500 rdos*)
16501 dynamic_linker=no
16504 solaris*)
16505 version_type=linux
16506 need_lib_prefix=no
16507 need_version=no
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=yes
16512 hardcode_into_libs=yes
16513 # ldd complains unless libraries are executable
16514 postinstall_cmds='chmod +x $lib'
16517 sunos4*)
16518 version_type=sunos
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=yes
16523 if test "$with_gnu_ld" = yes; then
16524 need_lib_prefix=no
16526 need_version=yes
16529 sysv4 | sysv4.3*)
16530 version_type=linux
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 case $host_vendor in
16535 sni)
16536 shlibpath_overrides_runpath=no
16537 need_lib_prefix=no
16538 runpath_var=LD_RUN_PATH
16540 siemens)
16541 need_lib_prefix=no
16543 motorola)
16544 need_lib_prefix=no
16545 need_version=no
16546 shlibpath_overrides_runpath=no
16547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16549 esac
16552 sysv4*MP*)
16553 if test -d /usr/nec ;then
16554 version_type=linux
16555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16556 soname_spec='$libname${shared_ext}.$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16562 version_type=freebsd-elf
16563 need_lib_prefix=no
16564 need_version=no
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath=yes
16569 hardcode_into_libs=yes
16570 if test "$with_gnu_ld" = yes; then
16571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16572 else
16573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16574 case $host_os in
16575 sco3.2v5*)
16576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16578 esac
16580 sys_lib_dlsearch_path_spec='/usr/lib'
16583 tpf*)
16584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16585 version_type=linux
16586 need_lib_prefix=no
16587 need_version=no
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=no
16591 hardcode_into_libs=yes
16594 uts4*)
16595 version_type=linux
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16602 dynamic_linker=no
16604 esac
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16606 $as_echo "$dynamic_linker" >&6; }
16607 test "$dynamic_linker" = no && can_build_shared=no
16609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16610 if test "$GCC" = yes; then
16611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16617 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16618 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16714 hardcode_action=
16715 if test -n "$hardcode_libdir_flag_spec" ||
16716 test -n "$runpath_var" ||
16717 test "X$hardcode_automatic" = "Xyes" ; then
16719 # We can hardcode non-existent directories.
16720 if test "$hardcode_direct" != no &&
16721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16722 # have to relink, otherwise we might link with an installed library
16723 # when we should be linking with a yet-to-be-installed one
16724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16725 test "$hardcode_minus_L" != no; then
16726 # Linking always hardcodes the temporary library directory.
16727 hardcode_action=relink
16728 else
16729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16730 hardcode_action=immediate
16732 else
16733 # We cannot hardcode anything, or else we can only hardcode existing
16734 # directories.
16735 hardcode_action=unsupported
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16738 $as_echo "$hardcode_action" >&6; }
16740 if test "$hardcode_action" = relink ||
16741 test "$inherit_rpath" = yes; then
16742 # Fast installation is not supported
16743 enable_fast_install=no
16744 elif test "$shlibpath_overrides_runpath" = yes ||
16745 test "$enable_shared" = no; then
16746 # Fast installation is not necessary
16747 enable_fast_install=needless
16755 if test "x$enable_dlopen" != xyes; then
16756 enable_dlopen=unknown
16757 enable_dlopen_self=unknown
16758 enable_dlopen_self_static=unknown
16759 else
16760 lt_cv_dlopen=no
16761 lt_cv_dlopen_libs=
16763 case $host_os in
16764 beos*)
16765 lt_cv_dlopen="load_add_on"
16766 lt_cv_dlopen_libs=
16767 lt_cv_dlopen_self=yes
16770 mingw* | pw32* | cegcc*)
16771 lt_cv_dlopen="LoadLibrary"
16772 lt_cv_dlopen_libs=
16775 cygwin*)
16776 lt_cv_dlopen="dlopen"
16777 lt_cv_dlopen_libs=
16780 darwin*)
16781 # if libdl is installed we need to link against it
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-ldl $LIBS"
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16792 /* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
16795 #ifdef __cplusplus
16796 extern "C"
16797 #endif
16798 char dlopen ();
16800 main ()
16802 return dlopen ();
16804 return 0;
16806 _ACEOF
16807 if ac_fn_c_try_link "$LINENO"; then :
16808 ac_cv_lib_dl_dlopen=yes
16809 else
16810 ac_cv_lib_dl_dlopen=no
16812 rm -f core conftest.err conftest.$ac_objext \
16813 conftest$ac_exeext conftest.$ac_ext
16814 LIBS=$ac_check_lib_save_LIBS
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16818 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16820 else
16822 lt_cv_dlopen="dyld"
16823 lt_cv_dlopen_libs=
16824 lt_cv_dlopen_self=yes
16831 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16832 if test "x$ac_cv_func_shl_load" = x""yes; then :
16833 lt_cv_dlopen="shl_load"
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840 ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-ldld $LIBS"
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 char shl_load ();
16853 main ()
16855 return shl_load ();
16857 return 0;
16859 _ACEOF
16860 if ac_fn_c_try_link "$LINENO"; then :
16861 ac_cv_lib_dld_shl_load=yes
16862 else
16863 ac_cv_lib_dld_shl_load=no
16865 rm -f core conftest.err conftest.$ac_objext \
16866 conftest$ac_exeext conftest.$ac_ext
16867 LIBS=$ac_check_lib_save_LIBS
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16871 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16873 else
16874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16875 if test "x$ac_cv_func_dlopen" = x""yes; then :
16876 lt_cv_dlopen="dlopen"
16877 else
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16881 $as_echo_n "(cached) " >&6
16882 else
16883 ac_check_lib_save_LIBS=$LIBS
16884 LIBS="-ldl $LIBS"
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16888 /* Override any GCC internal prototype to avoid an error.
16889 Use char because int might match the return type of a GCC
16890 builtin and then its argument prototype would still apply. */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 char dlopen ();
16896 main ()
16898 return dlopen ();
16900 return 0;
16902 _ACEOF
16903 if ac_fn_c_try_link "$LINENO"; then :
16904 ac_cv_lib_dl_dlopen=yes
16905 else
16906 ac_cv_lib_dl_dlopen=no
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 LIBS=$ac_check_lib_save_LIBS
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16914 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16916 else
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16919 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16921 else
16922 ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-lsvld $LIBS"
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char dlopen ();
16935 main ()
16937 return dlopen ();
16939 return 0;
16941 _ACEOF
16942 if ac_fn_c_try_link "$LINENO"; then :
16943 ac_cv_lib_svld_dlopen=yes
16944 else
16945 ac_cv_lib_svld_dlopen=no
16947 rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
16949 LIBS=$ac_check_lib_save_LIBS
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16953 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16955 else
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16958 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 ac_check_lib_save_LIBS=$LIBS
16962 LIBS="-ldld $LIBS"
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char dld_link ();
16974 main ()
16976 return dld_link ();
16978 return 0;
16980 _ACEOF
16981 if ac_fn_c_try_link "$LINENO"; then :
16982 ac_cv_lib_dld_dld_link=yes
16983 else
16984 ac_cv_lib_dld_dld_link=no
16986 rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988 LIBS=$ac_check_lib_save_LIBS
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16992 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17012 esac
17014 if test "x$lt_cv_dlopen" != xno; then
17015 enable_dlopen=yes
17016 else
17017 enable_dlopen=no
17020 case $lt_cv_dlopen in
17021 dlopen)
17022 save_CPPFLAGS="$CPPFLAGS"
17023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17025 save_LDFLAGS="$LDFLAGS"
17026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17028 save_LIBS="$LIBS"
17029 LIBS="$lt_cv_dlopen_libs $LIBS"
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17033 if test "${lt_cv_dlopen_self+set}" = set; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 if test "$cross_compiling" = yes; then :
17037 lt_cv_dlopen_self=cross
17038 else
17039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17040 lt_status=$lt_dlunknown
17041 cat > conftest.$ac_ext <<_LT_EOF
17042 #line 17042 "configure"
17043 #include "confdefs.h"
17045 #if HAVE_DLFCN_H
17046 #include <dlfcn.h>
17047 #endif
17049 #include <stdio.h>
17051 #ifdef RTLD_GLOBAL
17052 # define LT_DLGLOBAL RTLD_GLOBAL
17053 #else
17054 # ifdef DL_GLOBAL
17055 # define LT_DLGLOBAL DL_GLOBAL
17056 # else
17057 # define LT_DLGLOBAL 0
17058 # endif
17059 #endif
17061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17062 find out it does not work in some platform. */
17063 #ifndef LT_DLLAZY_OR_NOW
17064 # ifdef RTLD_LAZY
17065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17066 # else
17067 # ifdef DL_LAZY
17068 # define LT_DLLAZY_OR_NOW DL_LAZY
17069 # else
17070 # ifdef RTLD_NOW
17071 # define LT_DLLAZY_OR_NOW RTLD_NOW
17072 # else
17073 # ifdef DL_NOW
17074 # define LT_DLLAZY_OR_NOW DL_NOW
17075 # else
17076 # define LT_DLLAZY_OR_NOW 0
17077 # endif
17078 # endif
17079 # endif
17080 # endif
17081 #endif
17083 /* When -fvisbility=hidden is used, assume the code has been annotated
17084 correspondingly for the symbols needed. */
17085 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17086 void fnord () __attribute__((visibility("default")));
17087 #endif
17089 void fnord () { int i=42; }
17090 int main ()
17092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17093 int status = $lt_dlunknown;
17095 if (self)
17097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17098 else
17100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17101 else puts (dlerror ());
17103 /* dlclose (self); */
17105 else
17106 puts (dlerror ());
17108 return status;
17110 _LT_EOF
17111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17112 (eval $ac_link) 2>&5
17113 ac_status=$?
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17116 (./conftest; exit; ) >&5 2>/dev/null
17117 lt_status=$?
17118 case x$lt_status in
17119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17122 esac
17123 else :
17124 # compilation failed
17125 lt_cv_dlopen_self=no
17128 rm -fr conftest*
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17133 $as_echo "$lt_cv_dlopen_self" >&6; }
17135 if test "x$lt_cv_dlopen_self" = xyes; then
17136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17139 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17140 $as_echo_n "(cached) " >&6
17141 else
17142 if test "$cross_compiling" = yes; then :
17143 lt_cv_dlopen_self_static=cross
17144 else
17145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17146 lt_status=$lt_dlunknown
17147 cat > conftest.$ac_ext <<_LT_EOF
17148 #line 17148 "configure"
17149 #include "confdefs.h"
17151 #if HAVE_DLFCN_H
17152 #include <dlfcn.h>
17153 #endif
17155 #include <stdio.h>
17157 #ifdef RTLD_GLOBAL
17158 # define LT_DLGLOBAL RTLD_GLOBAL
17159 #else
17160 # ifdef DL_GLOBAL
17161 # define LT_DLGLOBAL DL_GLOBAL
17162 # else
17163 # define LT_DLGLOBAL 0
17164 # endif
17165 #endif
17167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17168 find out it does not work in some platform. */
17169 #ifndef LT_DLLAZY_OR_NOW
17170 # ifdef RTLD_LAZY
17171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17172 # else
17173 # ifdef DL_LAZY
17174 # define LT_DLLAZY_OR_NOW DL_LAZY
17175 # else
17176 # ifdef RTLD_NOW
17177 # define LT_DLLAZY_OR_NOW RTLD_NOW
17178 # else
17179 # ifdef DL_NOW
17180 # define LT_DLLAZY_OR_NOW DL_NOW
17181 # else
17182 # define LT_DLLAZY_OR_NOW 0
17183 # endif
17184 # endif
17185 # endif
17186 # endif
17187 #endif
17189 /* When -fvisbility=hidden is used, assume the code has been annotated
17190 correspondingly for the symbols needed. */
17191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17192 void fnord () __attribute__((visibility("default")));
17193 #endif
17195 void fnord () { int i=42; }
17196 int main ()
17198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17199 int status = $lt_dlunknown;
17201 if (self)
17203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17204 else
17206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17207 else puts (dlerror ());
17209 /* dlclose (self); */
17211 else
17212 puts (dlerror ());
17214 return status;
17216 _LT_EOF
17217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17218 (eval $ac_link) 2>&5
17219 ac_status=$?
17220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17222 (./conftest; exit; ) >&5 2>/dev/null
17223 lt_status=$?
17224 case x$lt_status in
17225 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17226 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17227 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17228 esac
17229 else :
17230 # compilation failed
17231 lt_cv_dlopen_self_static=no
17234 rm -fr conftest*
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17242 CPPFLAGS="$save_CPPFLAGS"
17243 LDFLAGS="$save_LDFLAGS"
17244 LIBS="$save_LIBS"
17246 esac
17248 case $lt_cv_dlopen_self in
17249 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17250 *) enable_dlopen_self=unknown ;;
17251 esac
17253 case $lt_cv_dlopen_self_static in
17254 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17255 *) enable_dlopen_self_static=unknown ;;
17256 esac
17275 striplib=
17276 old_striplib=
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17283 $as_echo "yes" >&6; }
17284 else
17285 # FIXME - insert some real tests, host_os isn't really good enough
17286 case $host_os in
17287 darwin*)
17288 if test -n "$STRIP" ; then
17289 striplib="$STRIP -x"
17290 old_striplib="$STRIP -S"
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17292 $as_echo "yes" >&6; }
17293 else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17302 esac
17316 # Report which library types will actually be built
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17320 $as_echo "$can_build_shared" >&6; }
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17323 $as_echo_n "checking whether to build shared libraries... " >&6; }
17324 test "$can_build_shared" = "no" && enable_shared=no
17326 # On AIX, shared libraries and static libraries use the same namespace, and
17327 # are all built from PIC.
17328 case $host_os in
17329 aix3*)
17330 test "$enable_shared" = yes && enable_static=no
17331 if test -n "$RANLIB"; then
17332 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17333 postinstall_cmds='$RANLIB $lib'
17337 aix[4-9]*)
17338 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17339 test "$enable_shared" = yes && enable_static=no
17342 esac
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17344 $as_echo "$enable_shared" >&6; }
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17347 $as_echo_n "checking whether to build static libraries... " >&6; }
17348 # Make sure either enable_shared or enable_static is yes.
17349 test "$enable_shared" = yes || enable_static=yes
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17351 $as_echo "$enable_static" >&6; }
17357 ac_ext=c
17358 ac_cpp='$CPP $CPPFLAGS'
17359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17363 CC="$lt_save_CC"
17365 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17367 (test "X$CXX" != "Xg++"))) ; then
17368 ac_ext=cpp
17369 ac_cpp='$CXXCPP $CPPFLAGS'
17370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17374 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17375 if test -z "$CXXCPP"; then
17376 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 # Double quotes because CXXCPP needs to be expanded
17380 for CXXCPP in "$CXX -E" "/lib/cpp"
17382 ac_preproc_ok=false
17383 for ac_cxx_preproc_warn_flag in '' yes
17385 # Use a header file that comes with gcc, so configuring glibc
17386 # with a fresh cross-compiler works.
17387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 # <limits.h> exists even on freestanding compilers.
17389 # On the NeXT, cc -E runs the code through the compiler's parser,
17390 # not just through cpp. "Syntax error" is here to catch this case.
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393 #ifdef __STDC__
17394 # include <limits.h>
17395 #else
17396 # include <assert.h>
17397 #endif
17398 Syntax error
17399 _ACEOF
17400 if ac_fn_cxx_try_cpp "$LINENO"; then :
17402 else
17403 # Broken: fails on valid input.
17404 continue
17406 rm -f conftest.err conftest.$ac_ext
17408 # OK, works on sane cases. Now check whether nonexistent headers
17409 # can be detected and how.
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17412 #include <ac_nonexistent.h>
17413 _ACEOF
17414 if ac_fn_cxx_try_cpp "$LINENO"; then :
17415 # Broken: success on invalid input.
17416 continue
17417 else
17418 # Passes both tests.
17419 ac_preproc_ok=:
17420 break
17422 rm -f conftest.err conftest.$ac_ext
17424 done
17425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17426 rm -f conftest.err conftest.$ac_ext
17427 if $ac_preproc_ok; then :
17428 break
17431 done
17432 ac_cv_prog_CXXCPP=$CXXCPP
17435 CXXCPP=$ac_cv_prog_CXXCPP
17436 else
17437 ac_cv_prog_CXXCPP=$CXXCPP
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17440 $as_echo "$CXXCPP" >&6; }
17441 ac_preproc_ok=false
17442 for ac_cxx_preproc_warn_flag in '' yes
17444 # Use a header file that comes with gcc, so configuring glibc
17445 # with a fresh cross-compiler works.
17446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447 # <limits.h> exists even on freestanding compilers.
17448 # On the NeXT, cc -E runs the code through the compiler's parser,
17449 # not just through cpp. "Syntax error" is here to catch this case.
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 #ifdef __STDC__
17453 # include <limits.h>
17454 #else
17455 # include <assert.h>
17456 #endif
17457 Syntax error
17458 _ACEOF
17459 if ac_fn_cxx_try_cpp "$LINENO"; then :
17461 else
17462 # Broken: fails on valid input.
17463 continue
17465 rm -f conftest.err conftest.$ac_ext
17467 # OK, works on sane cases. Now check whether nonexistent headers
17468 # can be detected and how.
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <ac_nonexistent.h>
17472 _ACEOF
17473 if ac_fn_cxx_try_cpp "$LINENO"; then :
17474 # Broken: success on invalid input.
17475 continue
17476 else
17477 # Passes both tests.
17478 ac_preproc_ok=:
17479 break
17481 rm -f conftest.err conftest.$ac_ext
17483 done
17484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17485 rm -f conftest.err conftest.$ac_ext
17486 if $ac_preproc_ok; then :
17488 else
17489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17491 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17492 See \`config.log' for more details." "$LINENO" 5; }
17495 ac_ext=c
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17501 else
17502 _lt_caught_CXX_error=yes
17505 ac_ext=cpp
17506 ac_cpp='$CXXCPP $CPPFLAGS'
17507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17511 archive_cmds_need_lc_CXX=no
17512 allow_undefined_flag_CXX=
17513 always_export_symbols_CXX=no
17514 archive_expsym_cmds_CXX=
17515 compiler_needs_object_CXX=no
17516 export_dynamic_flag_spec_CXX=
17517 hardcode_direct_CXX=no
17518 hardcode_direct_absolute_CXX=no
17519 hardcode_libdir_flag_spec_CXX=
17520 hardcode_libdir_flag_spec_ld_CXX=
17521 hardcode_libdir_separator_CXX=
17522 hardcode_minus_L_CXX=no
17523 hardcode_shlibpath_var_CXX=unsupported
17524 hardcode_automatic_CXX=no
17525 inherit_rpath_CXX=no
17526 module_cmds_CXX=
17527 module_expsym_cmds_CXX=
17528 link_all_deplibs_CXX=unknown
17529 old_archive_cmds_CXX=$old_archive_cmds
17530 reload_flag_CXX=$reload_flag
17531 reload_cmds_CXX=$reload_cmds
17532 no_undefined_flag_CXX=
17533 whole_archive_flag_spec_CXX=
17534 enable_shared_with_static_runtimes_CXX=no
17536 # Source file extension for C++ test sources.
17537 ac_ext=cpp
17539 # Object file extension for compiled C++ test sources.
17540 objext=o
17541 objext_CXX=$objext
17543 # No sense in running all these tests if we already determined that
17544 # the CXX compiler isn't working. Some variables (like enable_shared)
17545 # are currently assumed to apply to all compilers on this platform,
17546 # and will be corrupted by setting them based on a non-working compiler.
17547 if test "$_lt_caught_CXX_error" != yes; then
17548 # Code to be used in simple compile tests
17549 lt_simple_compile_test_code="int some_variable = 0;"
17551 # Code to be used in simple link tests
17552 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17561 # If no C compiler was specified, use CC.
17562 LTCC=${LTCC-"$CC"}
17564 # If no C compiler flags were specified, use CFLAGS.
17565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17567 # Allow CC to be a program name with arguments.
17568 compiler=$CC
17571 # save warnings/boilerplate of simple test code
17572 ac_outfile=conftest.$ac_objext
17573 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17575 _lt_compiler_boilerplate=`cat conftest.err`
17576 $RM conftest*
17578 ac_outfile=conftest.$ac_objext
17579 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17581 _lt_linker_boilerplate=`cat conftest.err`
17582 $RM -r conftest*
17585 # Allow CC to be a program name with arguments.
17586 lt_save_CC=$CC
17587 lt_save_LD=$LD
17588 lt_save_GCC=$GCC
17589 GCC=$GXX
17590 lt_save_with_gnu_ld=$with_gnu_ld
17591 lt_save_path_LD=$lt_cv_path_LD
17592 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17593 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17594 else
17595 $as_unset lt_cv_prog_gnu_ld
17597 if test -n "${lt_cv_path_LDCXX+set}"; then
17598 lt_cv_path_LD=$lt_cv_path_LDCXX
17599 else
17600 $as_unset lt_cv_path_LD
17602 test -z "${LDCXX+set}" || LD=$LDCXX
17603 CC=${CXX-"c++"}
17604 compiler=$CC
17605 compiler_CXX=$CC
17606 for cc_temp in $compiler""; do
17607 case $cc_temp in
17608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17610 \-*) ;;
17611 *) break;;
17612 esac
17613 done
17614 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17617 if test -n "$compiler"; then
17618 # We don't want -fno-exception when compiling C++ code, so set the
17619 # no_builtin_flag separately
17620 if test "$GXX" = yes; then
17621 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17622 else
17623 lt_prog_compiler_no_builtin_flag_CXX=
17626 if test "$GXX" = yes; then
17627 # Set up default GNU C++ configuration
17631 # Check whether --with-gnu-ld was given.
17632 if test "${with_gnu_ld+set}" = set; then :
17633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17634 else
17635 with_gnu_ld=no
17638 ac_prog=ld
17639 if test "$GCC" = yes; then
17640 # Check if gcc -print-prog-name=ld gives a path.
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17642 $as_echo_n "checking for ld used by $CC... " >&6; }
17643 case $host in
17644 *-*-mingw*)
17645 # gcc leaves a trailing carriage return which upsets mingw
17646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17649 esac
17650 case $ac_prog in
17651 # Accept absolute paths.
17652 [\\/]* | ?:[\\/]*)
17653 re_direlt='/[^/][^/]*/\.\./'
17654 # Canonicalize the pathname of ld
17655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17658 done
17659 test -z "$LD" && LD="$ac_prog"
17662 # If it fails, then pretend we aren't using GCC.
17663 ac_prog=ld
17666 # If it is relative, then search for the first ld in PATH.
17667 with_gnu_ld=unknown
17669 esac
17670 elif test "$with_gnu_ld" = yes; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17672 $as_echo_n "checking for GNU ld... " >&6; }
17673 else
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17675 $as_echo_n "checking for non-GNU ld... " >&6; }
17677 if test "${lt_cv_path_LD+set}" = set; then :
17678 $as_echo_n "(cached) " >&6
17679 else
17680 if test -z "$LD"; then
17681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17682 for ac_dir in $PATH; do
17683 IFS="$lt_save_ifs"
17684 test -z "$ac_dir" && ac_dir=.
17685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17686 lt_cv_path_LD="$ac_dir/$ac_prog"
17687 # Check to see if the program is GNU ld. I'd rather use --version,
17688 # but apparently some variants of GNU ld only accept -v.
17689 # Break only if it was the GNU/non-GNU ld that we prefer.
17690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17691 *GNU* | *'with BFD'*)
17692 test "$with_gnu_ld" != no && break
17695 test "$with_gnu_ld" != yes && break
17697 esac
17699 done
17700 IFS="$lt_save_ifs"
17701 else
17702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17706 LD="$lt_cv_path_LD"
17707 if test -n "$LD"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17709 $as_echo "$LD" >&6; }
17710 else
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17712 $as_echo "no" >&6; }
17714 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17716 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17717 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17721 case `$LD -v 2>&1 </dev/null` in
17722 *GNU* | *'with BFD'*)
17723 lt_cv_prog_gnu_ld=yes
17726 lt_cv_prog_gnu_ld=no
17728 esac
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17731 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17732 with_gnu_ld=$lt_cv_prog_gnu_ld
17740 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17741 # archiving commands below assume that GNU ld is being used.
17742 if test "$with_gnu_ld" = yes; then
17743 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17744 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'
17746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17749 # If archive_cmds runs LD, not CC, wlarc should be empty
17750 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17751 # investigate it a little bit more. (MM)
17752 wlarc='${wl}'
17754 # ancient GNU ld didn't support --whole-archive et. al.
17755 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17756 $GREP 'no-whole-archive' > /dev/null; then
17757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17758 else
17759 whole_archive_flag_spec_CXX=
17761 else
17762 with_gnu_ld=no
17763 wlarc=
17765 # A generic and very simple default shared library creation
17766 # command for GNU C++ for the case where it uses the native
17767 # linker, instead of GNU ld. If possible, this setting should
17768 # overridden to take advantage of the native linker features on
17769 # the platform it is being used on.
17770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17773 # Commands to make compiler produce verbose output that lists
17774 # what "hidden" libraries, object files and flags are used when
17775 # linking a shared library.
17776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17778 else
17779 GXX=no
17780 with_gnu_ld=no
17781 wlarc=
17784 # PORTME: fill in a description of your system's C++ link characteristics
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17786 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17787 ld_shlibs_CXX=yes
17788 case $host_os in
17789 aix3*)
17790 # FIXME: insert proper C++ library support
17791 ld_shlibs_CXX=no
17793 aix[4-9]*)
17794 if test "$host_cpu" = ia64; then
17795 # On IA64, the linker does run time linking by default, so we don't
17796 # have to do anything special.
17797 aix_use_runtimelinking=no
17798 exp_sym_flag='-Bexport'
17799 no_entry_flag=""
17800 else
17801 aix_use_runtimelinking=no
17803 # Test if we are trying to use run time linking or normal
17804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17805 # need to do runtime linking.
17806 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17807 for ld_flag in $LDFLAGS; do
17808 case $ld_flag in
17809 *-brtl*)
17810 aix_use_runtimelinking=yes
17811 break
17813 esac
17814 done
17816 esac
17818 exp_sym_flag='-bexport'
17819 no_entry_flag='-bnoentry'
17822 # When large executables or shared objects are built, AIX ld can
17823 # have problems creating the table of contents. If linking a library
17824 # or program results in "error TOC overflow" add -mminimal-toc to
17825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17828 archive_cmds_CXX=''
17829 hardcode_direct_CXX=yes
17830 hardcode_direct_absolute_CXX=yes
17831 hardcode_libdir_separator_CXX=':'
17832 link_all_deplibs_CXX=yes
17833 file_list_spec_CXX='${wl}-f,'
17835 if test "$GXX" = yes; then
17836 case $host_os in aix4.[012]|aix4.[012].*)
17837 # We only want to do this on AIX 4.2 and lower, the check
17838 # below for broken collect2 doesn't work under 4.3+
17839 collect2name=`${CC} -print-prog-name=collect2`
17840 if test -f "$collect2name" &&
17841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17842 then
17843 # We have reworked collect2
17845 else
17846 # We have old collect2
17847 hardcode_direct_CXX=unsupported
17848 # It fails to find uninstalled libraries when the uninstalled
17849 # path is not listed in the libpath. Setting hardcode_minus_L
17850 # to unsupported forces relinking
17851 hardcode_minus_L_CXX=yes
17852 hardcode_libdir_flag_spec_CXX='-L$libdir'
17853 hardcode_libdir_separator_CXX=
17855 esac
17856 shared_flag='-shared'
17857 if test "$aix_use_runtimelinking" = yes; then
17858 shared_flag="$shared_flag "'${wl}-G'
17860 else
17861 # not using gcc
17862 if test "$host_cpu" = ia64; then
17863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17864 # chokes on -Wl,-G. The following line is correct:
17865 shared_flag='-G'
17866 else
17867 if test "$aix_use_runtimelinking" = yes; then
17868 shared_flag='${wl}-G'
17869 else
17870 shared_flag='${wl}-bM:SRE'
17875 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17876 # It seems that -bexpall does not export symbols beginning with
17877 # underscore (_), so it is better to generate a list of symbols to
17878 # export.
17879 always_export_symbols_CXX=yes
17880 if test "$aix_use_runtimelinking" = yes; then
17881 # Warning - without using the other runtime loading flags (-brtl),
17882 # -berok will link without error, but may produce a broken library.
17883 allow_undefined_flag_CXX='-berok'
17884 # Determine the default libpath from the value encoded in an empty
17885 # executable.
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17890 main ()
17894 return 0;
17896 _ACEOF
17897 if ac_fn_cxx_try_link "$LINENO"; then :
17899 lt_aix_libpath_sed='
17900 /Import File Strings/,/^$/ {
17901 /^0/ {
17902 s/^0 *\(.*\)$/\1/
17906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17907 # Check for a 64-bit object if we didn't find anything.
17908 if test -z "$aix_libpath"; then
17909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17912 rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17916 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17918 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"
17919 else
17920 if test "$host_cpu" = ia64; then
17921 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17922 allow_undefined_flag_CXX="-z nodefs"
17923 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"
17924 else
17925 # Determine the default libpath from the value encoded in an
17926 # empty executable.
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17931 main ()
17935 return 0;
17937 _ACEOF
17938 if ac_fn_cxx_try_link "$LINENO"; then :
17940 lt_aix_libpath_sed='
17941 /Import File Strings/,/^$/ {
17942 /^0/ {
17943 s/^0 *\(.*\)$/\1/
17947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 # Check for a 64-bit object if we didn't find anything.
17949 if test -z "$aix_libpath"; then
17950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17957 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17958 # Warning - without using the other run time loading flags,
17959 # -berok will link without error, but may produce a broken library.
17960 no_undefined_flag_CXX=' ${wl}-bernotok'
17961 allow_undefined_flag_CXX=' ${wl}-berok'
17962 if test "$with_gnu_ld" = yes; then
17963 # We only use this code for GNU lds that support --whole-archive.
17964 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17965 else
17966 # Exported symbols can be pulled into shared objects from archives
17967 whole_archive_flag_spec_CXX='$convenience'
17969 archive_cmds_need_lc_CXX=yes
17970 # This is similar to how AIX traditionally builds its shared
17971 # libraries.
17972 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'
17977 beos*)
17978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17979 allow_undefined_flag_CXX=unsupported
17980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17981 # support --undefined. This deserves some investigation. FIXME
17982 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17983 else
17984 ld_shlibs_CXX=no
17988 chorus*)
17989 case $cc_basename in
17991 # FIXME: insert proper C++ library support
17992 ld_shlibs_CXX=no
17994 esac
17997 cygwin* | mingw* | pw32* | cegcc*)
17998 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17999 # as there is no search path for DLLs.
18000 hardcode_libdir_flag_spec_CXX='-L$libdir'
18001 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18002 allow_undefined_flag_CXX=unsupported
18003 always_export_symbols_CXX=no
18004 enable_shared_with_static_runtimes_CXX=yes
18006 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18007 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'
18008 # If the export-symbols file already is a .def file (1st line
18009 # is EXPORTS), use it as is; otherwise, prepend...
18010 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18011 cp $export_symbols $output_objdir/$soname.def;
18012 else
18013 echo EXPORTS > $output_objdir/$soname.def;
18014 cat $export_symbols >> $output_objdir/$soname.def;
18016 $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'
18017 else
18018 ld_shlibs_CXX=no
18021 darwin* | rhapsody*)
18024 archive_cmds_need_lc_CXX=no
18025 hardcode_direct_CXX=no
18026 hardcode_automatic_CXX=yes
18027 hardcode_shlibpath_var_CXX=unsupported
18028 if test "$lt_cv_ld_force_load" = "yes"; then
18029 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\"`'
18030 else
18031 whole_archive_flag_spec_CXX=''
18033 link_all_deplibs_CXX=yes
18034 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18035 case $cc_basename in
18036 ifort*) _lt_dar_can_shared=yes ;;
18037 *) _lt_dar_can_shared=$GCC ;;
18038 esac
18039 if test "$_lt_dar_can_shared" = "yes"; then
18040 output_verbose_link_cmd=func_echo_all
18041 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}"
18042 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18043 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}"
18044 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}"
18045 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18046 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}"
18047 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}"
18050 else
18051 ld_shlibs_CXX=no
18056 dgux*)
18057 case $cc_basename in
18058 ec++*)
18059 # FIXME: insert proper C++ library support
18060 ld_shlibs_CXX=no
18062 ghcx*)
18063 # Green Hills C++ Compiler
18064 # FIXME: insert proper C++ library support
18065 ld_shlibs_CXX=no
18068 # FIXME: insert proper C++ library support
18069 ld_shlibs_CXX=no
18071 esac
18074 freebsd[12]*)
18075 # C++ shared libraries reported to be fairly broken before
18076 # switch to ELF
18077 ld_shlibs_CXX=no
18080 freebsd-elf*)
18081 archive_cmds_need_lc_CXX=no
18084 freebsd* | dragonfly*)
18085 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18086 # conventions
18087 ld_shlibs_CXX=yes
18090 gnu*)
18093 haiku*)
18094 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18095 link_all_deplibs_CXX=yes
18098 hpux9*)
18099 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18100 hardcode_libdir_separator_CXX=:
18101 export_dynamic_flag_spec_CXX='${wl}-E'
18102 hardcode_direct_CXX=yes
18103 hardcode_minus_L_CXX=yes # Not in the search PATH,
18104 # but as the default
18105 # location of the library.
18107 case $cc_basename in
18108 CC*)
18109 # FIXME: insert proper C++ library support
18110 ld_shlibs_CXX=no
18112 aCC*)
18113 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'
18114 # Commands to make compiler produce verbose output that lists
18115 # what "hidden" libraries, object files and flags are used when
18116 # linking a shared library.
18118 # There doesn't appear to be a way to prevent this compiler from
18119 # explicitly linking system object files so we need to strip them
18120 # from the output so that they don't get included in the library
18121 # dependencies.
18122 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"'
18125 if test "$GXX" = yes; then
18126 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'
18127 else
18128 # FIXME: insert proper C++ library support
18129 ld_shlibs_CXX=no
18132 esac
18135 hpux10*|hpux11*)
18136 if test $with_gnu_ld = no; then
18137 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18138 hardcode_libdir_separator_CXX=:
18140 case $host_cpu in
18141 hppa*64*|ia64*)
18144 export_dynamic_flag_spec_CXX='${wl}-E'
18146 esac
18148 case $host_cpu in
18149 hppa*64*|ia64*)
18150 hardcode_direct_CXX=no
18151 hardcode_shlibpath_var_CXX=no
18154 hardcode_direct_CXX=yes
18155 hardcode_direct_absolute_CXX=yes
18156 hardcode_minus_L_CXX=yes # Not in the search PATH,
18157 # but as the default
18158 # location of the library.
18160 esac
18162 case $cc_basename in
18163 CC*)
18164 # FIXME: insert proper C++ library support
18165 ld_shlibs_CXX=no
18167 aCC*)
18168 case $host_cpu in
18169 hppa*64*)
18170 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18172 ia64*)
18173 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18178 esac
18179 # Commands to make compiler produce verbose output that lists
18180 # what "hidden" libraries, object files and flags are used when
18181 # linking a shared library.
18183 # There doesn't appear to be a way to prevent this compiler from
18184 # explicitly linking system object files so we need to strip them
18185 # from the output so that they don't get included in the library
18186 # dependencies.
18187 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"'
18190 if test "$GXX" = yes; then
18191 if test $with_gnu_ld = no; then
18192 case $host_cpu in
18193 hppa*64*)
18194 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18196 ia64*)
18197 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18200 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'
18202 esac
18204 else
18205 # FIXME: insert proper C++ library support
18206 ld_shlibs_CXX=no
18209 esac
18212 interix[3-9]*)
18213 hardcode_direct_CXX=no
18214 hardcode_shlibpath_var_CXX=no
18215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18216 export_dynamic_flag_spec_CXX='${wl}-E'
18217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18218 # Instead, shared libraries are loaded at an image base (0x10000000 by
18219 # default) and relocated if they conflict, which is a slow very memory
18220 # consuming and fragmenting process. To avoid this, we pick a random,
18221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18223 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'
18224 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'
18226 irix5* | irix6*)
18227 case $cc_basename in
18228 CC*)
18229 # SGI C++
18230 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'
18232 # Archives containing C++ object files must be created using
18233 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18234 # necessary to make sure instantiated templates are included
18235 # in the archive.
18236 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18239 if test "$GXX" = yes; then
18240 if test "$with_gnu_ld" = no; then
18241 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'
18242 else
18243 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'
18246 link_all_deplibs_CXX=yes
18248 esac
18249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18250 hardcode_libdir_separator_CXX=:
18251 inherit_rpath_CXX=yes
18254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18255 case $cc_basename in
18256 KCC*)
18257 # Kuck and Associates, Inc. (KAI) C++ Compiler
18259 # KCC will only create a shared library if the output file
18260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18261 # to its proper name (with version) after linking.
18262 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'
18263 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'
18264 # Commands to make compiler produce verbose output that lists
18265 # what "hidden" libraries, object files and flags are used when
18266 # linking a shared library.
18268 # There doesn't appear to be a way to prevent this compiler from
18269 # explicitly linking system object files so we need to strip them
18270 # from the output so that they don't get included in the library
18271 # dependencies.
18272 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"'
18274 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18277 # Archives containing C++ object files must be created using
18278 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18279 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18281 icpc* | ecpc* )
18282 # Intel C++
18283 with_gnu_ld=yes
18284 # version 8.0 and above of icpc choke on multiply defined symbols
18285 # if we add $predep_objects and $postdep_objects, however 7.1 and
18286 # earlier do not add the objects themselves.
18287 case `$CC -V 2>&1` in
18288 *"Version 7."*)
18289 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18290 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'
18292 *) # Version 8.0 or newer
18293 tmp_idyn=
18294 case $host_cpu in
18295 ia64*) tmp_idyn=' -i_dynamic';;
18296 esac
18297 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18298 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'
18300 esac
18301 archive_cmds_need_lc_CXX=no
18302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18304 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18306 pgCC* | pgcpp*)
18307 # Portland Group C++ compiler
18308 case `$CC -V` in
18309 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18310 prelink_cmds_CXX='tpldir=Template.dir~
18311 rm -rf $tpldir~
18312 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18313 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18314 old_archive_cmds_CXX='tpldir=Template.dir~
18315 rm -rf $tpldir~
18316 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18317 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18318 $RANLIB $oldlib'
18319 archive_cmds_CXX='tpldir=Template.dir~
18320 rm -rf $tpldir~
18321 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18322 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18323 archive_expsym_cmds_CXX='tpldir=Template.dir~
18324 rm -rf $tpldir~
18325 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18326 $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'
18328 *) # Version 6 and above use weak symbols
18329 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18330 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'
18332 esac
18334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18336 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'
18338 cxx*)
18339 # Compaq C++
18340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 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'
18343 runpath_var=LD_RUN_PATH
18344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18345 hardcode_libdir_separator_CXX=:
18347 # Commands to make compiler produce verbose output that lists
18348 # what "hidden" libraries, object files and flags are used when
18349 # linking a shared library.
18351 # There doesn't appear to be a way to prevent this compiler from
18352 # explicitly linking system object files so we need to strip them
18353 # from the output so that they don't get included in the library
18354 # dependencies.
18355 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'
18357 xl* | mpixl* | bgxl*)
18358 # IBM XL 8.0 on PPC, with GNU ld
18359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18361 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18362 if test "x$supports_anon_versioning" = xyes; then
18363 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18365 echo "local: *; };" >> $output_objdir/$libname.ver~
18366 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18370 case `$CC -V 2>&1 | sed 5q` in
18371 *Sun\ C*)
18372 # Sun C++ 5.9
18373 no_undefined_flag_CXX=' -zdefs'
18374 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18375 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'
18376 hardcode_libdir_flag_spec_CXX='-R$libdir'
18377 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'
18378 compiler_needs_object_CXX=yes
18380 # Not sure whether something based on
18381 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18382 # would be better.
18383 output_verbose_link_cmd='func_echo_all'
18385 # Archives containing C++ object files must be created using
18386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18387 # necessary to make sure instantiated templates are included
18388 # in the archive.
18389 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18391 esac
18393 esac
18396 lynxos*)
18397 # FIXME: insert proper C++ library support
18398 ld_shlibs_CXX=no
18401 m88k*)
18402 # FIXME: insert proper C++ library support
18403 ld_shlibs_CXX=no
18406 mvs*)
18407 case $cc_basename in
18408 cxx*)
18409 # FIXME: insert proper C++ library support
18410 ld_shlibs_CXX=no
18413 # FIXME: insert proper C++ library support
18414 ld_shlibs_CXX=no
18416 esac
18419 netbsd*)
18420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18421 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18422 wlarc=
18423 hardcode_libdir_flag_spec_CXX='-R$libdir'
18424 hardcode_direct_CXX=yes
18425 hardcode_shlibpath_var_CXX=no
18427 # Workaround some broken pre-1.5 toolchains
18428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18431 *nto* | *qnx*)
18432 ld_shlibs_CXX=yes
18435 openbsd2*)
18436 # C++ shared libraries are fairly broken
18437 ld_shlibs_CXX=no
18440 openbsd*)
18441 if test -f /usr/libexec/ld.so; then
18442 hardcode_direct_CXX=yes
18443 hardcode_shlibpath_var_CXX=no
18444 hardcode_direct_absolute_CXX=yes
18445 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18448 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18449 export_dynamic_flag_spec_CXX='${wl}-E'
18450 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18452 output_verbose_link_cmd=func_echo_all
18453 else
18454 ld_shlibs_CXX=no
18458 osf3* | osf4* | osf5*)
18459 case $cc_basename in
18460 KCC*)
18461 # Kuck and Associates, Inc. (KAI) C++ Compiler
18463 # KCC will only create a shared library if the output file
18464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18465 # to its proper name (with version) after linking.
18466 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'
18468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18469 hardcode_libdir_separator_CXX=:
18471 # Archives containing C++ object files must be created using
18472 # the KAI C++ compiler.
18473 case $host in
18474 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18475 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18476 esac
18478 RCC*)
18479 # Rational C++ 2.4.1
18480 # FIXME: insert proper C++ library support
18481 ld_shlibs_CXX=no
18483 cxx*)
18484 case $host in
18485 osf3*)
18486 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18487 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'
18488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18491 allow_undefined_flag_CXX=' -expect_unresolved \*'
18492 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'
18493 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18494 echo "-hidden">> $lib.exp~
18495 $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~
18496 $RM $lib.exp'
18497 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18499 esac
18501 hardcode_libdir_separator_CXX=:
18503 # Commands to make compiler produce verbose output that lists
18504 # what "hidden" libraries, object files and flags are used when
18505 # linking a shared library.
18507 # There doesn't appear to be a way to prevent this compiler from
18508 # explicitly linking system object files so we need to strip them
18509 # from the output so that they don't get included in the library
18510 # dependencies.
18511 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"'
18514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18516 case $host in
18517 osf3*)
18518 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'
18521 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'
18523 esac
18525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18526 hardcode_libdir_separator_CXX=:
18528 # Commands to make compiler produce verbose output that lists
18529 # what "hidden" libraries, object files and flags are used when
18530 # linking a shared library.
18531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18533 else
18534 # FIXME: insert proper C++ library support
18535 ld_shlibs_CXX=no
18538 esac
18541 psos*)
18542 # FIXME: insert proper C++ library support
18543 ld_shlibs_CXX=no
18546 sunos4*)
18547 case $cc_basename in
18548 CC*)
18549 # Sun C++ 4.x
18550 # FIXME: insert proper C++ library support
18551 ld_shlibs_CXX=no
18553 lcc*)
18554 # Lucid
18555 # FIXME: insert proper C++ library support
18556 ld_shlibs_CXX=no
18559 # FIXME: insert proper C++ library support
18560 ld_shlibs_CXX=no
18562 esac
18565 solaris*)
18566 case $cc_basename in
18567 CC*)
18568 # Sun C++ 4.2, 5.x and Centerline C++
18569 archive_cmds_need_lc_CXX=yes
18570 no_undefined_flag_CXX=' -zdefs'
18571 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18572 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18573 $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'
18575 hardcode_libdir_flag_spec_CXX='-R$libdir'
18576 hardcode_shlibpath_var_CXX=no
18577 case $host_os in
18578 solaris2.[0-5] | solaris2.[0-5].*) ;;
18580 # The compiler driver will combine and reorder linker options,
18581 # but understands `-z linker_flag'.
18582 # Supported since Solaris 2.6 (maybe 2.5.1?)
18583 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18585 esac
18586 link_all_deplibs_CXX=yes
18588 output_verbose_link_cmd='func_echo_all'
18590 # Archives containing C++ object files must be created using
18591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18592 # necessary to make sure instantiated templates are included
18593 # in the archive.
18594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18596 gcx*)
18597 # Green Hills C++ Compiler
18598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18600 # The C++ compiler must be used to create the archive.
18601 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18604 # GNU C++ compiler with Solaris linker
18605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18606 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18607 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18608 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18612 # Commands to make compiler produce verbose output that lists
18613 # what "hidden" libraries, object files and flags are used when
18614 # linking a shared library.
18615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18616 else
18617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18618 # platform.
18619 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18623 # Commands to make compiler produce verbose output that lists
18624 # what "hidden" libraries, object files and flags are used when
18625 # linking a shared library.
18626 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18629 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18630 case $host_os in
18631 solaris2.[0-5] | solaris2.[0-5].*) ;;
18633 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18635 esac
18638 esac
18641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18642 no_undefined_flag_CXX='${wl}-z,text'
18643 archive_cmds_need_lc_CXX=no
18644 hardcode_shlibpath_var_CXX=no
18645 runpath_var='LD_RUN_PATH'
18647 case $cc_basename in
18648 CC*)
18649 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18650 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18653 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18654 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 esac
18659 sysv5* | sco3.2v5* | sco5v6*)
18660 # Note: We can NOT use -z defs as we might desire, because we do not
18661 # link with -lc, and that would cause any symbols used from libc to
18662 # always be unresolved, which means just about no library would
18663 # ever link correctly. If we're not using GNU ld we use -z text
18664 # though, which does catch some bad symbols but isn't as heavy-handed
18665 # as -z defs.
18666 no_undefined_flag_CXX='${wl}-z,text'
18667 allow_undefined_flag_CXX='${wl}-z,nodefs'
18668 archive_cmds_need_lc_CXX=no
18669 hardcode_shlibpath_var_CXX=no
18670 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18671 hardcode_libdir_separator_CXX=':'
18672 link_all_deplibs_CXX=yes
18673 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18674 runpath_var='LD_RUN_PATH'
18676 case $cc_basename in
18677 CC*)
18678 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18679 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18681 '"$old_archive_cmds_CXX"
18682 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18683 '"$reload_cmds_CXX"
18686 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18689 esac
18692 tandem*)
18693 case $cc_basename in
18694 NCC*)
18695 # NonStop-UX NCC 3.20
18696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18700 # FIXME: insert proper C++ library support
18701 ld_shlibs_CXX=no
18703 esac
18706 vxworks*)
18707 # FIXME: insert proper C++ library support
18708 ld_shlibs_CXX=no
18712 # FIXME: insert proper C++ library support
18713 ld_shlibs_CXX=no
18715 esac
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18718 $as_echo "$ld_shlibs_CXX" >&6; }
18719 test "$ld_shlibs_CXX" = no && can_build_shared=no
18721 GCC_CXX="$GXX"
18722 LD_CXX="$LD"
18724 ## CAVEAT EMPTOR:
18725 ## There is no encapsulation within the following macros, do not change
18726 ## the running order or otherwise move them around unless you know exactly
18727 ## what you are doing...
18728 # Dependencies to place before and after the object being linked:
18729 predep_objects_CXX=
18730 postdep_objects_CXX=
18731 predeps_CXX=
18732 postdeps_CXX=
18733 compiler_lib_search_path_CXX=
18735 cat > conftest.$ac_ext <<_LT_EOF
18736 class Foo
18738 public:
18739 Foo (void) { a = 0; }
18740 private:
18741 int a;
18743 _LT_EOF
18745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18746 (eval $ac_compile) 2>&5
18747 ac_status=$?
18748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749 test $ac_status = 0; }; then
18750 # Parse the compiler output and extract the necessary
18751 # objects, libraries and library flags.
18753 # Sentinel used to keep track of whether or not we are before
18754 # the conftest object file.
18755 pre_test_object_deps_done=no
18757 for p in `eval "$output_verbose_link_cmd"`; do
18758 case $p in
18760 -L* | -R* | -l*)
18761 # Some compilers place space between "-{L,R}" and the path.
18762 # Remove the space.
18763 if test $p = "-L" ||
18764 test $p = "-R"; then
18765 prev=$p
18766 continue
18767 else
18768 prev=
18771 if test "$pre_test_object_deps_done" = no; then
18772 case $p in
18773 -L* | -R*)
18774 # Internal compiler library paths should come after those
18775 # provided the user. The postdeps already come after the
18776 # user supplied libs so there is no need to process them.
18777 if test -z "$compiler_lib_search_path_CXX"; then
18778 compiler_lib_search_path_CXX="${prev}${p}"
18779 else
18780 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18783 # The "-l" case would never come before the object being
18784 # linked, so don't bother handling this case.
18785 esac
18786 else
18787 if test -z "$postdeps_CXX"; then
18788 postdeps_CXX="${prev}${p}"
18789 else
18790 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18795 *.$objext)
18796 # This assumes that the test object file only shows up
18797 # once in the compiler output.
18798 if test "$p" = "conftest.$objext"; then
18799 pre_test_object_deps_done=yes
18800 continue
18803 if test "$pre_test_object_deps_done" = no; then
18804 if test -z "$predep_objects_CXX"; then
18805 predep_objects_CXX="$p"
18806 else
18807 predep_objects_CXX="$predep_objects_CXX $p"
18809 else
18810 if test -z "$postdep_objects_CXX"; then
18811 postdep_objects_CXX="$p"
18812 else
18813 postdep_objects_CXX="$postdep_objects_CXX $p"
18818 *) ;; # Ignore the rest.
18820 esac
18821 done
18823 # Clean up.
18824 rm -f a.out a.exe
18825 else
18826 echo "libtool.m4: error: problem compiling CXX test program"
18829 $RM -f confest.$objext
18831 # PORTME: override above test on systems where it is broken
18832 case $host_os in
18833 interix[3-9]*)
18834 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18835 # hack all around it, let's just trust "g++" to DTRT.
18836 predep_objects_CXX=
18837 postdep_objects_CXX=
18838 postdeps_CXX=
18841 linux*)
18842 case `$CC -V 2>&1 | sed 5q` in
18843 *Sun\ C*)
18844 # Sun C++ 5.9
18846 # The more standards-conforming stlport4 library is
18847 # incompatible with the Cstd library. Avoid specifying
18848 # it if it's in CXXFLAGS. Ignore libCrun as
18849 # -library=stlport4 depends on it.
18850 case " $CXX $CXXFLAGS " in
18851 *" -library=stlport4 "*)
18852 solaris_use_stlport4=yes
18854 esac
18856 if test "$solaris_use_stlport4" != yes; then
18857 postdeps_CXX='-library=Cstd -library=Crun'
18860 esac
18863 solaris*)
18864 case $cc_basename in
18865 CC*)
18866 # The more standards-conforming stlport4 library is
18867 # incompatible with the Cstd library. Avoid specifying
18868 # it if it's in CXXFLAGS. Ignore libCrun as
18869 # -library=stlport4 depends on it.
18870 case " $CXX $CXXFLAGS " in
18871 *" -library=stlport4 "*)
18872 solaris_use_stlport4=yes
18874 esac
18876 # Adding this requires a known-good setup of shared libraries for
18877 # Sun compiler versions before 5.6, else PIC objects from an old
18878 # archive will be linked into the output, leading to subtle bugs.
18879 if test "$solaris_use_stlport4" != yes; then
18880 postdeps_CXX='-library=Cstd -library=Crun'
18883 esac
18885 esac
18888 case " $postdeps_CXX " in
18889 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18890 esac
18891 compiler_lib_search_dirs_CXX=
18892 if test -n "${compiler_lib_search_path_CXX}"; then
18893 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18926 lt_prog_compiler_wl_CXX=
18927 lt_prog_compiler_pic_CXX=
18928 lt_prog_compiler_static_CXX=
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18931 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18933 # C++ specific cases for pic, static, wl, etc.
18934 if test "$GXX" = yes; then
18935 lt_prog_compiler_wl_CXX='-Wl,'
18936 lt_prog_compiler_static_CXX='-static'
18938 case $host_os in
18939 aix*)
18940 # All AIX code is PIC.
18941 if test "$host_cpu" = ia64; then
18942 # AIX 5 now supports IA64 processor
18943 lt_prog_compiler_static_CXX='-Bstatic'
18947 amigaos*)
18948 case $host_cpu in
18949 powerpc)
18950 # see comment about AmigaOS4 .so support
18951 lt_prog_compiler_pic_CXX='-fPIC'
18953 m68k)
18954 # FIXME: we need at least 68020 code to build shared libraries, but
18955 # adding the `-m68020' flag to GCC prevents building anything better,
18956 # like `-m68040'.
18957 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18959 esac
18962 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18963 # PIC is the default for these OSes.
18965 mingw* | cygwin* | os2* | pw32* | cegcc*)
18966 # This hack is so that the source file can tell whether it is being
18967 # built for inclusion in a dll (and should export symbols for example).
18968 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18969 # (--disable-auto-import) libraries
18970 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18972 darwin* | rhapsody*)
18973 # PIC is the default on this platform
18974 # Common symbols not allowed in MH_DYLIB files
18975 lt_prog_compiler_pic_CXX='-fno-common'
18977 *djgpp*)
18978 # DJGPP does not support shared libraries at all
18979 lt_prog_compiler_pic_CXX=
18981 haiku*)
18982 # PIC is the default for Haiku.
18983 # The "-static" flag exists, but is broken.
18984 lt_prog_compiler_static_CXX=
18986 interix[3-9]*)
18987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18988 # Instead, we relocate shared libraries at runtime.
18990 sysv4*MP*)
18991 if test -d /usr/nec; then
18992 lt_prog_compiler_pic_CXX=-Kconform_pic
18995 hpux*)
18996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18998 # sets the default TLS model and affects inlining.
18999 case $host_cpu in
19000 hppa*64*)
19003 lt_prog_compiler_pic_CXX='-fPIC'
19005 esac
19007 *qnx* | *nto*)
19008 # QNX uses GNU C++, but need to define -shared option too, otherwise
19009 # it will coredump.
19010 lt_prog_compiler_pic_CXX='-fPIC -shared'
19013 lt_prog_compiler_pic_CXX='-fPIC'
19015 esac
19016 else
19017 case $host_os in
19018 aix[4-9]*)
19019 # All AIX code is PIC.
19020 if test "$host_cpu" = ia64; then
19021 # AIX 5 now supports IA64 processor
19022 lt_prog_compiler_static_CXX='-Bstatic'
19023 else
19024 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19027 chorus*)
19028 case $cc_basename in
19029 cxch68*)
19030 # Green Hills C++ Compiler
19031 # _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"
19033 esac
19035 dgux*)
19036 case $cc_basename in
19037 ec++*)
19038 lt_prog_compiler_pic_CXX='-KPIC'
19040 ghcx*)
19041 # Green Hills C++ Compiler
19042 lt_prog_compiler_pic_CXX='-pic'
19046 esac
19048 freebsd* | dragonfly*)
19049 # FreeBSD uses GNU C++
19051 hpux9* | hpux10* | hpux11*)
19052 case $cc_basename in
19053 CC*)
19054 lt_prog_compiler_wl_CXX='-Wl,'
19055 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19056 if test "$host_cpu" != ia64; then
19057 lt_prog_compiler_pic_CXX='+Z'
19060 aCC*)
19061 lt_prog_compiler_wl_CXX='-Wl,'
19062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19063 case $host_cpu in
19064 hppa*64*|ia64*)
19065 # +Z the default
19068 lt_prog_compiler_pic_CXX='+Z'
19070 esac
19074 esac
19076 interix*)
19077 # This is c89, which is MS Visual C++ (no shared libs)
19078 # Anyone wants to do a port?
19080 irix5* | irix6* | nonstopux*)
19081 case $cc_basename in
19082 CC*)
19083 lt_prog_compiler_wl_CXX='-Wl,'
19084 lt_prog_compiler_static_CXX='-non_shared'
19085 # CC pic flag -KPIC is the default.
19089 esac
19091 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19092 case $cc_basename in
19093 KCC*)
19094 # KAI C++ Compiler
19095 lt_prog_compiler_wl_CXX='--backend -Wl,'
19096 lt_prog_compiler_pic_CXX='-fPIC'
19098 ecpc* )
19099 # old Intel C++ for x86_64 which still supported -KPIC.
19100 lt_prog_compiler_wl_CXX='-Wl,'
19101 lt_prog_compiler_pic_CXX='-KPIC'
19102 lt_prog_compiler_static_CXX='-static'
19104 icpc* )
19105 # Intel C++, used to be incompatible with GCC.
19106 # ICC 10 doesn't accept -KPIC any more.
19107 lt_prog_compiler_wl_CXX='-Wl,'
19108 lt_prog_compiler_pic_CXX='-fPIC'
19109 lt_prog_compiler_static_CXX='-static'
19111 pgCC* | pgcpp*)
19112 # Portland Group C++ compiler
19113 lt_prog_compiler_wl_CXX='-Wl,'
19114 lt_prog_compiler_pic_CXX='-fpic'
19115 lt_prog_compiler_static_CXX='-Bstatic'
19117 cxx*)
19118 # Compaq C++
19119 # Make sure the PIC flag is empty. It appears that all Alpha
19120 # Linux and Compaq Tru64 Unix objects are PIC.
19121 lt_prog_compiler_pic_CXX=
19122 lt_prog_compiler_static_CXX='-non_shared'
19124 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19125 # IBM XL 8.0, 9.0 on PPC and BlueGene
19126 lt_prog_compiler_wl_CXX='-Wl,'
19127 lt_prog_compiler_pic_CXX='-qpic'
19128 lt_prog_compiler_static_CXX='-qstaticlink'
19131 case `$CC -V 2>&1 | sed 5q` in
19132 *Sun\ C*)
19133 # Sun C++ 5.9
19134 lt_prog_compiler_pic_CXX='-KPIC'
19135 lt_prog_compiler_static_CXX='-Bstatic'
19136 lt_prog_compiler_wl_CXX='-Qoption ld '
19138 esac
19140 esac
19142 lynxos*)
19144 m88k*)
19146 mvs*)
19147 case $cc_basename in
19148 cxx*)
19149 lt_prog_compiler_pic_CXX='-W c,exportall'
19153 esac
19155 netbsd*)
19157 *qnx* | *nto*)
19158 # QNX uses GNU C++, but need to define -shared option too, otherwise
19159 # it will coredump.
19160 lt_prog_compiler_pic_CXX='-fPIC -shared'
19162 osf3* | osf4* | osf5*)
19163 case $cc_basename in
19164 KCC*)
19165 lt_prog_compiler_wl_CXX='--backend -Wl,'
19167 RCC*)
19168 # Rational C++ 2.4.1
19169 lt_prog_compiler_pic_CXX='-pic'
19171 cxx*)
19172 # Digital/Compaq C++
19173 lt_prog_compiler_wl_CXX='-Wl,'
19174 # Make sure the PIC flag is empty. It appears that all Alpha
19175 # Linux and Compaq Tru64 Unix objects are PIC.
19176 lt_prog_compiler_pic_CXX=
19177 lt_prog_compiler_static_CXX='-non_shared'
19181 esac
19183 psos*)
19185 solaris*)
19186 case $cc_basename in
19187 CC*)
19188 # Sun C++ 4.2, 5.x and Centerline C++
19189 lt_prog_compiler_pic_CXX='-KPIC'
19190 lt_prog_compiler_static_CXX='-Bstatic'
19191 lt_prog_compiler_wl_CXX='-Qoption ld '
19193 gcx*)
19194 # Green Hills C++ Compiler
19195 lt_prog_compiler_pic_CXX='-PIC'
19199 esac
19201 sunos4*)
19202 case $cc_basename in
19203 CC*)
19204 # Sun C++ 4.x
19205 lt_prog_compiler_pic_CXX='-pic'
19206 lt_prog_compiler_static_CXX='-Bstatic'
19208 lcc*)
19209 # Lucid
19210 lt_prog_compiler_pic_CXX='-pic'
19214 esac
19216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19217 case $cc_basename in
19218 CC*)
19219 lt_prog_compiler_wl_CXX='-Wl,'
19220 lt_prog_compiler_pic_CXX='-KPIC'
19221 lt_prog_compiler_static_CXX='-Bstatic'
19223 esac
19225 tandem*)
19226 case $cc_basename in
19227 NCC*)
19228 # NonStop-UX NCC 3.20
19229 lt_prog_compiler_pic_CXX='-KPIC'
19233 esac
19235 vxworks*)
19238 lt_prog_compiler_can_build_shared_CXX=no
19240 esac
19243 case $host_os in
19244 # For platforms which do not support PIC, -DPIC is meaningless:
19245 *djgpp*)
19246 lt_prog_compiler_pic_CXX=
19249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19251 esac
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19253 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19258 # Check to make sure the PIC flag actually works.
19260 if test -n "$lt_prog_compiler_pic_CXX"; then
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19263 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19264 $as_echo_n "(cached) " >&6
19265 else
19266 lt_cv_prog_compiler_pic_works_CXX=no
19267 ac_outfile=conftest.$ac_objext
19268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19269 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19270 # Insert the option either (1) after the last *FLAGS variable, or
19271 # (2) before a word containing "conftest.", or (3) at the end.
19272 # Note that $ac_compile itself does not contain backslashes and begins
19273 # with a dollar sign (not a hyphen), so the echo should work correctly.
19274 # The option is referenced via a variable to avoid confusing sed.
19275 lt_compile=`echo "$ac_compile" | $SED \
19276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19278 -e 's:$: $lt_compiler_flag:'`
19279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19280 (eval "$lt_compile" 2>conftest.err)
19281 ac_status=$?
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 if (exit $ac_status) && test -s "$ac_outfile"; then
19285 # The compiler can only warn and ignore the option if not recognized
19286 # So say no if there are warnings other than the usual output.
19287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19290 lt_cv_prog_compiler_pic_works_CXX=yes
19293 $RM conftest*
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19297 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19299 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19300 case $lt_prog_compiler_pic_CXX in
19301 "" | " "*) ;;
19302 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19303 esac
19304 else
19305 lt_prog_compiler_pic_CXX=
19306 lt_prog_compiler_can_build_shared_CXX=no
19314 # Check to make sure the static flag actually works.
19316 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19319 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19320 $as_echo_n "(cached) " >&6
19321 else
19322 lt_cv_prog_compiler_static_works_CXX=no
19323 save_LDFLAGS="$LDFLAGS"
19324 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19325 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19327 # The linker can only warn and ignore the option if not recognized
19328 # So say no if there are warnings
19329 if test -s conftest.err; then
19330 # Append any errors to the config.log.
19331 cat conftest.err 1>&5
19332 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19334 if diff conftest.exp conftest.er2 >/dev/null; then
19335 lt_cv_prog_compiler_static_works_CXX=yes
19337 else
19338 lt_cv_prog_compiler_static_works_CXX=yes
19341 $RM -r conftest*
19342 LDFLAGS="$save_LDFLAGS"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19346 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19348 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19350 else
19351 lt_prog_compiler_static_CXX=
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19359 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19360 $as_echo_n "(cached) " >&6
19361 else
19362 lt_cv_prog_compiler_c_o_CXX=no
19363 $RM -r conftest 2>/dev/null
19364 mkdir conftest
19365 cd conftest
19366 mkdir out
19367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19369 lt_compiler_flag="-o out/conftest2.$ac_objext"
19370 # Insert the option either (1) after the last *FLAGS variable, or
19371 # (2) before a word containing "conftest.", or (3) at the end.
19372 # Note that $ac_compile itself does not contain backslashes and begins
19373 # with a dollar sign (not a hyphen), so the echo should work correctly.
19374 lt_compile=`echo "$ac_compile" | $SED \
19375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19377 -e 's:$: $lt_compiler_flag:'`
19378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19379 (eval "$lt_compile" 2>out/conftest.err)
19380 ac_status=$?
19381 cat out/conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19384 then
19385 # The compiler can only warn and ignore the option if not recognized
19386 # So say no if there are warnings
19387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19390 lt_cv_prog_compiler_c_o_CXX=yes
19393 chmod u+w . 2>&5
19394 $RM conftest*
19395 # SGI C++ compiler will create directory out/ii_files/ for
19396 # template instantiation
19397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19398 $RM out/* && rmdir out
19399 cd ..
19400 $RM -r conftest
19401 $RM conftest*
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19405 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19412 $as_echo_n "(cached) " >&6
19413 else
19414 lt_cv_prog_compiler_c_o_CXX=no
19415 $RM -r conftest 2>/dev/null
19416 mkdir conftest
19417 cd conftest
19418 mkdir out
19419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19421 lt_compiler_flag="-o out/conftest2.$ac_objext"
19422 # Insert the option either (1) after the last *FLAGS variable, or
19423 # (2) before a word containing "conftest.", or (3) at the end.
19424 # Note that $ac_compile itself does not contain backslashes and begins
19425 # with a dollar sign (not a hyphen), so the echo should work correctly.
19426 lt_compile=`echo "$ac_compile" | $SED \
19427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19429 -e 's:$: $lt_compiler_flag:'`
19430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19431 (eval "$lt_compile" 2>out/conftest.err)
19432 ac_status=$?
19433 cat out/conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19436 then
19437 # The compiler can only warn and ignore the option if not recognized
19438 # So say no if there are warnings
19439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19442 lt_cv_prog_compiler_c_o_CXX=yes
19445 chmod u+w . 2>&5
19446 $RM conftest*
19447 # SGI C++ compiler will create directory out/ii_files/ for
19448 # template instantiation
19449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19450 $RM out/* && rmdir out
19451 cd ..
19452 $RM -r conftest
19453 $RM conftest*
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19462 hard_links="nottested"
19463 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19464 # do not overwrite the value of need_locks provided by the user
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19466 $as_echo_n "checking if we can lock with hard links... " >&6; }
19467 hard_links=yes
19468 $RM conftest*
19469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19470 touch conftest.a
19471 ln conftest.a conftest.b 2>&5 || hard_links=no
19472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19474 $as_echo "$hard_links" >&6; }
19475 if test "$hard_links" = no; then
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19478 need_locks=warn
19480 else
19481 need_locks=no
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19490 case $host_os in
19491 aix[4-9]*)
19492 # If we're using GNU nm, then we don't want the "-C" option.
19493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19494 # Also, AIX nm treats weak defined symbols like other global defined
19495 # symbols, whereas GNU nm marks them as "W".
19496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19497 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'
19498 else
19499 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'
19502 pw32*)
19503 export_symbols_cmds_CXX="$ltdll_cmds"
19505 cygwin* | mingw* | cegcc*)
19506 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'
19509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19511 esac
19512 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19515 $as_echo "$ld_shlibs_CXX" >&6; }
19516 test "$ld_shlibs_CXX" = no && can_build_shared=no
19518 with_gnu_ld_CXX=$with_gnu_ld
19526 # Do we need to explicitly link libc?
19528 case "x$archive_cmds_need_lc_CXX" in
19529 x|xyes)
19530 # Assume -lc should be added
19531 archive_cmds_need_lc_CXX=yes
19533 if test "$enable_shared" = yes && test "$GCC" = yes; then
19534 case $archive_cmds_CXX in
19535 *'~'*)
19536 # FIXME: we may have to deal with multi-command sequences.
19538 '$CC '*)
19539 # Test whether the compiler implicitly links with -lc since on some
19540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19541 # to ld, don't add -lc before -lgcc.
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19543 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19544 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19545 $as_echo_n "(cached) " >&6
19546 else
19547 $RM conftest*
19548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19551 (eval $ac_compile) 2>&5
19552 ac_status=$?
19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; } 2>conftest.err; then
19555 soname=conftest
19556 lib=conftest
19557 libobjs=conftest.$ac_objext
19558 deplibs=
19559 wl=$lt_prog_compiler_wl_CXX
19560 pic_flag=$lt_prog_compiler_pic_CXX
19561 compiler_flags=-v
19562 linker_flags=-v
19563 verstring=
19564 output_objdir=.
19565 libname=conftest
19566 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19567 allow_undefined_flag_CXX=
19568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19569 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19570 ac_status=$?
19571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19572 test $ac_status = 0; }
19573 then
19574 lt_cv_archive_cmds_need_lc_CXX=no
19575 else
19576 lt_cv_archive_cmds_need_lc_CXX=yes
19578 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19579 else
19580 cat conftest.err 1>&5
19582 $RM conftest*
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19586 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19587 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19589 esac
19592 esac
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19660 library_names_spec=
19661 libname_spec='lib$name'
19662 soname_spec=
19663 shrext_cmds=".so"
19664 postinstall_cmds=
19665 postuninstall_cmds=
19666 finish_cmds=
19667 finish_eval=
19668 shlibpath_var=
19669 shlibpath_overrides_runpath=unknown
19670 version_type=none
19671 dynamic_linker="$host_os ld.so"
19672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19673 need_lib_prefix=unknown
19674 hardcode_into_libs=no
19676 # when you set need_version to no, make sure it does not cause -set_version
19677 # flags to be left without arguments
19678 need_version=unknown
19680 case $host_os in
19681 aix3*)
19682 version_type=linux
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19684 shlibpath_var=LIBPATH
19686 # AIX 3 has no versioning support, so we append a major version to the name.
19687 soname_spec='${libname}${release}${shared_ext}$major'
19690 aix[4-9]*)
19691 version_type=linux
19692 need_lib_prefix=no
19693 need_version=no
19694 hardcode_into_libs=yes
19695 if test "$host_cpu" = ia64; then
19696 # AIX 5 supports IA64
19697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19698 shlibpath_var=LD_LIBRARY_PATH
19699 else
19700 # With GCC up to 2.95.x, collect2 would create an import file
19701 # for dependence libraries. The import file would start with
19702 # the line `#! .'. This would cause the generated library to
19703 # depend on `.', always an invalid library. This was fixed in
19704 # development snapshots of GCC prior to 3.0.
19705 case $host_os in
19706 aix4 | aix4.[01] | aix4.[01].*)
19707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19708 echo ' yes '
19709 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19711 else
19712 can_build_shared=no
19715 esac
19716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19717 # soname into executable. Probably we can add versioning support to
19718 # collect2, so additional links can be useful in future.
19719 if test "$aix_use_runtimelinking" = yes; then
19720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19721 # instead of lib<name>.a to let people know that these are not
19722 # typical AIX shared libraries.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 else
19725 # We preserve .a as extension for shared libraries through AIX4.2
19726 # and later when we are not doing run time linking.
19727 library_names_spec='${libname}${release}.a $libname.a'
19728 soname_spec='${libname}${release}${shared_ext}$major'
19730 shlibpath_var=LIBPATH
19734 amigaos*)
19735 case $host_cpu in
19736 powerpc)
19737 # Since July 2007 AmigaOS4 officially supports .so libraries.
19738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741 m68k)
19742 library_names_spec='$libname.ixlibrary $libname.a'
19743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19744 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'
19746 esac
19749 beos*)
19750 library_names_spec='${libname}${shared_ext}'
19751 dynamic_linker="$host_os ld.so"
19752 shlibpath_var=LIBRARY_PATH
19755 bsdi[45]*)
19756 version_type=linux
19757 need_version=no
19758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19759 soname_spec='${libname}${release}${shared_ext}$major'
19760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19764 # the default ld.so.conf also contains /usr/contrib/lib and
19765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19766 # libtool to hard-code these into programs
19769 cygwin* | mingw* | pw32* | cegcc*)
19770 version_type=windows
19771 shrext_cmds=".dll"
19772 need_version=no
19773 need_lib_prefix=no
19775 case $GCC,$host_os in
19776 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19777 library_names_spec='$libname.dll.a'
19778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19779 postinstall_cmds='base_file=`basename \${file}`~
19780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19781 dldir=$destdir/`dirname \$dlpath`~
19782 test -d \$dldir || mkdir -p \$dldir~
19783 $install_prog $dir/$dlname \$dldir/$dlname~
19784 chmod a+x \$dldir/$dlname~
19785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19789 dlpath=$dir/\$dldll~
19790 $RM \$dlpath'
19791 shlibpath_overrides_runpath=yes
19793 case $host_os in
19794 cygwin*)
19795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19796 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19799 mingw* | cegcc*)
19800 # MinGW DLLs use traditional 'lib' prefix
19801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19803 pw32*)
19804 # pw32 DLLs use 'pw' prefix rather than 'lib'
19805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19807 esac
19811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19813 esac
19814 dynamic_linker='Win32 ld.exe'
19815 # FIXME: first we should search . and the directory the executable is in
19816 shlibpath_var=PATH
19819 darwin* | rhapsody*)
19820 dynamic_linker="$host_os dyld"
19821 version_type=darwin
19822 need_lib_prefix=no
19823 need_version=no
19824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19825 soname_spec='${libname}${release}${major}$shared_ext'
19826 shlibpath_overrides_runpath=yes
19827 shlibpath_var=DYLD_LIBRARY_PATH
19828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19833 dgux*)
19834 version_type=linux
19835 need_lib_prefix=no
19836 need_version=no
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19838 soname_spec='${libname}${release}${shared_ext}$major'
19839 shlibpath_var=LD_LIBRARY_PATH
19842 freebsd1*)
19843 dynamic_linker=no
19846 freebsd* | dragonfly*)
19847 # DragonFly does not have aout. When/if they implement a new
19848 # versioning mechanism, adjust this.
19849 if test -x /usr/bin/objformat; then
19850 objformat=`/usr/bin/objformat`
19851 else
19852 case $host_os in
19853 freebsd[123]*) objformat=aout ;;
19854 *) objformat=elf ;;
19855 esac
19857 version_type=freebsd-$objformat
19858 case $version_type in
19859 freebsd-elf*)
19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19861 need_version=no
19862 need_lib_prefix=no
19864 freebsd-*)
19865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19866 need_version=yes
19868 esac
19869 shlibpath_var=LD_LIBRARY_PATH
19870 case $host_os in
19871 freebsd2*)
19872 shlibpath_overrides_runpath=yes
19874 freebsd3.[01]* | freebsdelf3.[01]*)
19875 shlibpath_overrides_runpath=yes
19876 hardcode_into_libs=yes
19878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19880 shlibpath_overrides_runpath=no
19881 hardcode_into_libs=yes
19883 *) # from 4.6 on, and DragonFly
19884 shlibpath_overrides_runpath=yes
19885 hardcode_into_libs=yes
19887 esac
19890 gnu*)
19891 version_type=linux
19892 need_lib_prefix=no
19893 need_version=no
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19895 soname_spec='${libname}${release}${shared_ext}$major'
19896 shlibpath_var=LD_LIBRARY_PATH
19897 hardcode_into_libs=yes
19900 haiku*)
19901 version_type=linux
19902 need_lib_prefix=no
19903 need_version=no
19904 dynamic_linker="$host_os runtime_loader"
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19906 soname_spec='${libname}${release}${shared_ext}$major'
19907 shlibpath_var=LIBRARY_PATH
19908 shlibpath_overrides_runpath=yes
19909 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19910 hardcode_into_libs=yes
19913 hpux9* | hpux10* | hpux11*)
19914 # Give a soname corresponding to the major version so that dld.sl refuses to
19915 # link against other versions.
19916 version_type=sunos
19917 need_lib_prefix=no
19918 need_version=no
19919 case $host_cpu in
19920 ia64*)
19921 shrext_cmds='.so'
19922 hardcode_into_libs=yes
19923 dynamic_linker="$host_os dld.so"
19924 shlibpath_var=LD_LIBRARY_PATH
19925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927 soname_spec='${libname}${release}${shared_ext}$major'
19928 if test "X$HPUX_IA64_MODE" = X32; then
19929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19930 else
19931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19935 hppa*64*)
19936 shrext_cmds='.sl'
19937 hardcode_into_libs=yes
19938 dynamic_linker="$host_os dld.sl"
19939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19942 soname_spec='${libname}${release}${shared_ext}$major'
19943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19947 shrext_cmds='.sl'
19948 dynamic_linker="$host_os dld.sl"
19949 shlibpath_var=SHLIB_PATH
19950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19952 soname_spec='${libname}${release}${shared_ext}$major'
19954 esac
19955 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19956 postinstall_cmds='chmod 555 $lib'
19957 # or fails outright, so override atomically:
19958 install_override_mode=555
19961 interix[3-9]*)
19962 version_type=linux
19963 need_lib_prefix=no
19964 need_version=no
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19966 soname_spec='${libname}${release}${shared_ext}$major'
19967 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19968 shlibpath_var=LD_LIBRARY_PATH
19969 shlibpath_overrides_runpath=no
19970 hardcode_into_libs=yes
19973 irix5* | irix6* | nonstopux*)
19974 case $host_os in
19975 nonstopux*) version_type=nonstopux ;;
19977 if test "$lt_cv_prog_gnu_ld" = yes; then
19978 version_type=linux
19979 else
19980 version_type=irix
19981 fi ;;
19982 esac
19983 need_lib_prefix=no
19984 need_version=no
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19987 case $host_os in
19988 irix5* | nonstopux*)
19989 libsuff= shlibsuff=
19992 case $LD in # libtool.m4 will add one of these switches to LD
19993 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19994 libsuff= shlibsuff= libmagic=32-bit;;
19995 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19996 libsuff=32 shlibsuff=N32 libmagic=N32;;
19997 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19998 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19999 *) libsuff= shlibsuff= libmagic=never-match;;
20000 esac
20002 esac
20003 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20004 shlibpath_overrides_runpath=no
20005 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20006 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20007 hardcode_into_libs=yes
20010 # No shared lib support for Linux oldld, aout, or coff.
20011 linux*oldld* | linux*aout* | linux*coff*)
20012 dynamic_linker=no
20015 # This must be Linux ELF.
20016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20017 version_type=linux
20018 need_lib_prefix=no
20019 need_version=no
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20023 shlibpath_var=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath=no
20026 # Some binutils ld are patched to set DT_RUNPATH
20027 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20028 $as_echo_n "(cached) " >&6
20029 else
20030 lt_cv_shlibpath_overrides_runpath=no
20031 save_LDFLAGS=$LDFLAGS
20032 save_libdir=$libdir
20033 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20034 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20039 main ()
20043 return 0;
20045 _ACEOF
20046 if ac_fn_cxx_try_link "$LINENO"; then :
20047 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20048 lt_cv_shlibpath_overrides_runpath=yes
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LDFLAGS=$save_LDFLAGS
20054 libdir=$save_libdir
20058 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20060 # This implies no fast_install, which is unacceptable.
20061 # Some rework will be needed to allow for fast_install
20062 # before this can be enabled.
20063 hardcode_into_libs=yes
20065 # Append ld.so.conf contents to the search path
20066 if test -f /etc/ld.so.conf; then
20067 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' ' '`
20068 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20071 # We used to test for /lib/ld.so.1 and disable shared libraries on
20072 # powerpc, because MkLinux only supported shared libraries with the
20073 # GNU dynamic linker. Since this was broken with cross compilers,
20074 # most powerpc-linux boxes support dynamic linking these days and
20075 # people can always --disable-shared, the test was removed, and we
20076 # assume the GNU/Linux dynamic linker is in use.
20077 dynamic_linker='GNU/Linux ld.so'
20080 netbsd*)
20081 version_type=sunos
20082 need_lib_prefix=no
20083 need_version=no
20084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20087 dynamic_linker='NetBSD (a.out) ld.so'
20088 else
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20090 soname_spec='${libname}${release}${shared_ext}$major'
20091 dynamic_linker='NetBSD ld.elf_so'
20093 shlibpath_var=LD_LIBRARY_PATH
20094 shlibpath_overrides_runpath=yes
20095 hardcode_into_libs=yes
20098 newsos6)
20099 version_type=linux
20100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20101 shlibpath_var=LD_LIBRARY_PATH
20102 shlibpath_overrides_runpath=yes
20105 *nto* | *qnx*)
20106 version_type=qnx
20107 need_lib_prefix=no
20108 need_version=no
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 soname_spec='${libname}${release}${shared_ext}$major'
20111 shlibpath_var=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath=no
20113 hardcode_into_libs=yes
20114 dynamic_linker='ldqnx.so'
20117 openbsd*)
20118 version_type=sunos
20119 sys_lib_dlsearch_path_spec="/usr/lib"
20120 need_lib_prefix=no
20121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20122 case $host_os in
20123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20124 *) need_version=no ;;
20125 esac
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20128 shlibpath_var=LD_LIBRARY_PATH
20129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20130 case $host_os in
20131 openbsd2.[89] | openbsd2.[89].*)
20132 shlibpath_overrides_runpath=no
20135 shlibpath_overrides_runpath=yes
20137 esac
20138 else
20139 shlibpath_overrides_runpath=yes
20143 os2*)
20144 libname_spec='$name'
20145 shrext_cmds=".dll"
20146 need_lib_prefix=no
20147 library_names_spec='$libname${shared_ext} $libname.a'
20148 dynamic_linker='OS/2 ld.exe'
20149 shlibpath_var=LIBPATH
20152 osf3* | osf4* | osf5*)
20153 version_type=osf
20154 need_lib_prefix=no
20155 need_version=no
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 shlibpath_var=LD_LIBRARY_PATH
20159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20163 rdos*)
20164 dynamic_linker=no
20167 solaris*)
20168 version_type=linux
20169 need_lib_prefix=no
20170 need_version=no
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=yes
20175 hardcode_into_libs=yes
20176 # ldd complains unless libraries are executable
20177 postinstall_cmds='chmod +x $lib'
20180 sunos4*)
20181 version_type=sunos
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 shlibpath_overrides_runpath=yes
20186 if test "$with_gnu_ld" = yes; then
20187 need_lib_prefix=no
20189 need_version=yes
20192 sysv4 | sysv4.3*)
20193 version_type=linux
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 shlibpath_var=LD_LIBRARY_PATH
20197 case $host_vendor in
20198 sni)
20199 shlibpath_overrides_runpath=no
20200 need_lib_prefix=no
20201 runpath_var=LD_RUN_PATH
20203 siemens)
20204 need_lib_prefix=no
20206 motorola)
20207 need_lib_prefix=no
20208 need_version=no
20209 shlibpath_overrides_runpath=no
20210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20212 esac
20215 sysv4*MP*)
20216 if test -d /usr/nec ;then
20217 version_type=linux
20218 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20219 soname_spec='$libname${shared_ext}.$major'
20220 shlibpath_var=LD_LIBRARY_PATH
20224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20225 version_type=freebsd-elf
20226 need_lib_prefix=no
20227 need_version=no
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 shlibpath_var=LD_LIBRARY_PATH
20231 shlibpath_overrides_runpath=yes
20232 hardcode_into_libs=yes
20233 if test "$with_gnu_ld" = yes; then
20234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20235 else
20236 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20237 case $host_os in
20238 sco3.2v5*)
20239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20241 esac
20243 sys_lib_dlsearch_path_spec='/usr/lib'
20246 tpf*)
20247 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20248 version_type=linux
20249 need_lib_prefix=no
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=no
20254 hardcode_into_libs=yes
20257 uts4*)
20258 version_type=linux
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 shlibpath_var=LD_LIBRARY_PATH
20265 dynamic_linker=no
20267 esac
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20269 $as_echo "$dynamic_linker" >&6; }
20270 test "$dynamic_linker" = no && can_build_shared=no
20272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20273 if test "$GCC" = yes; then
20274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20277 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20278 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20280 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20281 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20322 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20323 hardcode_action_CXX=
20324 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20325 test -n "$runpath_var_CXX" ||
20326 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20328 # We can hardcode non-existent directories.
20329 if test "$hardcode_direct_CXX" != no &&
20330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20331 # have to relink, otherwise we might link with an installed library
20332 # when we should be linking with a yet-to-be-installed one
20333 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20334 test "$hardcode_minus_L_CXX" != no; then
20335 # Linking always hardcodes the temporary library directory.
20336 hardcode_action_CXX=relink
20337 else
20338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20339 hardcode_action_CXX=immediate
20341 else
20342 # We cannot hardcode anything, or else we can only hardcode existing
20343 # directories.
20344 hardcode_action_CXX=unsupported
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20347 $as_echo "$hardcode_action_CXX" >&6; }
20349 if test "$hardcode_action_CXX" = relink ||
20350 test "$inherit_rpath_CXX" = yes; then
20351 # Fast installation is not supported
20352 enable_fast_install=no
20353 elif test "$shlibpath_overrides_runpath" = yes ||
20354 test "$enable_shared" = no; then
20355 # Fast installation is not necessary
20356 enable_fast_install=needless
20365 fi # test -n "$compiler"
20367 CC=$lt_save_CC
20368 LDCXX=$LD
20369 LD=$lt_save_LD
20370 GCC=$lt_save_GCC
20371 with_gnu_ld=$lt_save_with_gnu_ld
20372 lt_cv_path_LDCXX=$lt_cv_path_LD
20373 lt_cv_path_LD=$lt_save_path_LD
20374 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20375 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20376 fi # test "$_lt_caught_CXX_error" != yes
20378 ac_ext=c
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20399 # Only expand once:
20405 # Identify the assembler which will work hand-in-glove with the newly
20406 # built GCC, so that we can examine its features. This is the assembler
20407 # which will be driven by the driver program.
20409 # If build != host, and we aren't building gas in-tree, we identify a
20410 # build->target assembler and hope that it will have the same features
20411 # as the host->target assembler we'll be using.
20412 gcc_cv_gas_major_version=
20413 gcc_cv_gas_minor_version=
20414 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20416 if test "${gcc_cv_as+set}" = set; then :
20418 else
20420 if test -x "$DEFAULT_ASSEMBLER"; then
20421 gcc_cv_as="$DEFAULT_ASSEMBLER"
20422 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20423 && test -f ../gas/Makefile \
20424 && test x$build = x$host; then
20425 gcc_cv_as=../gas/as-new$build_exeext
20426 elif test -x as$build_exeext; then
20427 # Build using assembler in the current directory.
20428 gcc_cv_as=./as$build_exeext
20429 elif test -x $AS_FOR_TARGET; then
20430 gcc_cv_as="$AS_FOR_TARGET"
20431 else
20432 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20433 set dummy $AS_FOR_TARGET; ac_word=$2
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20435 $as_echo_n "checking for $ac_word... " >&6; }
20436 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20437 $as_echo_n "(cached) " >&6
20438 else
20439 case $gcc_cv_as in
20440 [\\/]* | ?:[\\/]*)
20441 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20445 for as_dir in $PATH
20447 IFS=$as_save_IFS
20448 test -z "$as_dir" && as_dir=.
20449 for ac_exec_ext in '' $ac_executable_extensions; do
20450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20451 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20453 break 2
20455 done
20456 done
20457 IFS=$as_save_IFS
20460 esac
20462 gcc_cv_as=$ac_cv_path_gcc_cv_as
20463 if test -n "$gcc_cv_as"; then
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20465 $as_echo "$gcc_cv_as" >&6; }
20466 else
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20475 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20477 case "$ORIGINAL_AS_FOR_TARGET" in
20478 ./as | ./as$build_exeext) ;;
20479 *) ac_config_files="$ac_config_files as:exec-tool.in"
20481 esac
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20484 $as_echo_n "checking what assembler to use... " >&6; }
20485 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20486 # Single tree build which includes gas. We want to prefer it
20487 # over whatever linker top-level may have detected, since
20488 # we'll use what we're building after installation anyway.
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20490 $as_echo "newly built gas" >&6; }
20491 in_tree_gas=yes
20492 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20493 for f in $gcc_cv_as_bfd_srcdir/configure \
20494 $gcc_cv_as_gas_srcdir/configure \
20495 $gcc_cv_as_gas_srcdir/configure.in \
20496 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20497 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20498 if test x$gcc_cv_gas_version != x; then
20499 break
20501 done
20502 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20503 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20504 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20505 case $gcc_cv_gas_patch_version in
20506 "") gcc_cv_gas_patch_version="0" ;;
20507 esac
20508 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20509 + $gcc_cv_gas_minor_version \) \* 1000 \
20510 + $gcc_cv_gas_patch_version`
20512 in_tree_gas_is_elf=no
20513 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20514 || (grep 'obj_format = multi' ../gas/Makefile \
20515 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20516 then
20517 in_tree_gas_is_elf=yes
20519 else
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20521 $as_echo "$gcc_cv_as" >&6; }
20522 in_tree_gas=no
20525 # Identify the linker which will work hand-in-glove with the newly
20526 # built GCC, so that we can examine its features. This is the linker
20527 # which will be driven by the driver program.
20529 # If build != host, and we aren't building gas in-tree, we identify a
20530 # build->target linker and hope that it will have the same features
20531 # as the host->target linker we'll be using.
20532 gcc_cv_gld_major_version=
20533 gcc_cv_gld_minor_version=
20534 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20535 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20537 if test "${gcc_cv_ld+set}" = set; then :
20539 else
20541 if test -x "$DEFAULT_LINKER"; then
20542 gcc_cv_ld="$DEFAULT_LINKER"
20543 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20544 && test -f ../ld/Makefile \
20545 && test x$build = x$host; then
20546 gcc_cv_ld=../ld/ld-new$build_exeext
20547 elif test -x collect-ld$build_exeext; then
20548 # Build using linker in the current directory.
20549 gcc_cv_ld=./collect-ld$build_exeext
20550 elif test -x $LD_FOR_TARGET; then
20551 gcc_cv_ld="$LD_FOR_TARGET"
20552 else
20553 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20554 set dummy $LD_FOR_TARGET; ac_word=$2
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20556 $as_echo_n "checking for $ac_word... " >&6; }
20557 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20558 $as_echo_n "(cached) " >&6
20559 else
20560 case $gcc_cv_ld in
20561 [\\/]* | ?:[\\/]*)
20562 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20566 for as_dir in $PATH
20568 IFS=$as_save_IFS
20569 test -z "$as_dir" && as_dir=.
20570 for ac_exec_ext in '' $ac_executable_extensions; do
20571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20572 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20574 break 2
20576 done
20577 done
20578 IFS=$as_save_IFS
20581 esac
20583 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20584 if test -n "$gcc_cv_ld"; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20586 $as_echo "$gcc_cv_ld" >&6; }
20587 else
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20589 $as_echo "no" >&6; }
20596 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20597 PLUGIN_LD=`basename $gcc_cv_ld`
20599 # Check whether --with-plugin-ld was given.
20600 if test "${with_plugin_ld+set}" = set; then :
20601 withval=$with_plugin_ld; if test x"$withval" != x; then
20602 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20603 PLUGIN_LD="$withval"
20609 cat >>confdefs.h <<_ACEOF
20610 #define PLUGIN_LD "$PLUGIN_LD"
20611 _ACEOF
20614 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20616 case "$ORIGINAL_LD_FOR_TARGET" in
20617 ./collect-ld | ./collect-ld$build_exeext) ;;
20618 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20620 esac
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20623 $as_echo_n "checking what linker to use... " >&6; }
20624 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20625 # Single tree build which includes ld. We want to prefer it
20626 # over whatever linker top-level may have detected, since
20627 # we'll use what we're building after installation anyway.
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20629 $as_echo "newly built ld" >&6; }
20630 in_tree_ld=yes
20631 in_tree_ld_is_elf=no
20632 if (grep 'EMUL = .*elf' ../ld/Makefile \
20633 || grep 'EMUL = .*linux' ../ld/Makefile \
20634 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20635 in_tree_ld_is_elf=yes
20637 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
20639 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20640 if test x$gcc_cv_gld_version != x; then
20641 break
20643 done
20644 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20645 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20646 else
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20648 $as_echo "$gcc_cv_ld" >&6; }
20649 in_tree_ld=no
20652 # Figure out what nm we will be using.
20653 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20654 if test "${gcc_cv_nm+set}" = set; then :
20656 else
20658 if test -f $gcc_cv_binutils_srcdir/configure.in \
20659 && test -f ../binutils/Makefile \
20660 && test x$build = x$host; then
20661 gcc_cv_nm=../binutils/nm-new$build_exeext
20662 elif test -x nm$build_exeext; then
20663 gcc_cv_nm=./nm$build_exeext
20664 elif test -x $NM_FOR_TARGET; then
20665 gcc_cv_nm="$NM_FOR_TARGET"
20666 else
20667 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20668 set dummy $NM_FOR_TARGET; ac_word=$2
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20670 $as_echo_n "checking for $ac_word... " >&6; }
20671 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 case $gcc_cv_nm in
20675 [\\/]* | ?:[\\/]*)
20676 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in $PATH
20682 IFS=$as_save_IFS
20683 test -z "$as_dir" && as_dir=.
20684 for ac_exec_ext in '' $ac_executable_extensions; do
20685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20686 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20688 break 2
20690 done
20691 done
20692 IFS=$as_save_IFS
20695 esac
20697 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20698 if test -n "$gcc_cv_nm"; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20700 $as_echo "$gcc_cv_nm" >&6; }
20701 else
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20703 $as_echo "no" >&6; }
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20711 $as_echo_n "checking what nm to use... " >&6; }
20712 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20713 # Single tree build which includes binutils.
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20715 $as_echo "newly built nm" >&6; }
20716 in_tree_nm=yes
20717 else
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20719 $as_echo "$gcc_cv_nm" >&6; }
20720 in_tree_nm=no
20723 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20725 case "$ORIGINAL_NM_FOR_TARGET" in
20726 ./nm | ./nm$build_exeext) ;;
20727 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20729 esac
20732 # Figure out what objdump we will be using.
20733 if test "${gcc_cv_objdump+set}" = set; then :
20735 else
20737 if test -f $gcc_cv_binutils_srcdir/configure.in \
20738 && test -f ../binutils/Makefile \
20739 && test x$build = x$host; then
20740 # Single tree build which includes binutils.
20741 gcc_cv_objdump=../binutils/objdump$build_exeext
20742 elif test -x objdump$build_exeext; then
20743 gcc_cv_objdump=./objdump$build_exeext
20744 elif test -x $OBJDUMP_FOR_TARGET; then
20745 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20746 else
20747 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20748 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20750 $as_echo_n "checking for $ac_word... " >&6; }
20751 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20752 $as_echo_n "(cached) " >&6
20753 else
20754 case $gcc_cv_objdump in
20755 [\\/]* | ?:[\\/]*)
20756 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760 for as_dir in $PATH
20762 IFS=$as_save_IFS
20763 test -z "$as_dir" && as_dir=.
20764 for ac_exec_ext in '' $ac_executable_extensions; do
20765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20766 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20768 break 2
20770 done
20771 done
20772 IFS=$as_save_IFS
20775 esac
20777 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20778 if test -n "$gcc_cv_objdump"; then
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20780 $as_echo "$gcc_cv_objdump" >&6; }
20781 else
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20783 $as_echo "no" >&6; }
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20791 $as_echo_n "checking what objdump to use... " >&6; }
20792 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20793 # Single tree build which includes binutils.
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20795 $as_echo "newly built objdump" >&6; }
20796 elif test x$gcc_cv_objdump = x; then
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20798 $as_echo "not found" >&6; }
20799 else
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20801 $as_echo "$gcc_cv_objdump" >&6; }
20804 # Figure out what readelf we will be using.
20805 if test "${gcc_cv_readelf+set}" = set; then :
20807 else
20809 if test -f $gcc_cv_binutils_srcdir/configure.in \
20810 && test -f ../binutils/Makefile \
20811 && test x$build = x$host; then
20812 # Single tree build which includes binutils.
20813 gcc_cv_readelf=../binutils/readelf$build_exeext
20814 elif test -x readelf$build_exeext; then
20815 gcc_cv_readelf=./readelf$build_exeext
20816 else
20817 # Extract the first word of "readelf", so it can be a program name with args.
20818 set dummy readelf; ac_word=$2
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20820 $as_echo_n "checking for $ac_word... " >&6; }
20821 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20822 $as_echo_n "(cached) " >&6
20823 else
20824 case $gcc_cv_readelf in
20825 [\\/]* | ?:[\\/]*)
20826 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20830 for as_dir in $PATH
20832 IFS=$as_save_IFS
20833 test -z "$as_dir" && as_dir=.
20834 for ac_exec_ext in '' $ac_executable_extensions; do
20835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20836 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20838 break 2
20840 done
20841 done
20842 IFS=$as_save_IFS
20845 esac
20847 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20848 if test -n "$gcc_cv_readelf"; then
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20850 $as_echo "$gcc_cv_readelf" >&6; }
20851 else
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20853 $as_echo "no" >&6; }
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20861 $as_echo_n "checking what readelf to use... " >&6; }
20862 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20863 # Single tree build which includes binutils.
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20865 $as_echo "newly built readelf" >&6; }
20866 elif test x$gcc_cv_readelf = x; then
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20868 $as_echo "not found" >&6; }
20869 else
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20871 $as_echo "$gcc_cv_readelf" >&6; }
20874 # Figure out what assembler alignment features are present.
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20876 $as_echo_n "checking assembler flags... " >&6; }
20877 if test "${gcc_cv_as_flags+set}" = set; then :
20878 $as_echo_n "(cached) " >&6
20879 else
20880 case "$target" in
20881 i[34567]86-*-linux*)
20882 gcc_cv_as_flags="--32"
20885 gcc_cv_as_flags=" "
20887 esac
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20890 $as_echo "$gcc_cv_as_flags" >&6; }
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20893 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20894 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20895 $as_echo_n "(cached) " >&6
20896 else
20897 gcc_cv_as_balign_and_p2align=no
20898 if test $in_tree_gas = yes; then
20899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20900 then gcc_cv_as_balign_and_p2align=yes
20902 elif test x$gcc_cv_as != x; then
20903 echo '.balign 4
20904 .p2align 2' > conftest.s
20905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20910 test $ac_status = 0; }; }
20911 then
20912 gcc_cv_as_balign_and_p2align=yes
20913 else
20914 echo "configure: failed program was" >&5
20915 cat conftest.s >&5
20917 rm -f conftest.o conftest.s
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20921 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20922 if test $gcc_cv_as_balign_and_p2align = yes; then
20924 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20929 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20930 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20931 $as_echo_n "(cached) " >&6
20932 else
20933 gcc_cv_as_max_skip_p2align=no
20934 if test $in_tree_gas = yes; then
20935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20936 then gcc_cv_as_max_skip_p2align=yes
20938 elif test x$gcc_cv_as != x; then
20939 echo '.p2align 4,,7' > conftest.s
20940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20945 test $ac_status = 0; }; }
20946 then
20947 gcc_cv_as_max_skip_p2align=yes
20948 else
20949 echo "configure: failed program was" >&5
20950 cat conftest.s >&5
20952 rm -f conftest.o conftest.s
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20956 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20957 if test $gcc_cv_as_max_skip_p2align = yes; then
20959 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20964 $as_echo_n "checking assembler for .literal16... " >&6; }
20965 if test "${gcc_cv_as_literal16+set}" = set; then :
20966 $as_echo_n "(cached) " >&6
20967 else
20968 gcc_cv_as_literal16=no
20969 if test $in_tree_gas = yes; then
20970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20971 then gcc_cv_as_literal16=yes
20973 elif test x$gcc_cv_as != x; then
20974 echo '.literal16' > conftest.s
20975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; }; }
20981 then
20982 gcc_cv_as_literal16=yes
20983 else
20984 echo "configure: failed program was" >&5
20985 cat conftest.s >&5
20987 rm -f conftest.o conftest.s
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20991 $as_echo "$gcc_cv_as_literal16" >&6; }
20992 if test $gcc_cv_as_literal16 = yes; then
20994 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20999 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21000 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21001 $as_echo_n "(cached) " >&6
21002 else
21003 gcc_cv_as_subsection_m1=no
21004 if test $in_tree_gas = yes; then
21005 if test $in_tree_gas_is_elf = yes \
21006 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21007 then gcc_cv_as_subsection_m1=yes
21009 elif test x$gcc_cv_as != x; then
21010 echo 'conftest_label1: .word 0
21011 .subsection -1
21012 conftest_label2: .word 0
21013 .previous' > conftest.s
21014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21019 test $ac_status = 0; }; }
21020 then
21021 if test x$gcc_cv_nm != x; then
21022 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21023 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21024 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21025 then :
21026 else gcc_cv_as_subsection_m1=yes
21028 rm -f conftest.nm1 conftest.nm2
21030 else
21031 echo "configure: failed program was" >&5
21032 cat conftest.s >&5
21034 rm -f conftest.o conftest.s
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21038 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21039 if test $gcc_cv_as_subsection_m1 = yes; then
21041 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21046 $as_echo_n "checking assembler for .weak... " >&6; }
21047 if test "${gcc_cv_as_weak+set}" = set; then :
21048 $as_echo_n "(cached) " >&6
21049 else
21050 gcc_cv_as_weak=no
21051 if test $in_tree_gas = yes; then
21052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21053 then gcc_cv_as_weak=yes
21055 elif test x$gcc_cv_as != x; then
21056 echo ' .weak foobar' > conftest.s
21057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21059 (eval $ac_try) 2>&5
21060 ac_status=$?
21061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21062 test $ac_status = 0; }; }
21063 then
21064 gcc_cv_as_weak=yes
21065 else
21066 echo "configure: failed program was" >&5
21067 cat conftest.s >&5
21069 rm -f conftest.o conftest.s
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21073 $as_echo "$gcc_cv_as_weak" >&6; }
21074 if test $gcc_cv_as_weak = yes; then
21076 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21081 $as_echo_n "checking assembler for .weakref... " >&6; }
21082 if test "${gcc_cv_as_weakref+set}" = set; then :
21083 $as_echo_n "(cached) " >&6
21084 else
21085 gcc_cv_as_weakref=no
21086 if test $in_tree_gas = yes; then
21087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21088 then gcc_cv_as_weakref=yes
21090 elif test x$gcc_cv_as != x; then
21091 echo ' .weakref foobar, barfnot' > conftest.s
21092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21097 test $ac_status = 0; }; }
21098 then
21099 gcc_cv_as_weakref=yes
21100 else
21101 echo "configure: failed program was" >&5
21102 cat conftest.s >&5
21104 rm -f conftest.o conftest.s
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21108 $as_echo "$gcc_cv_as_weakref" >&6; }
21109 if test $gcc_cv_as_weakref = yes; then
21111 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21116 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21117 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21118 $as_echo_n "(cached) " >&6
21119 else
21120 gcc_cv_as_nsubspa_comdat=no
21121 if test $in_tree_gas = yes; then
21122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21123 then gcc_cv_as_nsubspa_comdat=yes
21125 elif test x$gcc_cv_as != x; then
21126 echo ' .SPACE $TEXT$
21127 .NSUBSPA $CODE$,COMDAT' > conftest.s
21128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21133 test $ac_status = 0; }; }
21134 then
21135 gcc_cv_as_nsubspa_comdat=yes
21136 else
21137 echo "configure: failed program was" >&5
21138 cat conftest.s >&5
21140 rm -f conftest.o conftest.s
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21144 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21145 if test $gcc_cv_as_nsubspa_comdat = yes; then
21147 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21151 # .hidden needs to be supported in both the assembler and the linker,
21152 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21153 # This is irritatingly difficult to feature test for; we have to check the
21154 # date string after the version number. If we've got an in-tree
21155 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21156 # to be safe.
21157 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21159 $as_echo_n "checking assembler for .hidden... " >&6; }
21160 if test "${gcc_cv_as_hidden+set}" = set; then :
21161 $as_echo_n "(cached) " >&6
21162 else
21163 gcc_cv_as_hidden=no
21164 if test $in_tree_gas = yes; then
21165 if test $in_tree_gas_is_elf = yes \
21166 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21167 then gcc_cv_as_hidden=yes
21169 elif test x$gcc_cv_as != x; then
21170 echo ' .hidden foobar
21171 foobar:' > conftest.s
21172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21177 test $ac_status = 0; }; }
21178 then
21179 gcc_cv_as_hidden=yes
21180 else
21181 echo "configure: failed program was" >&5
21182 cat conftest.s >&5
21184 rm -f conftest.o conftest.s
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21188 $as_echo "$gcc_cv_as_hidden" >&6; }
21191 if test $in_tree_ld != yes ; then
21192 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21193 if echo "$ld_ver" | grep GNU > /dev/null; then
21194 ld_vers=`echo $ld_ver | sed -n \
21195 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21196 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'`
21197 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21198 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21199 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21200 else
21201 case "${target}" in
21202 *-*-solaris2*)
21204 # Solaris 2 ld -V output looks like this for a regular version:
21206 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21208 # but test versions add stuff at the end:
21210 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21212 ld_ver=`$gcc_cv_ld -V 2>&1`
21213 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21214 ld_vers=`echo $ld_ver | sed -n \
21215 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21216 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21217 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21220 esac
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21225 $as_echo_n "checking linker for .hidden support... " >&6; }
21226 if test "${gcc_cv_ld_hidden+set}" = set; then :
21227 $as_echo_n "(cached) " >&6
21228 else
21229 if test $in_tree_ld = yes ; then
21230 gcc_cv_ld_hidden=no
21231 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 \
21232 && test $in_tree_ld_is_elf = yes; then
21233 gcc_cv_ld_hidden=yes
21235 else
21236 gcc_cv_ld_hidden=yes
21237 if echo "$ld_ver" | grep GNU > /dev/null; then
21238 if test 0"$ld_date" -lt 20020404; then
21239 if test -n "$ld_date"; then
21240 # If there was date string, but was earlier than 2002-04-04, fail
21241 gcc_cv_ld_hidden=no
21242 elif test -z "$ld_vers"; then
21243 # If there was no date string nor ld version number, something is wrong
21244 gcc_cv_ld_hidden=no
21245 else
21246 test -z "$ld_vers_patch" && ld_vers_patch=0
21247 if test "$ld_vers_major" -lt 2; then
21248 gcc_cv_ld_hidden=no
21249 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21250 gcc_cv_ld_hidden="no"
21251 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21252 gcc_cv_ld_hidden=no
21256 else
21257 case "${target}" in
21258 hppa64*-*-hpux* | ia64*-*-hpux*)
21259 gcc_cv_ld_hidden=yes
21261 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21262 gcc_cv_ld_hidden=yes
21265 gcc_cv_ld_hidden=no
21267 esac
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21272 $as_echo "$gcc_cv_ld_hidden" >&6; }
21273 libgcc_visibility=no
21276 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21277 libgcc_visibility=yes
21279 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21284 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21285 gcc_cv_ld_ro_rw_mix=unknown
21286 if test $in_tree_ld = yes ; then
21287 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 \
21288 && test $in_tree_ld_is_elf = yes; then
21289 gcc_cv_ld_ro_rw_mix=read-write
21291 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21292 echo '.section myfoosect, "a"' > conftest1.s
21293 echo '.section myfoosect, "aw"' > conftest2.s
21294 echo '.byte 1' >> conftest2.s
21295 echo '.section myfoosect, "a"' > conftest3.s
21296 echo '.byte 0' >> conftest3.s
21297 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21298 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21299 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21300 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21301 conftest2.o conftest3.o > /dev/null 2>&1; then
21302 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21303 | sed -e '/myfoosect/!d' -e N`
21304 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21305 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21306 gcc_cv_ld_ro_rw_mix=read-only
21307 else
21308 gcc_cv_ld_ro_rw_mix=read-write
21312 rm -f conftest.* conftest[123].*
21314 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21316 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21320 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21322 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21324 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21325 if test "${gcc_cv_as_leb128+set}" = set; then :
21326 $as_echo_n "(cached) " >&6
21327 else
21328 gcc_cv_as_leb128=no
21329 if test $in_tree_gas = yes; then
21330 if test $in_tree_gas_is_elf = yes \
21331 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21332 then gcc_cv_as_leb128=yes
21334 elif test x$gcc_cv_as != x; then
21335 echo ' .data
21336 .uleb128 L2 - L1
21338 .uleb128 1280
21339 .sleb128 -1010
21340 L2:' > conftest.s
21341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21346 test $ac_status = 0; }; }
21347 then
21348 # GAS versions before 2.11 do not support uleb128,
21349 # despite appearing to.
21350 # ??? There exists an elf-specific test that will crash
21351 # the assembler. Perhaps it's better to figure out whether
21352 # arbitrary sections are supported and try the test.
21353 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21354 if echo "$as_ver" | grep GNU > /dev/null; then
21355 as_vers=`echo $as_ver | sed -n \
21356 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21357 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21358 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21359 if test $as_major -eq 2 && test $as_minor -lt 11
21360 then :
21361 else gcc_cv_as_leb128=yes
21364 else
21365 echo "configure: failed program was" >&5
21366 cat conftest.s >&5
21368 rm -f conftest.o conftest.s
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21372 $as_echo "$gcc_cv_as_leb128" >&6; }
21373 if test $gcc_cv_as_leb128 = yes; then
21375 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21379 # Check if we have assembler support for unwind directives.
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21381 $as_echo_n "checking assembler for cfi directives... " >&6; }
21382 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21383 $as_echo_n "(cached) " >&6
21384 else
21385 gcc_cv_as_cfi_directive=no
21386 if test x$gcc_cv_as != x; then
21387 echo ' .text
21388 .cfi_startproc
21389 .cfi_offset 0, 0
21390 .cfi_same_value 1
21391 .cfi_def_cfa 1, 2
21392 .cfi_escape 1, 2, 3, 4, 5
21393 .cfi_endproc' > conftest.s
21394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399 test $ac_status = 0; }; }
21400 then
21401 case "$target" in
21402 *-*-solaris*)
21403 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21404 # read-only and read-write sections, we need to make sure that the
21405 # assembler used emits read-write .eh_frame sections.
21406 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21407 if test "x$gcc_cv_objdump" != x; then
21408 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21409 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21410 gcc_cv_as_cfi_directive=no
21411 else
21412 case "$target" in
21413 i?86-*-solaris2.1[0-9]*)
21414 # On Solaris/x86, make sure that GCC and gas agree on using
21415 # read-only .eh_frame sections for 64-bit.
21416 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21417 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21418 sed -e /.eh_frame/!d -e N | \
21419 grep READONLY > /dev/null; then
21420 gcc_cv_as_cfi_directive=yes
21421 else
21422 gcc_cv_as_cfi_directive=no
21426 gcc_cv_as_cfi_directive=yes
21428 esac
21430 else
21431 # no objdump, err on the side of caution
21432 gcc_cv_as_cfi_directive=no
21434 else
21435 gcc_cv_as_cfi_directive=yes
21438 *-*-*)
21439 gcc_cv_as_cfi_directive=yes
21441 esac
21442 else
21443 echo "configure: failed program was" >&5
21444 cat conftest.s >&5
21446 rm -f conftest.o conftest.s
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21450 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21452 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21454 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21455 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21456 $as_echo_n "(cached) " >&6
21457 else
21458 gcc_cv_as_cfi_advance_working=no
21459 if test x$gcc_cv_as != x; then
21460 echo ' .text
21461 .cfi_startproc
21462 .cfi_adjust_cfa_offset 64
21463 .skip 75040, 0
21464 .cfi_adjust_cfa_offset 128
21465 .cfi_endproc' > conftest.s
21466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21468 (eval $ac_try) 2>&5
21469 ac_status=$?
21470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21471 test $ac_status = 0; }; }
21472 then
21474 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21475 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21476 gcc_cv_as_cfi_advance_working=yes
21479 else
21480 echo "configure: failed program was" >&5
21481 cat conftest.s >&5
21483 rm -f conftest.o conftest.s
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21487 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21489 else
21490 # no readelf, err on the side of caution
21491 gcc_cv_as_cfi_advance_working=no
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21496 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21497 _ACEOF
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21501 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21502 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21503 $as_echo_n "(cached) " >&6
21504 else
21505 gcc_cv_as_cfi_personality_directive=no
21506 if test x$gcc_cv_as != x; then
21507 echo ' .text
21508 .cfi_startproc
21509 .cfi_personality 0, symbol
21510 .cfi_endproc' > conftest.s
21511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21516 test $ac_status = 0; }; }
21517 then
21518 gcc_cv_as_cfi_personality_directive=yes
21519 else
21520 echo "configure: failed program was" >&5
21521 cat conftest.s >&5
21523 rm -f conftest.o conftest.s
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21527 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21530 cat >>confdefs.h <<_ACEOF
21531 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21532 then echo 1; else echo 0; fi`
21533 _ACEOF
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21537 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21538 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21540 else
21541 gcc_cv_as_cfi_sections_directive=no
21542 if test x$gcc_cv_as != x; then
21543 echo ' .text
21544 .cfi_sections .debug_frame, .eh_frame
21545 .cfi_startproc
21546 .cfi_endproc' > conftest.s
21547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552 test $ac_status = 0; }; }
21553 then
21554 gcc_cv_as_cfi_sections_directive=yes
21555 else
21556 echo "configure: failed program was" >&5
21557 cat conftest.s >&5
21559 rm -f conftest.o conftest.s
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21563 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21566 cat >>confdefs.h <<_ACEOF
21567 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21568 then echo 1; else echo 0; fi`
21569 _ACEOF
21572 # GAS versions up to and including 2.11.0 may mis-optimize
21573 # .eh_frame data.
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21575 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21576 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21577 $as_echo_n "(cached) " >&6
21578 else
21579 gcc_cv_as_eh_frame=no
21580 if test $in_tree_gas = yes; then
21581 if test $in_tree_gas_is_elf = yes \
21582 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21583 then gcc_cv_as_eh_frame=yes
21585 elif test x$gcc_cv_as != x; then
21586 echo ' .text
21587 .LFB1:
21588 .4byte 0
21589 .L1:
21590 .4byte 0
21591 .LFE1:
21592 .section .eh_frame,"aw",@progbits
21593 __FRAME_BEGIN__:
21594 .4byte .LECIE1-.LSCIE1
21595 .LSCIE1:
21596 .4byte 0x0
21597 .byte 0x1
21598 .ascii "z\0"
21599 .byte 0x1
21600 .byte 0x78
21601 .byte 0x1a
21602 .byte 0x0
21603 .byte 0x4
21604 .4byte 1
21605 .p2align 1
21606 .LECIE1:
21607 .LSFDE1:
21608 .4byte .LEFDE1-.LASFDE1
21609 .LASFDE1:
21610 .4byte .LASFDE1-__FRAME_BEGIN__
21611 .4byte .LFB1
21612 .4byte .LFE1-.LFB1
21613 .byte 0x4
21614 .4byte .LFE1-.LFB1
21615 .byte 0x4
21616 .4byte .L1-.LFB1
21617 .LEFDE1:' > conftest.s
21618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623 test $ac_status = 0; }; }
21624 then
21625 cat > conftest.lit <<EOF
21626 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21627 0010 01000000 12000000 18000000 00000000 ................
21628 0020 08000000 04080000 0044 .........D
21630 cat > conftest.big <<EOF
21631 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21632 0010 00000001 00000012 00000018 00000000 ................
21633 0020 00000008 04000000 0844 .........D
21635 # If the assembler didn't choke, and we can objdump,
21636 # and we got the correct data, then succeed.
21637 # The text in the here-document typically retains its unix-style line
21638 # endings, while the output of objdump will use host line endings.
21639 # Therefore, use diff -b for the comparisons.
21640 if test x$gcc_cv_objdump != x \
21641 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21642 | tail -3 > conftest.got \
21643 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21644 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21645 then
21646 gcc_cv_as_eh_frame=yes
21647 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21652 test $ac_status = 0; }; }; then
21653 gcc_cv_as_eh_frame=buggy
21654 else
21655 # Uh oh, what do we do now?
21656 gcc_cv_as_eh_frame=no
21658 else
21659 echo "configure: failed program was" >&5
21660 cat conftest.s >&5
21662 rm -f conftest.o conftest.s
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21666 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21669 if test $gcc_cv_as_eh_frame = buggy; then
21671 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21676 $as_echo_n "checking assembler for section merging support... " >&6; }
21677 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 gcc_cv_as_shf_merge=no
21681 if test $in_tree_gas = yes; then
21682 if test $in_tree_gas_is_elf = yes \
21683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21684 then gcc_cv_as_shf_merge=yes
21686 elif test x$gcc_cv_as != x; then
21687 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21693 test $ac_status = 0; }; }
21694 then
21695 gcc_cv_as_shf_merge=yes
21696 else
21697 echo "configure: failed program was" >&5
21698 cat conftest.s >&5
21700 rm -f conftest.o conftest.s
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21704 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21706 if test $gcc_cv_as_shf_merge = no; then
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21708 $as_echo_n "checking assembler for section merging support... " >&6; }
21709 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21711 else
21712 gcc_cv_as_shf_merge=no
21713 if test $in_tree_gas = yes; then
21714 if test $in_tree_gas_is_elf = yes \
21715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21716 then gcc_cv_as_shf_merge=yes
21718 elif test x$gcc_cv_as != x; then
21719 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21725 test $ac_status = 0; }; }
21726 then
21727 gcc_cv_as_shf_merge=yes
21728 else
21729 echo "configure: failed program was" >&5
21730 cat conftest.s >&5
21732 rm -f conftest.o conftest.s
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21736 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21740 cat >>confdefs.h <<_ACEOF
21741 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21742 _ACEOF
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21746 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21747 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21748 $as_echo_n "(cached) " >&6
21749 else
21750 gcc_cv_as_comdat_group=no
21751 if test $in_tree_gas = yes; then
21752 if test $in_tree_gas_is_elf = yes \
21753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21754 then gcc_cv_as_comdat_group=yes
21756 elif test x$gcc_cv_as != x; then
21757 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21763 test $ac_status = 0; }; }
21764 then
21765 gcc_cv_as_comdat_group=yes
21766 else
21767 echo "configure: failed program was" >&5
21768 cat conftest.s >&5
21770 rm -f conftest.o conftest.s
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21774 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21776 if test $gcc_cv_as_comdat_group = yes; then
21777 gcc_cv_as_comdat_group_percent=no
21778 else
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21780 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21781 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21782 $as_echo_n "(cached) " >&6
21783 else
21784 gcc_cv_as_comdat_group_percent=no
21785 if test $in_tree_gas = yes; then
21786 if test $in_tree_gas_is_elf = yes \
21787 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21788 then gcc_cv_as_comdat_group_percent=yes
21790 elif test x$gcc_cv_as != x; then
21791 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21797 test $ac_status = 0; }; }
21798 then
21799 gcc_cv_as_comdat_group_percent=yes
21800 else
21801 echo "configure: failed program was" >&5
21802 cat conftest.s >&5
21804 rm -f conftest.o conftest.s
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21808 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21811 if test $in_tree_ld = yes ; then
21812 comdat_group=no
21813 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 \
21814 && test $in_tree_ld_is_elf = yes; then
21815 comdat_group=yes
21817 elif echo "$ld_ver" | grep GNU > /dev/null; then
21818 comdat_group=yes
21819 if test 0"$ld_date" -lt 20050308; then
21820 if test -n "$ld_date"; then
21821 # If there was date string, but was earlier than 2005-03-08, fail
21822 comdat_group=no
21823 elif test "$ld_vers_major" -lt 2; then
21824 comdat_group=no
21825 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21826 comdat_group=no
21829 else
21830 case "${target}" in
21831 *-*-solaris2.1[1-9]*)
21832 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21833 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21834 # version 1.688.
21836 # FIXME: Maybe need to refine later when COMDAT group support with
21837 # Sun as is implemented.
21838 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21839 comdat_group=yes
21840 else
21841 comdat_group=no
21845 # Assume linkers other than GNU ld don't support COMDAT group.
21846 comdat_group=no
21848 esac
21850 # Allow overriding the automatic COMDAT group tests above.
21851 # Check whether --enable-comdat was given.
21852 if test "${enable_comdat+set}" = set; then :
21853 enableval=$enable_comdat; comdat_group="$enable_comdat"
21856 if test $comdat_group = no; then
21857 gcc_cv_as_comdat_group=no
21858 gcc_cv_as_comdat_group_percent=no
21861 cat >>confdefs.h <<_ACEOF
21862 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21863 _ACEOF
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21867 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21868 if test "${gcc_cv_as_discriminator+set}" = set; then :
21869 $as_echo_n "(cached) " >&6
21870 else
21871 gcc_cv_as_discriminator=no
21872 if test $in_tree_gas = yes; then
21873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21874 then gcc_cv_as_discriminator=yes
21876 elif test x$gcc_cv_as != x; then
21877 echo ' .text
21878 .file 1 "conf.c"
21879 .loc 1 1 0 discriminator 1' > conftest.s
21880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21882 (eval $ac_try) 2>&5
21883 ac_status=$?
21884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21885 test $ac_status = 0; }; }
21886 then
21887 gcc_cv_as_discriminator=yes
21888 else
21889 echo "configure: failed program was" >&5
21890 cat conftest.s >&5
21892 rm -f conftest.o conftest.s
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21896 $as_echo "$gcc_cv_as_discriminator" >&6; }
21897 if test $gcc_cv_as_discriminator = yes; then
21899 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21903 # Thread-local storage - the check is heavily parameterized.
21904 conftest_s=
21905 tls_first_major=
21906 tls_first_minor=
21907 tls_as_opt=
21908 case "$target" in
21909 alpha*-*-*)
21910 conftest_s='
21911 .section ".tdata","awT",@progbits
21912 foo: .long 25
21913 .text
21914 ldq $27,__tls_get_addr($29) !literal!1
21915 lda $16,foo($29) !tlsgd!1
21916 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21917 ldq $27,__tls_get_addr($29) !literal!2
21918 lda $16,foo($29) !tlsldm!2
21919 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21920 ldq $1,foo($29) !gotdtprel
21921 ldah $2,foo($29) !dtprelhi
21922 lda $3,foo($2) !dtprello
21923 lda $4,foo($29) !dtprel
21924 ldq $1,foo($29) !gottprel
21925 ldah $2,foo($29) !tprelhi
21926 lda $3,foo($2) !tprello
21927 lda $4,foo($29) !tprel'
21928 tls_first_major=2
21929 tls_first_minor=13
21930 tls_as_opt=--fatal-warnings
21932 cris-*-*|crisv32-*-*)
21933 conftest_s='
21934 .section ".tdata","awT",@progbits
21935 x: .long 25
21936 .text
21937 move.d x:IE,$r10
21938 nop'
21939 tls_first_major=2
21940 tls_first_minor=20
21941 tls_as_opt=--fatal-warnings
21943 frv*-*-*)
21944 conftest_s='
21945 .section ".tdata","awT",@progbits
21946 x: .long 25
21947 .text
21948 call #gettlsoff(x)'
21949 tls_first_major=2
21950 tls_first_minor=14
21952 hppa*-*-linux*)
21953 conftest_s='
21954 t1: .reg %r20
21955 t2: .reg %r21
21956 gp: .reg %r19
21957 .section ".tdata","awT",@progbits
21958 foo: .long 25
21959 .text
21960 .align 4
21961 addil LT%foo-$tls_gdidx$,gp
21962 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21963 b __tls_get_addr
21965 addil LT%foo-$tls_ldidx$,gp
21966 b __tls_get_addr
21967 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21968 addil LR%foo-$tls_dtpoff$,%ret0
21969 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21970 mfctl %cr27,%t1
21971 addil LT%foo-$tls_ieoff$,gp
21972 ldw RT%foo-$tls_ieoff$(%r1),%t2
21973 add %t1,%t2,%t3
21974 mfctl %cr27,%t1
21975 addil LR%foo-$tls_leoff$,%t1
21976 ldo RR%foo-$tls_leoff$(%r1),%t2'
21977 tls_first_major=2
21978 tls_first_minor=15
21979 tls_as_opt=--fatal-warnings
21981 arm*-*-*)
21982 conftest_s='
21983 .section ".tdata","awT",%progbits
21984 foo: .long 25
21985 .text
21986 .word foo(gottpoff)
21987 .word foo(tpoff)
21988 .word foo(tlsgd)
21989 .word foo(tlsldm)
21990 .word foo(tlsldo)'
21991 tls_first_major=2
21992 tls_first_minor=17
21994 i[34567]86-*-*)
21995 case "$target" in
21996 i[34567]86-*-solaris2.[56789]*)
21997 # TLS was introduced in the Solaris 9 4/04 release but
21998 # we do not enable it by default on Solaris 9 either.
21999 if test "x$enable_tls" = xyes ; then
22000 on_solaris=yes
22001 else
22002 enable_tls=no;
22005 i[34567]86-*-solaris2.*)
22006 on_solaris=yes
22009 on_solaris=no
22011 esac
22012 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22013 conftest_s='
22014 .section .tdata,"awt",@progbits'
22015 tls_first_major=0
22016 tls_first_minor=0
22018 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22020 else
22021 conftest_s='
22022 .section ".tdata","awT",@progbits'
22023 tls_first_major=2
22024 tls_first_minor=14
22025 tls_as_opt="--fatal-warnings"
22027 conftest_s="$conftest_s
22028 foo: .long 25
22029 .text
22030 movl %gs:0, %eax
22031 leal foo@tlsgd(,%ebx,1), %eax
22032 leal foo@tlsldm(%ebx), %eax
22033 leal foo@dtpoff(%eax), %edx
22034 movl foo@gottpoff(%ebx), %eax
22035 subl foo@gottpoff(%ebx), %eax
22036 addl foo@gotntpoff(%ebx), %eax
22037 movl foo@indntpoff, %eax
22038 movl \$foo@tpoff, %eax
22039 subl \$foo@tpoff, %eax
22040 leal foo@ntpoff(%ecx), %eax"
22042 x86_64-*-*)
22043 conftest_s='
22044 .section ".tdata","awT",@progbits
22045 foo: .long 25
22046 .text
22047 movq %fs:0, %rax
22048 leaq foo@TLSGD(%rip), %rdi
22049 leaq foo@TLSLD(%rip), %rdi
22050 leaq foo@DTPOFF(%rax), %rdx
22051 movq foo@GOTTPOFF(%rip), %rax
22052 movq $foo@TPOFF, %rax'
22053 tls_first_major=2
22054 tls_first_minor=14
22055 tls_as_opt=--fatal-warnings
22057 ia64-*-*)
22058 conftest_s='
22059 .section ".tdata","awT",@progbits
22060 foo: data8 25
22061 .text
22062 addl r16 = @ltoff(@dtpmod(foo#)), gp
22063 addl r17 = @ltoff(@dtprel(foo#)), gp
22064 addl r18 = @ltoff(@tprel(foo#)), gp
22065 addl r19 = @dtprel(foo#), gp
22066 adds r21 = @dtprel(foo#), r13
22067 movl r23 = @dtprel(foo#)
22068 addl r20 = @tprel(foo#), gp
22069 adds r22 = @tprel(foo#), r13
22070 movl r24 = @tprel(foo#)'
22071 tls_first_major=2
22072 tls_first_minor=13
22073 tls_as_opt=--fatal-warnings
22075 mips*-*-*)
22076 conftest_s='
22077 .section .tdata,"awT",@progbits
22079 .word 2
22080 .text
22081 addiu $4, $28, %tlsgd(x)
22082 addiu $4, $28, %tlsldm(x)
22083 lui $4, %dtprel_hi(x)
22084 addiu $4, $4, %dtprel_lo(x)
22085 lw $4, %gottprel(x)($28)
22086 lui $4, %tprel_hi(x)
22087 addiu $4, $4, %tprel_lo(x)'
22088 tls_first_major=2
22089 tls_first_minor=16
22090 tls_as_opt='-32 --fatal-warnings'
22092 m68k-*-*)
22093 conftest_s='
22094 .section .tdata,"awT",@progbits
22096 .word 2
22097 .text
22098 foo:
22099 move.l x@TLSGD(%a5),%a0
22100 move.l x@TLSLDM(%a5),%a0
22101 move.l x@TLSLDO(%a5),%a0
22102 move.l x@TLSIE(%a5),%a0
22103 move.l x@TLSLE(%a5),%a0'
22104 tls_first_major=2
22105 tls_first_minor=19
22106 tls_as_opt='--fatal-warnings'
22108 powerpc-*-*)
22109 conftest_s='
22110 .section ".tdata","awT",@progbits
22111 .align 2
22112 ld0: .space 4
22113 ld1: .space 4
22114 x1: .space 4
22115 x2: .space 4
22116 x3: .space 4
22117 .text
22118 addi 3,31,ld0@got@tlsgd
22119 bl __tls_get_addr
22120 addi 3,31,x1@got@tlsld
22121 bl __tls_get_addr
22122 addi 9,3,x1@dtprel
22123 addis 9,3,x2@dtprel@ha
22124 addi 9,9,x2@dtprel@l
22125 lwz 9,x3@got@tprel(31)
22126 add 9,9,x@tls
22127 addi 9,2,x1@tprel
22128 addis 9,2,x2@tprel@ha
22129 addi 9,9,x2@tprel@l'
22130 tls_first_major=2
22131 tls_first_minor=14
22132 tls_as_opt="-a32 --fatal-warnings"
22134 powerpc64-*-*)
22135 conftest_s='
22136 .section ".tdata","awT",@progbits
22137 .align 3
22138 ld0: .space 8
22139 ld1: .space 8
22140 x1: .space 8
22141 x2: .space 8
22142 x3: .space 8
22143 .text
22144 addi 3,2,ld0@got@tlsgd
22145 bl .__tls_get_addr
22147 addi 3,2,ld1@toc
22148 bl .__tls_get_addr
22150 addi 3,2,x1@got@tlsld
22151 bl .__tls_get_addr
22153 addi 9,3,x1@dtprel
22154 bl .__tls_get_addr
22156 addis 9,3,x2@dtprel@ha
22157 addi 9,9,x2@dtprel@l
22158 bl .__tls_get_addr
22160 ld 9,x3@got@dtprel(2)
22161 add 9,9,3
22162 bl .__tls_get_addr
22163 nop'
22164 tls_first_major=2
22165 tls_first_minor=14
22166 tls_as_opt="-a64 --fatal-warnings"
22168 s390-*-*)
22169 conftest_s='
22170 .section ".tdata","awT",@progbits
22171 foo: .long 25
22172 .text
22173 .long foo@TLSGD
22174 .long foo@TLSLDM
22175 .long foo@DTPOFF
22176 .long foo@NTPOFF
22177 .long foo@GOTNTPOFF
22178 .long foo@INDNTPOFF
22179 l %r1,foo@GOTNTPOFF(%r12)
22180 l %r1,0(%r1):tls_load:foo
22181 bas %r14,0(%r1,%r13):tls_gdcall:foo
22182 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22183 tls_first_major=2
22184 tls_first_minor=14
22185 tls_as_opt="-m31 --fatal-warnings"
22187 s390x-*-*)
22188 conftest_s='
22189 .section ".tdata","awT",@progbits
22190 foo: .long 25
22191 .text
22192 .quad foo@TLSGD
22193 .quad foo@TLSLDM
22194 .quad foo@DTPOFF
22195 .quad foo@NTPOFF
22196 .quad foo@GOTNTPOFF
22197 lg %r1,foo@GOTNTPOFF(%r12)
22198 larl %r1,foo@INDNTPOFF
22199 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22200 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22201 tls_first_major=2
22202 tls_first_minor=14
22203 tls_as_opt="-m64 -Aesame --fatal-warnings"
22205 sh-*-* | sh[34]-*-*)
22206 conftest_s='
22207 .section ".tdata","awT",@progbits
22208 foo: .long 25
22209 .text
22210 .long foo@TLSGD
22211 .long foo@TLSLDM
22212 .long foo@DTPOFF
22213 .long foo@GOTTPOFF
22214 .long foo@TPOFF'
22215 tls_first_major=2
22216 tls_first_minor=13
22217 tls_as_opt=--fatal-warnings
22219 sparc*-*-*)
22220 case "$target" in
22221 sparc*-sun-solaris2.[56789]*)
22222 # TLS was introduced in the Solaris 9 4/04 release but
22223 # we do not enable it by default on Solaris 9 either.
22224 if test "x$enable_tls" = xyes ; then
22225 on_solaris=yes
22226 else
22227 enable_tls=no;
22230 sparc*-sun-solaris2.*)
22231 on_solaris=yes
22234 on_solaris=no
22236 esac
22237 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22238 conftest_s='
22239 .section ".tdata",#alloc,#write,#tls
22240 foo: .long 25
22241 .text
22242 sethi %tgd_hi22(foo), %o0
22243 add %o0, %tgd_lo10(foo), %o1
22244 add %l7, %o1, %o0, %tgd_add(foo)
22245 call __tls_get_addr, %tgd_call(foo)
22246 sethi %tldm_hi22(foo), %l1
22247 add %l1, %tldm_lo10(foo), %l2
22248 add %l7, %l2, %o0, %tldm_add(foo)
22249 call __tls_get_addr, %tldm_call(foo)
22250 sethi %tldo_hix22(foo), %l3
22251 xor %l3, %tldo_lox10(foo), %l4
22252 add %o0, %l4, %l5, %tldo_add(foo)
22253 sethi %tie_hi22(foo), %o3
22254 add %o3, %tie_lo10(foo), %o3
22255 ld [%l7 + %o3], %o2, %tie_ld(foo)
22256 add %g7, %o2, %o4, %tie_add(foo)
22257 sethi %tle_hix22(foo), %l1
22258 xor %l1, %tle_lox10(foo), %o5
22259 ld [%g7 + %o5], %o1'
22260 tls_first_major=0
22261 tls_first_minor=0
22262 else
22263 conftest_s='
22264 .section ".tdata","awT",@progbits
22265 foo: .long 25
22266 .text
22267 sethi %tgd_hi22(foo), %o0
22268 add %o0, %tgd_lo10(foo), %o1
22269 add %l7, %o1, %o0, %tgd_add(foo)
22270 call __tls_get_addr, %tgd_call(foo)
22271 sethi %tldm_hi22(foo), %l1
22272 add %l1, %tldm_lo10(foo), %l2
22273 add %l7, %l2, %o0, %tldm_add(foo)
22274 call __tls_get_addr, %tldm_call(foo)
22275 sethi %tldo_hix22(foo), %l3
22276 xor %l3, %tldo_lox10(foo), %l4
22277 add %o0, %l4, %l5, %tldo_add(foo)
22278 sethi %tie_hi22(foo), %o3
22279 add %o3, %tie_lo10(foo), %o3
22280 ld [%l7 + %o3], %o2, %tie_ld(foo)
22281 add %g7, %o2, %o4, %tie_add(foo)
22282 sethi %tle_hix22(foo), %l1
22283 xor %l1, %tle_lox10(foo), %o5
22284 ld [%g7 + %o5], %o1'
22285 tls_first_major=2
22286 tls_first_minor=14
22287 tls_as_opt="-32 --fatal-warnings"
22290 xtensa*-*-*)
22291 conftest_s='
22292 .section ".tdata","awT",@progbits
22293 foo: .long 25
22294 .text
22295 movi a8, foo@TLSFUNC
22296 movi a10, foo@TLSARG
22297 callx8.tls a8, foo@TLSCALL'
22298 tls_first_major=2
22299 tls_first_minor=19
22301 esac
22302 set_have_as_tls=no
22303 if test "x$enable_tls" = xno ; then
22304 : # TLS explicitly disabled.
22305 elif test "x$enable_tls" = xyes ; then
22306 set_have_as_tls=yes # TLS explicitly enabled.
22307 elif test -z "$tls_first_major"; then
22308 : # If we don't have a check, assume no support.
22309 else
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22311 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22312 if test "${gcc_cv_as_tls+set}" = set; then :
22313 $as_echo_n "(cached) " >&6
22314 else
22315 gcc_cv_as_tls=no
22316 if test $in_tree_gas = yes; then
22317 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22318 then gcc_cv_as_tls=yes
22320 elif test x$gcc_cv_as != x; then
22321 echo "$conftest_s" > conftest.s
22322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22324 (eval $ac_try) 2>&5
22325 ac_status=$?
22326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22327 test $ac_status = 0; }; }
22328 then
22329 gcc_cv_as_tls=yes
22330 else
22331 echo "configure: failed program was" >&5
22332 cat conftest.s >&5
22334 rm -f conftest.o conftest.s
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22338 $as_echo "$gcc_cv_as_tls" >&6; }
22339 if test $gcc_cv_as_tls = yes; then
22340 set_have_as_tls=yes
22343 if test $set_have_as_tls = yes ; then
22345 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22349 # Target-specific assembler checks.
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22352 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22353 gcc_cv_ld_static_dynamic=no
22354 if test $in_tree_ld = yes ; then
22355 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
22356 gcc_cv_ld_static_dynamic=yes
22358 elif test x$gcc_cv_ld != x; then
22359 # Check if linker supports -Bstatic/-Bdynamic option
22360 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22361 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22362 gcc_cv_ld_static_dynamic=yes
22365 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22367 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22371 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22373 if test x"$demangler_in_ld" = xyes; then
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22375 $as_echo_n "checking linker --demangle support... " >&6; }
22376 gcc_cv_ld_demangle=no
22377 if test $in_tree_ld = yes; then
22378 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 \
22379 gcc_cv_ld_demangle=yes
22381 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22382 # Check if the GNU linker supports --demangle option
22383 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22384 gcc_cv_ld_demangle=yes
22387 if test x"$gcc_cv_ld_demangle" = xyes; then
22389 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22393 $as_echo "$gcc_cv_ld_demangle" >&6; }
22396 case "$target" in
22397 # All TARGET_ABI_OSF targets.
22398 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22400 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22401 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22402 $as_echo_n "(cached) " >&6
22403 else
22404 gcc_cv_as_alpha_explicit_relocs=no
22405 if test $in_tree_gas = yes; then
22406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22407 then gcc_cv_as_alpha_explicit_relocs=yes
22409 elif test x$gcc_cv_as != x; then
22410 echo ' .set nomacro
22411 .text
22412 extbl $3, $2, $3 !lituse_bytoff!1
22413 ldq $2, a($29) !literal!1
22414 ldq $4, b($29) !literal!2
22415 ldq_u $3, 0($2) !lituse_base!1
22416 ldq $27, f($29) !literal!5
22417 jsr $26, ($27), f !lituse_jsr!5
22418 ldah $29, 0($26) !gpdisp!3
22419 lda $0, c($29) !gprel
22420 ldah $1, d($29) !gprelhigh
22421 lda $1, d($1) !gprellow
22422 lda $29, 0($29) !gpdisp!3' > conftest.s
22423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22428 test $ac_status = 0; }; }
22429 then
22430 gcc_cv_as_alpha_explicit_relocs=yes
22431 else
22432 echo "configure: failed program was" >&5
22433 cat conftest.s >&5
22435 rm -f conftest.o conftest.s
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22439 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22440 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22442 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22446 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22447 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22448 $as_echo_n "(cached) " >&6
22449 else
22450 gcc_cv_as_alpha_jsrdirect_relocs=no
22451 if test $in_tree_gas = yes; then
22452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22453 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22455 elif test x$gcc_cv_as != x; then
22456 echo ' .set nomacro
22457 .text
22458 ldq $27, a($29) !literal!1
22459 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22465 test $ac_status = 0; }; }
22466 then
22467 gcc_cv_as_alpha_jsrdirect_relocs=yes
22468 else
22469 echo "configure: failed program was" >&5
22470 cat conftest.s >&5
22472 rm -f conftest.o conftest.s
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22476 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22477 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22479 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22484 cris-*-*)
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22486 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22487 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22489 else
22490 gcc_cv_as_cris_no_mul_bug=no
22491 if test $in_tree_gas = yes; then
22492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22493 then gcc_cv_as_cris_no_mul_bug=yes
22495 elif test x$gcc_cv_as != x; then
22496 echo '.text' > conftest.s
22497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22502 test $ac_status = 0; }; }
22503 then
22504 gcc_cv_as_cris_no_mul_bug=yes
22505 else
22506 echo "configure: failed program was" >&5
22507 cat conftest.s >&5
22509 rm -f conftest.o conftest.s
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22513 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22514 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22516 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22521 sparc*-*-*)
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22523 $as_echo_n "checking assembler for .register... " >&6; }
22524 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 gcc_cv_as_sparc_register_op=no
22528 if test x$gcc_cv_as != x; then
22529 echo '.register %g2, #scratch' > conftest.s
22530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535 test $ac_status = 0; }; }
22536 then
22537 gcc_cv_as_sparc_register_op=yes
22538 else
22539 echo "configure: failed program was" >&5
22540 cat conftest.s >&5
22542 rm -f conftest.o conftest.s
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22546 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22547 if test $gcc_cv_as_sparc_register_op = yes; then
22549 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22554 $as_echo_n "checking assembler for -relax option... " >&6; }
22555 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22556 $as_echo_n "(cached) " >&6
22557 else
22558 gcc_cv_as_sparc_relax=no
22559 if test x$gcc_cv_as != x; then
22560 echo '.text' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 gcc_cv_as_sparc_relax=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22573 rm -f conftest.o conftest.s
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22577 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22578 if test $gcc_cv_as_sparc_relax = yes; then
22580 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22585 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22586 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22587 $as_echo_n "(cached) " >&6
22588 else
22589 gcc_cv_as_sparc_gotdata_op=no
22590 if test x$gcc_cv_as != x; then
22591 echo '.text
22592 foo:
22594 bar:
22595 sethi %gdop_hix22(foo), %g1
22596 xor %g1, %gdop_lox10(foo), %g1
22597 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22603 test $ac_status = 0; }; }
22604 then
22605 if test x$gcc_cv_ld != x \
22606 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22607 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22608 if test x$gcc_cv_objdump != x; then
22609 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22610 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22611 gcc_cv_as_sparc_gotdata_op=no
22612 else
22613 gcc_cv_as_sparc_gotdata_op=yes
22616 else
22617 gcc_cv_as_sparc_gotdata_op=yes
22620 rm -f conftest
22621 else
22622 echo "configure: failed program was" >&5
22623 cat conftest.s >&5
22625 rm -f conftest.o conftest.s
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22629 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22630 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22632 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22637 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22638 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22639 $as_echo_n "(cached) " >&6
22640 else
22641 gcc_cv_as_sparc_ua_pcrel=no
22642 if test x$gcc_cv_as != x; then
22643 echo '.text
22644 foo:
22646 .data
22647 .align 4
22648 .byte 0
22649 .uaword %r_disp32(foo)' > conftest.s
22650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22652 (eval $ac_try) 2>&5
22653 ac_status=$?
22654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22655 test $ac_status = 0; }; }
22656 then
22657 if test x$gcc_cv_ld != x \
22658 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22659 gcc_cv_as_sparc_ua_pcrel=yes
22661 rm -f conftest
22662 else
22663 echo "configure: failed program was" >&5
22664 cat conftest.s >&5
22666 rm -f conftest.o conftest.s
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22670 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22671 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22673 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22677 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22678 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22680 else
22681 gcc_cv_as_sparc_ua_pcrel_hidden=no
22682 if test x$gcc_cv_as != x; then
22683 echo '.data
22684 .align 4
22685 .byte 0x31
22686 .uaword %r_disp32(foo)
22687 .byte 0x32, 0x33, 0x34
22688 .global foo
22689 .hidden foo
22690 foo:
22691 .skip 4' > conftest.s
22692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22697 test $ac_status = 0; }; }
22698 then
22699 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22700 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22701 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22702 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22703 if $gcc_cv_objdump -R conftest 2> /dev/null \
22704 | grep 'DISP32' > /dev/null 2>&1; then
22706 else
22707 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22710 rm -f conftest
22711 else
22712 echo "configure: failed program was" >&5
22713 cat conftest.s >&5
22715 rm -f conftest.o conftest.s
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22719 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22720 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22722 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22726 fi # unaligned pcrel relocs
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22729 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22730 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22731 $as_echo_n "(cached) " >&6
22732 else
22733 gcc_cv_as_sparc_offsetable_lo10=no
22734 if test x$gcc_cv_as != x; then
22735 echo '.text
22736 or %g1, %lo(ab) + 12, %g1
22737 or %g1, %lo(ab + 12), %g1' > conftest.s
22738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; }
22744 then
22745 if test x$gcc_cv_objdump != x \
22746 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22747 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22748 gcc_cv_as_sparc_offsetable_lo10=yes
22750 else
22751 echo "configure: failed program was" >&5
22752 cat conftest.s >&5
22754 rm -f conftest.o conftest.s
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22758 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22759 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22761 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22766 i[34567]86-*-* | x86_64-*-*)
22767 case $target_os in
22768 cygwin*)
22769 # Full C++ conformance when using a shared libstdc++-v3 requires some
22770 # support from the Cygwin DLL, which in more recent versions exports
22771 # wrappers to aid in interposing and redirecting operators new, delete,
22772 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22773 # are configuring for a version of Cygwin that exports the wrappers.
22774 if test x$host = x$target; then
22775 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22776 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22777 gcc_ac_cygwin_dll_wrappers=yes
22778 else
22779 gcc_ac_cygwin_dll_wrappers=no
22782 else
22783 # Can't check presence of libc functions during cross-compile, so
22784 # we just have to assume we're building for an up-to-date target.
22785 gcc_ac_cygwin_dll_wrappers=yes
22788 cat >>confdefs.h <<_ACEOF
22789 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22790 _ACEOF
22792 esac
22793 case $target_os in
22794 cygwin* | pe | mingw32*)
22795 # Recent binutils allows the three-operand form of ".comm" on PE. This
22796 # definition is used unconditionally to initialise the default state of
22797 # the target option variable that governs usage of the feature.
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22799 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22800 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22803 gcc_cv_as_comm_has_align=no
22804 if test $in_tree_gas = yes; then
22805 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22806 then gcc_cv_as_comm_has_align=yes
22808 elif test x$gcc_cv_as != x; then
22809 echo '.comm foo,1,32' > conftest.s
22810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812 (eval $ac_try) 2>&5
22813 ac_status=$?
22814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815 test $ac_status = 0; }; }
22816 then
22817 gcc_cv_as_comm_has_align=yes
22818 else
22819 echo "configure: failed program was" >&5
22820 cat conftest.s >&5
22822 rm -f conftest.o conftest.s
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22826 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22829 cat >>confdefs.h <<_ACEOF
22830 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22831 _ACEOF
22833 # Used for DWARF 2 in PE
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22835 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22836 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22838 else
22839 gcc_cv_as_ix86_pe_secrel32=no
22840 if test $in_tree_gas = yes; then
22841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22842 then gcc_cv_as_ix86_pe_secrel32=yes
22844 elif test x$gcc_cv_as != x; then
22845 echo '.text
22846 foo: nop
22847 .data
22848 .secrel32 foo' > conftest.s
22849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22854 test $ac_status = 0; }; }
22855 then
22856 if test x$gcc_cv_ld != x \
22857 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22858 gcc_cv_as_ix86_pe_secrel32=yes
22860 rm -f conftest
22861 else
22862 echo "configure: failed program was" >&5
22863 cat conftest.s >&5
22865 rm -f conftest.o conftest.s
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22869 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22870 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22872 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22876 esac
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22879 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22880 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 gcc_cv_as_ix86_filds=no
22884 if test x$gcc_cv_as != x; then
22885 echo 'filds mem; fists mem' > conftest.s
22886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22892 then
22893 gcc_cv_as_ix86_filds=yes
22894 else
22895 echo "configure: failed program was" >&5
22896 cat conftest.s >&5
22898 rm -f conftest.o conftest.s
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22902 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22903 if test $gcc_cv_as_ix86_filds = yes; then
22905 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22910 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22911 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22912 $as_echo_n "(cached) " >&6
22913 else
22914 gcc_cv_as_ix86_fildq=no
22915 if test x$gcc_cv_as != x; then
22916 echo 'fildq mem; fistpq mem' > conftest.s
22917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; }
22923 then
22924 gcc_cv_as_ix86_fildq=yes
22925 else
22926 echo "configure: failed program was" >&5
22927 cat conftest.s >&5
22929 rm -f conftest.o conftest.s
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22933 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22934 if test $gcc_cv_as_ix86_fildq = yes; then
22936 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22941 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22942 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 gcc_cv_as_ix86_cmov_sun_syntax=no
22946 if test x$gcc_cv_as != x; then
22947 echo 'cmovl.l %edx, %eax' > conftest.s
22948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22953 test $ac_status = 0; }; }
22954 then
22955 gcc_cv_as_ix86_cmov_sun_syntax=yes
22956 else
22957 echo "configure: failed program was" >&5
22958 cat conftest.s >&5
22960 rm -f conftest.o conftest.s
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22964 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22965 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22967 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22972 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22973 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22974 $as_echo_n "(cached) " >&6
22975 else
22976 gcc_cv_as_ix86_ffreep=no
22977 if test x$gcc_cv_as != x; then
22978 echo 'ffreep %st(1)' > conftest.s
22979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22984 test $ac_status = 0; }; }
22985 then
22986 gcc_cv_as_ix86_ffreep=yes
22987 else
22988 echo "configure: failed program was" >&5
22989 cat conftest.s >&5
22991 rm -f conftest.o conftest.s
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22995 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22996 if test $gcc_cv_as_ix86_ffreep = yes; then
22998 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23003 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23004 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23006 else
23007 gcc_cv_as_ix86_sahf=no
23008 if test x$gcc_cv_as != x; then
23009 echo 'sahf' > conftest.s
23010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23015 test $ac_status = 0; }; }
23016 then
23017 gcc_cv_as_ix86_sahf=yes
23018 else
23019 echo "configure: failed program was" >&5
23020 cat conftest.s >&5
23022 rm -f conftest.o conftest.s
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23026 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23027 if test $gcc_cv_as_ix86_sahf = yes; then
23029 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23034 $as_echo_n "checking assembler for swap suffix... " >&6; }
23035 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23036 $as_echo_n "(cached) " >&6
23037 else
23038 gcc_cv_as_ix86_swap=no
23039 if test x$gcc_cv_as != x; then
23040 echo 'movl.s %esp, %ebp' > conftest.s
23041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }
23047 then
23048 gcc_cv_as_ix86_swap=yes
23049 else
23050 echo "configure: failed program was" >&5
23051 cat conftest.s >&5
23053 rm -f conftest.o conftest.s
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23057 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23058 if test $gcc_cv_as_ix86_swap = yes; then
23060 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23065 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23066 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23067 $as_echo_n "(cached) " >&6
23068 else
23069 gcc_cv_as_ix86_diff_sect_delta=no
23070 if test x$gcc_cv_as != x; then
23071 echo '.section .rodata
23072 .L1:
23073 .long .L2-.L1
23074 .long .L3-.L1
23075 .text
23076 .L3: nop
23077 .L2: nop' > conftest.s
23078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23083 test $ac_status = 0; }; }
23084 then
23085 gcc_cv_as_ix86_diff_sect_delta=yes
23086 else
23087 echo "configure: failed program was" >&5
23088 cat conftest.s >&5
23090 rm -f conftest.o conftest.s
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23094 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23095 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23097 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23101 # This one is used unconditionally by i386.[ch]; it is to be defined
23102 # to 1 if the feature is present, 0 otherwise.
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23104 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23105 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23106 $as_echo_n "(cached) " >&6
23107 else
23108 gcc_cv_as_ix86_gotoff_in_data=no
23109 if test $in_tree_gas = yes; then
23110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23111 then gcc_cv_as_ix86_gotoff_in_data=yes
23113 elif test x$gcc_cv_as != x; then
23114 echo ' .text
23115 .L0:
23117 .data
23118 .long .L0@GOTOFF' > conftest.s
23119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23121 (eval $ac_try) 2>&5
23122 ac_status=$?
23123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23124 test $ac_status = 0; }; }
23125 then
23126 gcc_cv_as_ix86_gotoff_in_data=yes
23127 else
23128 echo "configure: failed program was" >&5
23129 cat conftest.s >&5
23131 rm -f conftest.o conftest.s
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23135 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23138 cat >>confdefs.h <<_ACEOF
23139 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23140 _ACEOF
23144 ia64*-*-*)
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23146 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23147 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23149 else
23150 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23151 if test $in_tree_gas = yes; then
23152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23153 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23155 elif test x$gcc_cv_as != x; then
23156 echo ' .text
23157 addl r15 = @ltoffx(x#), gp
23159 ld8.mov r16 = [r15], x#' > conftest.s
23160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23165 test $ac_status = 0; }; }
23166 then
23167 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23168 else
23169 echo "configure: failed program was" >&5
23170 cat conftest.s >&5
23172 rm -f conftest.o conftest.s
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23176 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23177 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23179 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23185 powerpc*-*-*)
23186 case $target in
23187 *-*-aix*) conftest_s=' .machine "pwr5"
23188 .csect .text[PR]
23189 mfcr 3,128';;
23190 *-*-darwin*)
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23192 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23193 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 gcc_cv_as_machine_directive=no
23197 if test x$gcc_cv_as != x; then
23198 echo ' .machine ppc7400' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 gcc_cv_as_machine_directive=yes
23207 else
23208 echo "configure: failed program was" >&5
23209 cat conftest.s >&5
23211 rm -f conftest.o conftest.s
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23215 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23217 if test x$gcc_cv_as_machine_directive != xyes; then
23218 echo "*** This target requires an assembler supporting \".machine\"" >&2
23219 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23220 test x$build = x$target && exit 1
23222 conftest_s=' .text
23223 mfcr r3,128';;
23224 *) conftest_s=' .machine power4
23225 .text
23226 mfcr 3,128';;
23227 esac
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23230 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23231 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23232 $as_echo_n "(cached) " >&6
23233 else
23234 gcc_cv_as_powerpc_mfcrf=no
23235 if test $in_tree_gas = yes; then
23236 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23237 then gcc_cv_as_powerpc_mfcrf=yes
23239 elif test x$gcc_cv_as != x; then
23240 echo "$conftest_s" > conftest.s
23241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23243 (eval $ac_try) 2>&5
23244 ac_status=$?
23245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23246 test $ac_status = 0; }; }
23247 then
23248 gcc_cv_as_powerpc_mfcrf=yes
23249 else
23250 echo "configure: failed program was" >&5
23251 cat conftest.s >&5
23253 rm -f conftest.o conftest.s
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23257 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23258 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23260 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23264 case $target in
23265 *-*-aix*) conftest_s=' .machine "pwr5"
23266 .csect .text[PR]
23267 popcntb 3,3';;
23268 *) conftest_s=' .machine power5
23269 .text
23270 popcntb 3,3';;
23271 esac
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23274 $as_echo_n "checking assembler for popcntb support... " >&6; }
23275 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23277 else
23278 gcc_cv_as_powerpc_popcntb=no
23279 if test $in_tree_gas = yes; then
23280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23281 then gcc_cv_as_powerpc_popcntb=yes
23283 elif test x$gcc_cv_as != x; then
23284 echo "$conftest_s" > conftest.s
23285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23287 (eval $ac_try) 2>&5
23288 ac_status=$?
23289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23290 test $ac_status = 0; }; }
23291 then
23292 gcc_cv_as_powerpc_popcntb=yes
23293 else
23294 echo "configure: failed program was" >&5
23295 cat conftest.s >&5
23297 rm -f conftest.o conftest.s
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23301 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23302 if test $gcc_cv_as_powerpc_popcntb = yes; then
23304 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23308 case $target in
23309 *-*-aix*) conftest_s=' .machine "pwr5x"
23310 .csect .text[PR]
23311 frin 1,1';;
23312 *) conftest_s=' .machine power5
23313 .text
23314 frin 1,1';;
23315 esac
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23318 $as_echo_n "checking assembler for fp round support... " >&6; }
23319 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23320 $as_echo_n "(cached) " >&6
23321 else
23322 gcc_cv_as_powerpc_fprnd=no
23323 if test $in_tree_gas = yes; then
23324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23325 then gcc_cv_as_powerpc_fprnd=yes
23327 elif test x$gcc_cv_as != x; then
23328 echo "$conftest_s" > conftest.s
23329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23331 (eval $ac_try) 2>&5
23332 ac_status=$?
23333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334 test $ac_status = 0; }; }
23335 then
23336 gcc_cv_as_powerpc_fprnd=yes
23337 else
23338 echo "configure: failed program was" >&5
23339 cat conftest.s >&5
23341 rm -f conftest.o conftest.s
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23345 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23346 if test $gcc_cv_as_powerpc_fprnd = yes; then
23348 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23352 case $target in
23353 *-*-aix*) conftest_s=' .machine "pwr6"
23354 .csect .text[PR]
23355 mffgpr 1,3';;
23356 *) conftest_s=' .machine power6
23357 .text
23358 mffgpr 1,3';;
23359 esac
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23362 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23363 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23364 $as_echo_n "(cached) " >&6
23365 else
23366 gcc_cv_as_powerpc_mfpgpr=no
23367 if test $in_tree_gas = yes; then
23368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23369 then gcc_cv_as_powerpc_mfpgpr=yes
23371 elif test x$gcc_cv_as != x; then
23372 echo "$conftest_s" > conftest.s
23373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23378 test $ac_status = 0; }; }
23379 then
23380 gcc_cv_as_powerpc_mfpgpr=yes
23381 else
23382 echo "configure: failed program was" >&5
23383 cat conftest.s >&5
23385 rm -f conftest.o conftest.s
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23389 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23390 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23392 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23396 case $target in
23397 *-*-aix*) conftest_s=' .csect .text[PR]
23398 LCF..0:
23399 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23400 *-*-darwin*)
23401 conftest_s=' .text
23402 LCF0:
23403 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23404 *) conftest_s=' .text
23405 .LCF0:
23406 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23407 esac
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23410 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23411 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23412 $as_echo_n "(cached) " >&6
23413 else
23414 gcc_cv_as_powerpc_rel16=no
23415 if test $in_tree_gas = yes; then
23416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23417 then gcc_cv_as_powerpc_rel16=yes
23419 elif test x$gcc_cv_as != x; then
23420 echo "$conftest_s" > conftest.s
23421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_rel16=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_powerpc_rel16" >&5
23437 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23438 if test $gcc_cv_as_powerpc_rel16 = yes; then
23440 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23444 case $target in
23445 *-*-aix*) conftest_s=' .machine "pwr6"
23446 .csect .text[PR]
23447 cmpb 3,4,5';;
23448 *) conftest_s=' .machine power6
23449 .text
23450 cmpb 3,4,5';;
23451 esac
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23454 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23455 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23456 $as_echo_n "(cached) " >&6
23457 else
23458 gcc_cv_as_powerpc_cmpb=no
23459 if test $in_tree_gas = yes; then
23460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23461 then gcc_cv_as_powerpc_cmpb=yes
23463 elif test x$gcc_cv_as != x; then
23464 echo "$conftest_s" > conftest.s
23465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23471 then
23472 gcc_cv_as_powerpc_cmpb=yes
23473 else
23474 echo "configure: failed program was" >&5
23475 cat conftest.s >&5
23477 rm -f conftest.o conftest.s
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23481 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23482 if test $gcc_cv_as_powerpc_cmpb = yes; then
23484 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23488 case $target in
23489 *-*-aix*) conftest_s=' .machine "pwr6"
23490 .csect .text[PR]
23491 dadd 1,2,3';;
23492 *) conftest_s=' .machine power6
23493 .text
23494 dadd 1,2,3';;
23495 esac
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23498 $as_echo_n "checking assembler for decimal float support... " >&6; }
23499 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 gcc_cv_as_powerpc_dfp=no
23503 if test $in_tree_gas = yes; then
23504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23505 then gcc_cv_as_powerpc_dfp=yes
23507 elif test x$gcc_cv_as != x; then
23508 echo "$conftest_s" > conftest.s
23509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23511 (eval $ac_try) 2>&5
23512 ac_status=$?
23513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23514 test $ac_status = 0; }; }
23515 then
23516 gcc_cv_as_powerpc_dfp=yes
23517 else
23518 echo "configure: failed program was" >&5
23519 cat conftest.s >&5
23521 rm -f conftest.o conftest.s
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23525 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23526 if test $gcc_cv_as_powerpc_dfp = yes; then
23528 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23532 case $target in
23533 *-*-aix*) conftest_s=' .machine "pwr7"
23534 .csect .text[PR]
23535 lxvd2x 1,2,3';;
23536 *) conftest_s=' .machine power7
23537 .text
23538 lxvd2x 1,2,3';;
23539 esac
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23542 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23543 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23544 $as_echo_n "(cached) " >&6
23545 else
23546 gcc_cv_as_powerpc_vsx=no
23547 if test $in_tree_gas = yes; then
23548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23549 then gcc_cv_as_powerpc_vsx=yes
23551 elif test x$gcc_cv_as != x; then
23552 echo "$conftest_s" > conftest.s
23553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558 test $ac_status = 0; }; }
23559 then
23560 gcc_cv_as_powerpc_vsx=yes
23561 else
23562 echo "configure: failed program was" >&5
23563 cat conftest.s >&5
23565 rm -f conftest.o conftest.s
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23569 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23570 if test $gcc_cv_as_powerpc_vsx = yes; then
23572 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23576 case $target in
23577 *-*-aix*) conftest_s=' .machine "pwr7"
23578 .csect .text[PR]
23579 popcntd 3,3';;
23580 *) conftest_s=' .machine power7
23581 .text
23582 popcntd 3,3';;
23583 esac
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23586 $as_echo_n "checking assembler for popcntd support... " >&6; }
23587 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23588 $as_echo_n "(cached) " >&6
23589 else
23590 gcc_cv_as_powerpc_popcntd=no
23591 if test $in_tree_gas = yes; then
23592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23593 then gcc_cv_as_powerpc_popcntd=yes
23595 elif test x$gcc_cv_as != x; then
23596 echo "$conftest_s" > conftest.s
23597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23602 test $ac_status = 0; }; }
23603 then
23604 gcc_cv_as_powerpc_popcntd=yes
23605 else
23606 echo "configure: failed program was" >&5
23607 cat conftest.s >&5
23609 rm -f conftest.o conftest.s
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23613 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23614 if test $gcc_cv_as_powerpc_popcntd = yes; then
23616 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23620 case $target in
23621 *-*-aix*) conftest_s=' .csect .text[PR]
23622 lwsync';;
23623 *) conftest_s=' .text
23624 lwsync';;
23625 esac
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23628 $as_echo_n "checking assembler for lwsync support... " >&6; }
23629 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23630 $as_echo_n "(cached) " >&6
23631 else
23632 gcc_cv_as_powerpc_lwsync=no
23633 if test $in_tree_gas = yes; then
23634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23635 then gcc_cv_as_powerpc_lwsync=yes
23637 elif test x$gcc_cv_as != x; then
23638 echo "$conftest_s" > conftest.s
23639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644 test $ac_status = 0; }; }
23645 then
23646 gcc_cv_as_powerpc_lwsync=yes
23647 else
23648 echo "configure: failed program was" >&5
23649 cat conftest.s >&5
23651 rm -f conftest.o conftest.s
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23655 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23656 if test $gcc_cv_as_powerpc_lwsync = yes; then
23658 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23662 case $target in
23663 *-*-aix*) conftest_s=' .machine "476"
23664 .csect .text[PR]
23665 dci 0';;
23666 *) conftest_s=' .machine "476"
23667 .text
23668 dci 0';;
23669 esac
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23672 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23673 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23674 $as_echo_n "(cached) " >&6
23675 else
23676 gcc_cv_as_powerpc_dci=no
23677 if test $in_tree_gas = yes; then
23678 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23679 then gcc_cv_as_powerpc_dci=yes
23681 elif test x$gcc_cv_as != x; then
23682 echo "$conftest_s" > conftest.s
23683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23688 test $ac_status = 0; }; }
23689 then
23690 gcc_cv_as_powerpc_dci=yes
23691 else
23692 echo "configure: failed program was" >&5
23693 cat conftest.s >&5
23695 rm -f conftest.o conftest.s
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23699 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23700 if test $gcc_cv_as_powerpc_dci = yes; then
23702 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23707 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23708 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23709 $as_echo_n "(cached) " >&6
23710 else
23711 gcc_cv_as_powerpc_gnu_attribute=no
23712 if test $in_tree_gas = yes; then
23713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23714 then gcc_cv_as_powerpc_gnu_attribute=yes
23716 elif test x$gcc_cv_as != x; then
23717 echo '.gnu_attribute 4,1' > conftest.s
23718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23721 ac_status=$?
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23724 then
23725 gcc_cv_as_powerpc_gnu_attribute=yes
23726 else
23727 echo "configure: failed program was" >&5
23728 cat conftest.s >&5
23730 rm -f conftest.o conftest.s
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23734 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23735 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23737 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23742 $as_echo_n "checking assembler for tls marker support... " >&6; }
23743 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23744 $as_echo_n "(cached) " >&6
23745 else
23746 gcc_cv_as_powerpc_tls_markers=no
23747 if test $in_tree_gas = yes; then
23748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23749 then gcc_cv_as_powerpc_tls_markers=yes
23751 elif test x$gcc_cv_as != x; then
23752 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }; }
23759 then
23760 gcc_cv_as_powerpc_tls_markers=yes
23761 else
23762 echo "configure: failed program was" >&5
23763 cat conftest.s >&5
23765 rm -f conftest.o conftest.s
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23769 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23770 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23772 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23776 case $target in
23777 *-*-aix*)
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23779 $as_echo_n "checking assembler for .ref support... " >&6; }
23780 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23781 $as_echo_n "(cached) " >&6
23782 else
23783 gcc_cv_as_aix_ref=no
23784 if test $in_tree_gas = yes; then
23785 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23786 then :
23788 elif test x$gcc_cv_as != x; then
23789 echo ' .csect stuff[rw]
23790 stuff:
23791 .long 1
23792 .extern sym
23793 .ref sym
23794 ' > conftest.s
23795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23798 ac_status=$?
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; }
23801 then
23802 gcc_cv_as_aix_ref=yes
23803 else
23804 echo "configure: failed program was" >&5
23805 cat conftest.s >&5
23807 rm -f conftest.o conftest.s
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23811 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23812 if test $gcc_cv_as_aix_ref = yes; then
23814 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23818 esac
23821 mips*-*-*)
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23823 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23824 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23825 $as_echo_n "(cached) " >&6
23826 else
23827 gcc_cv_as_mips_explicit_relocs=no
23828 if test $in_tree_gas = yes; then
23829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23830 then gcc_cv_as_mips_explicit_relocs=yes
23832 elif test x$gcc_cv_as != x; then
23833 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23839 test $ac_status = 0; }; }
23840 then
23841 gcc_cv_as_mips_explicit_relocs=yes
23842 else
23843 echo "configure: failed program was" >&5
23844 cat conftest.s >&5
23846 rm -f conftest.o conftest.s
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23850 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23851 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23852 if test x$target_cpu_default = x
23853 then target_cpu_default=MASK_EXPLICIT_RELOCS
23854 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23858 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23859 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23860 $as_echo_n "(cached) " >&6
23861 else
23862 gcc_cv_as_mips_no_shared=no
23863 if test $in_tree_gas = yes; then
23864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23865 then gcc_cv_as_mips_no_shared=yes
23867 elif test x$gcc_cv_as != x; then
23868 echo 'nop' > conftest.s
23869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23874 test $ac_status = 0; }; }
23875 then
23876 gcc_cv_as_mips_no_shared=yes
23877 else
23878 echo "configure: failed program was" >&5
23879 cat conftest.s >&5
23881 rm -f conftest.o conftest.s
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23885 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23886 if test $gcc_cv_as_mips_no_shared = yes; then
23888 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23893 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23894 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897 gcc_cv_as_mips_gnu_attribute=no
23898 if test $in_tree_gas = yes; then
23899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23900 then gcc_cv_as_mips_gnu_attribute=yes
23902 elif test x$gcc_cv_as != x; then
23903 echo '.gnu_attribute 4,1' > conftest.s
23904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909 test $ac_status = 0; }; }
23910 then
23911 gcc_cv_as_mips_gnu_attribute=yes
23912 else
23913 echo "configure: failed program was" >&5
23914 cat conftest.s >&5
23916 rm -f conftest.o conftest.s
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23920 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23921 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23923 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23928 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23929 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 gcc_cv_as_mips_dtprelword=no
23933 if test $in_tree_gas = yes; then
23934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23935 then gcc_cv_as_mips_dtprelword=yes
23937 elif test x$gcc_cv_as != x; then
23938 echo '.section .tdata,"awT",@progbits
23940 .word 2
23941 .text
23942 .dtprelword x+0x8000' > conftest.s
23943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948 test $ac_status = 0; }; }
23949 then
23950 gcc_cv_as_mips_dtprelword=yes
23951 else
23952 echo "configure: failed program was" >&5
23953 cat conftest.s >&5
23955 rm -f conftest.o conftest.s
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23959 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23960 if test $gcc_cv_as_mips_dtprelword = yes; then
23962 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23967 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23968 gcc_cv_as_ld_jalr_reloc=no
23969 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23970 if test $in_tree_ld = yes ; then
23971 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 \
23972 && test $in_tree_ld_is_elf = yes; then
23973 gcc_cv_as_ld_jalr_reloc=yes
23975 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23976 echo ' .ent x' > conftest.s
23977 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23978 echo ' ld $25,%call16(y)($28)' >> conftest.s
23979 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23980 echo '1: jalr $25' >> conftest.s
23981 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23982 echo '1: jalr $25' >> conftest.s
23983 echo ' .end x' >> conftest.s
23984 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23985 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23986 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23987 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23988 gcc_cv_as_ld_jalr_reloc=yes
23991 rm -f conftest.*
23994 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23995 if test x$target_cpu_default = x; then
23996 target_cpu_default=MASK_RELAX_PIC_CALLS
23997 else
23998 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24002 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24005 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24006 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24008 else
24009 gcc_cv_ld_mips_personality_relaxation=no
24010 if test $in_tree_ld = yes ; then
24011 if test "$gcc_cv_gld_major_version" -eq 2 \
24012 -a "$gcc_cv_gld_minor_version" -ge 21 \
24013 -o "$gcc_cv_gld_major_version" -gt 2; then
24014 gcc_cv_ld_mips_personality_relaxation=yes
24016 elif test x$gcc_cv_as != x \
24017 -a x$gcc_cv_ld != x \
24018 -a x$gcc_cv_readelf != x ; then
24019 cat > conftest.s <<EOF
24020 .cfi_startproc
24021 .cfi_personality 0x80,indirect_ptr
24022 .ent test
24023 test:
24025 .end test
24026 .cfi_endproc
24028 .section .data,"aw",@progbits
24029 indirect_ptr:
24030 .dc.a personality
24032 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24033 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24034 if $gcc_cv_readelf -d conftest 2>&1 \
24035 | grep TEXTREL > /dev/null 2>&1; then
24037 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24038 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24040 else
24041 gcc_cv_ld_mips_personality_relaxation=yes
24045 rm -f conftest.s conftest.o conftest
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24048 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24049 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24051 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24055 esac
24057 # Mips and HP-UX need the GNU assembler.
24058 # Linux on IA64 might be able to use the Intel assembler.
24060 case "$target" in
24061 mips*-*-* | *-*-hpux* )
24062 if test x$gas_flag = xyes \
24063 || test x"$host" != x"$build" \
24064 || test ! -x "$gcc_cv_as" \
24065 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24067 else
24068 echo "*** This configuration requires the GNU assembler" >&2
24069 exit 1
24072 esac
24074 # ??? Not all targets support dwarf2 debug_line, even within a version
24075 # of gas. Moreover, we need to emit a valid instruction to trigger any
24076 # info to the output file. So, as supported targets are added to gas 2.11,
24077 # add some instruction here to (also) show we expect this might work.
24078 # ??? Once 2.11 is released, probably need to add first known working
24079 # version to the per-target configury.
24080 case "$target" in
24081 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24082 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24083 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24084 | spu-*-* | fido*-*-* | m32c-*-*)
24085 insn="nop"
24087 ia64*-*-* | s390*-*-*)
24088 insn="nop 0"
24090 mmix-*-*)
24091 insn="swym 0"
24093 esac
24094 if test x"$insn" != x; then
24095 conftest_s="\
24096 .file 1 \"conftest.s\"
24097 .loc 1 3 0
24098 $insn"
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24100 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24101 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24103 else
24104 gcc_cv_as_dwarf2_debug_line=no
24105 if test $in_tree_gas = yes; then
24106 if test $in_tree_gas_is_elf = yes \
24107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24108 then gcc_cv_as_dwarf2_debug_line=yes
24110 elif test x$gcc_cv_as != x; then
24111 echo "$conftest_s" > conftest.s
24112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24117 test $ac_status = 0; }; }
24118 then
24119 if test x$gcc_cv_objdump != x \
24120 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24121 | grep debug_line > /dev/null 2>&1; then
24122 gcc_cv_as_dwarf2_debug_line=yes
24124 else
24125 echo "configure: failed program was" >&5
24126 cat conftest.s >&5
24128 rm -f conftest.o conftest.s
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24132 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24135 # The .debug_line file table must be in the exact order that
24136 # we specified the files, since these indices are also used
24137 # by DW_AT_decl_file. Approximate this test by testing if
24138 # the assembler bitches if the same index is assigned twice.
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24140 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24141 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24143 else
24144 gcc_cv_as_dwarf2_file_buggy=no
24145 if test x$gcc_cv_as != x; then
24146 echo ' .file 1 "foo.s"
24147 .file 1 "bar.s"' > 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_dwarf2_file_buggy=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_dwarf2_file_buggy" >&5
24164 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24167 if test $gcc_cv_as_dwarf2_debug_line = yes \
24168 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24170 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24175 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24176 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24177 $as_echo_n "(cached) " >&6
24178 else
24179 gcc_cv_as_gdwarf2_flag=no
24180 if test $in_tree_gas = yes; then
24181 if test $in_tree_gas_is_elf = yes \
24182 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24183 then gcc_cv_as_gdwarf2_flag=yes
24185 elif test x$gcc_cv_as != x; then
24186 echo "$insn" > conftest.s
24187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24190 ac_status=$?
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; }
24193 then
24194 gcc_cv_as_gdwarf2_flag=yes
24195 else
24196 echo "configure: failed program was" >&5
24197 cat conftest.s >&5
24199 rm -f conftest.o conftest.s
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24203 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24204 if test $gcc_cv_as_gdwarf2_flag = yes; then
24206 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24211 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24212 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24213 $as_echo_n "(cached) " >&6
24214 else
24215 gcc_cv_as_gstabs_flag=no
24216 if test $in_tree_gas = yes; then
24217 if test $in_tree_gas_is_elf = yes \
24218 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24219 then gcc_cv_as_gstabs_flag=yes
24221 elif test x$gcc_cv_as != x; then
24222 echo "$insn" > conftest.s
24223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24228 test $ac_status = 0; }; }
24229 then
24230 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24231 # and warns about it, but still exits successfully. So check for
24232 # this.
24233 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24235 (eval $ac_try) 2>&5
24236 ac_status=$?
24237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238 test $ac_status = 0; }; }
24239 then :
24240 else gcc_cv_as_gstabs_flag=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24250 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24251 if test $gcc_cv_as_gstabs_flag = yes; then
24253 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24258 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24259 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24261 else
24262 gcc_cv_as_debug_prefix_map_flag=no
24263 if test $in_tree_gas = yes; then
24264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24265 then gcc_cv_as_debug_prefix_map_flag=yes
24267 elif test x$gcc_cv_as != x; then
24268 echo "$insn" > conftest.s
24269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274 test $ac_status = 0; }; }
24275 then
24276 gcc_cv_as_debug_prefix_map_flag=yes
24277 else
24278 echo "configure: failed program was" >&5
24279 cat conftest.s >&5
24281 rm -f conftest.o conftest.s
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24285 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24286 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24288 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24294 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24295 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24296 $as_echo_n "(cached) " >&6
24297 else
24298 gcc_cv_as_lcomm_with_alignment=no
24299 if test x$gcc_cv_as != x; then
24300 echo '.lcomm bar,4,16' > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24307 then
24308 gcc_cv_as_lcomm_with_alignment=yes
24309 else
24310 echo "configure: failed program was" >&5
24311 cat conftest.s >&5
24313 rm -f conftest.o conftest.s
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24317 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24318 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24320 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24324 # Check whether --enable-gnu-unique-object was given.
24325 if test "${enable_gnu_unique_object+set}" = set; then :
24326 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24327 yes | no) ;;
24328 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24329 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24330 esac
24331 else
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24333 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24334 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24335 $as_echo_n "(cached) " >&6
24336 else
24337 gcc_cv_as_gnu_unique_object=no
24338 if test $in_tree_gas = yes; then
24339 if test $in_tree_gas_is_elf = yes \
24340 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24341 then gcc_cv_as_gnu_unique_object=yes
24343 elif test x$gcc_cv_as != x; then
24344 echo '.type foo, @gnu_unique_object' > conftest.s
24345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24347 (eval $ac_try) 2>&5
24348 ac_status=$?
24349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24350 test $ac_status = 0; }; }
24351 then
24352 gcc_cv_as_gnu_unique_object=yes
24353 else
24354 echo "configure: failed program was" >&5
24355 cat conftest.s >&5
24357 rm -f conftest.o conftest.s
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24361 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24362 if test $gcc_cv_as_gnu_unique_object = yes; then
24363 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24364 if test x$host = x$build -a x$host = x$target &&
24365 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24366 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24367 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24368 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24369 if test "$glibcnum" -ge 2011 ; then
24370 enable_gnu_unique_object=yes
24376 if test x$enable_gnu_unique_object = xyes; then
24378 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24383 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24384 if test "${gcc_cv_as_line_zero+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24386 else
24387 gcc_cv_as_line_zero=no
24388 if test $in_tree_gas = yes; then
24389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24390 then gcc_cv_as_line_zero=yes
24392 elif test "x$gcc_cv_as" != x; then
24393 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24394 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24396 (eval $ac_try) 2>&5
24397 ac_status=$?
24398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24399 test $ac_status = 0; }; } &&
24400 test "x`cat conftest.out`" = x
24401 then
24402 gcc_cv_as_line_zero=yes
24403 else
24404 echo "configure: failed program was" >&5
24405 cat conftest.s >&5
24406 echo "configure: error output was" >&5
24407 cat conftest.out >&5
24409 rm -f conftest.o conftest.s conftest.out
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24413 $as_echo "$gcc_cv_as_line_zero" >&6; }
24414 if test "x$gcc_cv_as_line_zero" = xyes; then
24416 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24421 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24422 gcc_cv_ld_eh_frame_hdr=no
24423 if test $in_tree_ld = yes ; then
24424 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 \
24425 && test $in_tree_ld_is_elf = yes; then
24426 gcc_cv_ld_eh_frame_hdr=yes
24428 elif test x$gcc_cv_ld != x; then
24429 # Check if linker supports --eh-frame-hdr option
24430 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24431 gcc_cv_ld_eh_frame_hdr=yes
24435 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24437 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24441 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24444 $as_echo_n "checking linker position independent executable support... " >&6; }
24445 gcc_cv_ld_pie=no
24446 if test $in_tree_ld = yes ; then
24447 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 \
24448 && test $in_tree_ld_is_elf = yes; then
24449 gcc_cv_ld_pie=yes
24451 elif test x$gcc_cv_ld != x; then
24452 # Check if linker supports -pie option
24453 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24454 gcc_cv_ld_pie=yes
24457 if test x"$gcc_cv_ld_pie" = xyes; then
24459 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24463 $as_echo "$gcc_cv_ld_pie" >&6; }
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24466 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24467 gcc_cv_ld_eh_gc_sections=no
24468 if test $in_tree_ld = yes ; then
24469 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 \
24470 && test $in_tree_ld_is_elf = yes; then
24471 gcc_cv_ld_eh_gc_sections=yes
24473 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24474 cat > conftest.s <<EOF
24475 .section .text
24476 .globl _start
24477 .type _start, @function
24478 _start:
24479 .long foo
24480 .size _start, .-_start
24481 .section .text.foo,"ax",@progbits
24482 .type foo, @function
24483 foo:
24484 .long 0
24485 .size foo, .-foo
24486 .section .gcc_except_table.foo,"a",@progbits
24487 .L0:
24488 .long 0
24489 .section .eh_frame,"a",@progbits
24490 .long .L0
24492 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24493 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24494 | grep "gc-sections option ignored" > /dev/null; then
24495 gcc_cv_ld_eh_gc_sections=no
24496 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24497 gcc_cv_ld_eh_gc_sections=yes
24498 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24499 if test x$gcc_cv_as_comdat_group != xyes; then
24500 gcc_cv_ld_eh_gc_sections=no
24501 cat > conftest.s <<EOF
24502 .section .text
24503 .globl _start
24504 .type _start, @function
24505 _start:
24506 .long foo
24507 .size _start, .-_start
24508 .section .gnu.linkonce.t.foo,"ax",@progbits
24509 .type foo, @function
24510 foo:
24511 .long 0
24512 .size foo, .-foo
24513 .section .gcc_except_table.foo,"a",@progbits
24514 .L0:
24515 .long 0
24516 .section .eh_frame,"a",@progbits
24517 .long .L0
24519 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24520 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24521 | grep "gc-sections option ignored" > /dev/null; then
24522 gcc_cv_ld_eh_gc_sections=no
24523 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24524 gcc_cv_ld_eh_gc_sections=yes
24530 rm -f conftest.s conftest.o conftest
24532 case "$target" in
24533 hppa*-*-linux*)
24534 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24535 gcc_cv_ld_eh_gc_sections=no
24537 esac
24538 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24540 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24544 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24546 # --------
24547 # UNSORTED
24548 # --------
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24551 $as_echo_n "checking linker --as-needed support... " >&6; }
24552 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24553 $as_echo_n "(cached) " >&6
24554 else
24555 gcc_cv_ld_as_needed=no
24556 if test $in_tree_ld = yes ; then
24557 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 \
24558 && test $in_tree_ld_is_elf = yes; then
24559 gcc_cv_ld_as_needed=yes
24561 elif test x$gcc_cv_ld != x; then
24562 # Check if linker supports --as-needed and --no-as-needed options
24563 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24564 gcc_cv_ld_as_needed=yes
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24570 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24571 if test x"$gcc_cv_ld_as_needed" = xyes; then
24573 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24577 case "$target:$tm_file" in
24578 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24580 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24581 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 gcc_cv_ld_no_dot_syms=no
24585 if test $in_tree_ld = yes ; then
24586 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
24587 gcc_cv_ld_no_dot_syms=yes
24589 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24590 cat > conftest1.s <<EOF
24591 .text
24592 bl .foo
24594 cat > conftest2.s <<EOF
24595 .section ".opd","aw"
24596 .align 3
24597 .globl foo
24598 .type foo,@function
24599 foo:
24600 .quad .LEfoo,.TOC.@tocbase,0
24601 .text
24602 .LEfoo:
24604 .size foo,.-.LEfoo
24606 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24607 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24608 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24609 gcc_cv_ld_no_dot_syms=yes
24611 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24616 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24617 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24619 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24623 esac
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24626 $as_echo_n "checking linker --build-id support... " >&6; }
24627 if test "${gcc_cv_ld_buildid+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24629 else
24630 gcc_cv_ld_buildid=no
24631 if test $in_tree_ld = yes ; then
24632 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24633 "$gcc_cv_gld_minor_version" -ge 18 -o \
24634 "$gcc_cv_gld_major_version" -gt 2 \
24635 && test $in_tree_ld_is_elf = yes; then
24636 gcc_cv_ld_buildid=yes
24638 elif test x$gcc_cv_ld != x; then
24639 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24640 gcc_cv_ld_buildid=yes
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24645 $as_echo "$gcc_cv_ld_buildid" >&6; }
24646 if test x"$gcc_cv_ld_buildid" = xyes; then
24648 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24652 # Check whether --enable-linker-build-id was given.
24653 if test "${enable_linker_build_id+set}" = set; then :
24654 enableval=$enable_linker_build_id;
24655 else
24656 enable_linker_build_id=no
24660 if test x"$enable_linker_build_id" = xyes; then
24661 if test x"$gcc_cv_ld_buildid" = xyes; then
24663 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24665 else
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24667 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24672 $as_echo_n "checking linker --sysroot support... " >&6; }
24673 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_ld_sysroot=no
24677 if test $in_tree_ld = yes ; then
24678 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
24679 gcc_cv_ld_sysroot=yes
24681 elif test x$gcc_cv_ld != x; then
24682 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24683 gcc_cv_ld_sysroot=yes
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24688 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24689 if test x"$gcc_cv_ld_sysroot" = xyes; then
24691 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24695 if test x$with_sysroot = x && test x$host = x$target \
24696 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24697 && test "$prefix" != "NONE"; then
24699 cat >>confdefs.h <<_ACEOF
24700 #define PREFIX_INCLUDE_DIR "$prefix/include"
24701 _ACEOF
24705 # Test for stack protector support in target C library.
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24707 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24708 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24710 else
24711 gcc_cv_libc_provides_ssp=no
24712 case "$target" in
24713 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24714 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24715 if test "x$with_headers" != x; then
24716 glibc_header_dir=$with_headers
24717 elif test "x$with_sysroot" = x; then
24718 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24719 elif test "x$with_build_sysroot" != "x"; then
24720 glibc_header_dir="${with_build_sysroot}/usr/include"
24721 elif test "x$with_sysroot" = xyes; then
24722 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24723 else
24724 glibc_header_dir="${with_sysroot}/usr/include"
24726 else
24727 glibc_header_dir=/usr/include
24729 # glibc 2.4 and later provides __stack_chk_fail and
24730 # either __stack_chk_guard, or TLS access to stack guard canary.
24731 if test -f $glibc_header_dir/features.h \
24732 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24733 $glibc_header_dir/features.h > /dev/null; then
24734 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24735 $glibc_header_dir/features.h > /dev/null; then
24736 gcc_cv_libc_provides_ssp=yes
24737 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24738 $glibc_header_dir/features.h > /dev/null \
24739 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24740 $glibc_header_dir/features.h > /dev/null; then
24741 gcc_cv_libc_provides_ssp=yes
24742 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24743 $glibc_header_dir/features.h > /dev/null && \
24744 test -f $glibc_header_dir/bits/uClibc_config.h && \
24745 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24746 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24747 gcc_cv_libc_provides_ssp=yes
24751 *-*-gnu*)
24752 # Avoid complicated tests (see
24753 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24754 # simply assert that glibc does provide this, which is true for all
24755 # realistically usable GNU/Hurd configurations.
24756 gcc_cv_libc_provides_ssp=yes;;
24757 *-*-darwin* | *-*-freebsd*)
24758 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24759 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24760 gcc_cv_libc_provides_ssp=yes
24761 else
24762 echo "no __stack_chk_fail on this target"
24766 *) gcc_cv_libc_provides_ssp=no ;;
24767 esac
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24770 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24772 if test x$gcc_cv_libc_provides_ssp = xyes; then
24774 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24778 # Check if TFmode long double should be used by default or not.
24779 # Some glibc targets used DFmode long double, but with glibc 2.4
24780 # and later they can use TFmode.
24781 case "$target" in
24782 powerpc*-*-linux* | \
24783 powerpc*-*-gnu* | \
24784 sparc*-*-linux* | \
24785 s390*-*-linux* | \
24786 alpha*-*-linux*)
24788 # Check whether --with-long-double-128 was given.
24789 if test "${with_long_double_128+set}" = set; then :
24790 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24791 else
24792 gcc_cv_target_ldbl128=no
24793 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24794 if test "x$with_sysroot" = x; then
24795 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24796 elif test "x$with_build_sysroot" != "x"; then
24797 glibc_header_dir="${with_build_sysroot}/usr/include"
24798 elif test "x$with_sysroot" = xyes; then
24799 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24800 else
24801 glibc_header_dir="${with_sysroot}/usr/include"
24803 else
24804 glibc_header_dir=/usr/include
24806 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24807 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24808 && gcc_cv_target_ldbl128=yes
24813 esac
24814 if test x$gcc_cv_target_ldbl128 = xyes; then
24816 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24820 # Find out what GC implementation we want, or may, use.
24822 # Check whether --with-gc was given.
24823 if test "${with_gc+set}" = set; then :
24824 withval=$with_gc; case "$withval" in
24825 page)
24826 GGC=ggc-$withval
24828 zone)
24829 GGC=ggc-$withval
24831 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24835 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24837 esac
24838 else
24839 GGC=ggc-page
24843 echo "Using $GGC for garbage collection."
24845 # Libraries to use on the host. This will normally be set by the top
24846 # level Makefile. Here we simply capture the value for our Makefile.
24847 if test -z "${HOST_LIBS+set}"; then
24848 HOST_LIBS=
24852 # Use the system's zlib library.
24853 zlibdir=-L../zlib
24854 zlibinc="-I\$(srcdir)/../zlib"
24856 # Check whether --with-system-zlib was given.
24857 if test "${with_system_zlib+set}" = set; then :
24858 withval=$with_system_zlib; zlibdir=
24859 zlibinc=
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24868 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24869 # Check whether --enable-maintainer-mode was given.
24870 if test "${enable_maintainer_mode+set}" = set; then :
24871 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24872 else
24873 maintainer_mode=no
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24878 $as_echo "$maintainer_mode" >&6; }
24880 if test "$maintainer_mode" = "yes"; then
24881 MAINT=''
24882 else
24883 MAINT='#'
24886 # --------------
24887 # Language hooks
24888 # --------------
24890 # Make empty files to contain the specs and options for each language.
24891 # Then add #include lines to for a compiler that has specs and/or options.
24893 subdirs=
24894 lang_opt_files=
24895 lang_specs_files=
24896 lang_tree_files=
24897 # These (without "all_") are set in each config-lang.in.
24898 # `language' must be a single word so is spelled singularly.
24899 all_languages=
24900 all_compilers=
24901 all_outputs='Makefile gccbug'
24902 # List of language makefile fragments.
24903 all_lang_makefrags=
24904 # List of language subdirectory makefiles. Deprecated.
24905 all_lang_makefiles=
24906 # Additional files for gengtype
24907 all_gtfiles="$target_gtfiles"
24909 # These are the languages that are set in --enable-languages,
24910 # and are available in the GCC tree.
24911 all_selected_languages=
24913 # Add the language fragments.
24914 # Languages are added via two mechanisms. Some information must be
24915 # recorded in makefile variables, these are defined in config-lang.in.
24916 # We accumulate them and plug them into the main Makefile.
24917 # The other mechanism is a set of hooks for each of the main targets
24918 # like `clean', `install', etc.
24920 language_hooks="Make-hooks"
24922 for lang in ${srcdir}/*/config-lang.in
24924 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24926 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24927 if test "x$lang_alias" = x
24928 then
24929 echo "$lang doesn't set \$language." 1>&2
24930 exit 1
24932 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24933 subdirs="$subdirs $subdir"
24935 # $gcc_subdir is where the gcc integration files are to be found
24936 # for a language, both for internal compiler purposes (compiler
24937 # sources implementing front-end to GCC tree converters), and for
24938 # build infrastructure purposes (Make-lang.in, etc.)
24940 # This will be <subdir> (relative to $srcdir) if a line like
24941 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24942 # is found in <langdir>/config-lang.in, and will remain <langdir>
24943 # otherwise.
24945 # Except for the language alias (fetched above), the regular
24946 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24947 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24948 # only this and the language alias.
24950 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24951 if [ "$gcc_subdir" = "" ]; then
24952 gcc_subdir="$subdir"
24955 case ",$enable_languages," in
24956 *,$lang_alias,*)
24957 all_selected_languages="$all_selected_languages $lang_alias"
24958 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24959 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24962 esac
24964 language=
24965 boot_language=
24966 compilers=
24967 outputs=
24968 gtfiles=
24969 subdir_requires=
24970 . ${srcdir}/$gcc_subdir/config-lang.in
24971 if test "x$language" = x
24972 then
24973 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24974 exit 1
24977 ok=:
24978 case ",$enable_languages," in
24979 *,$lang_alias,*) ;;
24981 for i in $subdir_requires; do
24982 test -f "${srcdir}/$i/config-lang.in" && continue
24983 ok=false
24984 break
24985 done
24987 esac
24988 $ok || continue
24990 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24991 if test -f $srcdir/$gcc_subdir/lang.opt; then
24992 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24994 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24995 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24997 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24998 then all_lang_makefiles="$gcc_subdir/Makefile"
25000 all_languages="$all_languages $language"
25001 all_compilers="$all_compilers $compilers"
25002 all_outputs="$all_outputs $outputs"
25003 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25004 case ",$enable_languages," in
25005 *,lto,*)
25007 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25009 enable_lto=yes
25012 *) ;;
25013 esac
25014 done
25016 # Pick up gtfiles for c
25017 gtfiles=
25018 . ${srcdir}/c-config-lang.in
25019 all_gtfiles="$all_gtfiles [c] $gtfiles"
25021 check_languages=
25022 for language in $all_selected_languages
25024 check_languages="$check_languages check-$language"
25025 done
25027 # We link each language in with a set of hooks, reached indirectly via
25028 # lang.${target}. Only do so for selected languages.
25030 rm -f Make-hooks
25031 touch Make-hooks
25032 target_list="all.cross start.encap rest.encap tags \
25033 install-common install-man install-info install-pdf install-html dvi \
25034 pdf html uninstall info man srcextra srcman srcinfo \
25035 mostlyclean clean distclean maintainer-clean install-plugin"
25037 for t in $target_list
25040 for lang in $all_selected_languages
25042 x="$x $lang.$t"
25043 done
25044 echo "lang.$t: $x" >> Make-hooks
25045 done
25047 # --------
25048 # UNSORTED
25049 # --------
25051 # Create .gdbinit.
25053 echo "dir ." > .gdbinit
25054 echo "dir ${srcdir}" >> .gdbinit
25055 if test x$gdb_needs_out_file_path = xyes
25056 then
25057 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25059 if test "x$subdirs" != x; then
25060 for s in $subdirs
25062 echo "dir ${srcdir}/$s" >> .gdbinit
25063 done
25065 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25067 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25071 # Find a directory in which to install a shared libgcc.
25073 # Check whether --enable-version-specific-runtime-libs was given.
25074 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25075 enableval=$enable_version_specific_runtime_libs;
25080 # Check whether --with-slibdir was given.
25081 if test "${with_slibdir+set}" = set; then :
25082 withval=$with_slibdir; slibdir="$with_slibdir"
25083 else
25084 if test "${enable_version_specific_runtime_libs+set}" = set; then
25085 slibdir='$(libsubdir)'
25086 elif test "$host" != "$target"; then
25087 slibdir='$(build_tooldir)/lib'
25088 else
25089 slibdir='$(libdir)'
25095 # Substitute configuration variables
25157 # Echo link setup.
25158 if test x${build} = x${host} ; then
25159 if test x${host} = x${target} ; then
25160 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25161 else
25162 echo "Links are now set up to build a cross-compiler" 1>&2
25163 echo " from ${host} to ${target}." 1>&2
25165 else
25166 if test x${host} = x${target} ; then
25167 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25168 echo " for ${target}." 1>&2
25169 else
25170 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25171 echo " from ${host} to ${target}." 1>&2
25183 if test "x${CLOOGLIBS}" != "x" ; then
25185 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25191 if test "x${LIBELFLIBS}" != "x" ; then
25193 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25197 # Check for plugin support
25198 # Check whether --enable-plugin was given.
25199 if test "${enable_plugin+set}" = set; then :
25200 enableval=$enable_plugin; enable_plugin=$enableval
25201 else
25202 enable_plugin=yes; default_plugin=yes
25206 pluginlibs=
25207 if test x"$enable_plugin" = x"yes"; then
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25210 $as_echo_n "checking for exported symbols... " >&6; }
25211 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25212 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25213 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
25214 : # No need to use a flag
25215 else
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25217 $as_echo_n "checking for -rdynamic... " >&6; }
25218 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25219 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
25220 plugin_rdynamic=yes
25221 pluginlibs="-rdynamic"
25222 else
25223 plugin_rdynamic=no
25224 enable_plugin=no
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25227 $as_echo "$plugin_rdynamic" >&6; }
25230 # Check -ldl
25231 saved_LIBS="$LIBS"
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25233 $as_echo_n "checking for library containing dlopen... " >&6; }
25234 if test "${ac_cv_search_dlopen+set}" = set; then :
25235 $as_echo_n "(cached) " >&6
25236 else
25237 ac_func_search_save_LIBS=$LIBS
25238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25239 /* end confdefs.h. */
25241 /* Override any GCC internal prototype to avoid an error.
25242 Use char because int might match the return type of a GCC
25243 builtin and then its argument prototype would still apply. */
25244 #ifdef __cplusplus
25245 extern "C"
25246 #endif
25247 char dlopen ();
25249 main ()
25251 return dlopen ();
25253 return 0;
25255 _ACEOF
25256 for ac_lib in '' dl; do
25257 if test -z "$ac_lib"; then
25258 ac_res="none required"
25259 else
25260 ac_res=-l$ac_lib
25261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25263 if ac_fn_c_try_link "$LINENO"; then :
25264 ac_cv_search_dlopen=$ac_res
25266 rm -f core conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext
25268 if test "${ac_cv_search_dlopen+set}" = set; then :
25269 break
25271 done
25272 if test "${ac_cv_search_dlopen+set}" = set; then :
25274 else
25275 ac_cv_search_dlopen=no
25277 rm conftest.$ac_ext
25278 LIBS=$ac_func_search_save_LIBS
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25281 $as_echo "$ac_cv_search_dlopen" >&6; }
25282 ac_res=$ac_cv_search_dlopen
25283 if test "$ac_res" != no; then :
25284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25288 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25289 pluginlibs="$pluginlibs -ldl"
25291 LIBS="$saved_LIBS"
25293 # Check that we can build shared objects with -fPIC -shared
25294 saved_LDFLAGS="$LDFLAGS"
25295 LDFLAGS="$LDFLAGS -fPIC -shared"
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25297 $as_echo_n "checking for -fPIC -shared... " >&6; }
25298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25299 /* end confdefs.h. */
25300 extern int X;
25302 main ()
25304 return X == 0;
25306 return 0;
25308 _ACEOF
25309 if ac_fn_c_try_link "$LINENO"; then :
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25311 $as_echo "yes" >&6; }; have_pic_shared=yes
25312 else
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25314 $as_echo "no" >&6; }; have_pic_shared=no
25316 rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
25318 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25319 pluginlibs=
25320 enable_plugin=no
25322 LDFLAGS="$saved_LDFLAGS"
25324 # If plugin support had been requested but not available, fail.
25325 if test x"$enable_plugin" = x"no" ; then
25326 if test x"$default_plugin" != x"yes"; then
25327 as_fn_error "
25328 Building GCC with plugin support requires a host that supports
25329 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25336 if test x"$enable_plugin" = x"yes"; then
25338 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25342 # Configure the subdirectories
25343 # AC_CONFIG_SUBDIRS($subdirs)
25345 # Create the Makefile
25346 # and configure language subdirectories
25347 ac_config_files="$ac_config_files $all_outputs"
25350 ac_config_commands="$ac_config_commands default"
25352 cat >confcache <<\_ACEOF
25353 # This file is a shell script that caches the results of configure
25354 # tests run on this system so they can be shared between configure
25355 # scripts and configure runs, see configure's option --config-cache.
25356 # It is not useful on other systems. If it contains results you don't
25357 # want to keep, you may remove or edit it.
25359 # config.status only pays attention to the cache file if you give it
25360 # the --recheck option to rerun configure.
25362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25364 # following values.
25366 _ACEOF
25368 # The following way of writing the cache mishandles newlines in values,
25369 # but we know of no workaround that is simple, portable, and efficient.
25370 # So, we kill variables containing newlines.
25371 # Ultrix sh set writes to stderr and can't be redirected directly,
25372 # and sets the high bit in the cache file unless we assign to the vars.
25374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25375 eval ac_val=\$$ac_var
25376 case $ac_val in #(
25377 *${as_nl}*)
25378 case $ac_var in #(
25379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25381 esac
25382 case $ac_var in #(
25383 _ | IFS | as_nl) ;; #(
25384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25385 *) { eval $ac_var=; unset $ac_var;} ;;
25386 esac ;;
25387 esac
25388 done
25390 (set) 2>&1 |
25391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25392 *${as_nl}ac_space=\ *)
25393 # `set' does not quote correctly, so add quotes: double-quote
25394 # substitution turns \\\\ into \\, and sed turns \\ into \.
25395 sed -n \
25396 "s/'/'\\\\''/g;
25397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25398 ;; #(
25400 # `set' quotes correctly as required by POSIX, so do not add quotes.
25401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25403 esac |
25404 sort
25406 sed '
25407 /^ac_cv_env_/b end
25408 t clear
25409 :clear
25410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25411 t end
25412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25413 :end' >>confcache
25414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25415 if test -w "$cache_file"; then
25416 test "x$cache_file" != "x/dev/null" &&
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25418 $as_echo "$as_me: updating cache $cache_file" >&6;}
25419 cat confcache >$cache_file
25420 else
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25422 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25425 rm -f confcache
25427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25428 # Let make expand exec_prefix.
25429 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25431 DEFS=-DHAVE_CONFIG_H
25433 ac_libobjs=
25434 ac_ltlibobjs=
25435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25436 # 1. Remove the extension, and $U if already installed.
25437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25440 # will be set to the directory where LIBOBJS objects are built.
25441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25443 done
25444 LIBOBJS=$ac_libobjs
25446 LTLIBOBJS=$ac_ltlibobjs
25451 : ${CONFIG_STATUS=./config.status}
25452 ac_write_fail=0
25453 ac_clean_files_save=$ac_clean_files
25454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25456 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25457 as_write_fail=0
25458 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25459 #! $SHELL
25460 # Generated by $as_me.
25461 # Run this file to recreate the current configuration.
25462 # Compiler output produced by configure, useful for debugging
25463 # configure, is in config.log if it exists.
25465 debug=false
25466 ac_cs_recheck=false
25467 ac_cs_silent=false
25469 SHELL=\${CONFIG_SHELL-$SHELL}
25470 export SHELL
25471 _ASEOF
25472 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25473 ## -------------------- ##
25474 ## M4sh Initialization. ##
25475 ## -------------------- ##
25477 # Be more Bourne compatible
25478 DUALCASE=1; export DUALCASE # for MKS sh
25479 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25480 emulate sh
25481 NULLCMD=:
25482 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25483 # is contrary to our usage. Disable this feature.
25484 alias -g '${1+"$@"}'='"$@"'
25485 setopt NO_GLOB_SUBST
25486 else
25487 case `(set -o) 2>/dev/null` in #(
25488 *posix*) :
25489 set -o posix ;; #(
25490 *) :
25492 esac
25496 as_nl='
25498 export as_nl
25499 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25500 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25503 # Prefer a ksh shell builtin over an external printf program on Solaris,
25504 # but without wasting forks for bash or zsh.
25505 if test -z "$BASH_VERSION$ZSH_VERSION" \
25506 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25507 as_echo='print -r --'
25508 as_echo_n='print -rn --'
25509 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25510 as_echo='printf %s\n'
25511 as_echo_n='printf %s'
25512 else
25513 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25514 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25515 as_echo_n='/usr/ucb/echo -n'
25516 else
25517 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25518 as_echo_n_body='eval
25519 arg=$1;
25520 case $arg in #(
25521 *"$as_nl"*)
25522 expr "X$arg" : "X\\(.*\\)$as_nl";
25523 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25524 esac;
25525 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25527 export as_echo_n_body
25528 as_echo_n='sh -c $as_echo_n_body as_echo'
25530 export as_echo_body
25531 as_echo='sh -c $as_echo_body as_echo'
25534 # The user is always right.
25535 if test "${PATH_SEPARATOR+set}" != set; then
25536 PATH_SEPARATOR=:
25537 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25538 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25539 PATH_SEPARATOR=';'
25544 # IFS
25545 # We need space, tab and new line, in precisely that order. Quoting is
25546 # there to prevent editors from complaining about space-tab.
25547 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25548 # splitting by setting IFS to empty value.)
25549 IFS=" "" $as_nl"
25551 # Find who we are. Look in the path if we contain no directory separator.
25552 case $0 in #((
25553 *[\\/]* ) as_myself=$0 ;;
25554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25555 for as_dir in $PATH
25557 IFS=$as_save_IFS
25558 test -z "$as_dir" && as_dir=.
25559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25560 done
25561 IFS=$as_save_IFS
25564 esac
25565 # We did not find ourselves, most probably we were run as `sh COMMAND'
25566 # in which case we are not to be found in the path.
25567 if test "x$as_myself" = x; then
25568 as_myself=$0
25570 if test ! -f "$as_myself"; then
25571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25572 exit 1
25575 # Unset variables that we do not need and which cause bugs (e.g. in
25576 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25577 # suppresses any "Segmentation fault" message there. '((' could
25578 # trigger a bug in pdksh 5.2.14.
25579 for as_var in BASH_ENV ENV MAIL MAILPATH
25580 do eval test x\${$as_var+set} = xset \
25581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25582 done
25583 PS1='$ '
25584 PS2='> '
25585 PS4='+ '
25587 # NLS nuisances.
25588 LC_ALL=C
25589 export LC_ALL
25590 LANGUAGE=C
25591 export LANGUAGE
25593 # CDPATH.
25594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25597 # as_fn_error ERROR [LINENO LOG_FD]
25598 # ---------------------------------
25599 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25600 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25601 # script with status $?, using 1 if that was 0.
25602 as_fn_error ()
25604 as_status=$?; test $as_status -eq 0 && as_status=1
25605 if test "$3"; then
25606 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25609 $as_echo "$as_me: error: $1" >&2
25610 as_fn_exit $as_status
25611 } # as_fn_error
25614 # as_fn_set_status STATUS
25615 # -----------------------
25616 # Set $? to STATUS, without forking.
25617 as_fn_set_status ()
25619 return $1
25620 } # as_fn_set_status
25622 # as_fn_exit STATUS
25623 # -----------------
25624 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25625 as_fn_exit ()
25627 set +e
25628 as_fn_set_status $1
25629 exit $1
25630 } # as_fn_exit
25632 # as_fn_unset VAR
25633 # ---------------
25634 # Portably unset VAR.
25635 as_fn_unset ()
25637 { eval $1=; unset $1;}
25639 as_unset=as_fn_unset
25640 # as_fn_append VAR VALUE
25641 # ----------------------
25642 # Append the text in VALUE to the end of the definition contained in VAR. Take
25643 # advantage of any shell optimizations that allow amortized linear growth over
25644 # repeated appends, instead of the typical quadratic growth present in naive
25645 # implementations.
25646 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25647 eval 'as_fn_append ()
25649 eval $1+=\$2
25651 else
25652 as_fn_append ()
25654 eval $1=\$$1\$2
25656 fi # as_fn_append
25658 # as_fn_arith ARG...
25659 # ------------------
25660 # Perform arithmetic evaluation on the ARGs, and store the result in the
25661 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25662 # must be portable across $(()) and expr.
25663 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25664 eval 'as_fn_arith ()
25666 as_val=$(( $* ))
25668 else
25669 as_fn_arith ()
25671 as_val=`expr "$@" || test $? -eq 1`
25673 fi # as_fn_arith
25676 if expr a : '\(a\)' >/dev/null 2>&1 &&
25677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25678 as_expr=expr
25679 else
25680 as_expr=false
25683 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25684 as_basename=basename
25685 else
25686 as_basename=false
25689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25690 as_dirname=dirname
25691 else
25692 as_dirname=false
25695 as_me=`$as_basename -- "$0" ||
25696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25697 X"$0" : 'X\(//\)$' \| \
25698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25699 $as_echo X/"$0" |
25700 sed '/^.*\/\([^/][^/]*\)\/*$/{
25701 s//\1/
25704 /^X\/\(\/\/\)$/{
25705 s//\1/
25708 /^X\/\(\/\).*/{
25709 s//\1/
25712 s/.*/./; q'`
25714 # Avoid depending upon Character Ranges.
25715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25718 as_cr_digits='0123456789'
25719 as_cr_alnum=$as_cr_Letters$as_cr_digits
25721 ECHO_C= ECHO_N= ECHO_T=
25722 case `echo -n x` in #(((((
25723 -n*)
25724 case `echo 'xy\c'` in
25725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25726 xy) ECHO_C='\c';;
25727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25728 ECHO_T=' ';;
25729 esac;;
25731 ECHO_N='-n';;
25732 esac
25734 rm -f conf$$ conf$$.exe conf$$.file
25735 if test -d conf$$.dir; then
25736 rm -f conf$$.dir/conf$$.file
25737 else
25738 rm -f conf$$.dir
25739 mkdir conf$$.dir 2>/dev/null
25741 if (echo >conf$$.file) 2>/dev/null; then
25742 if ln -s conf$$.file conf$$ 2>/dev/null; then
25743 as_ln_s='ln -s'
25744 # ... but there are two gotchas:
25745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25747 # In both cases, we have to default to `cp -p'.
25748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25749 as_ln_s='cp -p'
25750 elif ln conf$$.file conf$$ 2>/dev/null; then
25751 as_ln_s=ln
25752 else
25753 as_ln_s='cp -p'
25755 else
25756 as_ln_s='cp -p'
25758 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25759 rmdir conf$$.dir 2>/dev/null
25762 # as_fn_mkdir_p
25763 # -------------
25764 # Create "$as_dir" as a directory, including parents if necessary.
25765 as_fn_mkdir_p ()
25768 case $as_dir in #(
25769 -*) as_dir=./$as_dir;;
25770 esac
25771 test -d "$as_dir" || eval $as_mkdir_p || {
25772 as_dirs=
25773 while :; do
25774 case $as_dir in #(
25775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25776 *) as_qdir=$as_dir;;
25777 esac
25778 as_dirs="'$as_qdir' $as_dirs"
25779 as_dir=`$as_dirname -- "$as_dir" ||
25780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25781 X"$as_dir" : 'X\(//\)[^/]' \| \
25782 X"$as_dir" : 'X\(//\)$' \| \
25783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25784 $as_echo X"$as_dir" |
25785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25786 s//\1/
25789 /^X\(\/\/\)[^/].*/{
25790 s//\1/
25793 /^X\(\/\/\)$/{
25794 s//\1/
25797 /^X\(\/\).*/{
25798 s//\1/
25801 s/.*/./; q'`
25802 test -d "$as_dir" && break
25803 done
25804 test -z "$as_dirs" || eval "mkdir $as_dirs"
25805 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25808 } # as_fn_mkdir_p
25809 if mkdir -p . 2>/dev/null; then
25810 as_mkdir_p='mkdir -p "$as_dir"'
25811 else
25812 test -d ./-p && rmdir ./-p
25813 as_mkdir_p=false
25816 if test -x / >/dev/null 2>&1; then
25817 as_test_x='test -x'
25818 else
25819 if ls -dL / >/dev/null 2>&1; then
25820 as_ls_L_option=L
25821 else
25822 as_ls_L_option=
25824 as_test_x='
25825 eval sh -c '\''
25826 if test -d "$1"; then
25827 test -d "$1/.";
25828 else
25829 case $1 in #(
25830 -*)set "./$1";;
25831 esac;
25832 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25833 ???[sx]*):;;*)false;;esac;fi
25834 '\'' sh
25837 as_executable_p=$as_test_x
25839 # Sed expression to map a string onto a valid CPP name.
25840 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25842 # Sed expression to map a string onto a valid variable name.
25843 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25846 exec 6>&1
25847 ## ----------------------------------- ##
25848 ## Main body of $CONFIG_STATUS script. ##
25849 ## ----------------------------------- ##
25850 _ASEOF
25851 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25854 # Save the log message, to keep $0 and so on meaningful, and to
25855 # report actual input values of CONFIG_FILES etc. instead of their
25856 # values after options handling.
25857 ac_log="
25858 This file was extended by $as_me, which was
25859 generated by GNU Autoconf 2.64. Invocation command line was
25861 CONFIG_FILES = $CONFIG_FILES
25862 CONFIG_HEADERS = $CONFIG_HEADERS
25863 CONFIG_LINKS = $CONFIG_LINKS
25864 CONFIG_COMMANDS = $CONFIG_COMMANDS
25865 $ $0 $@
25867 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25870 _ACEOF
25872 case $ac_config_files in *"
25873 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25874 esac
25876 case $ac_config_headers in *"
25877 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25878 esac
25881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25882 # Files that config.status was made for.
25883 config_files="$ac_config_files"
25884 config_headers="$ac_config_headers"
25885 config_commands="$ac_config_commands"
25887 _ACEOF
25889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25890 ac_cs_usage="\
25891 \`$as_me' instantiates files and other configuration actions
25892 from templates according to the current configuration. Unless the files
25893 and actions are specified as TAGs, all are instantiated by default.
25895 Usage: $0 [OPTION]... [TAG]...
25897 -h, --help print this help, then exit
25898 -V, --version print version number and configuration settings, then exit
25899 -q, --quiet, --silent
25900 do not print progress messages
25901 -d, --debug don't remove temporary files
25902 --recheck update $as_me by reconfiguring in the same conditions
25903 --file=FILE[:TEMPLATE]
25904 instantiate the configuration file FILE
25905 --header=FILE[:TEMPLATE]
25906 instantiate the configuration header FILE
25908 Configuration files:
25909 $config_files
25911 Configuration headers:
25912 $config_headers
25914 Configuration commands:
25915 $config_commands
25917 Report bugs to the package provider."
25919 _ACEOF
25920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25921 ac_cs_version="\\
25922 config.status
25923 configured by $0, generated by GNU Autoconf 2.64,
25924 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25926 Copyright (C) 2009 Free Software Foundation, Inc.
25927 This config.status script is free software; the Free Software Foundation
25928 gives unlimited permission to copy, distribute and modify it."
25930 ac_pwd='$ac_pwd'
25931 srcdir='$srcdir'
25932 AWK='$AWK'
25933 test -n "\$AWK" || AWK=awk
25934 _ACEOF
25936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25937 # The default lists apply if the user does not specify any file.
25938 ac_need_defaults=:
25939 while test $# != 0
25941 case $1 in
25942 --*=*)
25943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25945 ac_shift=:
25948 ac_option=$1
25949 ac_optarg=$2
25950 ac_shift=shift
25952 esac
25954 case $ac_option in
25955 # Handling of the options.
25956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25957 ac_cs_recheck=: ;;
25958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25959 $as_echo "$ac_cs_version"; exit ;;
25960 --debug | --debu | --deb | --de | --d | -d )
25961 debug=: ;;
25962 --file | --fil | --fi | --f )
25963 $ac_shift
25964 case $ac_optarg in
25965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25966 esac
25967 as_fn_append CONFIG_FILES " '$ac_optarg'"
25968 ac_need_defaults=false;;
25969 --header | --heade | --head | --hea )
25970 $ac_shift
25971 case $ac_optarg in
25972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25973 esac
25974 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25975 ac_need_defaults=false;;
25976 --he | --h)
25977 # Conflict between --help and --header
25978 as_fn_error "ambiguous option: \`$1'
25979 Try \`$0 --help' for more information.";;
25980 --help | --hel | -h )
25981 $as_echo "$ac_cs_usage"; exit ;;
25982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25984 ac_cs_silent=: ;;
25986 # This is an error.
25987 -*) as_fn_error "unrecognized option: \`$1'
25988 Try \`$0 --help' for more information." ;;
25990 *) as_fn_append ac_config_targets " $1"
25991 ac_need_defaults=false ;;
25993 esac
25994 shift
25995 done
25997 ac_configure_extra_args=
25999 if $ac_cs_silent; then
26000 exec 6>/dev/null
26001 ac_configure_extra_args="$ac_configure_extra_args --silent"
26004 _ACEOF
26005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26006 if \$ac_cs_recheck; then
26007 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26008 shift
26009 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26010 CONFIG_SHELL='$SHELL'
26011 export CONFIG_SHELL
26012 exec "\$@"
26015 _ACEOF
26016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26017 exec 5>>config.log
26019 echo
26020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26021 ## Running $as_me. ##
26022 _ASBOX
26023 $as_echo "$ac_log"
26024 } >&5
26026 _ACEOF
26027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26029 # INIT-COMMANDS
26031 subdirs='$subdirs'
26033 _ACEOF
26035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26037 # Handling of arguments.
26038 for ac_config_target in $ac_config_targets
26040 case $ac_config_target in
26041 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26042 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26043 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26044 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26045 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26046 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26048 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26049 esac
26050 done
26053 # If the user did not use the arguments to specify the items to instantiate,
26054 # then the envvar interface is used. Set only those that are not.
26055 # We use the long form for the default assignment because of an extremely
26056 # bizarre bug on SunOS 4.1.3.
26057 if $ac_need_defaults; then
26058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26063 # Have a temporary directory for convenience. Make it in the build tree
26064 # simply because there is no reason against having it here, and in addition,
26065 # creating and moving files from /tmp can sometimes cause problems.
26066 # Hook for its removal unless debugging.
26067 # Note that there is a small window in which the directory will not be cleaned:
26068 # after its creation but before its name has been assigned to `$tmp'.
26069 $debug ||
26071 tmp=
26072 trap 'exit_status=$?
26073 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26075 trap 'as_fn_exit 1' 1 2 13 15
26077 # Create a (secure) tmp directory for tmp files.
26080 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26081 test -n "$tmp" && test -d "$tmp"
26082 } ||
26084 tmp=./conf$$-$RANDOM
26085 (umask 077 && mkdir "$tmp")
26086 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26088 # Set up the scripts for CONFIG_FILES section.
26089 # No need to generate them if there are no CONFIG_FILES.
26090 # This happens for instance with `./config.status config.h'.
26091 if test -n "$CONFIG_FILES"; then
26093 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26094 ac_cs_awk_getline=:
26095 ac_cs_awk_pipe_init=
26096 ac_cs_awk_read_file='
26097 while ((getline aline < (F[key])) > 0)
26098 print(aline)
26099 close(F[key])'
26100 ac_cs_awk_pipe_fini=
26101 else
26102 ac_cs_awk_getline=false
26103 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26104 ac_cs_awk_read_file='
26105 print "|#_!!_#|"
26106 print "cat " F[key] " &&"
26107 '$ac_cs_awk_pipe_init
26108 # The final `:' finishes the AND list.
26109 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26111 ac_cr=`echo X | tr X '\015'`
26112 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26113 # But we know of no other shell where ac_cr would be empty at this
26114 # point, so we can use a bashism as a fallback.
26115 if test "x$ac_cr" = x; then
26116 eval ac_cr=\$\'\\r\'
26118 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26119 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26120 ac_cs_awk_cr='\r'
26121 else
26122 ac_cs_awk_cr=$ac_cr
26125 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26126 _ACEOF
26128 # Create commands to substitute file output variables.
26130 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26131 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26132 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26133 echo "_ACAWK" &&
26134 echo "_ACEOF"
26135 } >conf$$files.sh &&
26136 . ./conf$$files.sh ||
26137 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26138 rm -f conf$$files.sh
26141 echo "cat >conf$$subs.awk <<_ACEOF" &&
26142 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26143 echo "_ACEOF"
26144 } >conf$$subs.sh ||
26145 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26146 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26147 ac_delim='%!_!# '
26148 for ac_last_try in false false false false false :; do
26149 . ./conf$$subs.sh ||
26150 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26152 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26153 if test $ac_delim_n = $ac_delim_num; then
26154 break
26155 elif $ac_last_try; then
26156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26157 else
26158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26160 done
26161 rm -f conf$$subs.sh
26163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26164 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26165 _ACEOF
26166 sed -n '
26168 s/^/S["/; s/!.*/"]=/
26171 s/^[^!]*!//
26172 :repl
26173 t repl
26174 s/'"$ac_delim"'$//
26175 t delim
26178 s/\(.\{148\}\).*/\1/
26179 t more1
26180 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26183 b repl
26184 :more1
26185 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26188 s/.\{148\}//
26189 t nl
26190 :delim
26192 s/\(.\{148\}\).*/\1/
26193 t more2
26194 s/["\\]/\\&/g; s/^/"/; s/$/"/
26197 :more2
26198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26201 s/.\{148\}//
26202 t delim
26203 ' <conf$$subs.awk | sed '
26204 /^[^""]/{
26206 s/\n//
26208 ' >>$CONFIG_STATUS || ac_write_fail=1
26209 rm -f conf$$subs.awk
26210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26211 _ACAWK
26212 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26213 for (key in S) S_is_set[key] = 1
26214 FS = "\a"
26215 \$ac_cs_awk_pipe_init
26218 line = $ 0
26219 nfields = split(line, field, "@")
26220 substed = 0
26221 len = length(field[1])
26222 for (i = 2; i < nfields; i++) {
26223 key = field[i]
26224 keylen = length(key)
26225 if (S_is_set[key]) {
26226 value = S[key]
26227 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26228 len += length(value) + length(field[++i])
26229 substed = 1
26230 } else
26231 len += 1 + keylen
26233 if (nfields == 3 && !substed) {
26234 key = field[2]
26235 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26236 \$ac_cs_awk_read_file
26237 next
26240 print line
26242 \$ac_cs_awk_pipe_fini
26243 _ACAWK
26244 _ACEOF
26245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26246 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26247 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26248 else
26250 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26251 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26252 _ACEOF
26254 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26255 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26256 # trailing colons and then remove the whole line if VPATH becomes empty
26257 # (actually we leave an empty line to preserve line numbers).
26258 if test "x$srcdir" = x.; then
26259 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26260 s/:*\$(srcdir):*/:/
26261 s/:*\${srcdir}:*/:/
26262 s/:*@srcdir@:*/:/
26263 s/^\([^=]*=[ ]*\):*/\1/
26264 s/:*$//
26265 s/^[^=]*=[ ]*$//
26269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26270 fi # test -n "$CONFIG_FILES"
26272 # Set up the scripts for CONFIG_HEADERS section.
26273 # No need to generate them if there are no CONFIG_HEADERS.
26274 # This happens for instance with `./config.status Makefile'.
26275 if test -n "$CONFIG_HEADERS"; then
26276 cat >"$tmp/defines.awk" <<\_ACAWK ||
26277 BEGIN {
26278 _ACEOF
26280 # Transform confdefs.h into an awk script `defines.awk', embedded as
26281 # here-document in config.status, that substitutes the proper values into
26282 # config.h.in to produce config.h.
26284 # Create a delimiter string that does not exist in confdefs.h, to ease
26285 # handling of long lines.
26286 ac_delim='%!_!# '
26287 for ac_last_try in false false :; do
26288 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26289 if test -z "$ac_t"; then
26290 break
26291 elif $ac_last_try; then
26292 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26293 else
26294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26296 done
26298 # For the awk script, D is an array of macro values keyed by name,
26299 # likewise P contains macro parameters if any. Preserve backslash
26300 # newline sequences.
26302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26303 sed -n '
26304 s/.\{148\}/&'"$ac_delim"'/g
26305 t rset
26306 :rset
26307 s/^[ ]*#[ ]*define[ ][ ]*/ /
26308 t def
26310 :def
26311 s/\\$//
26312 t bsnl
26313 s/["\\]/\\&/g
26314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26315 D["\1"]=" \3"/p
26316 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26318 :bsnl
26319 s/["\\]/\\&/g
26320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26321 D["\1"]=" \3\\\\\\n"\\/p
26322 t cont
26323 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26324 t cont
26326 :cont
26328 s/.\{148\}/&'"$ac_delim"'/g
26329 t clear
26330 :clear
26331 s/\\$//
26332 t bsnlc
26333 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26335 :bsnlc
26336 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26337 b cont
26338 ' <confdefs.h | sed '
26339 s/'"$ac_delim"'/"\\\
26340 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26343 for (key in D) D_is_set[key] = 1
26344 FS = "\a"
26346 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26347 line = \$ 0
26348 split(line, arg, " ")
26349 if (arg[1] == "#") {
26350 defundef = arg[2]
26351 mac1 = arg[3]
26352 } else {
26353 defundef = substr(arg[1], 2)
26354 mac1 = arg[2]
26356 split(mac1, mac2, "(") #)
26357 macro = mac2[1]
26358 prefix = substr(line, 1, index(line, defundef) - 1)
26359 if (D_is_set[macro]) {
26360 # Preserve the white space surrounding the "#".
26361 print prefix "define", macro P[macro] D[macro]
26362 next
26363 } else {
26364 # Replace #undef with comments. This is necessary, for example,
26365 # in the case of _POSIX_SOURCE, which is predefined and required
26366 # on some systems where configure will not decide to define it.
26367 if (defundef == "undef") {
26368 print "/*", prefix defundef, macro, "*/"
26369 next
26373 { print }
26374 _ACAWK
26375 _ACEOF
26376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26377 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26378 fi # test -n "$CONFIG_HEADERS"
26381 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26382 shift
26383 for ac_tag
26385 case $ac_tag in
26386 :[FHLC]) ac_mode=$ac_tag; continue;;
26387 esac
26388 case $ac_mode$ac_tag in
26389 :[FHL]*:*);;
26390 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26391 :[FH]-) ac_tag=-:-;;
26392 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26393 esac
26394 ac_save_IFS=$IFS
26395 IFS=:
26396 set x $ac_tag
26397 IFS=$ac_save_IFS
26398 shift
26399 ac_file=$1
26400 shift
26402 case $ac_mode in
26403 :L) ac_source=$1;;
26404 :[FH])
26405 ac_file_inputs=
26406 for ac_f
26408 case $ac_f in
26409 -) ac_f="$tmp/stdin";;
26410 *) # Look for the file first in the build tree, then in the source tree
26411 # (if the path is not absolute). The absolute path cannot be DOS-style,
26412 # because $ac_f cannot contain `:'.
26413 test -f "$ac_f" ||
26414 case $ac_f in
26415 [\\/$]*) false;;
26416 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26417 esac ||
26418 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26419 esac
26420 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26421 as_fn_append ac_file_inputs " '$ac_f'"
26422 done
26424 # Let's still pretend it is `configure' which instantiates (i.e., don't
26425 # use $as_me), people would be surprised to read:
26426 # /* config.h. Generated by config.status. */
26427 configure_input='Generated from '`
26428 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26429 `' by configure.'
26430 if test x"$ac_file" != x-; then
26431 configure_input="$ac_file. $configure_input"
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26433 $as_echo "$as_me: creating $ac_file" >&6;}
26435 # Neutralize special characters interpreted by sed in replacement strings.
26436 case $configure_input in #(
26437 *\&* | *\|* | *\\* )
26438 ac_sed_conf_input=`$as_echo "$configure_input" |
26439 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26440 *) ac_sed_conf_input=$configure_input;;
26441 esac
26443 case $ac_tag in
26444 *:-:* | *:-) cat >"$tmp/stdin" \
26445 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26446 esac
26448 esac
26450 ac_dir=`$as_dirname -- "$ac_file" ||
26451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26452 X"$ac_file" : 'X\(//\)[^/]' \| \
26453 X"$ac_file" : 'X\(//\)$' \| \
26454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26455 $as_echo X"$ac_file" |
26456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26457 s//\1/
26460 /^X\(\/\/\)[^/].*/{
26461 s//\1/
26464 /^X\(\/\/\)$/{
26465 s//\1/
26468 /^X\(\/\).*/{
26469 s//\1/
26472 s/.*/./; q'`
26473 as_dir="$ac_dir"; as_fn_mkdir_p
26474 ac_builddir=.
26476 case "$ac_dir" in
26477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26480 # A ".." for each directory in $ac_dir_suffix.
26481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26482 case $ac_top_builddir_sub in
26483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26485 esac ;;
26486 esac
26487 ac_abs_top_builddir=$ac_pwd
26488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26489 # for backward compatibility:
26490 ac_top_builddir=$ac_top_build_prefix
26492 case $srcdir in
26493 .) # We are building in place.
26494 ac_srcdir=.
26495 ac_top_srcdir=$ac_top_builddir_sub
26496 ac_abs_top_srcdir=$ac_pwd ;;
26497 [\\/]* | ?:[\\/]* ) # Absolute name.
26498 ac_srcdir=$srcdir$ac_dir_suffix;
26499 ac_top_srcdir=$srcdir
26500 ac_abs_top_srcdir=$srcdir ;;
26501 *) # Relative name.
26502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26503 ac_top_srcdir=$ac_top_build_prefix$srcdir
26504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26505 esac
26506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26509 case $ac_mode in
26512 # CONFIG_FILE
26515 _ACEOF
26517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26518 # If the template does not know about datarootdir, expand it.
26519 # FIXME: This hack should be removed a few years after 2.60.
26520 ac_datarootdir_hack=; ac_datarootdir_seen=
26521 ac_sed_dataroot='
26522 /datarootdir/ {
26526 /@datadir@/p
26527 /@docdir@/p
26528 /@infodir@/p
26529 /@localedir@/p
26530 /@mandir@/p'
26531 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26532 *datarootdir*) ac_datarootdir_seen=yes;;
26533 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26535 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26536 _ACEOF
26537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26538 ac_datarootdir_hack='
26539 s&@datadir@&$datadir&g
26540 s&@docdir@&$docdir&g
26541 s&@infodir@&$infodir&g
26542 s&@localedir@&$localedir&g
26543 s&@mandir@&$mandir&g
26544 s&\\\${datarootdir}&$datarootdir&g' ;;
26545 esac
26546 _ACEOF
26548 # Neutralize VPATH when `$srcdir' = `.'.
26549 # Shell code in configure.ac might set extrasub.
26550 # FIXME: do we really want to maintain this feature?
26551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26552 ac_sed_extra="$ac_vpsub
26553 $extrasub
26554 _ACEOF
26555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26558 s|@configure_input@|$ac_sed_conf_input|;t t
26559 s&@top_builddir@&$ac_top_builddir_sub&;t t
26560 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26561 s&@srcdir@&$ac_srcdir&;t t
26562 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26563 s&@top_srcdir@&$ac_top_srcdir&;t t
26564 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26565 s&@builddir@&$ac_builddir&;t t
26566 s&@abs_builddir@&$ac_abs_builddir&;t t
26567 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26568 $ac_datarootdir_hack
26570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26571 if $ac_cs_awk_getline; then
26572 $AWK -f "$tmp/subs.awk"
26573 else
26574 $AWK -f "$tmp/subs.awk" | $SHELL
26575 fi >$tmp/out \
26576 || as_fn_error "could not create $ac_file" "$LINENO" 5
26578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26582 which seems to be undefined. Please make sure it is defined." >&5
26583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26584 which seems to be undefined. Please make sure it is defined." >&2;}
26586 rm -f "$tmp/stdin"
26587 case $ac_file in
26588 -) cat "$tmp/out" && rm -f "$tmp/out";;
26589 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26590 esac \
26591 || as_fn_error "could not create $ac_file" "$LINENO" 5
26595 # CONFIG_HEADER
26597 if test x"$ac_file" != x-; then
26599 $as_echo "/* $configure_input */" \
26600 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26601 } >"$tmp/config.h" \
26602 || as_fn_error "could not create $ac_file" "$LINENO" 5
26603 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26605 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26606 else
26607 rm -f "$ac_file"
26608 mv "$tmp/config.h" "$ac_file" \
26609 || as_fn_error "could not create $ac_file" "$LINENO" 5
26611 else
26612 $as_echo "/* $configure_input */" \
26613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26614 || as_fn_error "could not create -" "$LINENO" 5
26618 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26619 $as_echo "$as_me: executing $ac_file commands" >&6;}
26621 esac
26624 case $ac_file$ac_mode in
26625 "as":F) chmod +x as ;;
26626 "collect-ld":F) chmod +x collect-ld ;;
26627 "nm":F) chmod +x nm ;;
26628 "default":C)
26629 case ${CONFIG_HEADERS} in
26630 *auto-host.h:config.in*)
26631 echo > cstamp-h ;;
26632 esac
26633 # Make sure all the subdirs exist.
26634 for d in $subdirs doc build
26636 test -d $d || mkdir $d
26637 done
26640 esac
26641 done # for ac_tag
26644 as_fn_exit 0
26645 _ACEOF
26646 ac_clean_files=$ac_clean_files_save
26648 test $ac_write_fail = 0 ||
26649 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26652 # configure is writing to config.log, and then calls config.status.
26653 # config.status does its own redirection, appending to config.log.
26654 # Unfortunately, on DOS this fails, as config.log is still kept open
26655 # by configure, so config.status won't be able to write to it; its
26656 # output is simply discarded. So we exec the FD to /dev/null,
26657 # effectively closing config.log, so it can be properly (re)opened and
26658 # appended to by config.status. When coming back to configure, we
26659 # need to make the FD available again.
26660 if test "$no_create" != yes; then
26661 ac_cs_success=:
26662 ac_config_status_args=
26663 test "$silent" = yes &&
26664 ac_config_status_args="$ac_config_status_args --quiet"
26665 exec 5>/dev/null
26666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26667 exec 5>>config.log
26668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26669 # would make configure fail if this is the last instruction.
26670 $ac_cs_success || as_fn_exit $?
26672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}