2011-10-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / configure
blobcb55ddaa2a48373345b85fe534e34e81141f2dae
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
705 FGREP
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 EXTRA_GCC_LIBS
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 CXXCPP
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
757 LN_S
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 SYSROOT_CFLAGS_FOR_TARGET
768 enable_shared
769 enable_fixed_point
770 enable_decimal_float
771 enable_multilib
772 ENABLE_BUILD_WITH_CXX
773 coverage_flags
774 valgrind_command
775 valgrind_path_defines
776 valgrind_path
777 TREEBROWSER
778 nocommon_flag
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 enable_build_with_cxx
879 with_stabs
880 enable_multilib
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_build_sysroot
890 with_sysroot
891 with_specs
892 with_pkgversion
893 with_bugurl
894 enable_languages
895 with_multilib_list
896 enable_rpath
897 with_libiconv_prefix
898 enable_initfini_array
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_comdat
912 enable_gnu_unique_object
913 enable_linker_build_id
914 with_long_double_128
915 with_gc
916 with_system_zlib
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
919 with_slibdir
920 enable_plugin
921 enable_libquadmath_support
922 with_linker_hash_style
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
933 CXXFLAGS
936 CXXCPP
937 GMPLIBS
938 GMPINC
939 PPLLIBS
940 PPLINC
941 CLOOGLIBS
942 CLOOGINC'
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
993 ac_prev=
994 ac_dashdash=
995 for ac_option
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1013 ac_dashdash=yes ;;
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1277 -with-* | --with-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337 esac
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 esac
1350 done
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error "missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 esac
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1373 case $ac_val in
1374 */ )
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1377 esac
1378 # Be sure to have absolute directory names.
1379 case $ac_val in
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 esac
1383 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1539 cat <<\_ACEOF
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 --target=TARGET configure for building compilers for TARGET [HOST]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-generated-files-in-srcdir
1562 put copies of generated files in source dir intended
1563 for creating source tarballs for users without
1564 texinfo bison or flex
1565 --disable-largefile omit support for large files
1566 --enable-werror-always enable -Werror despite compiler version
1567 --enable-checking[=LIST]
1568 enable expensive run-time checks. With LIST, enable
1569 only specific categories of checks. Categories are:
1570 yes,no,all,none,release. Flags are:
1571 assert,df,fold,gc,gcac,gimple,misc,
1572 rtlflag,rtl,runtime,tree,valgrind,types
1573 --enable-coverage[=LEVEL]
1574 enable compiler's code coverage collection. Use to
1575 measure compiler performance and locate unused parts
1576 of the compiler. With LEVEL, specify optimization.
1577 Values are opt, noopt, default is noopt
1578 --enable-gather-detailed-mem-stats
1579 enable detailed memory allocation stats gathering
1580 --enable-build-with-cxx build with C++ compiler instead of C compiler
1581 --enable-multilib enable library support for multiple ABIs
1582 --enable-__cxa_atexit enable __cxa_atexit for C++
1583 --enable-decimal-float={no,yes,bid,dpd}
1584 enable decimal float extension to C. Selecting 'bid'
1585 or 'dpd' choses which decimal floating point format
1586 to use
1587 --enable-fixed-point enable fixed-point arithmetic extension to C
1588 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 package
1590 --enable-tls enable or disable generation of tls code overriding
1591 the assembler check for tls support
1592 --enable-objc-gc enable the use of Boehm's garbage collector with the
1593 GNU Objective-C runtime
1594 --disable-shared don't provide a shared libgcc
1595 --enable-languages=LIST specify which front-ends to build
1596 --disable-rpath do not hardcode runtime library paths
1597 --enable-initfini-array use .init_array/.fini_array sections
1598 --enable-sjlj-exceptions
1599 arrange to use setjmp/longjmp exception handling
1600 --enable-secureplt enable -msecure-plt by default for PowerPC
1601 --enable-leading-mingw64-underscores
1602 enable leading underscores on 64 bit mingw targets
1603 --enable-cld enable -mcld by default for 32bit x86
1604 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1606 --disable-win32-registry
1607 disable lookup of installation paths in the Registry
1608 on Windows hosts
1609 --enable-win32-registry enable registry lookup (default)
1610 --enable-win32-registry=KEY
1611 use KEY instead of GCC version as the last portion
1612 of the registry key
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-gnu-indirect-function
1619 enable the use of the @gnu_indirect_function to
1620 glibc systems
1621 --enable-comdat enable COMDAT group support
1622 --enable-gnu-unique-object
1623 enable the use of the @gnu_unique_object ELF
1624 extension on glibc systems
1625 --enable-linker-build-id
1626 compiler will always pass --build-id to linker
1627 --enable-maintainer-mode
1628 enable make rules and dependencies not useful (and
1629 sometimes confusing) to the casual installer
1630 --enable-version-specific-runtime-libs
1631 specify that runtime libraries should be installed
1632 in a compiler-specific directory
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-build-sysroot=sysroot
1655 use sysroot as the system root during the build
1656 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1657 --with-specs=SPECS add SPECS to driver command-line processing
1658 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-multilib-list select multilibs (SH and x86-64 only)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1663 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1664 --with-pic try to use only PIC/non-PIC objects [default=use
1665 both]
1666 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1667 --with-plugin-ld=[ARG] specify the plugin linker
1668 --with-long-double-128 use 128-bit long double by default
1669 --with-gc={page,zone} choose the garbage collection mechanism to use with
1670 the compiler
1671 --with-system-zlib use installed libz
1672 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1673 --with-linker-hash-style={sysv,gnu,both}
1674 specify the linker hash style
1676 Some influential environment variables:
1677 CC C compiler command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1680 nonstandard directory <lib dir>
1681 LIBS libraries to pass to the linker, e.g. -l<library>
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683 you have headers in a nonstandard directory <include dir>
1684 CXX C++ compiler command
1685 CXXFLAGS C++ compiler flags
1686 CPP C preprocessor
1687 CXXCPP C++ preprocessor
1688 GMPLIBS How to link GMP
1689 GMPINC How to find GMP include files
1690 PPLLIBS How to link PPL
1691 PPLINC How to find PPL include files
1692 CLOOGLIBS How to link CLOOG
1693 CLOOGINC How to find CLOOG include files
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1698 Report bugs to the package provider.
1699 _ACEOF
1700 ac_status=$?
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 continue
1709 ac_builddir=.
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1727 case $srcdir in
1728 .) # We are building in place.
1729 ac_srcdir=.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1736 *) # Relative name.
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1751 else
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 fi || ac_status=$?
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1755 done
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760 cat <<\_ACEOF
1761 configure
1762 generated by GNU Autoconf 2.64
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768 exit
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=1
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_compile
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=1
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1849 } # ac_fn_cxx_try_compile
1851 # ac_fn_c_try_cpp LINENO
1852 # ----------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_cpp ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } >/dev/null && {
1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_c_try_cpp
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1892 # accordingly.
1893 ac_fn_c_check_header_mongrel ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 else
1906 # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_header_compiler=yes
1916 else
1917 ac_header_compiler=no
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_cpp "$LINENO"; then :
1931 ac_header_preproc=yes
1932 else
1933 ac_header_preproc=no
1935 rm -f conftest.err conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1939 # So? What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 yes:no: )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 no:yes:* )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 esac
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=\$ac_header_compiler"
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_c_check_header_mongrel
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1979 ac_fn_c_try_run ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>&5
1990 ac_status=$?
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993 { { case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_try") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; }; }; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: program exited with status $ac_status" >&5
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=$ac_status
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 return $ac_retval
2015 } # ac_fn_c_try_run
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$3=yes"
2036 else
2037 eval "$3=no"
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_header_compile
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 # computed
2053 ac_fn_c_compute_int ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if test "$cross_compiling" = yes; then
2057 # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main ()
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2065 test_array [0] = 0
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=$ac_mid; break
2089 else
2090 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2091 if test $ac_lo -le $ac_mid; then
2092 ac_lo= ac_hi=
2093 break
2095 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) < 0)];
2107 test_array [0] = 0
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_hi=-1 ac_mid=-1
2115 while :; do
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2123 test_array [0] = 0
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=$ac_mid; break
2131 else
2132 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2133 if test $ac_mid -le $ac_hi; then
2134 ac_lo= ac_hi=
2135 break
2137 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 done
2141 else
2142 ac_lo= ac_hi=
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 # Binary search between lo and hi bounds.
2148 while test "x$ac_lo" != "x$ac_hi"; do
2149 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 test_array [0] = 0
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid
2165 else
2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 case $ac_lo in #((
2171 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 '') ac_retval=1 ;;
2173 esac
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2180 #include <stdio.h>
2181 #include <stdlib.h>
2183 main ()
2186 FILE *f = fopen ("conftest.val", "w");
2187 if (! f)
2188 return 1;
2189 if (($2) < 0)
2191 long int i = longval ();
2192 if (i != ($2))
2193 return 1;
2194 fprintf (f, "%ld", i);
2196 else
2198 unsigned long int i = ulongval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%lu", i);
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2208 return 0;
2210 _ACEOF
2211 if ac_fn_c_try_run "$LINENO"; then :
2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 else
2214 ac_retval=1
2216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 rm -f conftest.val
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222 return $ac_retval
2224 } # ac_fn_c_compute_int
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 eval "$3=no"
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2243 main ()
2245 if (sizeof ($2))
2246 return 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 if (sizeof (($2)))
2259 return 0;
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2266 else
2267 eval "$3=yes"
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 eval ac_res=\$$3
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278 } # ac_fn_c_check_type
2280 # ac_fn_c_find_intX_t LINENO BITS VAR
2281 # -----------------------------------
2282 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 # accordingly.
2284 ac_fn_c_find_intX_t ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2288 $as_echo_n "checking for int$2_t... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=no"
2293 for ac_type in int$2_t 'int' 'long int' \
2294 'long long int' 'short int' 'signed char'; do
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2299 main ()
2301 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2302 test_array [0] = 0
2305 return 0;
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $ac_includes_default
2313 main ()
2315 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2316 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2317 test_array [0] = 0
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2325 else
2326 case $ac_type in #(
2327 int$2_t) :
2328 eval "$3=yes" ;; #(
2329 *) :
2330 eval "$3=\$ac_type" ;;
2331 esac
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 eval as_val=\$$3
2337 if test "x$as_val" = x""no; then :
2339 else
2340 break
2342 done
2344 eval ac_res=\$$3
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 } # ac_fn_c_find_intX_t
2351 # ac_fn_c_try_link LINENO
2352 # -----------------------
2353 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 ac_fn_c_try_link ()
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { { ac_try="$ac_link"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2366 ac_status=$?
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
2378 $as_test_x conftest$ac_exeext
2379 }; then :
2380 ac_retval=0
2381 else
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 ac_retval=1
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 return $ac_retval
2395 } # ac_fn_c_try_link
2397 # ac_fn_c_find_uintX_t LINENO BITS VAR
2398 # ------------------------------------
2399 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 # accordingly.
2401 ac_fn_c_find_uintX_t ()
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2405 $as_echo_n "checking for uint$2_t... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 eval "$3=no"
2410 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2411 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $ac_includes_default
2416 main ()
2418 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2419 test_array [0] = 0
2422 return 0;
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 case $ac_type in #(
2427 uint$2_t) :
2428 eval "$3=yes" ;; #(
2429 *) :
2430 eval "$3=\$ac_type" ;;
2431 esac
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2437 else
2438 break
2440 done
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_uintX_t
2449 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2450 # ----------------------------------------------
2451 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2452 ac_fn_c_check_header_preproc ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 #include <$2>
2463 _ACEOF
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2465 eval "$3=yes"
2466 else
2467 eval "$3=no"
2469 rm -f conftest.err conftest.$ac_ext
2471 eval ac_res=\$$3
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2476 } # ac_fn_c_check_header_preproc
2478 # ac_fn_cxx_try_cpp LINENO
2479 # ------------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_cpp ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 ac_status=$?
2493 if test -s conftest.err; then
2494 grep -v '^ *+' conftest.err >conftest.er1
2495 cat conftest.er1 >&5
2496 mv -f conftest.er1 conftest.err
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } >/dev/null && {
2500 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2501 test ! -s conftest.err
2502 }; then :
2503 ac_retval=0
2504 else
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 ac_retval=1
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 return $ac_retval
2513 } # ac_fn_cxx_try_cpp
2515 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2516 # ------------------------------------------------
2517 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2518 ac_fn_cxx_check_header_preproc ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528 #include <$2>
2529 _ACEOF
2530 if ac_fn_cxx_try_cpp "$LINENO"; then :
2531 eval "$3=yes"
2532 else
2533 eval "$3=no"
2535 rm -f conftest.err conftest.$ac_ext
2537 eval ac_res=\$$3
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542 } # ac_fn_cxx_check_header_preproc
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2559 #define $2 innocuous_$2
2561 /* System header to define __stub macros and hopefully few prototypes,
2562 which can conflict with char $2 (); below.
2563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564 <limits.h> exists even on freestanding compilers. */
2566 #ifdef __STDC__
2567 # include <limits.h>
2568 #else
2569 # include <assert.h>
2570 #endif
2572 #undef $2
2574 /* Override any GCC internal prototype to avoid an error.
2575 Use char because int might match the return type of a GCC
2576 builtin and then its argument prototype would still apply. */
2577 #ifdef __cplusplus
2578 extern "C"
2579 #endif
2580 char $2 ();
2581 /* The GNU C library defines this for functions which it implements
2582 to always fail with ENOSYS. Some functions are actually named
2583 something starting with __ and the normal name is an alias. */
2584 #if defined __stub_$2 || defined __stub___$2
2585 choke me
2586 #endif
2589 main ()
2591 return $2 ();
2593 return 0;
2595 _ACEOF
2596 if ac_fn_c_try_link "$LINENO"; then :
2597 eval "$3=yes"
2598 else
2599 eval "$3=no"
2601 rm -f core conftest.err conftest.$ac_objext \
2602 conftest$ac_exeext conftest.$ac_ext
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 } # ac_fn_c_check_func
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 $as_test_x conftest$ac_exeext
2639 }; then :
2640 ac_retval=0
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 ac_retval=1
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 return $ac_retval
2655 } # ac_fn_cxx_try_link
2656 cat >config.log <<_ACEOF
2657 This file contains any messages produced by compilers while
2658 running configure, to aid debugging if configure makes a mistake.
2660 It was created by $as_me, which was
2661 generated by GNU Autoconf 2.64. Invocation command line was
2663 $ $0 $@
2665 _ACEOF
2666 exec 5>>config.log
2668 cat <<_ASUNAME
2669 ## --------- ##
2670 ## Platform. ##
2671 ## --------- ##
2673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2690 _ASUNAME
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 $as_echo "PATH: $as_dir"
2698 done
2699 IFS=$as_save_IFS
2701 } >&5
2703 cat >&5 <<_ACEOF
2706 ## ----------- ##
2707 ## Core tests. ##
2708 ## ----------- ##
2710 _ACEOF
2713 # Keep a trace of the command line.
2714 # Strip out --no-create and --no-recursion so they do not pile up.
2715 # Strip out --silent because we don't want to record it for future runs.
2716 # Also quote any args containing shell meta-characters.
2717 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_configure_args=
2719 ac_configure_args0=
2720 ac_configure_args1=
2721 ac_must_keep_next=false
2722 for ac_pass in 1 2
2724 for ac_arg
2726 case $ac_arg in
2727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2729 | -silent | --silent | --silen | --sile | --sil)
2730 continue ;;
2731 *\'*)
2732 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2733 esac
2734 case $ac_pass in
2735 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2737 as_fn_append ac_configure_args1 " '$ac_arg'"
2738 if test $ac_must_keep_next = true; then
2739 ac_must_keep_next=false # Got value, back to normal.
2740 else
2741 case $ac_arg in
2742 *=* | --config-cache | -C | -disable-* | --disable-* \
2743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2745 | -with-* | --with-* | -without-* | --without-* | --x)
2746 case "$ac_configure_args0 " in
2747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 esac
2750 -* ) ac_must_keep_next=true ;;
2751 esac
2753 as_fn_append ac_configure_args " '$ac_arg'"
2755 esac
2756 done
2757 done
2758 { ac_configure_args0=; unset ac_configure_args0;}
2759 { ac_configure_args1=; unset ac_configure_args1;}
2761 # When interrupted or exit'd, cleanup temporary files, and complete
2762 # config.log. We remove comments because anyway the quotes in there
2763 # would cause problems or look ugly.
2764 # WARNING: Use '\'' to represent an apostrophe within the trap.
2765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2766 trap 'exit_status=$?
2767 # Save into config.log some information that might help in debugging.
2769 echo
2771 cat <<\_ASBOX
2772 ## ---------------- ##
2773 ## Cache variables. ##
2774 ## ---------------- ##
2775 _ASBOX
2776 echo
2777 # The following way of writing the cache mishandles newlines in values,
2779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2780 eval ac_val=\$$ac_var
2781 case $ac_val in #(
2782 *${as_nl}*)
2783 case $ac_var in #(
2784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 esac
2787 case $ac_var in #(
2788 _ | IFS | as_nl) ;; #(
2789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2790 *) { eval $ac_var=; unset $ac_var;} ;;
2791 esac ;;
2792 esac
2793 done
2794 (set) 2>&1 |
2795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2796 *${as_nl}ac_space=\ *)
2797 sed -n \
2798 "s/'\''/'\''\\\\'\'''\''/g;
2799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 ;; #(
2802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2804 esac |
2805 sort
2807 echo
2809 cat <<\_ASBOX
2810 ## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##
2813 _ASBOX
2814 echo
2815 for ac_var in $ac_subst_vars
2817 eval ac_val=\$$ac_var
2818 case $ac_val in
2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 esac
2821 $as_echo "$ac_var='\''$ac_val'\''"
2822 done | sort
2823 echo
2825 if test -n "$ac_subst_files"; then
2826 cat <<\_ASBOX
2827 ## ------------------- ##
2828 ## File substitutions. ##
2829 ## ------------------- ##
2830 _ASBOX
2831 echo
2832 for ac_var in $ac_subst_files
2834 eval ac_val=\$$ac_var
2835 case $ac_val in
2836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 esac
2838 $as_echo "$ac_var='\''$ac_val'\''"
2839 done | sort
2840 echo
2843 if test -s confdefs.h; then
2844 cat <<\_ASBOX
2845 ## ----------- ##
2846 ## confdefs.h. ##
2847 ## ----------- ##
2848 _ASBOX
2849 echo
2850 cat confdefs.h
2851 echo
2853 test "$ac_signal" != 0 &&
2854 $as_echo "$as_me: caught signal $ac_signal"
2855 $as_echo "$as_me: exit $exit_status"
2856 } >&5
2857 rm -f core *.core core.conftest.* &&
2858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 exit $exit_status
2861 for ac_signal in 1 2 13 15; do
2862 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 done
2864 ac_signal=0
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2869 $as_echo "/* confdefs.h */" > confdefs.h
2871 # Predefined preprocessor variables.
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 _ACEOF
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 _ACEOF
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 _ACEOF
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2895 _ACEOF
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2900 ac_site_file1=NONE
2901 ac_site_file2=NONE
2902 if test -n "$CONFIG_SITE"; then
2903 ac_site_file1=$CONFIG_SITE
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2907 else
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 test "x$ac_site_file" = xNONE && continue
2914 if test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2918 . "$ac_site_file"
2920 done
2922 if test -r "$cache_file"; then
2923 # Some versions of bash will fail to source /dev/null (special
2924 # files actually), so we avoid doing that.
2925 if test -f "$cache_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2927 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 case $cache_file in
2929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2930 *) . "./$cache_file";;
2931 esac
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2935 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 >$cache_file
2939 # Check that the precious variables saved in the cache have kept the same
2940 # value.
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944 eval ac_new_set=\$ac_env_${ac_var}_set
2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946 eval ac_new_val=\$ac_env_${ac_var}_value
2947 case $ac_old_set,$ac_new_set in
2948 set,)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951 ac_cache_corrupted=: ;;
2952 ,set)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2956 ,);;
2958 if test "x$ac_old_val" != "x$ac_new_val"; then
2959 # differences in whitespace do not lead to failure.
2960 ac_old_val_w=`echo x $ac_old_val`
2961 ac_new_val_w=`echo x $ac_new_val`
2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2965 ac_cache_corrupted=:
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969 eval $ac_var=\$ac_old_val
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2972 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 fi;;
2976 esac
2977 # Pass precious variables to config.status.
2978 if test "$ac_new_set" = set; then
2979 case $ac_new_val in
2980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 *) ac_arg=$ac_var=$ac_new_val ;;
2982 esac
2983 case " $ac_configure_args " in
2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 esac
2988 done
2989 if $ac_cache_corrupted; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3014 gcc_version=`cat $srcdir/BASE-VER`
3016 # Determine the host, build, and target systems
3017 ac_aux_dir=
3018 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3019 for ac_t in install-sh install.sh shtool; do
3020 if test -f "$ac_dir/$ac_t"; then
3021 ac_aux_dir=$ac_dir
3022 ac_install_sh="$ac_aux_dir/$ac_t -c"
3023 break 2
3025 done
3026 done
3027 if test -z "$ac_aux_dir"; then
3028 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if test "${ac_cv_build+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3061 *-*-*) ;;
3062 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 esac
3064 build=$ac_cv_build
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_build
3067 shift
3068 build_cpu=$1
3069 build_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 build_os=$*
3074 IFS=$ac_save_IFS
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if test "${ac_cv_host+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
3085 else
3086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3093 case $ac_cv_host in
3094 *-*-*) ;;
3095 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 esac
3097 host=$ac_cv_host
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_host
3100 shift
3101 host_cpu=$1
3102 host_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 host_os=$*
3107 IFS=$ac_save_IFS
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3112 $as_echo_n "checking target system type... " >&6; }
3113 if test "${ac_cv_target+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test "x$target_alias" = x; then
3117 ac_cv_target=$ac_cv_host
3118 else
3119 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3120 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3125 $as_echo "$ac_cv_target" >&6; }
3126 case $ac_cv_target in
3127 *-*-*) ;;
3128 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 esac
3130 target=$ac_cv_target
3131 ac_save_IFS=$IFS; IFS='-'
3132 set x $ac_cv_target
3133 shift
3134 target_cpu=$1
3135 target_vendor=$2
3136 shift; shift
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3139 target_os=$*
3140 IFS=$ac_save_IFS
3141 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3144 # The aliases save the names the user supplied, while $host etc.
3145 # will get canonicalized.
3146 test -n "$target_alias" &&
3147 test "$program_prefix$program_suffix$program_transform_name" = \
3148 NONENONEs,x,x, &&
3149 program_prefix=${target_alias}-
3151 # Determine the noncanonical target name, for directory use.
3152 case ${build_alias} in
3153 "") build_noncanonical=${build} ;;
3154 *) build_noncanonical=${build_alias} ;;
3155 esac
3157 case ${host_alias} in
3158 "") host_noncanonical=${build_noncanonical} ;;
3159 *) host_noncanonical=${host_alias} ;;
3160 esac
3162 case ${target_alias} in
3163 "") target_noncanonical=${host_noncanonical} ;;
3164 *) target_noncanonical=${target_alias} ;;
3165 esac
3170 # Determine the target- and build-specific subdirectories
3172 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3173 # have matching libraries, they should use host libraries: Makefile.tpl
3174 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3175 # However, they still use the build modules, because the corresponding
3176 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # finishes. So:
3178 # - build_subdir is where we find build modules, and never changes.
3179 # - build_libsubdir is where we find build libraries, and can be overridden.
3181 # Prefix 'build-' so this never conflicts with target_subdir.
3182 build_subdir="build-${build_noncanonical}"
3184 # Check whether --with-build-libsubdir was given.
3185 if test "${with_build_libsubdir+set}" = set; then :
3186 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 else
3188 build_libsubdir="$build_subdir"
3191 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3192 if ( test $srcdir = . && test -d gcc ) \
3193 || test -d $srcdir/../host-${host_noncanonical}; then
3194 host_subdir="host-${host_noncanonical}"
3195 else
3196 host_subdir=.
3198 # No prefix.
3199 target_subdir=${target_noncanonical}
3202 # Set program_transform_name
3203 test "$program_prefix" != NONE &&
3204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s,x,x', remove it if useless.
3210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3214 # Check for bogus environment variables.
3215 # Test if LIBRARY_PATH contains the notation for the current directory
3216 # since this would lead to problems installing/building glibc.
3217 # LIBRARY_PATH contains the current directory if one of the following
3218 # is true:
3219 # - one of the terminals (":" and ";") is the first or last sign
3220 # - two terminals occur directly after each other
3221 # - the path contains an element with a dot in it
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3223 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3224 case ${LIBRARY_PATH} in
3225 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3226 library_path_setting="contains current directory"
3229 library_path_setting="ok"
3231 esac
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3233 $as_echo "$library_path_setting" >&6; }
3234 if test "$library_path_setting" != "ok"; then
3235 as_fn_error "
3236 *** LIBRARY_PATH shouldn't contain the current directory when
3237 *** building gcc. Please change the environment variable
3238 *** and run configure again." "$LINENO" 5
3241 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3242 # since this would lead to problems installing/building glibc.
3243 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # is true:
3245 # - one of the terminals (":" and ";") is the first or last sign
3246 # - two terminals occur directly after each other
3247 # - the path contains an element with a dot in it
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3249 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3250 case ${GCC_EXEC_PREFIX} in
3251 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3252 gcc_exec_prefix_setting="contains current directory"
3255 gcc_exec_prefix_setting="ok"
3257 esac
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3259 $as_echo "$gcc_exec_prefix_setting" >&6; }
3260 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 as_fn_error "
3262 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3263 *** building gcc. Please change the environment variable
3264 *** and run configure again." "$LINENO" 5
3267 # -----------
3268 # Directories
3269 # -----------
3271 # Specify the local prefix
3272 local_prefix=
3274 # Check whether --with-local-prefix was given.
3275 if test "${with_local_prefix+set}" = set; then :
3276 withval=$with_local_prefix; case "${withval}" in
3277 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 no) ;;
3279 *) local_prefix=$with_local_prefix ;;
3280 esac
3284 # Default local prefix if it is empty
3285 if test x$local_prefix = x; then
3286 local_prefix=/usr/local
3289 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3290 # passed in by the toplevel make and thus we'd get different behavior
3291 # depending on where we built the sources.
3292 gcc_gxx_include_dir=
3293 # Specify the g++ header file directory
3295 # Check whether --with-gxx-include-dir was given.
3296 if test "${with_gxx_include_dir+set}" = set; then :
3297 withval=$with_gxx_include_dir; case "${withval}" in
3298 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 no) ;;
3300 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3301 esac
3305 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3306 if test x${gcc_gxx_include_dir} = x; then
3307 if test x${enable_version_specific_runtime_libs} = xyes; then
3308 gcc_gxx_include_dir='${libsubdir}/include/c++'
3309 else
3310 libstdcxx_incdir='include/c++/$(version)'
3311 if test x$host != x$target; then
3312 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3314 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3319 # Check whether --with-cpp_install_dir was given.
3320 if test "${with_cpp_install_dir+set}" = set; then :
3321 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3322 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3323 elif test x$withval != xno; then
3324 cpp_install_dir=$withval
3329 # We would like to our source tree to be readonly. However when releases or
3330 # pre-releases are generated, the flex/bison generated files as well as the
3331 # various formats of manuals need to be included along with the rest of the
3332 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3333 # just that.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3336 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3337 # Check whether --enable-generated-files-in-srcdir was given.
3338 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3339 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3340 else
3341 generated_files_in_srcdir=no
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3346 $as_echo "$generated_files_in_srcdir" >&6; }
3348 if test "$generated_files_in_srcdir" = "yes"; then
3349 GENINSRC=''
3350 else
3351 GENINSRC='#'
3355 # -------------------
3356 # Find default linker
3357 # -------------------
3359 # With GNU ld
3361 # Check whether --with-gnu-ld was given.
3362 if test "${with_gnu_ld+set}" = set; then :
3363 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3364 else
3365 gnu_ld_flag=no
3369 # With pre-defined ld
3371 # Check whether --with-ld was given.
3372 if test "${with_ld+set}" = set; then :
3373 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3376 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3377 if test ! -x "$DEFAULT_LINKER"; then
3378 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3379 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3380 gnu_ld_flag=yes
3383 cat >>confdefs.h <<_ACEOF
3384 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3385 _ACEOF
3389 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3391 cat >>confdefs.h <<_ACEOF
3392 #define HAVE_GNU_LD $gnu_ld
3393 _ACEOF
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3397 $as_echo_n "checking whether a default linker was specified... " >&6; }
3398 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3399 if test x"$gnu_ld_flag" = x"no"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3411 # With demangler in GNU ld
3413 # Check whether --with-demangler-in-ld was given.
3414 if test "${with_demangler_in_ld+set}" = set; then :
3415 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3416 else
3417 demangler_in_ld=yes
3421 # ----------------------
3422 # Find default assembler
3423 # ----------------------
3425 # With GNU as
3427 # Check whether --with-gnu-as was given.
3428 if test "${with_gnu_as+set}" = set; then :
3429 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3430 else
3431 gas_flag=no
3436 # Check whether --with-as was given.
3437 if test "${with_as+set}" = set; then :
3438 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3441 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3442 if test ! -x "$DEFAULT_ASSEMBLER"; then
3443 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3444 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3445 gas_flag=yes
3448 cat >>confdefs.h <<_ACEOF
3449 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3450 _ACEOF
3454 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3456 cat >>confdefs.h <<_ACEOF
3457 #define HAVE_GNU_AS $gnu_as
3458 _ACEOF
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3462 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3463 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3464 if test x"$gas_flag" = x"no"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3469 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3476 # ---------------
3477 # Find C compiler
3478 # ---------------
3480 # If a non-executable a.out is present (e.g. created by GNU as above even if
3481 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3482 # file, even when creating an executable, so an execution test fails.
3483 # Remove possible default executable files to avoid this.
3485 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3486 # Autoconf includes it.
3487 rm -f a.out a.exe b.out
3489 # Find the native compiler
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3534 if test -z "$ac_cv_prog_CC"; then
3535 ac_ct_CC=$CC
3536 # Extract the first word of "gcc", so it can be a program name with args.
3537 set dummy gcc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$ac_ct_CC"; then
3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_ac_ct_CC="gcc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3564 if test -n "$ac_ct_CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3566 $as_echo "$ac_ct_CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3572 if test "x$ac_ct_CC" = x; then
3573 CC=""
3574 else
3575 case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581 CC=$ac_ct_CC
3583 else
3584 CC="$ac_cv_prog_CC"
3587 if test -z "$CC"; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}cc; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_CC="${ac_tool_prefix}cc"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3612 IFS=$as_save_IFS
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3628 if test -z "$CC"; then
3629 # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if test "${ac_cv_prog_CC+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 ac_prog_rejected=no
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3648 ac_prog_rejected=yes
3649 continue
3651 ac_cv_prog_CC="cc"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 break 2
3655 done
3656 done
3657 IFS=$as_save_IFS
3659 if test $ac_prog_rejected = yes; then
3660 # We found a bogon in the path, so make sure we never use it.
3661 set dummy $ac_cv_prog_CC
3662 shift
3663 if test $# != 0; then
3664 # We chose a different compiler from the bogus one.
3665 # However, it has the same basename, so the bogon will be chosen
3666 # first if we set CC to just the basename; use the full file name.
3667 shift
3668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3684 if test -z "$CC"; then
3685 if test -n "$ac_tool_prefix"; then
3686 for ac_prog in cl.exe
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3711 IFS=$as_save_IFS
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$CC" && break
3726 done
3728 if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl.exe
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762 $as_echo "$ac_ct_CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$ac_ct_CC" && break
3770 done
3772 if test "x$ac_ct_CC" = x; then
3773 CC=""
3774 else
3775 case $cross_compiling:$ac_tool_warned in
3776 yes:)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779 ac_tool_warned=yes ;;
3780 esac
3781 CC=$ac_ct_CC
3788 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error "no acceptable C compiler found in \$PATH
3791 See \`config.log' for more details." "$LINENO" 5; }
3793 # Provide some information about the compiler.
3794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795 set X $ac_compile
3796 ac_compiler=$2
3797 for ac_option in --version -v -V -qversion; do
3798 { { ac_try="$ac_compiler $ac_option >&5"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 ac_status=$?
3807 if test -s conftest.err; then
3808 sed '10a\
3809 ... rest of stderr output deleted ...
3810 10q' conftest.err >conftest.er1
3811 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }
3816 done
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 main ()
3826 return 0;
3828 _ACEOF
3829 ac_clean_files_save=$ac_clean_files
3830 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3831 # Try to create an executable without -o first, disregard a.out.
3832 # It will help us diagnose broken compilers, and finding out an intuition
3833 # of exeext.
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835 $as_echo_n "checking for C compiler default output file name... " >&6; }
3836 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3838 # The possible output files:
3839 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 ac_rmfiles=
3842 for ac_file in $ac_files
3844 case $ac_file in
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3846 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3847 esac
3848 done
3849 rm -f $ac_rmfiles
3851 if { { ac_try="$ac_link_default"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_link_default") 2>&5
3859 ac_status=$?
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }; then :
3862 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3863 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3864 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3865 # so that the user can short-circuit this test for compilers unknown to
3866 # Autoconf.
3867 for ac_file in $ac_files ''
3869 test -f "$ac_file" || continue
3870 case $ac_file in
3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3873 [ab].out )
3874 # We found the default executable, but exeext='' is most
3875 # certainly right.
3876 break;;
3877 *.* )
3878 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3879 then :; else
3880 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882 # We set ac_cv_exeext here because the later test for it is not
3883 # safe: cross compilers may not add the suffix if given an `-o'
3884 # argument, so we may need to know it at that point already.
3885 # Even if this section looks crufty: it has the advantage of
3886 # actually working.
3887 break;;
3889 break;;
3890 esac
3891 done
3892 test "$ac_cv_exeext" = no && ac_cv_exeext=
3894 else
3895 ac_file=''
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3898 $as_echo "$ac_file" >&6; }
3899 if test -z "$ac_file"; then :
3900 $as_echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 { as_fn_set_status 77
3906 as_fn_error "C compiler cannot create executables
3907 See \`config.log' for more details." "$LINENO" 5; }; }
3909 ac_exeext=$ac_cv_exeext
3911 # Check that the compiler produces executables we can run. If not, either
3912 # the compiler is broken, or we cross compile.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 # If not cross compiling, check that we can run a simple program.
3916 if test "$cross_compiling" != yes; then
3917 if { ac_try='./$ac_file'
3918 { { case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_try") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; }; then
3928 cross_compiling=no
3929 else
3930 if test "$cross_compiling" = maybe; then
3931 cross_compiling=yes
3932 else
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error "cannot run C compiled programs.
3936 If you meant to cross compile, use \`--host'.
3937 See \`config.log' for more details." "$LINENO" 5; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3944 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3945 ac_clean_files=$ac_clean_files_save
3946 # Check that the compiler produces executables we can run. If not, either
3947 # the compiler is broken, or we cross compile.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949 $as_echo_n "checking whether we are cross compiling... " >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3951 $as_echo "$cross_compiling" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954 $as_echo_n "checking for suffix of executables... " >&6; }
3955 if { { ac_try="$ac_link"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; then :
3966 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3967 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3968 # work properly (i.e., refer to `conftest.exe'), while it won't with
3969 # `rm'.
3970 for ac_file in conftest.exe conftest conftest.*; do
3971 test -f "$ac_file" || continue
3972 case $ac_file in
3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975 break;;
3976 * ) break;;
3977 esac
3978 done
3979 else
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error "cannot compute suffix of executables: cannot compile and link
3983 See \`config.log' for more details." "$LINENO" 5; }
3985 rm -f conftest$ac_cv_exeext
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3987 $as_echo "$ac_cv_exeext" >&6; }
3989 rm -f conftest.$ac_ext
3990 EXEEXT=$ac_cv_exeext
3991 ac_exeext=$EXEEXT
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3993 $as_echo_n "checking for suffix of object files... " >&6; }
3994 if test "${ac_cv_objext+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 main ()
4005 return 0;
4007 _ACEOF
4008 rm -f conftest.o conftest.obj
4009 if { { ac_try="$ac_compile"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_compile") 2>&5
4017 ac_status=$?
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }; then :
4020 for ac_file in conftest.o conftest.obj conftest.*; do
4021 test -f "$ac_file" || continue;
4022 case $ac_file in
4023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4025 break;;
4026 esac
4027 done
4028 else
4029 $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "cannot compute suffix of object files: cannot compile
4035 See \`config.log' for more details." "$LINENO" 5; }
4037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4040 $as_echo "$ac_cv_objext" >&6; }
4041 OBJEXT=$ac_cv_objext
4042 ac_objext=$OBJEXT
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4044 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4045 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4052 main ()
4054 #ifndef __GNUC__
4055 choke me
4056 #endif
4059 return 0;
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_compiler_gnu=yes
4064 else
4065 ac_compiler_gnu=no
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4072 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4073 if test $ac_compiler_gnu = yes; then
4074 GCC=yes
4075 else
4076 GCC=
4078 ac_test_CFLAGS=${CFLAGS+set}
4079 ac_save_CFLAGS=$CFLAGS
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4081 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4082 if test "${ac_cv_prog_cc_g+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 ac_save_c_werror_flag=$ac_c_werror_flag
4086 ac_c_werror_flag=yes
4087 ac_cv_prog_cc_g=no
4088 CFLAGS="-g"
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 main ()
4097 return 0;
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_prog_cc_g=yes
4102 else
4103 CFLAGS=""
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 main ()
4112 return 0;
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4117 else
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4124 main ()
4128 return 0;
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_prog_cc_g=yes
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4142 $as_echo "$ac_cv_prog_cc_g" >&6; }
4143 if test "$ac_test_CFLAGS" = set; then
4144 CFLAGS=$ac_save_CFLAGS
4145 elif test $ac_cv_prog_cc_g = yes; then
4146 if test "$GCC" = yes; then
4147 CFLAGS="-g -O2"
4148 else
4149 CFLAGS="-g"
4151 else
4152 if test "$GCC" = yes; then
4153 CFLAGS="-O2"
4154 else
4155 CFLAGS=
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4159 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4160 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 ac_cv_prog_cc_c89=no
4164 ac_save_CC=$CC
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <stdarg.h>
4168 #include <stdio.h>
4169 #include <sys/types.h>
4170 #include <sys/stat.h>
4171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4172 struct buf { int x; };
4173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174 static char *e (p, i)
4175 char **p;
4176 int i;
4178 return p[i];
4180 static char *f (char * (*g) (char **, int), char **p, ...)
4182 char *s;
4183 va_list v;
4184 va_start (v,p);
4185 s = g (p, va_arg (v,int));
4186 va_end (v);
4187 return s;
4190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4191 function prototypes and stuff, but not '\xHH' hex character constants.
4192 These don't provoke an error unfortunately, instead are silently treated
4193 as 'x'. The following induces an error, until -std is added to get
4194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4195 array size at least. It's necessary to write '\x00'==0 to get something
4196 that's true only with -std. */
4197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200 inside strings and character constants. */
4201 #define FOO(x) 'x'
4202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204 int test (int i, double x);
4205 struct s1 {int (*f) (int a);};
4206 struct s2 {int (*f) (double a);};
4207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4208 int argc;
4209 char **argv;
4211 main ()
4213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4215 return 0;
4217 _ACEOF
4218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_c89=$ac_arg
4225 rm -f core conftest.err conftest.$ac_objext
4226 test "x$ac_cv_prog_cc_c89" != "xno" && break
4227 done
4228 rm -f conftest.$ac_ext
4229 CC=$ac_save_CC
4232 # AC_CACHE_VAL
4233 case "x$ac_cv_prog_cc_c89" in
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236 $as_echo "none needed" >&6; } ;;
4237 xno)
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239 $as_echo "unsupported" >&6; } ;;
4241 CC="$CC $ac_cv_prog_cc_c89"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244 esac
4245 if test "x$ac_cv_prog_cc_c89" != xno; then :
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 if test "x$CC" != xcc; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4257 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4260 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4262 set dummy $CC; ac_cc=`$as_echo "$2" |
4263 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4264 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4271 main ()
4275 return 0;
4277 _ACEOF
4278 # Make sure it works both with $CC and with simple cc.
4279 # We do the test twice because some compilers refuse to overwrite an
4280 # existing .o file with -o, though they will create one.
4281 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 rm -f conftest2.*
4283 if { { case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; } &&
4293 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; };
4303 then
4304 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4305 if test "x$CC" != xcc; then
4306 # Test first that cc exists at all.
4307 if { ac_try='cc -c conftest.$ac_ext >&5'
4308 { { case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314 (eval "$ac_try") 2>&5
4315 ac_status=$?
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }; }; then
4318 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319 rm -f conftest2.*
4320 if { { case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_try") 2>&5
4327 ac_status=$?
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; } &&
4330 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; };
4340 then
4341 # cc works too.
4343 else
4344 # cc exists but doesn't like -o.
4345 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 else
4350 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4352 rm -f core conftest*
4355 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4362 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4366 # expand $ac_aux_dir to an absolute path
4367 am_aux_dir=`cd $ac_aux_dir && pwd`
4369 # FIXME: we rely on the cache variable name because
4370 # there is no other way.
4371 set dummy $CC
4372 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4373 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4374 if test "$am_t" != yes; then
4375 # Losing compiler, so override with the script.
4376 # FIXME: It is wrong to rewrite CC.
4377 # But if we don't then we get into trouble of one sort or another.
4378 # A longer-term fix would be to have automake use am__CC in this case,
4379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380 CC="$am_aux_dir/compile $CC"
4384 ac_ext=cpp
4385 ac_cpp='$CXXCPP $CPPFLAGS'
4386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4389 if test -z "$CXX"; then
4390 if test -n "$CCC"; then
4391 CXX=$CCC
4392 else
4393 if test -n "$ac_tool_prefix"; then
4394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_CXX+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -n "$CXX"; then
4404 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4423 CXX=$ac_cv_prog_CXX
4424 if test -n "$CXX"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4426 $as_echo "$CXX" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4433 test -n "$CXX" && break
4434 done
4436 if test -z "$CXX"; then
4437 ac_ct_CXX=$CXX
4438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4440 # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy $ac_prog; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -n "$ac_ct_CXX"; then
4448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_ac_ct_CXX="$ac_prog"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4468 if test -n "$ac_ct_CXX"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4470 $as_echo "$ac_ct_CXX" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4477 test -n "$ac_ct_CXX" && break
4478 done
4480 if test "x$ac_ct_CXX" = x; then
4481 CXX="g++"
4482 else
4483 case $cross_compiling:$ac_tool_warned in
4484 yes:)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487 ac_tool_warned=yes ;;
4488 esac
4489 CXX=$ac_ct_CXX
4495 # Provide some information about the compiler.
4496 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497 set X $ac_compile
4498 ac_compiler=$2
4499 for ac_option in --version -v -V -qversion; do
4500 { { ac_try="$ac_compiler $ac_option >&5"
4501 case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508 ac_status=$?
4509 if test -s conftest.err; then
4510 sed '10a\
4511 ... rest of stderr output deleted ...
4512 10q' conftest.err >conftest.er1
4513 cat conftest.er1 >&5
4514 rm -f conftest.er1 conftest.err
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }
4518 done
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4521 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4522 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4529 main ()
4531 #ifndef __GNUC__
4532 choke me
4533 #endif
4536 return 0;
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_compiler_gnu=yes
4541 else
4542 ac_compiler_gnu=no
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4549 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4550 if test $ac_compiler_gnu = yes; then
4551 GXX=yes
4552 else
4553 GXX=
4555 ac_test_CXXFLAGS=${CXXFLAGS+set}
4556 ac_save_CXXFLAGS=$CXXFLAGS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4558 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4559 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4563 ac_cxx_werror_flag=yes
4564 ac_cv_prog_cxx_g=no
4565 CXXFLAGS="-g"
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4570 main ()
4574 return 0;
4576 _ACEOF
4577 if ac_fn_cxx_try_compile "$LINENO"; then :
4578 ac_cv_prog_cxx_g=yes
4579 else
4580 CXXFLAGS=""
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 main ()
4589 return 0;
4591 _ACEOF
4592 if ac_fn_cxx_try_compile "$LINENO"; then :
4594 else
4595 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596 CXXFLAGS="-g"
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4601 main ()
4605 return 0;
4607 _ACEOF
4608 if ac_fn_cxx_try_compile "$LINENO"; then :
4609 ac_cv_prog_cxx_g=yes
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4619 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4620 if test "$ac_test_CXXFLAGS" = set; then
4621 CXXFLAGS=$ac_save_CXXFLAGS
4622 elif test $ac_cv_prog_cxx_g = yes; then
4623 if test "$GXX" = yes; then
4624 CXXFLAGS="-g -O2"
4625 else
4626 CXXFLAGS="-g"
4628 else
4629 if test "$GXX" = yes; then
4630 CXXFLAGS="-O2"
4631 else
4632 CXXFLAGS=
4635 ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$GNATBIND"; then
4653 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 GNATBIND=$ac_cv_prog_GNATBIND
4673 if test -n "$GNATBIND"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4675 $as_echo "$GNATBIND" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4683 if test -z "$ac_cv_prog_GNATBIND"; then
4684 ac_ct_GNATBIND=$GNATBIND
4685 # Extract the first word of "gnatbind", so it can be a program name with args.
4686 set dummy gnatbind; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$ac_ct_GNATBIND"; then
4693 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4713 if test -n "$ac_ct_GNATBIND"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4715 $as_echo "$ac_ct_GNATBIND" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4721 if test "x$ac_ct_GNATBIND" = x; then
4722 GNATBIND="no"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 GNATBIND=$ac_ct_GNATBIND
4732 else
4733 GNATBIND="$ac_cv_prog_GNATBIND"
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -n "$GNATMAKE"; then
4745 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4764 GNATMAKE=$ac_cv_prog_GNATMAKE
4765 if test -n "$GNATMAKE"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4767 $as_echo "$GNATMAKE" >&6; }
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4775 if test -z "$ac_cv_prog_GNATMAKE"; then
4776 ac_ct_GNATMAKE=$GNATMAKE
4777 # Extract the first word of "gnatmake", so it can be a program name with args.
4778 set dummy gnatmake; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$ac_ct_GNATMAKE"; then
4785 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4800 IFS=$as_save_IFS
4804 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4805 if test -n "$ac_ct_GNATMAKE"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4807 $as_echo "$ac_ct_GNATMAKE" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4813 if test "x$ac_ct_GNATMAKE" = x; then
4814 GNATMAKE="no"
4815 else
4816 case $cross_compiling:$ac_tool_warned in
4817 yes:)
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822 GNATMAKE=$ac_ct_GNATMAKE
4824 else
4825 GNATMAKE="$ac_cv_prog_GNATMAKE"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4829 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4830 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 cat >conftest.adb <<EOF
4834 procedure conftest is begin null; end conftest;
4836 acx_cv_cc_gcc_supports_ada=no
4837 # There is a bug in old released versions of GCC which causes the
4838 # driver to exit successfully when the appropriate language module
4839 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4840 # Therefore we must check for the error message as well as an
4841 # unsuccessful exit.
4842 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4843 # given a .adb file, but produce no object file. So we must check
4844 # if an object file was really produced to guard against this.
4845 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4846 if test x"$errors" = x && test -f conftest.$ac_objext; then
4847 acx_cv_cc_gcc_supports_ada=yes
4849 rm -f conftest.*
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4852 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4854 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4855 have_gnat=yes
4856 else
4857 have_gnat=no
4861 # autoconf is lame and doesn't give us any substitution variable for this.
4862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4863 NO_MINUS_C_MINUS_O=yes
4864 else
4865 OUTPUT_OPTION='-o $@'
4870 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4871 # optimizations to be activated explicitly by the toplevel.
4872 case "$CC" in
4873 */prev-gcc/xgcc*) ;;
4874 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4875 esac
4878 # Determine PICFLAG for target gnatlib.
4883 case "${target}" in
4884 # PIC is the default on some targets or must not be used.
4885 *-*-darwin*)
4886 # PIC is the default on this platform
4887 # Common symbols not allowed in MH_DYLIB files
4888 PICFLAG_FOR_TARGET=-fno-common
4890 alpha*-dec-osf5*)
4891 # PIC is the default.
4893 hppa*64*-*-hpux*)
4894 # PIC is the default for 64-bit PA HP-UX.
4896 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4898 i[34567]86-*-interix3*)
4899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4900 # Instead, we relocate shared libraries at runtime.
4902 i[34567]86-*-nto-qnx*)
4903 # QNX uses GNU C++, but need to define -shared option too, otherwise
4904 # it will coredump.
4905 PICFLAG_FOR_TARGET='-fPIC -shared'
4907 i[34567]86-pc-msdosdjgpp*)
4908 # DJGPP does not support shared libraries at all.
4910 ia64*-*-hpux*)
4911 # On IA64 HP-UX, PIC is the default but the pic flag
4912 # sets the default TLS model and affects inlining.
4913 PICFLAG_FOR_TARGET=-fPIC
4915 mips-sgi-irix6*)
4916 # PIC is the default.
4918 rs6000-ibm-aix* | powerpc-ibm-aix*)
4919 # All AIX code is PIC.
4922 # Some targets support both -fPIC and -fpic, but prefer the latter.
4923 # FIXME: Why?
4924 i[34567]86-*-* | x86_64-*-*)
4925 PICFLAG_FOR_TARGET=-fpic
4927 m68k-*-*)
4928 PICFLAG_FOR_TARGET=-fpic
4930 s390*-*-*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 # FIXME: Override -fPIC default in libgcc only?
4934 sh-*-linux* | sh[2346lbe]*-*-linux*)
4935 PICFLAG_FOR_TARGET=-fpic
4937 # FIXME: Simplify to sh*-*-netbsd*?
4938 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4939 sh64-*-netbsd* | sh64l*-*-netbsd*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # Default to -fPIC unless specified otherwise.
4944 PICFLAG_FOR_TARGET=-fPIC
4946 esac
4948 # If the user explicitly uses -fpic/-fPIC, keep that.
4949 case "${CFLAGS_FOR_TARGET}" in
4950 *-fpic*)
4951 PICFLAG_FOR_TARGET=-fpic
4953 *-fPIC*)
4954 PICFLAG_FOR_TARGET=-fPIC
4956 esac
4960 # -------------------------
4961 # Check C compiler features
4962 # -------------------------
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4971 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4972 # On Suns, sometimes $CPP names a directory.
4973 if test -n "$CPP" && test -d "$CPP"; then
4974 CPP=
4976 if test -z "$CPP"; then
4977 if test "${ac_cv_prog_CPP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 # Double quotes because CPP needs to be expanded
4981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4983 ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999 Syntax error
5000 _ACEOF
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5003 else
5004 # Broken: fails on valid input.
5005 continue
5007 rm -f conftest.err conftest.$ac_ext
5009 # OK, works on sane cases. Now check whether nonexistent headers
5010 # can be detected and how.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: success on invalid input.
5017 continue
5018 else
5019 # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5023 rm -f conftest.err conftest.$ac_ext
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5029 break
5032 done
5033 ac_cv_prog_CPP=$CPP
5036 CPP=$ac_cv_prog_CPP
5037 else
5038 ac_cv_prog_CPP=$CPP
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5041 $as_echo "$CPP" >&6; }
5042 ac_preproc_ok=false
5043 for ac_c_preproc_warn_flag in '' yes
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058 Syntax error
5059 _ACEOF
5060 if ac_fn_c_try_cpp "$LINENO"; then :
5062 else
5063 # Broken: fails on valid input.
5064 continue
5066 rm -f conftest.err conftest.$ac_ext
5068 # OK, works on sane cases. Now check whether nonexistent headers
5069 # can be detected and how.
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 #include <ac_nonexistent.h>
5073 _ACEOF
5074 if ac_fn_c_try_cpp "$LINENO"; then :
5075 # Broken: success on invalid input.
5076 continue
5077 else
5078 # Passes both tests.
5079 ac_preproc_ok=:
5080 break
5082 rm -f conftest.err conftest.$ac_ext
5084 done
5085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5086 rm -f conftest.err conftest.$ac_ext
5087 if $ac_preproc_ok; then :
5089 else
5090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5092 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5093 See \`config.log' for more details." "$LINENO" 5; }
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5104 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5105 if test "${ac_cv_path_GREP+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -z "$GREP"; then
5109 ac_path_GREP_found=false
5110 # Loop through the user's path and test for each of PROGNAME-LIST
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_prog in grep ggrep; do
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5120 # Check for GNU ac_path_GREP and select it if it is found.
5121 # Check for GNU $ac_path_GREP
5122 case `"$ac_path_GREP" --version 2>&1` in
5123 *GNU*)
5124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5126 ac_count=0
5127 $as_echo_n 0123456789 >"conftest.in"
5128 while :
5130 cat "conftest.in" "conftest.in" >"conftest.tmp"
5131 mv "conftest.tmp" "conftest.in"
5132 cp "conftest.in" "conftest.nl"
5133 $as_echo 'GREP' >> "conftest.nl"
5134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5136 as_fn_arith $ac_count + 1 && ac_count=$as_val
5137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5138 # Best one so far, save it but keep looking for a better one
5139 ac_cv_path_GREP="$ac_path_GREP"
5140 ac_path_GREP_max=$ac_count
5142 # 10*(2^10) chars as input seems more than enough
5143 test $ac_count -gt 10 && break
5144 done
5145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5146 esac
5148 $ac_path_GREP_found && break 3
5149 done
5150 done
5151 done
5152 IFS=$as_save_IFS
5153 if test -z "$ac_cv_path_GREP"; then
5154 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5156 else
5157 ac_cv_path_GREP=$GREP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5162 $as_echo "$ac_cv_path_GREP" >&6; }
5163 GREP="$ac_cv_path_GREP"
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5167 $as_echo_n "checking for egrep... " >&6; }
5168 if test "${ac_cv_path_EGREP+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5172 then ac_cv_path_EGREP="$GREP -E"
5173 else
5174 if test -z "$EGREP"; then
5175 ac_path_EGREP_found=false
5176 # Loop through the user's path and test for each of PROGNAME-LIST
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_prog in egrep; do
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5186 # Check for GNU ac_path_EGREP and select it if it is found.
5187 # Check for GNU $ac_path_EGREP
5188 case `"$ac_path_EGREP" --version 2>&1` in
5189 *GNU*)
5190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5192 ac_count=0
5193 $as_echo_n 0123456789 >"conftest.in"
5194 while :
5196 cat "conftest.in" "conftest.in" >"conftest.tmp"
5197 mv "conftest.tmp" "conftest.in"
5198 cp "conftest.in" "conftest.nl"
5199 $as_echo 'EGREP' >> "conftest.nl"
5200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5202 as_fn_arith $ac_count + 1 && ac_count=$as_val
5203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5204 # Best one so far, save it but keep looking for a better one
5205 ac_cv_path_EGREP="$ac_path_EGREP"
5206 ac_path_EGREP_max=$ac_count
5208 # 10*(2^10) chars as input seems more than enough
5209 test $ac_count -gt 10 && break
5210 done
5211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 esac
5214 $ac_path_EGREP_found && break 3
5215 done
5216 done
5217 done
5218 IFS=$as_save_IFS
5219 if test -z "$ac_cv_path_EGREP"; then
5220 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 else
5223 ac_cv_path_EGREP=$EGREP
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5229 $as_echo "$ac_cv_path_EGREP" >&6; }
5230 EGREP="$ac_cv_path_EGREP"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5234 $as_echo_n "checking for ANSI C header files... " >&6; }
5235 if test "${ac_cv_header_stdc+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 #include <stdlib.h>
5241 #include <stdarg.h>
5242 #include <string.h>
5243 #include <float.h>
5246 main ()
5250 return 0;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 ac_cv_header_stdc=yes
5255 else
5256 ac_cv_header_stdc=no
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 if test $ac_cv_header_stdc = yes; then
5261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 #include <string.h>
5266 _ACEOF
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268 $EGREP "memchr" >/dev/null 2>&1; then :
5270 else
5271 ac_cv_header_stdc=no
5273 rm -f conftest*
5277 if test $ac_cv_header_stdc = yes; then
5278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include <stdlib.h>
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "free" >/dev/null 2>&1; then :
5287 else
5288 ac_cv_header_stdc=no
5290 rm -f conftest*
5294 if test $ac_cv_header_stdc = yes; then
5295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5296 if test "$cross_compiling" = yes; then :
5298 else
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 #include <ctype.h>
5302 #include <stdlib.h>
5303 #if ((' ' & 0x0FF) == 0x020)
5304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 #else
5307 # define ISLOWER(c) \
5308 (('a' <= (c) && (c) <= 'i') \
5309 || ('j' <= (c) && (c) <= 'r') \
5310 || ('s' <= (c) && (c) <= 'z'))
5311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #endif
5314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 main ()
5318 int i;
5319 for (i = 0; i < 256; i++)
5320 if (XOR (islower (i), ISLOWER (i))
5321 || toupper (i) != TOUPPER (i))
5322 return 2;
5323 return 0;
5325 _ACEOF
5326 if ac_fn_c_try_run "$LINENO"; then :
5328 else
5329 ac_cv_header_stdc=no
5331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5332 conftest.$ac_objext conftest.beam conftest.$ac_ext
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5338 $as_echo "$ac_cv_header_stdc" >&6; }
5339 if test $ac_cv_header_stdc = yes; then
5341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5347 inttypes.h stdint.h unistd.h
5348 do :
5349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5352 eval as_val=\$$as_ac_Header
5353 if test "x$as_val" = x""yes; then :
5354 cat >>confdefs.h <<_ACEOF
5355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5356 _ACEOF
5360 done
5364 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5365 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5366 MINIX=yes
5367 else
5368 MINIX=
5372 if test "$MINIX" = yes; then
5374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5380 $as_echo "#define _MINIX 1" >>confdefs.h
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5386 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5387 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 # define __EXTENSIONS__ 1
5394 $ac_includes_default
5396 main ()
5400 return 0;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404 ac_cv_safe_to_define___extensions__=yes
5405 else
5406 ac_cv_safe_to_define___extensions__=no
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5411 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5412 test $ac_cv_safe_to_define___extensions__ = yes &&
5413 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5415 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5417 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5419 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5421 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5424 ac_ext=c
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5431 # On Suns, sometimes $CPP names a directory.
5432 if test -n "$CPP" && test -d "$CPP"; then
5433 CPP=
5435 if test -z "$CPP"; then
5436 if test "${ac_cv_prog_CPP+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 # Double quotes because CPP needs to be expanded
5440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5442 ac_preproc_ok=false
5443 for ac_c_preproc_warn_flag in '' yes
5445 # Use a header file that comes with gcc, so configuring glibc
5446 # with a fresh cross-compiler works.
5447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448 # <limits.h> exists even on freestanding compilers.
5449 # On the NeXT, cc -E runs the code through the compiler's parser,
5450 # not just through cpp. "Syntax error" is here to catch this case.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 #ifdef __STDC__
5454 # include <limits.h>
5455 #else
5456 # include <assert.h>
5457 #endif
5458 Syntax error
5459 _ACEOF
5460 if ac_fn_c_try_cpp "$LINENO"; then :
5462 else
5463 # Broken: fails on valid input.
5464 continue
5466 rm -f conftest.err conftest.$ac_ext
5468 # OK, works on sane cases. Now check whether nonexistent headers
5469 # can be detected and how.
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5473 _ACEOF
5474 if ac_fn_c_try_cpp "$LINENO"; then :
5475 # Broken: success on invalid input.
5476 continue
5477 else
5478 # Passes both tests.
5479 ac_preproc_ok=:
5480 break
5482 rm -f conftest.err conftest.$ac_ext
5484 done
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.err conftest.$ac_ext
5487 if $ac_preproc_ok; then :
5488 break
5491 done
5492 ac_cv_prog_CPP=$CPP
5495 CPP=$ac_cv_prog_CPP
5496 else
5497 ac_cv_prog_CPP=$CPP
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5500 $as_echo "$CPP" >&6; }
5501 ac_preproc_ok=false
5502 for ac_c_preproc_warn_flag in '' yes
5504 # Use a header file that comes with gcc, so configuring glibc
5505 # with a fresh cross-compiler works.
5506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 # <limits.h> exists even on freestanding compilers.
5508 # On the NeXT, cc -E runs the code through the compiler's parser,
5509 # not just through cpp. "Syntax error" is here to catch this case.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517 Syntax error
5518 _ACEOF
5519 if ac_fn_c_try_cpp "$LINENO"; then :
5521 else
5522 # Broken: fails on valid input.
5523 continue
5525 rm -f conftest.err conftest.$ac_ext
5527 # OK, works on sane cases. Now check whether nonexistent headers
5528 # can be detected and how.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <ac_nonexistent.h>
5532 _ACEOF
5533 if ac_fn_c_try_cpp "$LINENO"; then :
5534 # Broken: success on invalid input.
5535 continue
5536 else
5537 # Passes both tests.
5538 ac_preproc_ok=:
5539 break
5541 rm -f conftest.err conftest.$ac_ext
5543 done
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.err conftest.$ac_ext
5546 if $ac_preproc_ok; then :
5548 else
5549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5551 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5552 See \`config.log' for more details." "$LINENO" 5; }
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5562 $as_echo_n "checking for inline... " >&6; }
5563 if test "${ac_cv_c_inline+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 ac_cv_c_inline=no
5567 for ac_kw in inline __inline__ __inline; do
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #ifndef __cplusplus
5571 typedef int foo_t;
5572 static $ac_kw foo_t static_foo () {return 0; }
5573 $ac_kw foo_t foo () {return 0; }
5574 #endif
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 ac_cv_c_inline=$ac_kw
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 test "$ac_cv_c_inline" != no && break
5582 done
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5586 $as_echo "$ac_cv_c_inline" >&6; }
5588 case $ac_cv_c_inline in
5589 inline | yes) ;;
5591 case $ac_cv_c_inline in
5592 no) ac_val=;;
5593 *) ac_val=$ac_cv_c_inline;;
5594 esac
5595 cat >>confdefs.h <<_ACEOF
5596 #ifndef __cplusplus
5597 #define inline $ac_val
5598 #endif
5599 _ACEOF
5601 esac
5604 # Check whether --enable-largefile was given.
5605 if test "${enable_largefile+set}" = set; then :
5606 enableval=$enable_largefile;
5609 if test "$enable_largefile" != no; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5612 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5613 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 ac_cv_sys_largefile_CC=no
5617 if test "$GCC" != yes; then
5618 ac_save_CC=$CC
5619 while :; do
5620 # IRIX 6.2 and later do not support large files by default,
5621 # so use the C compiler's -n32 option if that helps.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <sys/types.h>
5625 /* Check that off_t can represent 2**63 - 1 correctly.
5626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5627 since some C++ compilers masquerading as C compilers
5628 incorrectly reject 9223372036854775807. */
5629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5631 && LARGE_OFF_T % 2147483647 == 1)
5632 ? 1 : -1];
5634 main ()
5638 return 0;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 break
5644 rm -f core conftest.err conftest.$ac_objext
5645 CC="$CC -n32"
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 ac_cv_sys_largefile_CC=' -n32'; break
5649 rm -f core conftest.err conftest.$ac_objext
5650 break
5651 done
5652 CC=$ac_save_CC
5653 rm -f conftest.$ac_ext
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5657 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5658 if test "$ac_cv_sys_largefile_CC" != no; then
5659 CC=$CC$ac_cv_sys_largefile_CC
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5663 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5664 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 while :; do
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <sys/types.h>
5671 /* Check that off_t can represent 2**63 - 1 correctly.
5672 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5673 since some C++ compilers masquerading as C compilers
5674 incorrectly reject 9223372036854775807. */
5675 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5677 && LARGE_OFF_T % 2147483647 == 1)
5678 ? 1 : -1];
5680 main ()
5684 return 0;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_sys_file_offset_bits=no; break
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #define _FILE_OFFSET_BITS 64
5694 #include <sys/types.h>
5695 /* Check that off_t can represent 2**63 - 1 correctly.
5696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5697 since some C++ compilers masquerading as C compilers
5698 incorrectly reject 9223372036854775807. */
5699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5701 && LARGE_OFF_T % 2147483647 == 1)
5702 ? 1 : -1];
5704 main ()
5708 return 0;
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 ac_cv_sys_file_offset_bits=64; break
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 ac_cv_sys_file_offset_bits=unknown
5716 break
5717 done
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5720 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5721 case $ac_cv_sys_file_offset_bits in #(
5722 no | unknown) ;;
5724 cat >>confdefs.h <<_ACEOF
5725 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5726 _ACEOF
5728 esac
5729 rm -rf conftest*
5730 if test $ac_cv_sys_file_offset_bits = unknown; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5732 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5733 if test "${ac_cv_sys_large_files+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 while :; do
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 #include <sys/types.h>
5740 /* Check that off_t can represent 2**63 - 1 correctly.
5741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5742 since some C++ compilers masquerading as C compilers
5743 incorrectly reject 9223372036854775807. */
5744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5746 && LARGE_OFF_T % 2147483647 == 1)
5747 ? 1 : -1];
5749 main ()
5753 return 0;
5755 _ACEOF
5756 if ac_fn_c_try_compile "$LINENO"; then :
5757 ac_cv_sys_large_files=no; break
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #define _LARGE_FILES 1
5763 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766 since some C++ compilers masquerading as C compilers
5767 incorrectly reject 9223372036854775807. */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770 && LARGE_OFF_T % 2147483647 == 1)
5771 ? 1 : -1];
5773 main ()
5777 return 0;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 ac_cv_sys_large_files=1; break
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 ac_cv_sys_large_files=unknown
5785 break
5786 done
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5789 $as_echo "$ac_cv_sys_large_files" >&6; }
5790 case $ac_cv_sys_large_files in #(
5791 no | unknown) ;;
5793 cat >>confdefs.h <<_ACEOF
5794 #define _LARGE_FILES $ac_cv_sys_large_files
5795 _ACEOF
5797 esac
5798 rm -rf conftest*
5803 # sizeof(char) is 1 by definition.
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5809 $as_echo_n "checking size of void *... " >&6; }
5810 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5815 else
5816 if test "$ac_cv_type_void_p" = yes; then
5817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 { as_fn_set_status 77
5820 as_fn_error "cannot compute sizeof (void *)
5821 See \`config.log' for more details." "$LINENO" 5; }; }
5822 else
5823 ac_cv_sizeof_void_p=0
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5829 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5833 cat >>confdefs.h <<_ACEOF
5834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5835 _ACEOF
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5843 $as_echo_n "checking size of short... " >&6; }
5844 if test "${ac_cv_sizeof_short+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5849 else
5850 if test "$ac_cv_type_short" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status 77
5854 as_fn_error "cannot compute sizeof (short)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5856 else
5857 ac_cv_sizeof_short=0
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5863 $as_echo "$ac_cv_sizeof_short" >&6; }
5867 cat >>confdefs.h <<_ACEOF
5868 #define SIZEOF_SHORT $ac_cv_sizeof_short
5869 _ACEOF
5872 # The cast to long int works around a bug in the HP C Compiler
5873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5875 # This bug is HP SR number 8606223364.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5877 $as_echo_n "checking size of int... " >&6; }
5878 if test "${ac_cv_sizeof_int+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5883 else
5884 if test "$ac_cv_type_int" = yes; then
5885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5887 { as_fn_set_status 77
5888 as_fn_error "cannot compute sizeof (int)
5889 See \`config.log' for more details." "$LINENO" 5; }; }
5890 else
5891 ac_cv_sizeof_int=0
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5897 $as_echo "$ac_cv_sizeof_int" >&6; }
5901 cat >>confdefs.h <<_ACEOF
5902 #define SIZEOF_INT $ac_cv_sizeof_int
5903 _ACEOF
5906 # The cast to long int works around a bug in the HP C Compiler
5907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5909 # This bug is HP SR number 8606223364.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5911 $as_echo_n "checking size of long... " >&6; }
5912 if test "${ac_cv_sizeof_long+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5917 else
5918 if test "$ac_cv_type_long" = yes; then
5919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 { as_fn_set_status 77
5922 as_fn_error "cannot compute sizeof (long)
5923 See \`config.log' for more details." "$LINENO" 5; }; }
5924 else
5925 ac_cv_sizeof_long=0
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5931 $as_echo "$ac_cv_sizeof_long" >&6; }
5935 cat >>confdefs.h <<_ACEOF
5936 #define SIZEOF_LONG $ac_cv_sizeof_long
5937 _ACEOF
5940 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5941 if test "x$ac_cv_type_long_long" = x""yes; then :
5943 cat >>confdefs.h <<_ACEOF
5944 #define HAVE_LONG_LONG 1
5945 _ACEOF
5947 # The cast to long int works around a bug in the HP C Compiler
5948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5950 # This bug is HP SR number 8606223364.
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5952 $as_echo_n "checking size of long long... " >&6; }
5953 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5958 else
5959 if test "$ac_cv_type_long_long" = yes; then
5960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { as_fn_set_status 77
5963 as_fn_error "cannot compute sizeof (long long)
5964 See \`config.log' for more details." "$LINENO" 5; }; }
5965 else
5966 ac_cv_sizeof_long_long=0
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5972 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5976 cat >>confdefs.h <<_ACEOF
5977 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5978 _ACEOF
5983 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5984 if test "x$ac_cv_type___int64" = x""yes; then :
5986 cat >>confdefs.h <<_ACEOF
5987 #define HAVE___INT64 1
5988 _ACEOF
5990 # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5995 $as_echo_n "checking size of __int64... " >&6; }
5996 if test "${ac_cv_sizeof___int64+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6001 else
6002 if test "$ac_cv_type___int64" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 { as_fn_set_status 77
6006 as_fn_error "cannot compute sizeof (__int64)
6007 See \`config.log' for more details." "$LINENO" 5; }; }
6008 else
6009 ac_cv_sizeof___int64=0
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6015 $as_echo "$ac_cv_sizeof___int64" >&6; }
6019 cat >>confdefs.h <<_ACEOF
6020 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6021 _ACEOF
6026 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6027 case $ac_cv_c_int8_t in #(
6028 no|yes) ;; #(
6031 cat >>confdefs.h <<_ACEOF
6032 #define int8_t $ac_cv_c_int8_t
6033 _ACEOF
6035 esac
6037 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6038 case $ac_cv_c_int16_t in #(
6039 no|yes) ;; #(
6042 cat >>confdefs.h <<_ACEOF
6043 #define int16_t $ac_cv_c_int16_t
6044 _ACEOF
6046 esac
6048 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6049 case $ac_cv_c_int32_t in #(
6050 no|yes) ;; #(
6053 cat >>confdefs.h <<_ACEOF
6054 #define int32_t $ac_cv_c_int32_t
6055 _ACEOF
6057 esac
6059 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6060 case $ac_cv_c_int64_t in #(
6061 no|yes) ;; #(
6064 cat >>confdefs.h <<_ACEOF
6065 #define int64_t $ac_cv_c_int64_t
6066 _ACEOF
6068 esac
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6072 $as_echo_n "checking for long long int... " >&6; }
6073 if test "${ac_cv_type_long_long_int+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6079 /* For now, do not test the preprocessor; as of 2007 there are too many
6080 implementations with broken preprocessors. Perhaps this can
6081 be revisited in 2012. In the meantime, code should not expect
6082 #if to work with literals wider than 32 bits. */
6083 /* Test literals. */
6084 long long int ll = 9223372036854775807ll;
6085 long long int nll = -9223372036854775807LL;
6086 unsigned long long int ull = 18446744073709551615ULL;
6087 /* Test constant expressions. */
6088 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6089 ? 1 : -1)];
6090 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6091 ? 1 : -1)];
6092 int i = 63;
6094 main ()
6096 /* Test availability of runtime routines for shift and division. */
6097 long long int llmax = 9223372036854775807ll;
6098 unsigned long long int ullmax = 18446744073709551615ull;
6099 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6100 | (llmax / ll) | (llmax % ll)
6101 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6102 | (ullmax / ull) | (ullmax % ull));
6104 return 0;
6107 _ACEOF
6108 if ac_fn_c_try_link "$LINENO"; then :
6109 if test "$cross_compiling" = yes; then :
6110 ac_cv_type_long_long_int=yes
6111 else
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #include <limits.h>
6115 #ifndef LLONG_MAX
6116 # define HALF \
6117 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6118 # define LLONG_MAX (HALF - 1 + HALF)
6119 #endif
6121 main ()
6123 long long int n = 1;
6124 int i;
6125 for (i = 0; ; i++)
6127 long long int m = n << i;
6128 if (m >> i != n)
6129 return 1;
6130 if (LLONG_MAX / 2 < m)
6131 break;
6133 return 0;
6135 return 0;
6137 _ACEOF
6138 if ac_fn_c_try_run "$LINENO"; then :
6139 ac_cv_type_long_long_int=yes
6140 else
6141 ac_cv_type_long_long_int=no
6143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 conftest.$ac_objext conftest.beam conftest.$ac_ext
6147 else
6148 ac_cv_type_long_long_int=no
6150 rm -f core conftest.err conftest.$ac_objext \
6151 conftest$ac_exeext conftest.$ac_ext
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6154 $as_echo "$ac_cv_type_long_long_int" >&6; }
6155 if test $ac_cv_type_long_long_int = yes; then
6157 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6163 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6164 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6166 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6168 else
6169 test $ac_cv_type_long_long_int = yes \
6170 && ac_type='long long int' \
6171 || ac_type='long int'
6173 cat >>confdefs.h <<_ACEOF
6174 #define intmax_t $ac_type
6175 _ACEOF
6181 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6184 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6186 else
6187 for ac_type in 'int' 'long int' 'long long int'; do
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 $ac_includes_default
6192 main ()
6194 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6195 test_array [0] = 0
6198 return 0;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6203 cat >>confdefs.h <<_ACEOF
6204 #define intptr_t $ac_type
6205 _ACEOF
6207 ac_type=
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 test -z "$ac_type" && break
6211 done
6215 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6216 case $ac_cv_c_uint8_t in #(
6217 no|yes) ;; #(
6220 $as_echo "#define _UINT8_T 1" >>confdefs.h
6223 cat >>confdefs.h <<_ACEOF
6224 #define uint8_t $ac_cv_c_uint8_t
6225 _ACEOF
6227 esac
6229 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6230 case $ac_cv_c_uint16_t in #(
6231 no|yes) ;; #(
6235 cat >>confdefs.h <<_ACEOF
6236 #define uint16_t $ac_cv_c_uint16_t
6237 _ACEOF
6239 esac
6241 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6242 case $ac_cv_c_uint32_t in #(
6243 no|yes) ;; #(
6246 $as_echo "#define _UINT32_T 1" >>confdefs.h
6249 cat >>confdefs.h <<_ACEOF
6250 #define uint32_t $ac_cv_c_uint32_t
6251 _ACEOF
6253 esac
6255 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6256 case $ac_cv_c_uint64_t in #(
6257 no|yes) ;; #(
6260 $as_echo "#define _UINT64_T 1" >>confdefs.h
6263 cat >>confdefs.h <<_ACEOF
6264 #define uint64_t $ac_cv_c_uint64_t
6265 _ACEOF
6267 esac
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6271 $as_echo_n "checking for unsigned long long int... " >&6; }
6272 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6278 /* For now, do not test the preprocessor; as of 2007 there are too many
6279 implementations with broken preprocessors. Perhaps this can
6280 be revisited in 2012. In the meantime, code should not expect
6281 #if to work with literals wider than 32 bits. */
6282 /* Test literals. */
6283 long long int ll = 9223372036854775807ll;
6284 long long int nll = -9223372036854775807LL;
6285 unsigned long long int ull = 18446744073709551615ULL;
6286 /* Test constant expressions. */
6287 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6288 ? 1 : -1)];
6289 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6290 ? 1 : -1)];
6291 int i = 63;
6293 main ()
6295 /* Test availability of runtime routines for shift and division. */
6296 long long int llmax = 9223372036854775807ll;
6297 unsigned long long int ullmax = 18446744073709551615ull;
6298 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6299 | (llmax / ll) | (llmax % ll)
6300 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6301 | (ullmax / ull) | (ullmax % ull));
6303 return 0;
6306 _ACEOF
6307 if ac_fn_c_try_link "$LINENO"; then :
6308 ac_cv_type_unsigned_long_long_int=yes
6309 else
6310 ac_cv_type_unsigned_long_long_int=no
6312 rm -f core conftest.err conftest.$ac_objext \
6313 conftest$ac_exeext conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6316 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6317 if test $ac_cv_type_unsigned_long_long_int = yes; then
6319 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6325 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6326 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6328 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6330 else
6331 test $ac_cv_type_unsigned_long_long_int = yes \
6332 && ac_type='unsigned long long int' \
6333 || ac_type='unsigned long int'
6335 cat >>confdefs.h <<_ACEOF
6336 #define uintmax_t $ac_type
6337 _ACEOF
6343 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6344 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6346 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6348 else
6349 for ac_type in 'unsigned int' 'unsigned long int' \
6350 'unsigned long long int'; do
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 $ac_includes_default
6355 main ()
6357 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6358 test_array [0] = 0
6361 return 0;
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6366 cat >>confdefs.h <<_ACEOF
6367 #define uintptr_t $ac_type
6368 _ACEOF
6370 ac_type=
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 test -z "$ac_type" && break
6374 done
6391 # ---------------------
6392 # Warnings and checking
6393 # ---------------------
6395 # Check $CC warning features (if it's GCC).
6396 # We want to use -pedantic, but we don't want warnings about
6397 # * 'long long'
6398 # * variadic macros
6399 # * overlong strings
6400 # So, we only use -pedantic if we can disable those warnings.
6402 loose_warn=
6403 save_CFLAGS="$CFLAGS"
6404 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6405 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6408 $as_echo_n "checking whether $CC supports $option... " >&6; }
6409 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 CFLAGS="$option"
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6417 main ()
6421 return 0;
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 eval "$as_acx_Woption=yes"
6426 else
6427 eval "$as_acx_Woption=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 eval ac_res=\$$as_acx_Woption
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6436 loose_warn="$loose_warn${loose_warn:+ }$option"
6438 done
6439 CFLAGS="$save_CFLAGS"
6441 c_loose_warn=
6442 save_CFLAGS="$CFLAGS"
6443 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6444 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6447 $as_echo_n "checking whether $CC supports $option... " >&6; }
6448 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 CFLAGS="$option"
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6456 main ()
6460 return 0;
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 eval "$as_acx_Woption=yes"
6465 else
6466 eval "$as_acx_Woption=no"
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 eval ac_res=\$$as_acx_Woption
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6473 $as_echo "$ac_res" >&6; }
6474 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6475 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6477 done
6478 CFLAGS="$save_CFLAGS"
6480 strict_warn=
6481 save_CFLAGS="$CFLAGS"
6482 for option in -Wmissing-format-attribute; do
6483 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 CFLAGS="$option"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6495 main ()
6499 return 0;
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503 eval "$as_acx_Woption=yes"
6504 else
6505 eval "$as_acx_Woption=no"
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 eval ac_res=\$$as_acx_Woption
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514 strict_warn="$strict_warn${strict_warn:+ }$option"
6516 done
6517 CFLAGS="$save_CFLAGS"
6519 c_strict_warn=
6520 save_CFLAGS="$CFLAGS"
6521 for option in -Wold-style-definition -Wc++-compat; do
6522 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6525 $as_echo_n "checking whether $CC supports $option... " >&6; }
6526 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 CFLAGS="$option"
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6534 main ()
6538 return 0;
6540 _ACEOF
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542 eval "$as_acx_Woption=yes"
6543 else
6544 eval "$as_acx_Woption=no"
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 eval ac_res=\$$as_acx_Woption
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6553 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6555 done
6556 CFLAGS="$save_CFLAGS"
6558 if test "$GCC" = yes; then :
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6560 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6561 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 save_CFLAGS="$CFLAGS"
6565 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6570 main ()
6574 return 0;
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"; then :
6578 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6579 else
6580 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 CFLAGS="$save_CFLAGS"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6586 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6587 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6588 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6593 # Check whether --enable-werror-always was given.
6594 if test "${enable_werror_always+set}" = set; then :
6595 enableval=$enable_werror_always;
6596 else
6597 enable_werror_always=no
6600 if test $enable_werror_always = yes; then :
6601 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6606 # The above macros do nothing if the compiler is not GCC. However, the
6607 # Makefile has more goo to add other flags, so these variables are used
6608 # to enable warnings only for GCC.
6609 warn_cflags=
6610 warn_cxxflags=
6611 if test "x$GCC" = "xyes"; then
6612 warn_cflags='$(GCC_WARN_CFLAGS)'
6613 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6618 # Enable expensive internal checks
6619 is_release=
6620 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6621 is_release=yes
6624 # Check whether --enable-checking was given.
6625 if test "${enable_checking+set}" = set; then :
6626 enableval=$enable_checking; ac_checking_flags="${enableval}"
6627 else
6629 # Determine the default checks.
6630 if test x$is_release = x ; then
6631 ac_checking_flags=yes
6632 else
6633 ac_checking_flags=release
6637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6638 for check in release $ac_checking_flags
6640 case $check in
6641 # these set all the flags to specific states
6642 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6643 ac_fold_checking= ; ac_gc_checking=1 ;
6644 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6645 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6646 ac_tree_checking=1 ; ac_valgrind_checking= ;
6647 ac_types_checking=1 ;;
6648 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6649 ac_fold_checking= ; ac_gc_checking= ;
6650 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6651 ac_rtlflag_checking= ; ac_runtime_checking= ;
6652 ac_tree_checking= ; ac_valgrind_checking= ;
6653 ac_types_checking= ;;
6654 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6655 ac_fold_checking=1 ; ac_gc_checking=1 ;
6656 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6657 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6658 ac_tree_checking=1 ; ac_valgrind_checking= ;
6659 ac_types_checking=1 ;;
6660 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6661 ac_fold_checking= ; ac_gc_checking= ;
6662 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6663 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6664 ac_tree_checking= ; ac_valgrind_checking= ;
6665 ac_types_checking= ;;
6666 # these enable particular checks
6667 assert) ac_assert_checking=1 ;;
6668 df) ac_df_checking=1 ;;
6669 fold) ac_fold_checking=1 ;;
6670 gc) ac_gc_checking=1 ;;
6671 gcac) ac_gc_always_collect=1 ;;
6672 gimple) ac_gimple_checking=1 ;;
6673 misc) ac_checking=1 ;;
6674 rtl) ac_rtl_checking=1 ;;
6675 rtlflag) ac_rtlflag_checking=1 ;;
6676 runtime) ac_runtime_checking=1 ;;
6677 tree) ac_tree_checking=1 ;;
6678 types) ac_types_checking=1 ;;
6679 valgrind) ac_valgrind_checking=1 ;;
6680 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6681 esac
6682 done
6683 IFS="$ac_save_IFS"
6685 nocommon_flag=""
6686 if test x$ac_checking != x ; then
6688 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6690 nocommon_flag=-fno-common
6693 if test x$ac_df_checking != x ; then
6695 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6698 if test x$ac_assert_checking != x ; then
6700 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6703 if test x$ac_gimple_checking != x ; then
6705 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6709 if test x$ac_runtime_checking != x ; then
6711 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6714 if test x$ac_tree_checking != x ; then
6716 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6718 TREEBROWSER=tree-browser.o
6720 if test x$ac_types_checking != x ; then
6722 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6726 if test x$ac_rtl_checking != x ; then
6728 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6731 if test x$ac_rtlflag_checking != x ; then
6733 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6736 if test x$ac_gc_checking != x ; then
6738 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6741 if test x$ac_gc_always_collect != x ; then
6743 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6746 if test x$ac_fold_checking != x ; then
6748 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6751 valgrind_path_defines=
6752 valgrind_command=
6754 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6755 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6756 have_valgrind_h=yes
6757 else
6758 have_valgrind_h=no
6763 if test x$ac_valgrind_checking != x ; then
6764 # It is certainly possible that there's valgrind but no valgrind.h.
6765 # GCC relies on making annotations so we must have both.
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6767 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <valgrind/memcheck.h>
6771 #ifndef VALGRIND_DISCARD
6772 #error VALGRIND_DISCARD not defined
6773 #endif
6774 _ACEOF
6775 if ac_fn_c_try_cpp "$LINENO"; then :
6776 gcc_cv_header_valgrind_memcheck_h=yes
6777 else
6778 gcc_cv_header_valgrind_memcheck_h=no
6780 rm -f conftest.err conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6782 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6784 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <memcheck.h>
6788 #ifndef VALGRIND_DISCARD
6789 #error VALGRIND_DISCARD not defined
6790 #endif
6791 _ACEOF
6792 if ac_fn_c_try_cpp "$LINENO"; then :
6793 gcc_cv_header_memcheck_h=yes
6794 else
6795 gcc_cv_header_memcheck_h=no
6797 rm -f conftest.err conftest.$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6799 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6801 # Prepare PATH_SEPARATOR.
6802 # The user is always right.
6803 if test "${PATH_SEPARATOR+set}" != set; then
6804 echo "#! /bin/sh" >conf$$.sh
6805 echo "exit 0" >>conf$$.sh
6806 chmod +x conf$$.sh
6807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6808 PATH_SEPARATOR=';'
6809 else
6810 PATH_SEPARATOR=:
6812 rm -f conf$$.sh
6815 # Find out how to test for executable files. Don't use a zero-byte file,
6816 # as systems may use methods other than mode bits to determine executability.
6817 cat >conf$$.file <<_ASEOF
6818 #! /bin/sh
6819 exit 0
6820 _ASEOF
6821 chmod +x conf$$.file
6822 if test -x conf$$.file >/dev/null 2>&1; then
6823 ac_executable_p="test -x"
6824 else
6825 ac_executable_p="test -f"
6827 rm -f conf$$.file
6829 # Extract the first word of "valgrind", so it can be a program name with args.
6830 set dummy valgrind; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 case "$valgrind_path" in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6842 for ac_dir in $PATH; do
6843 IFS="$ac_save_IFS"
6844 test -z "$ac_dir" && ac_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6847 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6848 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6849 break 2
6852 done
6853 done
6854 IFS="$ac_save_IFS"
6856 esac
6858 valgrind_path="$ac_cv_path_valgrind_path"
6859 if test -n "$valgrind_path"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6861 $as_echo "$valgrind_path" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$valgrind_path" = "x" \
6868 || (test $have_valgrind_h = no \
6869 && test $gcc_cv_header_memcheck_h = no \
6870 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6871 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6873 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command="$valgrind_path -q"
6876 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6878 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6880 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6883 if test $gcc_cv_header_memcheck_h = yes; then
6885 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6892 # Enable code coverage collection
6893 # Check whether --enable-coverage was given.
6894 if test "${enable_coverage+set}" = set; then :
6895 enableval=$enable_coverage; case "${enableval}" in
6896 yes|noopt)
6897 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6899 opt)
6900 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6903 # a.k.a. --disable-coverage
6904 coverage_flags=""
6907 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6909 esac
6910 else
6911 coverage_flags=""
6916 # Check whether --enable-gather-detailed-mem-stats was given.
6917 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6918 enableval=$enable_gather_detailed_mem_stats;
6919 else
6920 enable_gather_detailed_mem_stats=no
6923 if test x$enable_gather_detailed_mem_stats = xyes ; then
6925 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6929 # -------------------------------
6930 # Miscenalleous configure options
6931 # -------------------------------
6933 # See if we are building gcc with C++.
6934 # Check whether --enable-build-with-cxx was given.
6935 if test "${enable_build_with_cxx+set}" = set; then :
6936 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6937 else
6938 ENABLE_BUILD_WITH_CXX=no
6942 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6944 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6948 # With stabs
6950 # Check whether --with-stabs was given.
6951 if test "${with_stabs+set}" = set; then :
6952 withval=$with_stabs; stabs="$with_stabs"
6953 else
6954 stabs=no
6958 # Determine whether or not multilibs are enabled.
6959 # Check whether --enable-multilib was given.
6960 if test "${enable_multilib+set}" = set; then :
6961 enableval=$enable_multilib;
6962 else
6963 enable_multilib=yes
6968 # Enable __cxa_atexit for C++.
6969 # Check whether --enable-__cxa_atexit was given.
6970 if test "${enable___cxa_atexit+set}" = set; then :
6971 enableval=$enable___cxa_atexit;
6975 # Enable C extension for decimal float if target supports it.
6977 # Check whether --enable-decimal-float was given.
6978 if test "${enable_decimal_float+set}" = set; then :
6979 enableval=$enable_decimal_float;
6980 case $enable_decimal_float in
6981 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6982 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6983 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6984 esac
6986 else
6988 case $target in
6989 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6990 i?86*-*-mingw* | x86_64*-*-mingw* | \
6991 i?86*-*-cygwin*)
6992 enable_decimal_float=yes
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6996 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6997 enable_decimal_float=no
6999 esac
7004 # x86's use BID format instead of DPD
7005 case x$enable_decimal_float in
7006 xyes)
7007 case $target in
7008 i?86*-*-* | x86_64*-*-*)
7009 enable_decimal_float=bid
7012 enable_decimal_float=dpd
7014 esac
7015 default_decimal_float=$enable_decimal_float
7017 xno)
7018 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7019 # dependency on libdecnumber.
7020 default_decimal_float=dpd
7022 esac
7027 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7029 cat >>confdefs.h <<_ACEOF
7030 #define ENABLE_DECIMAL_FLOAT $dfp
7031 _ACEOF
7034 # Use default_decimal_float for dependency.
7035 enable_decimal_float=$default_decimal_float
7037 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7039 cat >>confdefs.h <<_ACEOF
7040 #define ENABLE_DECIMAL_BID_FORMAT $bid
7041 _ACEOF
7044 # Enable C extension for fixed-point arithmetic.
7045 # Check whether --enable-fixed-point was given.
7046 if test "${enable_fixed_point+set}" = set; then :
7047 enableval=$enable_fixed_point;
7048 else
7050 case $target in
7051 arm*)
7052 enable_fixed_point=yes
7055 mips*-*-*)
7056 case $host in
7057 mips*-sgi-irix*)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7059 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7060 enable_fixed_point=no
7063 enable_fixed_point=yes
7065 esac
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7069 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7070 enable_fixed_point=no
7072 esac
7078 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7080 cat >>confdefs.h <<_ACEOF
7081 #define ENABLE_FIXED_POINT $fixedpoint
7082 _ACEOF
7085 # Enable threads
7086 # Pass with no value to take the default
7087 # Pass with a value to specify a thread package
7088 # Check whether --enable-threads was given.
7089 if test "${enable_threads+set}" = set; then :
7090 enableval=$enable_threads;
7091 else
7092 enable_threads=''
7096 # Check whether --enable-tls was given.
7097 if test "${enable_tls+set}" = set; then :
7098 enableval=$enable_tls;
7099 case $enable_tls in
7100 yes | no) ;;
7101 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7102 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7103 esac
7105 else
7106 enable_tls=''
7110 # Check whether --enable-objc-gc was given.
7111 if test "${enable_objc_gc+set}" = set; then :
7112 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7113 objc_boehm_gc=''
7114 else
7115 objc_boehm_gc=1
7117 else
7118 objc_boehm_gc=''
7123 # Check whether --with-dwarf2 was given.
7124 if test "${with_dwarf2+set}" = set; then :
7125 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7126 else
7127 dwarf2=no
7131 # Check whether --enable-shared was given.
7132 if test "${enable_shared+set}" = set; then :
7133 enableval=$enable_shared;
7134 case $enable_shared in
7135 yes | no) ;;
7137 enable_shared=no
7138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7139 for pkg in $enableval; do
7140 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7141 enable_shared=yes
7143 done
7144 IFS="$ac_save_ifs"
7146 esac
7148 else
7149 enable_shared=yes
7155 # Check whether --with-build-sysroot was given.
7156 if test "${with_build_sysroot+set}" = set; then :
7157 withval=$with_build_sysroot; if test x"$withval" != x ; then
7158 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7160 else
7161 SYSROOT_CFLAGS_FOR_TARGET=
7167 # Check whether --with-sysroot was given.
7168 if test "${with_sysroot+set}" = set; then :
7169 withval=$with_sysroot;
7170 case ${with_sysroot} in
7171 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7172 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7173 esac
7175 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7176 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7178 if test "x$prefix" = xNONE; then
7179 test_prefix=/usr/local
7180 else
7181 test_prefix=$prefix
7183 if test "x$exec_prefix" = xNONE; then
7184 test_exec_prefix=$test_prefix
7185 else
7186 test_exec_prefix=$exec_prefix
7188 case ${TARGET_SYSTEM_ROOT} in
7189 "${test_prefix}"|"${test_prefix}/"*|\
7190 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7191 '${prefix}'|'${prefix}/'*|\
7192 '${exec_prefix}'|'${exec_prefix}/'*)
7193 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7194 TARGET_SYSTEM_ROOT_DEFINE="$t"
7196 esac
7198 else
7200 TARGET_SYSTEM_ROOT=
7201 TARGET_SYSTEM_ROOT_DEFINE=
7202 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7211 # Check whether --with-specs was given.
7212 if test "${with_specs+set}" = set; then :
7213 withval=$with_specs; CONFIGURE_SPECS=$withval
7214 else
7215 CONFIGURE_SPECS=
7223 # Check whether --with-pkgversion was given.
7224 if test "${with_pkgversion+set}" = set; then :
7225 withval=$with_pkgversion; case "$withval" in
7226 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7227 no) PKGVERSION= ;;
7228 *) PKGVERSION="($withval) " ;;
7229 esac
7230 else
7231 PKGVERSION="(GCC) "
7239 # Check whether --with-bugurl was given.
7240 if test "${with_bugurl+set}" = set; then :
7241 withval=$with_bugurl; case "$withval" in
7242 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7243 no) BUGURL=
7245 *) BUGURL="$withval"
7247 esac
7248 else
7249 BUGURL="http://gcc.gnu.org/bugs.html"
7253 case ${BUGURL} in
7255 REPORT_BUGS_TO=
7256 REPORT_BUGS_TEXI=
7259 REPORT_BUGS_TO="<$BUGURL>"
7260 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7262 esac;
7267 # Sanity check enable_languages in case someone does not run the toplevel
7268 # configure # script.
7269 # Check whether --enable-languages was given.
7270 if test "${enable_languages+set}" = set; then :
7271 enableval=$enable_languages; case ,${enable_languages}, in
7272 ,,|,yes,)
7273 # go safe -- we cannot be much sure without the toplevel
7274 # configure's
7275 # analysis of which target libs are present and usable
7276 enable_languages=c
7278 *,all,*)
7279 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7281 *,c,*)
7284 enable_languages=c,${enable_languages}
7286 esac
7287 else
7288 enable_languages=c
7293 # Check whether --with-multilib-list was given.
7294 if test "${with_multilib_list+set}" = set; then :
7295 withval=$with_multilib_list; :
7296 else
7297 with_multilib_list=default
7301 # -------------------------
7302 # Checks for other programs
7303 # -------------------------
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7307 set x ${MAKE-make}
7308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7309 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat >conftest.make <<\_ACEOF
7313 SHELL = /bin/sh
7314 all:
7315 @echo '@@@%%%=$(MAKE)=@@@%%%'
7316 _ACEOF
7317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7319 *@@@%%%=?*=@@@%%%*)
7320 eval ac_cv_prog_make_${ac_make}_set=yes;;
7322 eval ac_cv_prog_make_${ac_make}_set=no;;
7323 esac
7324 rm -f conftest.make
7326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7328 $as_echo "yes" >&6; }
7329 SET_MAKE=
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 SET_MAKE="MAKE=${MAKE-make}"
7337 # Find some useful tools
7338 for ac_prog in gawk mawk nawk awk
7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
7341 set dummy $ac_prog; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_AWK+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$AWK"; then
7348 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_AWK="$ac_prog"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7363 IFS=$as_save_IFS
7367 AWK=$ac_cv_prog_AWK
7368 if test -n "$AWK"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7370 $as_echo "$AWK" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7377 test -n "$AWK" && break
7378 done
7380 # We need awk to create options.c and options.h.
7381 # Bail out if it's missing.
7382 case ${AWK} in
7383 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7384 esac
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7387 $as_echo_n "checking whether ln -s works... " >&6; }
7388 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 rm -f conftestdata_t
7392 echo >conftestdata_f
7393 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7394 then
7395 gcc_cv_prog_LN_S="ln -s"
7396 else
7397 if ln conftestdata_f conftestdata_t 2>/dev/null
7398 then
7399 gcc_cv_prog_LN_S=ln
7400 else
7401 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7402 then
7403 gcc_cv_prog_LN_S="cp -p"
7404 else
7405 gcc_cv_prog_LN_S=cp
7409 rm -f conftestdata_f conftestdata_t
7412 LN_S="$gcc_cv_prog_LN_S"
7413 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7415 $as_echo "yes" >&6; }
7416 else
7417 if test "$gcc_cv_prog_LN_S" = "ln"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7419 $as_echo "no, using ln" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7422 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7427 $as_echo_n "checking whether ln works... " >&6; }
7428 if test "${acx_cv_prog_LN+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 rm -f conftestdata_t
7432 echo >conftestdata_f
7433 if ln conftestdata_f conftestdata_t 2>/dev/null
7434 then
7435 acx_cv_prog_LN=ln
7436 else
7437 acx_cv_prog_LN=no
7439 rm -f conftestdata_f conftestdata_t
7442 if test $acx_cv_prog_LN = no; then
7443 LN="$LN_S"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7445 $as_echo "no, using $LN" >&6; }
7446 else
7447 LN="$acx_cv_prog_LN"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 if test -n "$RANLIB"; then
7461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7474 done
7475 done
7476 IFS=$as_save_IFS
7480 RANLIB=$ac_cv_prog_RANLIB
7481 if test -n "$RANLIB"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7483 $as_echo "$RANLIB" >&6; }
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7491 if test -z "$ac_cv_prog_RANLIB"; then
7492 ac_ct_RANLIB=$RANLIB
7493 # Extract the first word of "ranlib", so it can be a program name with args.
7494 set dummy ranlib; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$ac_ct_RANLIB"; then
7501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_ac_ct_RANLIB="ranlib"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7514 done
7515 done
7516 IFS=$as_save_IFS
7520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7521 if test -n "$ac_ct_RANLIB"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7523 $as_echo "$ac_ct_RANLIB" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7529 if test "x$ac_ct_RANLIB" = x; then
7530 RANLIB=":"
7531 else
7532 case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7537 esac
7538 RANLIB=$ac_ct_RANLIB
7540 else
7541 RANLIB="$ac_cv_prog_RANLIB"
7544 case "${host}" in
7545 *-*-darwin*)
7546 # By default, the Darwin ranlib will not treat common symbols as
7547 # definitions when building the archive table of contents. Other
7548 # ranlibs do that; pass an option to the Darwin ranlib that makes
7549 # it behave similarly.
7550 ranlib_flags="-c"
7553 ranlib_flags=""
7554 esac
7557 # Find a good install program. We prefer a C program (faster),
7558 # so one script is as good as another. But avoid the broken or
7559 # incompatible versions:
7560 # SysV /etc/install, /usr/sbin/install
7561 # SunOS /usr/etc/install
7562 # IRIX /sbin/install
7563 # AIX /bin/install
7564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7566 # ./install, which can be erroneously created by make from ./install.sh.
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7568 $as_echo_n "checking for a BSD compatible install... " >&6; }
7569 if test -z "$INSTALL"; then
7570 if test "${ac_cv_path_install+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7574 for ac_dir in $PATH; do
7575 # Account for people who put trailing slashes in PATH elements.
7576 case "$ac_dir/" in
7577 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7579 # OSF1 and SCO ODT 3.0 have their own names for install.
7580 for ac_prog in ginstall scoinst install; do
7581 if test -f $ac_dir/$ac_prog; then
7582 if test $ac_prog = install &&
7583 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7584 # AIX install. It has an incompatible calling convention.
7585 # OSF/1 installbsd also uses dspmsg, but is usable.
7587 else
7588 ac_cv_path_install="$ac_dir/$ac_prog -c"
7589 break 2
7592 done
7594 esac
7595 done
7596 IFS="$ac_save_IFS"
7599 if test "${ac_cv_path_install+set}" = set; then
7600 INSTALL="$ac_cv_path_install"
7601 else
7602 # As a last resort, use the slow shell script. We don't cache a
7603 # path for INSTALL within a source directory, because that will
7604 # break other packages using the cache if that directory is
7605 # removed, or if the path is relative.
7606 INSTALL="$ac_install_sh"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7610 $as_echo "$INSTALL" >&6; }
7612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7613 # It thinks the first close brace ends the variable substitution.
7614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7619 # See if cmp has --ignore-initial.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7621 $as_echo_n "checking for cmp's capabilities... " >&6; }
7622 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 echo abfoo >t1
7626 echo cdfoo >t2
7627 gcc_cv_prog_cmp_skip=slowcompare
7628 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7629 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7631 else
7632 gcc_cv_prog_cmp_skip=gnucompare
7635 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7636 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7637 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7639 else
7640 gcc_cv_prog_cmp_skip=fastcompare
7644 rm t1 t2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7648 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7649 make_compare_target=$gcc_cv_prog_cmp_skip
7653 # See if we have the mktemp command.
7654 # Extract the first word of "mktemp", so it can be a program name with args.
7655 set dummy mktemp; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$have_mktemp_command"; then
7662 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_have_mktemp_command="yes"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7675 done
7676 done
7677 IFS=$as_save_IFS
7679 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7682 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7683 if test -n "$have_mktemp_command"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7685 $as_echo "$have_mktemp_command" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 # See if makeinfo has been installed and is modern enough
7694 # that we can use it.
7696 # Extract the first word of "makeinfo", so it can be a program name with args.
7697 set dummy makeinfo; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$MAKEINFO"; then
7704 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_MAKEINFO="makeinfo"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7723 MAKEINFO=$ac_cv_prog_MAKEINFO
7724 if test -n "$MAKEINFO"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7726 $as_echo "$MAKEINFO" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7733 if test -n "$MAKEINFO"; then
7734 # Found it, now check the version.
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7736 $as_echo_n "checking for modern makeinfo... " >&6; }
7737 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7741 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7743 case $ac_prog_version in
7744 '') gcc_cv_prog_makeinfo_modern=no;;
7745 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7746 *) gcc_cv_prog_makeinfo_modern=no;;
7747 esac
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7751 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7752 else
7753 gcc_cv_prog_makeinfo_modern=no
7755 if test $gcc_cv_prog_makeinfo_modern = no; then
7756 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7759 if test $gcc_cv_prog_makeinfo_modern = no; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7761 *** Makeinfo is missing or too old.
7762 *** Info documentation will not be built." >&5
7763 $as_echo "$as_me: WARNING:
7764 *** Makeinfo is missing or too old.
7765 *** Info documentation will not be built." >&2;}
7766 BUILD_INFO=
7767 else
7768 BUILD_INFO=info
7772 # Is pod2man recent enough to regenerate manpages?
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7774 $as_echo_n "checking for recent Pod::Man... " >&6; }
7775 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7777 $as_echo "yes" >&6; }
7778 GENERATED_MANPAGES=generated-manpages
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 GENERATED_MANPAGES=
7786 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7788 # How about lex?
7789 for ac_prog in flex
7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
7792 set dummy $ac_prog; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_FLEX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$FLEX"; then
7799 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_FLEX="$ac_prog"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 FLEX=$ac_cv_prog_FLEX
7819 if test -n "$FLEX"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821 $as_echo "$FLEX" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 test -n "$FLEX" && break
7829 done
7830 test -n "$FLEX" || FLEX="$MISSING flex"
7833 # Bison?
7834 for ac_prog in bison
7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_BISON+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$BISON"; then
7844 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_BISON="$ac_prog"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7857 done
7858 done
7859 IFS=$as_save_IFS
7863 BISON=$ac_cv_prog_BISON
7864 if test -n "$BISON"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7866 $as_echo "$BISON" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7873 test -n "$BISON" && break
7874 done
7875 test -n "$BISON" || BISON="$MISSING bison"
7878 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7879 # check for build == host before using them.
7881 # NM
7882 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7883 && test -d ../binutils ; then
7884 NM='${objdir}/../binutils/nm-new'
7885 else
7886 # Extract the first word of "nm", so it can be a program name with args.
7887 set dummy nm; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_NM+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$NM"; then
7894 ac_cv_prog_NM="$NM" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_NM="nm"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7911 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7914 NM=$ac_cv_prog_NM
7915 if test -n "$NM"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7917 $as_echo "$NM" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7926 # AR
7927 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7928 && test -d ../binutils ; then
7929 AR='${objdir}/../binutils/ar'
7930 else
7931 # Extract the first word of "ar", so it can be a program name with args.
7932 set dummy ar; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_AR+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$AR"; then
7939 ac_cv_prog_AR="$AR" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_AR="ar"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7952 done
7953 done
7954 IFS=$as_save_IFS
7956 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7959 AR=$ac_cv_prog_AR
7960 if test -n "$AR"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7962 $as_echo "$AR" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7972 # --------------------
7973 # Checks for C headers
7974 # --------------------
7976 # Need to reject headers which give warnings, so that the -Werror bootstrap
7977 # works later. *sigh* This needs to come before all header checks.
7979 ac_c_preproc_warn_flag=yes
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7982 $as_echo_n "checking for ANSI C header files... " >&6; }
7983 if test "${ac_cv_header_stdc+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <stdlib.h>
7989 #include <stdarg.h>
7990 #include <string.h>
7991 #include <float.h>
7994 main ()
7998 return 0;
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 ac_cv_header_stdc=yes
8003 else
8004 ac_cv_header_stdc=no
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 if test $ac_cv_header_stdc = yes; then
8009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #include <string.h>
8014 _ACEOF
8015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8016 $EGREP "memchr" >/dev/null 2>&1; then :
8018 else
8019 ac_cv_header_stdc=no
8021 rm -f conftest*
8025 if test $ac_cv_header_stdc = yes; then
8026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #include <stdlib.h>
8031 _ACEOF
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "free" >/dev/null 2>&1; then :
8035 else
8036 ac_cv_header_stdc=no
8038 rm -f conftest*
8042 if test $ac_cv_header_stdc = yes; then
8043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8044 if test "$cross_compiling" = yes; then :
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 #include <ctype.h>
8050 #include <stdlib.h>
8051 #if ((' ' & 0x0FF) == 0x020)
8052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8054 #else
8055 # define ISLOWER(c) \
8056 (('a' <= (c) && (c) <= 'i') \
8057 || ('j' <= (c) && (c) <= 'r') \
8058 || ('s' <= (c) && (c) <= 'z'))
8059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8060 #endif
8062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8064 main ()
8066 int i;
8067 for (i = 0; i < 256; i++)
8068 if (XOR (islower (i), ISLOWER (i))
8069 || toupper (i) != TOUPPER (i))
8070 return 2;
8071 return 0;
8073 _ACEOF
8074 if ac_fn_c_try_run "$LINENO"; then :
8076 else
8077 ac_cv_header_stdc=no
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8080 conftest.$ac_objext conftest.beam conftest.$ac_ext
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8086 $as_echo "$ac_cv_header_stdc" >&6; }
8087 if test $ac_cv_header_stdc = yes; then
8089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8094 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8095 if test "${ac_cv_header_time+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 #include <sys/types.h>
8101 #include <sys/time.h>
8102 #include <time.h>
8105 main ()
8107 if ((struct tm *) 0)
8108 return 0;
8110 return 0;
8112 _ACEOF
8113 if ac_fn_c_try_compile "$LINENO"; then :
8114 ac_cv_header_time=yes
8115 else
8116 ac_cv_header_time=no
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8121 $as_echo "$ac_cv_header_time" >&6; }
8122 if test $ac_cv_header_time = yes; then
8124 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8129 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8130 if test "${gcc_cv_header_string+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 #include <string.h>
8136 #include <strings.h>
8138 main ()
8142 return 0;
8144 _ACEOF
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146 gcc_cv_header_string=yes
8147 else
8148 gcc_cv_header_string=no
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8153 $as_echo "$gcc_cv_header_string" >&6; }
8154 if test $gcc_cv_header_string = yes; then
8156 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8161 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8162 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <sys/types.h>
8168 #include <sys/wait.h>
8169 #ifndef WEXITSTATUS
8170 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8171 #endif
8172 #ifndef WIFEXITED
8173 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8174 #endif
8177 main ()
8179 int s;
8180 wait (&s);
8181 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 ac_cv_header_sys_wait_h=yes
8188 else
8189 ac_cv_header_sys_wait_h=no
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8194 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8195 if test $ac_cv_header_sys_wait_h = yes; then
8197 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8201 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8202 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8203 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8204 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8205 do :
8206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8207 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8208 eval as_val=\$$as_ac_Header
8209 if test "x$as_val" = x""yes; then :
8210 cat >>confdefs.h <<_ACEOF
8211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212 _ACEOF
8215 done
8218 # Check for thread headers.
8219 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8220 if test "x$ac_cv_header_thread_h" = x""yes; then :
8221 have_thread_h=yes
8222 else
8223 have_thread_h=
8226 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8227 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8228 have_pthread_h=yes
8229 else
8230 have_pthread_h=
8234 # These tests can't be done till we know if we have limits.h.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8236 $as_echo_n "checking for CHAR_BIT... " >&6; }
8237 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #ifdef HAVE_LIMITS_H
8243 #include <limits.h>
8244 #endif
8245 #ifdef CHAR_BIT
8246 found
8247 #endif
8248 _ACEOF
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250 $EGREP "found" >/dev/null 2>&1; then :
8251 gcc_cv_decl_char_bit=yes
8252 else
8253 gcc_cv_decl_char_bit=no
8255 rm -f conftest*
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8260 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8261 if test $gcc_cv_decl_char_bit = no; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8263 $as_echo_n "checking number of bits in a byte... " >&6; }
8264 if test "${gcc_cv_c_nbby+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8268 gcc_cv_c_nbby=
8269 while test $i -lt 65; do
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8274 main ()
8276 switch(0) {
8277 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8281 return 0;
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285 gcc_cv_c_nbby=$i; break
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 i=`expr $i + 1`
8289 done
8290 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8294 $as_echo "$gcc_cv_c_nbby" >&6; }
8295 if test $gcc_cv_c_nbby = failed; then
8296 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8297 else
8299 cat >>confdefs.h <<_ACEOF
8300 #define CHAR_BIT $gcc_cv_c_nbby
8301 _ACEOF
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8307 if test "${ac_cv_c_bigendian+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 ac_cv_c_bigendian=unknown
8311 # See if we're dealing with a universal compiler.
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 #ifndef __APPLE_CC__
8315 not a universal capable compiler
8316 #endif
8317 typedef int dummy;
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8322 # Check for potential -arch flags. It is not universal unless
8323 # there are at least two -arch flags with different values.
8324 ac_arch=
8325 ac_prev=
8326 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8327 if test -n "$ac_prev"; then
8328 case $ac_word in
8329 i?86 | x86_64 | ppc | ppc64)
8330 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8331 ac_arch=$ac_word
8332 else
8333 ac_cv_c_bigendian=universal
8334 break
8337 esac
8338 ac_prev=
8339 elif test "x$ac_word" = "x-arch"; then
8340 ac_prev=arch
8342 done
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 if test $ac_cv_c_bigendian = unknown; then
8346 # See if sys/param.h defines the BYTE_ORDER macro.
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 #include <sys/types.h>
8350 #include <sys/param.h>
8353 main ()
8355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8357 && LITTLE_ENDIAN)
8358 bogus endian macros
8359 #endif
8362 return 0;
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366 # It does; now see whether it defined to BIG_ENDIAN or not.
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 #include <sys/types.h>
8370 #include <sys/param.h>
8373 main ()
8375 #if BYTE_ORDER != BIG_ENDIAN
8376 not big endian
8377 #endif
8380 return 0;
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384 ac_cv_c_bigendian=yes
8385 else
8386 ac_cv_c_bigendian=no
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 if test $ac_cv_c_bigendian = unknown; then
8393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <limits.h>
8399 main ()
8401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8402 bogus endian macros
8403 #endif
8406 return 0;
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410 # It does; now see whether it defined to _BIG_ENDIAN or not.
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <limits.h>
8416 main ()
8418 #ifndef _BIG_ENDIAN
8419 not big endian
8420 #endif
8423 return 0;
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 ac_cv_c_bigendian=yes
8428 else
8429 ac_cv_c_bigendian=no
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 if test $ac_cv_c_bigendian = unknown; then
8436 # Compile a test program.
8437 if test "$cross_compiling" = yes; then :
8438 # Try to guess by grepping values from an object file.
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 short int ascii_mm[] =
8442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8443 short int ascii_ii[] =
8444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8445 int use_ascii (int i) {
8446 return ascii_mm[i] + ascii_ii[i];
8448 short int ebcdic_ii[] =
8449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8450 short int ebcdic_mm[] =
8451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8452 int use_ebcdic (int i) {
8453 return ebcdic_mm[i] + ebcdic_ii[i];
8455 extern int foo;
8458 main ()
8460 return use_ascii (foo) == use_ebcdic (foo);
8462 return 0;
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8467 ac_cv_c_bigendian=yes
8469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8470 if test "$ac_cv_c_bigendian" = unknown; then
8471 ac_cv_c_bigendian=no
8472 else
8473 # finding both strings is unlikely to happen, but who knows?
8474 ac_cv_c_bigendian=unknown
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 else
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 $ac_includes_default
8484 main ()
8487 /* Are we little or big endian? From Harbison&Steele. */
8488 union
8490 long int l;
8491 char c[sizeof (long int)];
8492 } u;
8493 u.l = 1;
8494 return u.c[sizeof (long int) - 1] == 1;
8497 return 0;
8499 _ACEOF
8500 if ac_fn_c_try_run "$LINENO"; then :
8501 ac_cv_c_bigendian=no
8502 else
8503 ac_cv_c_bigendian=yes
8505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8506 conftest.$ac_objext conftest.beam conftest.$ac_ext
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8512 $as_echo "$ac_cv_c_bigendian" >&6; }
8513 case $ac_cv_c_bigendian in #(
8514 yes)
8515 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8516 ;; #(
8518 ;; #(
8519 universal)
8521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8523 ;; #(
8525 as_fn_error "unknown endianness
8526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8527 esac
8530 # ----------------------
8531 # Checks for C++ headers
8532 # ----------------------
8534 ac_ext=cpp
8535 ac_cpp='$CXXCPP $CPPFLAGS'
8536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8540 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8541 if test -z "$CXXCPP"; then
8542 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 # Double quotes because CXXCPP needs to be expanded
8546 for CXXCPP in "$CXX -E" "/lib/cpp"
8548 ac_preproc_ok=false
8549 for ac_cxx_preproc_warn_flag in '' yes
8551 # Use a header file that comes with gcc, so configuring glibc
8552 # with a fresh cross-compiler works.
8553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8554 # <limits.h> exists even on freestanding compilers.
8555 # On the NeXT, cc -E runs the code through the compiler's parser,
8556 # not just through cpp. "Syntax error" is here to catch this case.
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #ifdef __STDC__
8560 # include <limits.h>
8561 #else
8562 # include <assert.h>
8563 #endif
8564 Syntax error
8565 _ACEOF
8566 if ac_fn_cxx_try_cpp "$LINENO"; then :
8568 else
8569 # Broken: fails on valid input.
8570 continue
8572 rm -f conftest.err conftest.$ac_ext
8574 # OK, works on sane cases. Now check whether nonexistent headers
8575 # can be detected and how.
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 #include <ac_nonexistent.h>
8579 _ACEOF
8580 if ac_fn_cxx_try_cpp "$LINENO"; then :
8581 # Broken: success on invalid input.
8582 continue
8583 else
8584 # Passes both tests.
8585 ac_preproc_ok=:
8586 break
8588 rm -f conftest.err conftest.$ac_ext
8590 done
8591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8592 rm -f conftest.err conftest.$ac_ext
8593 if $ac_preproc_ok; then :
8594 break
8597 done
8598 ac_cv_prog_CXXCPP=$CXXCPP
8601 CXXCPP=$ac_cv_prog_CXXCPP
8602 else
8603 ac_cv_prog_CXXCPP=$CXXCPP
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8606 $as_echo "$CXXCPP" >&6; }
8607 ac_preproc_ok=false
8608 for ac_cxx_preproc_warn_flag in '' yes
8610 # Use a header file that comes with gcc, so configuring glibc
8611 # with a fresh cross-compiler works.
8612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8613 # <limits.h> exists even on freestanding compilers.
8614 # On the NeXT, cc -E runs the code through the compiler's parser,
8615 # not just through cpp. "Syntax error" is here to catch this case.
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #ifdef __STDC__
8619 # include <limits.h>
8620 #else
8621 # include <assert.h>
8622 #endif
8623 Syntax error
8624 _ACEOF
8625 if ac_fn_cxx_try_cpp "$LINENO"; then :
8627 else
8628 # Broken: fails on valid input.
8629 continue
8631 rm -f conftest.err conftest.$ac_ext
8633 # OK, works on sane cases. Now check whether nonexistent headers
8634 # can be detected and how.
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <ac_nonexistent.h>
8638 _ACEOF
8639 if ac_fn_cxx_try_cpp "$LINENO"; then :
8640 # Broken: success on invalid input.
8641 continue
8642 else
8643 # Passes both tests.
8644 ac_preproc_ok=:
8645 break
8647 rm -f conftest.err conftest.$ac_ext
8649 done
8650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8651 rm -f conftest.err conftest.$ac_ext
8652 if $ac_preproc_ok; then :
8654 else
8655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8658 See \`config.log' for more details." >&5
8659 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8660 See \`config.log' for more details." >&2;}; }
8663 ac_ext=c
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8670 ac_ext=cpp
8671 ac_cpp='$CXXCPP $CPPFLAGS'
8672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8679 for ac_header in unordered_map
8680 do :
8681 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8682 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8683 cat >>confdefs.h <<_ACEOF
8684 #define HAVE_UNORDERED_MAP 1
8685 _ACEOF
8688 done
8690 for ac_header in tr1/unordered_map
8691 do :
8692 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8693 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_TR1_UNORDERED_MAP 1
8696 _ACEOF
8699 done
8701 for ac_header in ext/hash_map
8702 do :
8703 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8704 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8705 cat >>confdefs.h <<_ACEOF
8706 #define HAVE_EXT_HASH_MAP 1
8707 _ACEOF
8710 done
8713 ac_ext=c
8714 ac_cpp='$CPP $CPPFLAGS'
8715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8720 # --------
8721 # UNSORTED
8722 # --------
8725 # These libraries may be used by collect2.
8726 # We may need a special search path to get them linked.
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8728 $as_echo_n "checking for collect2 libraries... " >&6; }
8729 if test "${gcc_cv_collect2_libs+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 save_LIBS="$LIBS"
8733 for libs in '' -lld -lmld \
8734 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8735 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8737 LIBS="$libs"
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8741 /* Override any GCC internal prototype to avoid an error.
8742 Use char because int might match the return type of a GCC
8743 builtin and then its argument prototype would still apply. */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 char ldopen ();
8749 main ()
8751 return ldopen ();
8753 return 0;
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 gcc_cv_collect2_libs="$libs"; break
8759 rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext conftest.$ac_ext
8761 done
8762 LIBS="$save_LIBS"
8763 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8766 $as_echo "$gcc_cv_collect2_libs" >&6; }
8767 case $gcc_cv_collect2_libs in
8768 "none required") ;;
8769 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8770 esac
8773 # When building Ada code on Alpha, we need exc_resume which is usually in
8774 # -lexc. So test for it.
8775 save_LIBS="$LIBS"
8776 LIBS=
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8778 $as_echo_n "checking for library containing exc_resume... " >&6; }
8779 if test "${ac_cv_search_exc_resume+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 ac_func_search_save_LIBS=$LIBS
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8786 /* Override any GCC internal prototype to avoid an error.
8787 Use char because int might match the return type of a GCC
8788 builtin and then its argument prototype would still apply. */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 char exc_resume ();
8794 main ()
8796 return exc_resume ();
8798 return 0;
8800 _ACEOF
8801 for ac_lib in '' exc; do
8802 if test -z "$ac_lib"; then
8803 ac_res="none required"
8804 else
8805 ac_res=-l$ac_lib
8806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8808 if ac_fn_c_try_link "$LINENO"; then :
8809 ac_cv_search_exc_resume=$ac_res
8811 rm -f core conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext
8813 if test "${ac_cv_search_exc_resume+set}" = set; then :
8814 break
8816 done
8817 if test "${ac_cv_search_exc_resume+set}" = set; then :
8819 else
8820 ac_cv_search_exc_resume=no
8822 rm conftest.$ac_ext
8823 LIBS=$ac_func_search_save_LIBS
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8826 $as_echo "$ac_cv_search_exc_resume" >&6; }
8827 ac_res=$ac_cv_search_exc_resume
8828 if test "$ac_res" != no; then :
8829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8833 GNAT_LIBEXC="$LIBS"
8834 LIBS="$save_LIBS"
8837 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8838 save_LIBS="$LIBS"
8839 LIBS=
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8841 $as_echo_n "checking for library containing kstat_open... " >&6; }
8842 if test "${ac_cv_search_kstat_open+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 ac_func_search_save_LIBS=$LIBS
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 char kstat_open ();
8857 main ()
8859 return kstat_open ();
8861 return 0;
8863 _ACEOF
8864 for ac_lib in '' kstat; do
8865 if test -z "$ac_lib"; then
8866 ac_res="none required"
8867 else
8868 ac_res=-l$ac_lib
8869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 ac_cv_search_kstat_open=$ac_res
8874 rm -f core conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext
8876 if test "${ac_cv_search_kstat_open+set}" = set; then :
8877 break
8879 done
8880 if test "${ac_cv_search_kstat_open+set}" = set; then :
8882 else
8883 ac_cv_search_kstat_open=no
8885 rm conftest.$ac_ext
8886 LIBS=$ac_func_search_save_LIBS
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8889 $as_echo "$ac_cv_search_kstat_open" >&6; }
8890 ac_res=$ac_cv_search_kstat_open
8891 if test "$ac_res" != no; then :
8892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8896 EXTRA_GCC_LIBS="$LIBS"
8897 LIBS="$save_LIBS"
8900 # Some systems put ldexp and frexp in libm instead of libc; assume
8901 # they're both in the same place. jcf-dump needs them.
8902 save_LIBS="$LIBS"
8903 LIBS=
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8905 $as_echo_n "checking for library containing ldexp... " >&6; }
8906 if test "${ac_cv_search_ldexp+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 ac_func_search_save_LIBS=$LIBS
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char ldexp ();
8921 main ()
8923 return ldexp ();
8925 return 0;
8927 _ACEOF
8928 for ac_lib in '' m; do
8929 if test -z "$ac_lib"; then
8930 ac_res="none required"
8931 else
8932 ac_res=-l$ac_lib
8933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8935 if ac_fn_c_try_link "$LINENO"; then :
8936 ac_cv_search_ldexp=$ac_res
8938 rm -f core conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext
8940 if test "${ac_cv_search_ldexp+set}" = set; then :
8941 break
8943 done
8944 if test "${ac_cv_search_ldexp+set}" = set; then :
8946 else
8947 ac_cv_search_ldexp=no
8949 rm conftest.$ac_ext
8950 LIBS=$ac_func_search_save_LIBS
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8953 $as_echo "$ac_cv_search_ldexp" >&6; }
8954 ac_res=$ac_cv_search_ldexp
8955 if test "$ac_res" != no; then :
8956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8960 LDEXP_LIB="$LIBS"
8961 LIBS="$save_LIBS"
8964 # Use <inttypes.h> only if it exists,
8965 # doesn't clash with <sys/types.h>, and declares intmax_t.
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8967 $as_echo_n "checking for inttypes.h... " >&6; }
8968 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #include <sys/types.h>
8974 #include <inttypes.h>
8976 main ()
8978 intmax_t i = -1;
8980 return 0;
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 gcc_cv_header_inttypes_h=yes
8985 else
8986 gcc_cv_header_inttypes_h=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8992 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8993 if test $gcc_cv_header_inttypes_h = yes; then
8995 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9001 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9002 sysconf strsignal getrusage nl_langinfo \
9003 gettimeofday mbstowcs wcswidth mmap setlocale \
9004 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
9005 do :
9006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9008 eval as_val=\$$as_ac_var
9009 if test "x$as_val" = x""yes; then :
9010 cat >>confdefs.h <<_ACEOF
9011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9012 _ACEOF
9015 done
9018 if test x$ac_cv_func_mbstowcs = xyes; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9020 $as_echo_n "checking whether mbstowcs works... " >&6; }
9021 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 if test "$cross_compiling" = yes; then :
9025 gcc_cv_func_mbstowcs_works=yes
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #include <stdlib.h>
9030 int main()
9032 mbstowcs(0, "", 0);
9033 return 0;
9035 _ACEOF
9036 if ac_fn_c_try_run "$LINENO"; then :
9037 gcc_cv_func_mbstowcs_works=yes
9038 else
9039 gcc_cv_func_mbstowcs_works=no
9041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9042 conftest.$ac_objext conftest.beam conftest.$ac_ext
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9047 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9048 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9050 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9055 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9056 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9058 else
9060 cat >>confdefs.h <<_ACEOF
9061 #define ssize_t int
9062 _ACEOF
9066 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9067 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9069 else
9071 cat >>confdefs.h <<_ACEOF
9072 #define caddr_t char *
9073 _ACEOF
9079 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9080 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9081 gcc_header_sys_mman_h=yes
9082 else
9083 gcc_header_sys_mman_h=no
9086 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9087 if test "x$ac_cv_func_mmap" = x""yes; then :
9088 gcc_func_mmap=yes
9089 else
9090 gcc_func_mmap=no
9093 if test "$gcc_header_sys_mman_h" != yes \
9094 || test "$gcc_func_mmap" != yes; then
9095 gcc_cv_func_mmap_file=no
9096 gcc_cv_func_mmap_dev_zero=no
9097 gcc_cv_func_mmap_anon=no
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9100 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9101 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 # Add a system to this blacklist if
9105 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9106 # memory area containing the same data that you'd get if you applied
9107 # read() to the same fd. The only system known to have a problem here
9108 # is VMS, where text files have record structure.
9109 case "$host_os" in
9110 vms* | ultrix*)
9111 gcc_cv_func_mmap_file=no ;;
9113 gcc_cv_func_mmap_file=yes;;
9114 esac
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9117 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9119 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9120 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 # Add a system to this blacklist if it has mmap() but /dev/zero
9124 # does not exist, or if mmapping /dev/zero does not give anonymous
9125 # zeroed pages with both the following properties:
9126 # 1. If you map N consecutive pages in with one call, and then
9127 # unmap any subset of those pages, the pages that were not
9128 # explicitly unmapped remain accessible.
9129 # 2. If you map two adjacent blocks of memory and then unmap them
9130 # both at once, they must both go away.
9131 # Systems known to be in this category are Windows (all variants),
9132 # VMS, and Darwin.
9133 case "$host_os" in
9134 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9135 gcc_cv_func_mmap_dev_zero=no ;;
9137 gcc_cv_func_mmap_dev_zero=yes;;
9138 esac
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9141 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9143 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9145 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9146 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #include <sys/types.h>
9152 #include <sys/mman.h>
9153 #include <unistd.h>
9155 #ifndef MAP_ANONYMOUS
9156 #define MAP_ANONYMOUS MAP_ANON
9157 #endif
9160 main ()
9162 int n = MAP_ANONYMOUS;
9164 return 0;
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168 gcc_cv_decl_map_anon=yes
9169 else
9170 gcc_cv_decl_map_anon=no
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9175 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9177 if test $gcc_cv_decl_map_anon = no; then
9178 gcc_cv_func_mmap_anon=no
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9181 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9182 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9186 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9187 # doesn't give anonymous zeroed pages with the same properties listed
9188 # above for use of /dev/zero.
9189 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9190 case "$host_os" in
9191 vms* | cygwin* | pe | mingw* | sco* | udk* )
9192 gcc_cv_func_mmap_anon=no ;;
9194 gcc_cv_func_mmap_anon=yes;;
9195 esac
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9198 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9202 if test $gcc_cv_func_mmap_file = yes; then
9204 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9207 if test $gcc_cv_func_mmap_dev_zero = yes; then
9209 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9212 if test $gcc_cv_func_mmap_anon = yes; then
9214 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9219 case "${host}" in
9220 *-*-*vms*)
9221 # Under VMS, vfork works very differently than on Unix. The standard test
9222 # won't work, and it isn't easily adaptable. It makes more sense to
9223 # just force it.
9224 ac_cv_func_vfork_works=yes
9226 esac
9227 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9228 if test "x$ac_cv_type_pid_t" = x""yes; then :
9230 else
9232 cat >>confdefs.h <<_ACEOF
9233 #define pid_t int
9234 _ACEOF
9238 for ac_header in vfork.h
9239 do :
9240 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9241 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9242 cat >>confdefs.h <<_ACEOF
9243 #define HAVE_VFORK_H 1
9244 _ACEOF
9247 done
9249 for ac_func in fork vfork
9250 do :
9251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9253 eval as_val=\$$as_ac_var
9254 if test "x$as_val" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9257 _ACEOF
9260 done
9262 if test "x$ac_cv_func_fork" = xyes; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9264 $as_echo_n "checking for working fork... " >&6; }
9265 if test "${ac_cv_func_fork_works+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 if test "$cross_compiling" = yes; then :
9269 ac_cv_func_fork_works=cross
9270 else
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 $ac_includes_default
9275 main ()
9278 /* By Ruediger Kuhlmann. */
9279 return fork () < 0;
9282 return 0;
9284 _ACEOF
9285 if ac_fn_c_try_run "$LINENO"; then :
9286 ac_cv_func_fork_works=yes
9287 else
9288 ac_cv_func_fork_works=no
9290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9291 conftest.$ac_objext conftest.beam conftest.$ac_ext
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9296 $as_echo "$ac_cv_func_fork_works" >&6; }
9298 else
9299 ac_cv_func_fork_works=$ac_cv_func_fork
9301 if test "x$ac_cv_func_fork_works" = xcross; then
9302 case $host in
9303 *-*-amigaos* | *-*-msdosdjgpp*)
9304 # Override, as these systems have only a dummy fork() stub
9305 ac_cv_func_fork_works=no
9308 ac_cv_func_fork_works=yes
9310 esac
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9312 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9314 ac_cv_func_vfork_works=$ac_cv_func_vfork
9315 if test "x$ac_cv_func_vfork" = xyes; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9317 $as_echo_n "checking for working vfork... " >&6; }
9318 if test "${ac_cv_func_vfork_works+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 if test "$cross_compiling" = yes; then :
9322 ac_cv_func_vfork_works=cross
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 /* Thanks to Paul Eggert for this test. */
9327 $ac_includes_default
9328 #include <sys/wait.h>
9329 #ifdef HAVE_VFORK_H
9330 # include <vfork.h>
9331 #endif
9332 /* On some sparc systems, changes by the child to local and incoming
9333 argument registers are propagated back to the parent. The compiler
9334 is told about this with #include <vfork.h>, but some compilers
9335 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9336 static variable whose address is put into a register that is
9337 clobbered by the vfork. */
9338 static void
9339 #ifdef __cplusplus
9340 sparc_address_test (int arg)
9341 # else
9342 sparc_address_test (arg) int arg;
9343 #endif
9345 static pid_t child;
9346 if (!child) {
9347 child = vfork ();
9348 if (child < 0) {
9349 perror ("vfork");
9350 _exit(2);
9352 if (!child) {
9353 arg = getpid();
9354 write(-1, "", 0);
9355 _exit (arg);
9361 main ()
9363 pid_t parent = getpid ();
9364 pid_t child;
9366 sparc_address_test (0);
9368 child = vfork ();
9370 if (child == 0) {
9371 /* Here is another test for sparc vfork register problems. This
9372 test uses lots of local variables, at least as many local
9373 variables as main has allocated so far including compiler
9374 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9375 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9376 reuse the register of parent for one of the local variables,
9377 since it will think that parent can't possibly be used any more
9378 in this routine. Assigning to the local variable will thus
9379 munge parent in the parent process. */
9380 pid_t
9381 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9382 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9383 /* Convince the compiler that p..p7 are live; otherwise, it might
9384 use the same hardware register for all 8 local variables. */
9385 if (p != p1 || p != p2 || p != p3 || p != p4
9386 || p != p5 || p != p6 || p != p7)
9387 _exit(1);
9389 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9390 from child file descriptors. If the child closes a descriptor
9391 before it execs or exits, this munges the parent's descriptor
9392 as well. Test for this by closing stdout in the child. */
9393 _exit(close(fileno(stdout)) != 0);
9394 } else {
9395 int status;
9396 struct stat st;
9398 while (wait(&status) != child)
9400 return (
9401 /* Was there some problem with vforking? */
9402 child < 0
9404 /* Did the child fail? (This shouldn't happen.) */
9405 || status
9407 /* Did the vfork/compiler bug occur? */
9408 || parent != getpid()
9410 /* Did the file descriptor bug occur? */
9411 || fstat(fileno(stdout), &st) != 0
9415 _ACEOF
9416 if ac_fn_c_try_run "$LINENO"; then :
9417 ac_cv_func_vfork_works=yes
9418 else
9419 ac_cv_func_vfork_works=no
9421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422 conftest.$ac_objext conftest.beam conftest.$ac_ext
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9427 $as_echo "$ac_cv_func_vfork_works" >&6; }
9430 if test "x$ac_cv_func_fork_works" = xcross; then
9431 ac_cv_func_vfork_works=$ac_cv_func_vfork
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9433 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9436 if test "x$ac_cv_func_vfork_works" = xyes; then
9438 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9440 else
9442 $as_echo "#define vfork fork" >>confdefs.h
9445 if test "x$ac_cv_func_fork_works" = xyes; then
9447 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9452 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9453 # iconv() prototype.
9455 if test "X$prefix" = "XNONE"; then
9456 acl_final_prefix="$ac_default_prefix"
9457 else
9458 acl_final_prefix="$prefix"
9460 if test "X$exec_prefix" = "XNONE"; then
9461 acl_final_exec_prefix='${prefix}'
9462 else
9463 acl_final_exec_prefix="$exec_prefix"
9465 acl_save_prefix="$prefix"
9466 prefix="$acl_final_prefix"
9467 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9468 prefix="$acl_save_prefix"
9471 # Check whether --with-gnu-ld was given.
9472 if test "${with_gnu_ld+set}" = set; then :
9473 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9474 else
9475 with_gnu_ld=no
9478 # Prepare PATH_SEPARATOR.
9479 # The user is always right.
9480 if test "${PATH_SEPARATOR+set}" != set; then
9481 echo "#! /bin/sh" >conf$$.sh
9482 echo "exit 0" >>conf$$.sh
9483 chmod +x conf$$.sh
9484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9485 PATH_SEPARATOR=';'
9486 else
9487 PATH_SEPARATOR=:
9489 rm -f conf$$.sh
9491 ac_prog=ld
9492 if test "$GCC" = yes; then
9493 # Check if gcc -print-prog-name=ld gives a path.
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9495 $as_echo_n "checking for ld used by GCC... " >&6; }
9496 case $host in
9497 *-*-mingw*)
9498 # gcc leaves a trailing carriage return which upsets mingw
9499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9502 esac
9503 case $ac_prog in
9504 # Accept absolute paths.
9505 [\\/]* | [A-Za-z]:[\\/]*)
9506 re_direlt='/[^/][^/]*/\.\./'
9507 # Canonicalize the path of ld
9508 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9509 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9510 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9511 done
9512 test -z "$LD" && LD="$ac_prog"
9515 # If it fails, then pretend we aren't using GCC.
9516 ac_prog=ld
9519 # If it is relative, then search for the first ld in PATH.
9520 with_gnu_ld=unknown
9522 esac
9523 elif test "$with_gnu_ld" = yes; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9525 $as_echo_n "checking for GNU ld... " >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9528 $as_echo_n "checking for non-GNU ld... " >&6; }
9530 if test "${acl_cv_path_LD+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 if test -z "$LD"; then
9534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9535 for ac_dir in $PATH; do
9536 test -z "$ac_dir" && ac_dir=.
9537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9538 acl_cv_path_LD="$ac_dir/$ac_prog"
9539 # Check to see if the program is GNU ld. I'd rather use --version,
9540 # but apparently some GNU ld's only accept -v.
9541 # Break only if it was the GNU/non-GNU ld that we prefer.
9542 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9543 test "$with_gnu_ld" != no && break
9544 else
9545 test "$with_gnu_ld" != yes && break
9548 done
9549 IFS="$ac_save_ifs"
9550 else
9551 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9555 LD="$acl_cv_path_LD"
9556 if test -n "$LD"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9558 $as_echo "$LD" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9563 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9566 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9570 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9571 acl_cv_prog_gnu_ld=yes
9572 else
9573 acl_cv_prog_gnu_ld=no
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9577 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9578 with_gnu_ld=$acl_cv_prog_gnu_ld
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9583 $as_echo_n "checking for shared library run path origin... " >&6; }
9584 if test "${acl_cv_rpath+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9588 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9589 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9590 . ./conftest.sh
9591 rm -f ./conftest.sh
9592 acl_cv_rpath=done
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9596 $as_echo "$acl_cv_rpath" >&6; }
9597 wl="$acl_cv_wl"
9598 libext="$acl_cv_libext"
9599 shlibext="$acl_cv_shlibext"
9600 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9601 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9602 hardcode_direct="$acl_cv_hardcode_direct"
9603 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9604 # Check whether --enable-rpath was given.
9605 if test "${enable_rpath+set}" = set; then :
9606 enableval=$enable_rpath; :
9607 else
9608 enable_rpath=yes
9618 use_additional=yes
9620 acl_save_prefix="$prefix"
9621 prefix="$acl_final_prefix"
9622 acl_save_exec_prefix="$exec_prefix"
9623 exec_prefix="$acl_final_exec_prefix"
9625 eval additional_includedir=\"$includedir\"
9626 eval additional_libdir=\"$libdir\"
9628 exec_prefix="$acl_save_exec_prefix"
9629 prefix="$acl_save_prefix"
9632 # Check whether --with-libiconv-prefix was given.
9633 if test "${with_libiconv_prefix+set}" = set; then :
9634 withval=$with_libiconv_prefix;
9635 if test "X$withval" = "Xno"; then
9636 use_additional=no
9637 else
9638 if test "X$withval" = "X"; then
9640 acl_save_prefix="$prefix"
9641 prefix="$acl_final_prefix"
9642 acl_save_exec_prefix="$exec_prefix"
9643 exec_prefix="$acl_final_exec_prefix"
9645 eval additional_includedir=\"$includedir\"
9646 eval additional_libdir=\"$libdir\"
9648 exec_prefix="$acl_save_exec_prefix"
9649 prefix="$acl_save_prefix"
9651 else
9652 additional_includedir="$withval/include"
9653 additional_libdir="$withval/lib"
9659 LIBICONV=
9660 LTLIBICONV=
9661 INCICONV=
9662 rpathdirs=
9663 ltrpathdirs=
9664 names_already_handled=
9665 names_next_round='iconv '
9666 while test -n "$names_next_round"; do
9667 names_this_round="$names_next_round"
9668 names_next_round=
9669 for name in $names_this_round; do
9670 already_handled=
9671 for n in $names_already_handled; do
9672 if test "$n" = "$name"; then
9673 already_handled=yes
9674 break
9676 done
9677 if test -z "$already_handled"; then
9678 names_already_handled="$names_already_handled $name"
9679 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9680 eval value=\"\$HAVE_LIB$uppername\"
9681 if test -n "$value"; then
9682 if test "$value" = yes; then
9683 eval value=\"\$LIB$uppername\"
9684 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9685 eval value=\"\$LTLIB$uppername\"
9686 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9687 else
9690 else
9691 found_dir=
9692 found_la=
9693 found_so=
9694 found_a=
9695 if test $use_additional = yes; then
9696 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9697 found_dir="$additional_libdir"
9698 found_so="$additional_libdir/lib$name.$shlibext"
9699 if test -f "$additional_libdir/lib$name.la"; then
9700 found_la="$additional_libdir/lib$name.la"
9702 else
9703 if test -f "$additional_libdir/lib$name.$libext"; then
9704 found_dir="$additional_libdir"
9705 found_a="$additional_libdir/lib$name.$libext"
9706 if test -f "$additional_libdir/lib$name.la"; then
9707 found_la="$additional_libdir/lib$name.la"
9712 if test "X$found_dir" = "X"; then
9713 for x in $LDFLAGS $LTLIBICONV; do
9715 acl_save_prefix="$prefix"
9716 prefix="$acl_final_prefix"
9717 acl_save_exec_prefix="$exec_prefix"
9718 exec_prefix="$acl_final_exec_prefix"
9719 eval x=\"$x\"
9720 exec_prefix="$acl_save_exec_prefix"
9721 prefix="$acl_save_prefix"
9723 case "$x" in
9724 -L*)
9725 dir=`echo "X$x" | sed -e 's/^X-L//'`
9726 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9727 found_dir="$dir"
9728 found_so="$dir/lib$name.$shlibext"
9729 if test -f "$dir/lib$name.la"; then
9730 found_la="$dir/lib$name.la"
9732 else
9733 if test -f "$dir/lib$name.$libext"; then
9734 found_dir="$dir"
9735 found_a="$dir/lib$name.$libext"
9736 if test -f "$dir/lib$name.la"; then
9737 found_la="$dir/lib$name.la"
9742 esac
9743 if test "X$found_dir" != "X"; then
9744 break
9746 done
9748 if test "X$found_dir" != "X"; then
9749 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9750 if test "X$found_so" != "X"; then
9751 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9752 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9753 else
9754 haveit=
9755 for x in $ltrpathdirs; do
9756 if test "X$x" = "X$found_dir"; then
9757 haveit=yes
9758 break
9760 done
9761 if test -z "$haveit"; then
9762 ltrpathdirs="$ltrpathdirs $found_dir"
9764 if test "$hardcode_direct" = yes; then
9765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9766 else
9767 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9768 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9769 haveit=
9770 for x in $rpathdirs; do
9771 if test "X$x" = "X$found_dir"; then
9772 haveit=yes
9773 break
9775 done
9776 if test -z "$haveit"; then
9777 rpathdirs="$rpathdirs $found_dir"
9779 else
9780 haveit=
9781 for x in $LDFLAGS $LIBICONV; do
9783 acl_save_prefix="$prefix"
9784 prefix="$acl_final_prefix"
9785 acl_save_exec_prefix="$exec_prefix"
9786 exec_prefix="$acl_final_exec_prefix"
9787 eval x=\"$x\"
9788 exec_prefix="$acl_save_exec_prefix"
9789 prefix="$acl_save_prefix"
9791 if test "X$x" = "X-L$found_dir"; then
9792 haveit=yes
9793 break
9795 done
9796 if test -z "$haveit"; then
9797 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9799 if test "$hardcode_minus_L" != no; then
9800 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9801 else
9802 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9807 else
9808 if test "X$found_a" != "X"; then
9809 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9810 else
9811 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9814 additional_includedir=
9815 case "$found_dir" in
9816 */lib | */lib/)
9817 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9818 additional_includedir="$basedir/include"
9820 esac
9821 if test "X$additional_includedir" != "X"; then
9822 if test "X$additional_includedir" != "X/usr/include"; then
9823 haveit=
9824 if test "X$additional_includedir" = "X/usr/local/include"; then
9825 if test -n "$GCC"; then
9826 case $host_os in
9827 linux*) haveit=yes;;
9828 esac
9831 if test -z "$haveit"; then
9832 for x in $CPPFLAGS $INCICONV; do
9834 acl_save_prefix="$prefix"
9835 prefix="$acl_final_prefix"
9836 acl_save_exec_prefix="$exec_prefix"
9837 exec_prefix="$acl_final_exec_prefix"
9838 eval x=\"$x\"
9839 exec_prefix="$acl_save_exec_prefix"
9840 prefix="$acl_save_prefix"
9842 if test "X$x" = "X-I$additional_includedir"; then
9843 haveit=yes
9844 break
9846 done
9847 if test -z "$haveit"; then
9848 if test -d "$additional_includedir"; then
9849 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9855 if test -n "$found_la"; then
9856 save_libdir="$libdir"
9857 case "$found_la" in
9858 */* | *\\*) . "$found_la" ;;
9859 *) . "./$found_la" ;;
9860 esac
9861 libdir="$save_libdir"
9862 for dep in $dependency_libs; do
9863 case "$dep" in
9864 -L*)
9865 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9866 if test "X$additional_libdir" != "X/usr/lib"; then
9867 haveit=
9868 if test "X$additional_libdir" = "X/usr/local/lib"; then
9869 if test -n "$GCC"; then
9870 case $host_os in
9871 linux*) haveit=yes;;
9872 esac
9875 if test -z "$haveit"; then
9876 haveit=
9877 for x in $LDFLAGS $LIBICONV; do
9879 acl_save_prefix="$prefix"
9880 prefix="$acl_final_prefix"
9881 acl_save_exec_prefix="$exec_prefix"
9882 exec_prefix="$acl_final_exec_prefix"
9883 eval x=\"$x\"
9884 exec_prefix="$acl_save_exec_prefix"
9885 prefix="$acl_save_prefix"
9887 if test "X$x" = "X-L$additional_libdir"; then
9888 haveit=yes
9889 break
9891 done
9892 if test -z "$haveit"; then
9893 if test -d "$additional_libdir"; then
9894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9897 haveit=
9898 for x in $LDFLAGS $LTLIBICONV; do
9900 acl_save_prefix="$prefix"
9901 prefix="$acl_final_prefix"
9902 acl_save_exec_prefix="$exec_prefix"
9903 exec_prefix="$acl_final_exec_prefix"
9904 eval x=\"$x\"
9905 exec_prefix="$acl_save_exec_prefix"
9906 prefix="$acl_save_prefix"
9908 if test "X$x" = "X-L$additional_libdir"; then
9909 haveit=yes
9910 break
9912 done
9913 if test -z "$haveit"; then
9914 if test -d "$additional_libdir"; then
9915 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9921 -R*)
9922 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9923 if test "$enable_rpath" != no; then
9924 haveit=
9925 for x in $rpathdirs; do
9926 if test "X$x" = "X$dir"; then
9927 haveit=yes
9928 break
9930 done
9931 if test -z "$haveit"; then
9932 rpathdirs="$rpathdirs $dir"
9934 haveit=
9935 for x in $ltrpathdirs; do
9936 if test "X$x" = "X$dir"; then
9937 haveit=yes
9938 break
9940 done
9941 if test -z "$haveit"; then
9942 ltrpathdirs="$ltrpathdirs $dir"
9946 -l*)
9947 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9949 *.la)
9950 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9953 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9956 esac
9957 done
9959 else
9960 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9961 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9965 done
9966 done
9967 if test "X$rpathdirs" != "X"; then
9968 if test -n "$hardcode_libdir_separator"; then
9969 alldirs=
9970 for found_dir in $rpathdirs; do
9971 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9972 done
9973 acl_save_libdir="$libdir"
9974 libdir="$alldirs"
9975 eval flag=\"$hardcode_libdir_flag_spec\"
9976 libdir="$acl_save_libdir"
9977 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9978 else
9979 for found_dir in $rpathdirs; do
9980 acl_save_libdir="$libdir"
9981 libdir="$found_dir"
9982 eval flag=\"$hardcode_libdir_flag_spec\"
9983 libdir="$acl_save_libdir"
9984 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9985 done
9988 if test "X$ltrpathdirs" != "X"; then
9989 for found_dir in $ltrpathdirs; do
9990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9991 done
9995 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9996 ac_ext=cpp
9997 ac_cpp='$CXXCPP $CPPFLAGS'
9998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10007 am_save_CPPFLAGS="$CPPFLAGS"
10009 for element in $INCICONV; do
10010 haveit=
10011 for x in $CPPFLAGS; do
10013 acl_save_prefix="$prefix"
10014 prefix="$acl_final_prefix"
10015 acl_save_exec_prefix="$exec_prefix"
10016 exec_prefix="$acl_final_exec_prefix"
10017 eval x=\"$x\"
10018 exec_prefix="$acl_save_exec_prefix"
10019 prefix="$acl_save_prefix"
10021 if test "X$x" = "X$element"; then
10022 haveit=yes
10023 break
10025 done
10026 if test -z "$haveit"; then
10027 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10029 done
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10033 $as_echo_n "checking for iconv... " >&6; }
10034 if test "${am_cv_func_iconv+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10038 am_cv_func_iconv="no, consider installing GNU libiconv"
10039 am_cv_lib_iconv=no
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <stdlib.h>
10043 #include <iconv.h>
10045 main ()
10047 iconv_t cd = iconv_open("","");
10048 iconv(cd,NULL,NULL,NULL,NULL);
10049 iconv_close(cd);
10051 return 0;
10053 _ACEOF
10054 if ac_fn_cxx_try_link "$LINENO"; then :
10055 am_cv_func_iconv=yes
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 if test "$am_cv_func_iconv" != yes; then
10060 am_save_LIBS="$LIBS"
10061 LIBS="$LIBS $LIBICONV"
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 #include <stdlib.h>
10065 #include <iconv.h>
10067 main ()
10069 iconv_t cd = iconv_open("","");
10070 iconv(cd,NULL,NULL,NULL,NULL);
10071 iconv_close(cd);
10073 return 0;
10075 _ACEOF
10076 if ac_fn_cxx_try_link "$LINENO"; then :
10077 am_cv_lib_iconv=yes
10078 am_cv_func_iconv=yes
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 LIBS="$am_save_LIBS"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10087 $as_echo "$am_cv_func_iconv" >&6; }
10088 if test "$am_cv_func_iconv" = yes; then
10090 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10093 if test "$am_cv_lib_iconv" = yes; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10095 $as_echo_n "checking how to link with libiconv... " >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10097 $as_echo "$LIBICONV" >&6; }
10098 else
10099 CPPFLAGS="$am_save_CPPFLAGS"
10100 LIBICONV=
10101 LTLIBICONV=
10106 if test "$am_cv_func_iconv" = yes; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10108 $as_echo_n "checking for iconv declaration... " >&6; }
10109 if test "${am_cv_proto_iconv+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 #include <stdlib.h>
10117 #include <iconv.h>
10118 extern
10119 #ifdef __cplusplus
10121 #endif
10122 #if defined(__STDC__) || defined(__cplusplus)
10123 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10124 #else
10125 size_t iconv();
10126 #endif
10129 main ()
10133 return 0;
10135 _ACEOF
10136 if ac_fn_cxx_try_compile "$LINENO"; then :
10137 am_cv_proto_iconv_arg1=""
10138 else
10139 am_cv_proto_iconv_arg1="const"
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 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);"
10145 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10147 }$am_cv_proto_iconv" >&5
10148 $as_echo "${ac_t:-
10149 }$am_cv_proto_iconv" >&6; }
10151 cat >>confdefs.h <<_ACEOF
10152 #define ICONV_CONST $am_cv_proto_iconv_arg1
10153 _ACEOF
10157 ac_ext=c
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10163 else
10169 am_save_CPPFLAGS="$CPPFLAGS"
10171 for element in $INCICONV; do
10172 haveit=
10173 for x in $CPPFLAGS; do
10175 acl_save_prefix="$prefix"
10176 prefix="$acl_final_prefix"
10177 acl_save_exec_prefix="$exec_prefix"
10178 exec_prefix="$acl_final_exec_prefix"
10179 eval x=\"$x\"
10180 exec_prefix="$acl_save_exec_prefix"
10181 prefix="$acl_save_prefix"
10183 if test "X$x" = "X$element"; then
10184 haveit=yes
10185 break
10187 done
10188 if test -z "$haveit"; then
10189 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10191 done
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10195 $as_echo_n "checking for iconv... " >&6; }
10196 if test "${am_cv_func_iconv+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10200 am_cv_func_iconv="no, consider installing GNU libiconv"
10201 am_cv_lib_iconv=no
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 #include <stdlib.h>
10205 #include <iconv.h>
10207 main ()
10209 iconv_t cd = iconv_open("","");
10210 iconv(cd,NULL,NULL,NULL,NULL);
10211 iconv_close(cd);
10213 return 0;
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217 am_cv_func_iconv=yes
10219 rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221 if test "$am_cv_func_iconv" != yes; then
10222 am_save_LIBS="$LIBS"
10223 LIBS="$LIBS $LIBICONV"
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 #include <stdlib.h>
10227 #include <iconv.h>
10229 main ()
10231 iconv_t cd = iconv_open("","");
10232 iconv(cd,NULL,NULL,NULL,NULL);
10233 iconv_close(cd);
10235 return 0;
10237 _ACEOF
10238 if ac_fn_c_try_link "$LINENO"; then :
10239 am_cv_lib_iconv=yes
10240 am_cv_func_iconv=yes
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS="$am_save_LIBS"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10249 $as_echo "$am_cv_func_iconv" >&6; }
10250 if test "$am_cv_func_iconv" = yes; then
10252 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10255 if test "$am_cv_lib_iconv" = yes; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10257 $as_echo_n "checking how to link with libiconv... " >&6; }
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10259 $as_echo "$LIBICONV" >&6; }
10260 else
10261 CPPFLAGS="$am_save_CPPFLAGS"
10262 LIBICONV=
10263 LTLIBICONV=
10268 if test "$am_cv_func_iconv" = yes; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10270 $as_echo_n "checking for iconv declaration... " >&6; }
10271 if test "${am_cv_proto_iconv+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10278 #include <stdlib.h>
10279 #include <iconv.h>
10280 extern
10281 #ifdef __cplusplus
10283 #endif
10284 #if defined(__STDC__) || defined(__cplusplus)
10285 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10286 #else
10287 size_t iconv();
10288 #endif
10291 main ()
10295 return 0;
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 am_cv_proto_iconv_arg1=""
10300 else
10301 am_cv_proto_iconv_arg1="const"
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 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);"
10307 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10309 }$am_cv_proto_iconv" >&5
10310 $as_echo "${ac_t:-
10311 }$am_cv_proto_iconv" >&6; }
10313 cat >>confdefs.h <<_ACEOF
10314 #define ICONV_CONST $am_cv_proto_iconv_arg1
10315 _ACEOF
10321 # Until we have in-tree GNU iconv:
10322 LIBICONV_DEP=
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10327 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10328 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 #include <locale.h>
10335 main ()
10337 return LC_MESSAGES
10339 return 0;
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 am_cv_val_LC_MESSAGES=yes
10344 else
10345 am_cv_val_LC_MESSAGES=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10351 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10352 if test $am_cv_val_LC_MESSAGES = yes; then
10354 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10361 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10362 if test "${am_cv_langinfo_codeset+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367 #include <langinfo.h>
10369 main ()
10371 char* cs = nl_langinfo(CODESET);
10373 return 0;
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377 am_cv_langinfo_codeset=yes
10378 else
10379 am_cv_langinfo_codeset=no
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10386 $as_echo "$am_cv_langinfo_codeset" >&6; }
10387 if test $am_cv_langinfo_codeset = yes; then
10389 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10394 # We will need to find libiberty.h and ansidecl.h
10395 saved_CFLAGS="$CFLAGS"
10396 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10397 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10398 strsignal strstr strverscmp \
10399 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10400 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
10402 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10404 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10405 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 #undef $ac_tr_decl
10411 #define $ac_tr_decl 1
10413 #include "ansidecl.h"
10414 #include "system.h"
10417 main ()
10419 #ifndef $ac_func
10420 char *(*pfn) = (char *(*)) $ac_func ;
10421 #endif
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_compile "$LINENO"; then :
10427 eval "gcc_cv_have_decl_$ac_func=yes"
10428 else
10429 eval "gcc_cv_have_decl_$ac_func=no"
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10436 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10437 #define $ac_tr_decl 1
10438 _ACEOF
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10443 #define $ac_tr_decl 0
10444 _ACEOF
10448 done
10451 for ac_func in getrlimit setrlimit getrusage
10453 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10455 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10456 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #undef $ac_tr_decl
10462 #define $ac_tr_decl 1
10464 #include "ansidecl.h"
10465 #include "system.h"
10466 #ifdef HAVE_SYS_RESOURCE_H
10467 #include <sys/resource.h>
10468 #endif
10472 main ()
10474 #ifndef $ac_func
10475 char *(*pfn) = (char *(*)) $ac_func ;
10476 #endif
10478 return 0;
10480 _ACEOF
10481 if ac_fn_c_try_compile "$LINENO"; then :
10482 eval "gcc_cv_have_decl_$ac_func=yes"
10483 else
10484 eval "gcc_cv_have_decl_$ac_func=no"
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10491 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10492 #define $ac_tr_decl 1
10493 _ACEOF
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10498 #define $ac_tr_decl 0
10499 _ACEOF
10503 done
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 #include "ansidecl.h"
10510 #include "system.h"
10511 #ifdef HAVE_SYS_RESOURCE_H
10512 #include <sys/resource.h>
10513 #endif
10516 main ()
10518 rlim_t l = 0;
10520 return 0;
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"; then :
10525 else
10527 $as_echo "#define rlim_t long" >>confdefs.h
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10533 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10534 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10535 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10536 for ac_func in ldgetname
10538 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10540 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10541 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #undef $ac_tr_decl
10547 #define $ac_tr_decl 1
10549 #include "ansidecl.h"
10550 #include "system.h"
10551 #ifdef HAVE_LDFCN_H
10552 #undef FREAD
10553 #undef FWRITE
10554 #include <ldfcn.h>
10555 #endif
10559 main ()
10561 #ifndef $ac_func
10562 char *(*pfn) = (char *(*)) $ac_func ;
10563 #endif
10565 return 0;
10567 _ACEOF
10568 if ac_fn_c_try_compile "$LINENO"; then :
10569 eval "gcc_cv_have_decl_$ac_func=yes"
10570 else
10571 eval "gcc_cv_have_decl_$ac_func=no"
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 1
10580 _ACEOF
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10585 #define $ac_tr_decl 0
10586 _ACEOF
10590 done
10593 for ac_func in times
10595 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10597 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10598 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #undef $ac_tr_decl
10604 #define $ac_tr_decl 1
10606 #include "ansidecl.h"
10607 #include "system.h"
10608 #ifdef HAVE_SYS_TIMES_H
10609 #include <sys/times.h>
10610 #endif
10614 main ()
10616 #ifndef $ac_func
10617 char *(*pfn) = (char *(*)) $ac_func ;
10618 #endif
10620 return 0;
10622 _ACEOF
10623 if ac_fn_c_try_compile "$LINENO"; then :
10624 eval "gcc_cv_have_decl_$ac_func=yes"
10625 else
10626 eval "gcc_cv_have_decl_$ac_func=no"
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10633 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10634 #define $ac_tr_decl 1
10635 _ACEOF
10637 else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10640 #define $ac_tr_decl 0
10641 _ACEOF
10645 done
10648 for ac_func in sigaltstack
10650 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10652 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10653 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 #undef $ac_tr_decl
10659 #define $ac_tr_decl 1
10661 #include "ansidecl.h"
10662 #include "system.h"
10663 #include <signal.h>
10667 main ()
10669 #ifndef $ac_func
10670 char *(*pfn) = (char *(*)) $ac_func ;
10671 #endif
10673 return 0;
10675 _ACEOF
10676 if ac_fn_c_try_compile "$LINENO"; then :
10677 eval "gcc_cv_have_decl_$ac_func=yes"
10678 else
10679 eval "gcc_cv_have_decl_$ac_func=no"
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10686 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10687 #define $ac_tr_decl 1
10688 _ACEOF
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10693 #define $ac_tr_decl 0
10694 _ACEOF
10698 done
10701 # More time-related stuff.
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10703 $as_echo_n "checking for struct tms... " >&6; }
10704 if test "${ac_cv_struct_tms+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 #include "ansidecl.h"
10712 #include "system.h"
10713 #ifdef HAVE_SYS_TIMES_H
10714 #include <sys/times.h>
10715 #endif
10718 main ()
10720 struct tms tms;
10722 return 0;
10724 _ACEOF
10725 if ac_fn_c_try_compile "$LINENO"; then :
10726 ac_cv_struct_tms=yes
10727 else
10728 ac_cv_struct_tms=no
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10733 $as_echo "$ac_cv_struct_tms" >&6; }
10734 if test $ac_cv_struct_tms = yes; then
10736 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10740 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10741 # revisit after autoconf 2.50.
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10743 $as_echo_n "checking for clock_t... " >&6; }
10744 if test "${gcc_cv_type_clock_t+set}" = set; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 #include "ansidecl.h"
10752 #include "system.h"
10755 main ()
10757 clock_t x;
10759 return 0;
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763 gcc_cv_type_clock_t=yes
10764 else
10765 gcc_cv_type_clock_t=no
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10770 $as_echo "$gcc_cv_type_clock_t" >&6; }
10771 if test $gcc_cv_type_clock_t = yes; then
10773 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10777 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10778 CFLAGS="$saved_CFLAGS"
10780 # Check whether --enable-initfini-array was given.
10781 if test "${enable_initfini_array+set}" = set; then :
10782 enableval=$enable_initfini_array;
10783 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10786 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10787 if test "${gcc_cv_initfini_array+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10791 if test "$cross_compiling" = yes; then :
10792 gcc_cv_initfini_array=no
10793 else
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #ifndef __ELF__
10798 #error Not an ELF OS
10799 #endif
10800 #ifdef __ia64__
10801 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10802 if it can be used. */
10803 static int x = -1;
10804 int main (void) { return x; }
10805 int foo (void) { x = 0; }
10806 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10807 #else
10808 extern void abort ();
10809 static int count;
10811 static void
10812 init1005 ()
10814 if (count != 0)
10815 abort ();
10816 count = 1005;
10818 void (*const init_array1005) ()
10819 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10820 = { init1005 };
10821 static void
10822 fini1005 ()
10824 if (count != 1005)
10825 abort ();
10827 void (*const fini_array1005) ()
10828 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10829 = { fini1005 };
10831 static void
10832 ctor1007 ()
10834 if (count != 1005)
10835 abort ();
10836 count = 1007;
10838 void (*const ctors1007) ()
10839 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10840 = { ctor1007 };
10841 static void
10842 dtor1007 ()
10844 if (count != 1007)
10845 abort ();
10846 count = 1005;
10848 void (*const dtors1007) ()
10849 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10850 = { dtor1007 };
10852 static void
10853 init65530 ()
10855 if (count != 1007)
10856 abort ();
10857 count = 65530;
10859 void (*const init_array65530) ()
10860 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10861 = { init65530 };
10862 static void
10863 fini65530 ()
10865 if (count != 65530)
10866 abort ();
10867 count = 1007;
10869 void (*const fini_array65530) ()
10870 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10871 = { fini65530 };
10873 static void
10874 ctor65535 ()
10876 if (count != 65530)
10877 abort ();
10878 count = 65535;
10880 void (*const ctors65535) ()
10881 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10882 = { ctor65535 };
10883 static void
10884 dtor65535 ()
10886 if (count != 65535)
10887 abort ();
10888 count = 65530;
10890 void (*const dtors65535) ()
10891 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10892 = { dtor65535 };
10895 main ()
10897 if (count != 65535)
10898 abort ();
10899 return 0;
10901 #endif
10903 _ACEOF
10904 if ac_fn_c_try_run "$LINENO"; then :
10905 gcc_cv_initfini_array=yes
10906 else
10907 gcc_cv_initfini_array=no
10909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10910 conftest.$ac_objext conftest.beam conftest.$ac_ext
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10915 $as_echo_n "checking cross compile... guessing... " >&6; }
10916 gcc_cv_initfini_array=no
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10920 $as_echo "$gcc_cv_initfini_array" >&6; }
10921 enable_initfini_array=$gcc_cv_initfini_array
10925 if test $enable_initfini_array = yes; then
10927 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10931 # mkdir takes a single argument on some systems.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10933 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10934 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 #include <sys/types.h>
10941 #ifdef HAVE_SYS_STAT_H
10942 # include <sys/stat.h>
10943 #endif
10944 #ifdef HAVE_UNISTD_H
10945 # include <unistd.h>
10946 #endif
10947 #ifdef HAVE_DIRECT_H
10948 # include <direct.h>
10949 #endif
10951 main ()
10953 mkdir ("foo", 0);
10955 return 0;
10957 _ACEOF
10958 if ac_fn_c_try_compile "$LINENO"; then :
10959 gcc_cv_mkdir_takes_one_arg=no
10960 else
10961 gcc_cv_mkdir_takes_one_arg=yes
10963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10966 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10967 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10969 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10974 # File extensions
10975 manext='.1'
10976 objext='.o'
10980 # With Setjmp/Longjmp based exception handling.
10981 # Check whether --enable-sjlj-exceptions was given.
10982 if test "${enable_sjlj_exceptions+set}" = set; then :
10983 enableval=$enable_sjlj_exceptions; case $target in
10984 *-*-hpux10*)
10985 if test $enableval != yes; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10987 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10988 enableval=yes
10991 esac
10992 force_sjlj_exceptions=yes
10993 else
10994 case $target in
10995 *-*-hpux10*)
10996 force_sjlj_exceptions=yes
10997 enableval=yes
11000 force_sjlj_exceptions=no
11002 esac
11005 if test $force_sjlj_exceptions = yes; then
11006 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11008 cat >>confdefs.h <<_ACEOF
11009 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11010 _ACEOF
11014 # --------------------------------------------------------
11015 # Build, host, and target specific configuration fragments
11016 # --------------------------------------------------------
11018 # Collect build-machine-specific information.
11019 . ${srcdir}/config.build
11021 # Collect host-machine-specific information.
11022 . ${srcdir}/config.host
11024 target_gtfiles=
11026 # Collect target-machine-specific information.
11027 . ${srcdir}/config.gcc
11029 extra_objs="${host_extra_objs} ${extra_objs}"
11030 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11032 # Default the target-machine variables that were not explicitly set.
11033 if test x"$tm_file" = x
11034 then tm_file=$cpu_type/$cpu_type.h; fi
11036 if test x"$extra_headers" = x
11037 then extra_headers=; fi
11039 if test x$md_file = x
11040 then md_file=$cpu_type/$cpu_type.md; fi
11042 if test x$out_file = x
11043 then out_file=$cpu_type/$cpu_type.c; fi
11045 if test x"$tmake_file" = x
11046 then tmake_file=$cpu_type/t-$cpu_type
11049 if test x"$dwarf2" = xyes
11050 then tm_file="$tm_file tm-dwarf2.h"
11053 # Say what files are being used for the output code and MD file.
11054 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11055 echo "Using \`$srcdir/config/$md_file' as machine description file."
11057 # If any of the xm_file variables contain nonexistent files, warn
11058 # about them and drop them.
11061 for x in $build_xm_file; do
11062 if test -f $srcdir/config/$x
11063 then bx="$bx $x"
11064 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11065 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11067 done
11068 build_xm_file="$bx"
11071 for x in $host_xm_file; do
11072 if test -f $srcdir/config/$x
11073 then hx="$hx $x"
11074 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11075 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11077 done
11078 host_xm_file="$hx"
11081 for x in $xm_file; do
11082 if test -f $srcdir/config/$x
11083 then tx="$tx $x"
11084 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11085 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11087 done
11088 xm_file="$tx"
11090 count=a
11091 for f in $tm_file; do
11092 count=${count}x
11093 done
11094 if test $count = ax; then
11095 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11096 else
11097 echo "Using the following target machine macro files:"
11098 for f in $tm_file; do
11099 echo " $srcdir/config/$f"
11100 done
11103 if test x$need_64bit_hwint = xyes; then
11105 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11109 if test x$use_long_long_for_widest_fast_int = xyes; then
11111 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11115 count=a
11116 for f in $host_xm_file; do
11117 count=${count}x
11118 done
11119 if test $count = a; then
11121 elif test $count = ax; then
11122 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11123 else
11124 echo "Using the following host machine macro files:"
11125 for f in $host_xm_file; do
11126 echo " $srcdir/config/$f"
11127 done
11129 echo "Using ${out_host_hook_obj} for host machine hooks."
11131 if test "$host_xm_file" != "$build_xm_file"; then
11132 count=a
11133 for f in $build_xm_file; do
11134 count=${count}x
11135 done
11136 if test $count = a; then
11138 elif test $count = ax; then
11139 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11140 else
11141 echo "Using the following build machine macro files:"
11142 for f in $build_xm_file; do
11143 echo " $srcdir/config/$f"
11144 done
11148 case ${host} in
11149 powerpc*-*-darwin*)
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11151 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11152 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 #include <sys/cdefs.h>
11159 #include <sys/signal.h>
11160 #include <ucontext.h>
11161 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11163 _ACEOF
11164 if ac_fn_c_try_compile "$LINENO"; then :
11165 gcc_cv_mcontext_underscores=no
11166 else
11167 gcc_cv_mcontext_underscores=yes
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11172 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11173 if test $gcc_cv_mcontext_underscores = yes; then
11175 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11179 esac
11181 # ---------
11182 # Threading
11183 # ---------
11185 # Check if a valid thread package
11186 case ${enable_threads} in
11187 "" | no)
11188 # No threads
11189 target_thread_file='single'
11191 yes)
11192 # default
11193 target_thread_file='single'
11195 aix | dce | lynx | mipssde | posix | rtems | \
11196 single | tpf | vxworks | win32)
11197 target_thread_file=${enable_threads}
11200 echo "${enable_threads} is an unknown thread package" 1>&2
11201 exit 1
11203 esac
11205 if test x${thread_file} = x; then
11206 # No thread file set by target-specific clauses in config.gcc,
11207 # so use file chosen by default logic above
11208 thread_file=${target_thread_file}
11211 # Make gthr-default.h if we have a thread file.
11212 gthread_flags=
11213 if test $thread_file != single; then
11214 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11215 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11216 rm -f gthr-default.h-t
11217 else
11218 mv -f gthr-default.h-t gthr-default.h
11220 gthread_flags=-DHAVE_GTHR_DEFAULT
11224 # --------
11225 # UNSORTED
11226 # --------
11228 use_cxa_atexit=no
11229 if test x$enable___cxa_atexit = xyes || \
11230 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11231 if test x$host = x$target; then
11232 case $host in
11233 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11234 # keyed to flag_use_cxa_atexit
11235 *-*-mingw32*)
11236 use_cxa_atexit=yes
11239 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11240 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11241 use_cxa_atexit=yes
11242 else
11243 echo "__cxa_atexit can't be enabled on this target"
11247 esac
11248 else
11249 # We can't check for __cxa_atexit when building a cross, so assume
11250 # it is available
11251 use_cxa_atexit=yes
11253 if test x$use_cxa_atexit = xyes; then
11255 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11260 # Look for a file containing extra machine modes.
11261 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11262 extra_modes_file='$(srcdir)'/config/${extra_modes}
11265 cat >>confdefs.h <<_ACEOF
11266 #define EXTRA_MODES_FILE "config/$extra_modes"
11267 _ACEOF
11271 # Convert extra_options into a form suitable for Makefile use.
11272 extra_opt_files=
11273 all_opt_files=
11274 for f in $extra_options; do
11275 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11276 all_opt_files="$all_opt_files $srcdir/config/$f"
11277 done
11280 # auto-host.h is the file containing items generated by autoconf and is
11281 # the first file included by config.h.
11282 # If host=build, it is correct to have bconfig include auto-host.h
11283 # as well. If host!=build, we are in error and need to do more
11284 # work to find out the build config parameters.
11285 if test x$host = x$build
11286 then
11287 build_auto=auto-host.h
11288 else
11289 # We create a subdir, then run autoconf in the subdir.
11290 # To prevent recursion we set host and build for the new
11291 # invocation of configure to the build for this invocation
11292 # of configure.
11293 tempdir=build.$$
11294 rm -rf $tempdir
11295 mkdir $tempdir
11296 cd $tempdir
11297 case ${srcdir} in
11298 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11299 *) realsrcdir=../${srcdir};;
11300 esac
11301 saved_CFLAGS="${CFLAGS}"
11302 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11303 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11304 ${realsrcdir}/configure \
11305 --enable-languages=${enable_languages-all} \
11306 --target=$target_alias --host=$build_alias --build=$build_alias
11307 CFLAGS="${saved_CFLAGS}"
11309 # We just finished tests for the build machine, so rename
11310 # the file auto-build.h in the gcc directory.
11311 mv auto-host.h ../auto-build.h
11312 cd ..
11313 rm -rf $tempdir
11314 build_auto=auto-build.h
11318 tm_file="${tm_file} defaults.h"
11319 tm_p_file="${tm_p_file} tm-preds.h"
11320 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11321 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11322 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11323 # put this back in temporarily.
11324 xm_file="auto-host.h ansidecl.h ${xm_file}"
11326 # --------
11327 # UNSORTED
11328 # --------
11330 # Compile in configure arguments.
11331 if test -f configargs.h ; then
11332 # Being re-configured.
11333 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11334 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11335 else
11336 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11339 # Double all backslashes and backslash all quotes to turn
11340 # gcc_config_arguments into a C string.
11341 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11342 $gcc_config_arguments
11344 gcc_config_arguments_str=`cat conftest.out`
11345 rm -f conftest.out
11347 cat > configargs.h <<EOF
11348 /* Generated automatically. */
11349 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11350 static const char thread_model[] = "$thread_file";
11352 static const struct {
11353 const char *name, *value;
11354 } configure_default_options[] = $configure_default_options;
11357 gcc_BASEVER=`cat $srcdir/BASE-VER`
11358 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11359 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11360 if test -f $srcdir/REVISION ; then
11361 gcc_REVISION=`cat $srcdir/REVISION`
11362 else
11363 gcc_REVISION=""
11365 cat > plugin-version.h <<EOF
11366 #include "configargs.h"
11368 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11369 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11370 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11371 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11373 static char basever[] = "$gcc_BASEVER";
11374 static char datestamp[] = "$gcc_DATESTAMP";
11375 static char devphase[] = "$gcc_DEVPHASE";
11376 static char revision[] = "$gcc_REVISION";
11378 /* FIXME plugins: We should make the version information more precise.
11379 One way to do is to add a checksum. */
11381 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11382 devphase, revision,
11383 configuration_arguments};
11386 # Internationalization
11387 # If we haven't got the data from the intl directory,
11388 # assume NLS is disabled.
11389 USE_NLS=no
11390 LIBINTL=
11391 LIBINTL_DEP=
11392 INCINTL=
11393 XGETTEXT=
11394 GMSGFMT=
11395 POSUB=
11397 if test -f ../intl/config.intl; then
11398 . ../intl/config.intl
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11401 $as_echo_n "checking whether NLS is requested... " >&6; }
11402 if test x"$USE_NLS" != xyes; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407 $as_echo "yes" >&6; }
11409 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11413 $as_echo_n "checking for catalogs to be installed... " >&6; }
11414 # Look for .po and .gmo files in the source directory.
11415 CATALOGS=
11416 XLINGUAS=
11417 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11418 # If there aren't any .gmo files the shell will give us the
11419 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11420 # weeded out.
11421 case "$cat" in *\**)
11422 continue;;
11423 esac
11424 # The quadruple backslash is collapsed to a double backslash
11425 # by the backticks, then collapsed again by the double quotes,
11426 # leaving us with one backslash in the sed expression (right
11427 # before the dot that mustn't act as a wildcard).
11428 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11429 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11430 # The user is allowed to set LINGUAS to a list of languages to
11431 # install catalogs for. If it's empty that means "all of them."
11432 if test "x$LINGUAS" = x; then
11433 CATALOGS="$CATALOGS $cat"
11434 XLINGUAS="$XLINGUAS $lang"
11435 else
11436 case "$LINGUAS" in *$lang*)
11437 CATALOGS="$CATALOGS $cat"
11438 XLINGUAS="$XLINGUAS $lang"
11440 esac
11442 done
11443 LINGUAS="$XLINGUAS"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11445 $as_echo "$LINGUAS" >&6; }
11448 DATADIRNAME=share
11450 INSTOBJEXT=.mo
11452 GENCAT=gencat
11454 CATOBJEXT=.gmo
11458 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11459 # -liconv on the link line twice.
11460 case "$LIBINTL" in *$LIBICONV*)
11461 LIBICONV= ;;
11462 esac
11464 # Check whether --enable-secureplt was given.
11465 if test "${enable_secureplt+set}" = set; then :
11466 enableval=$enable_secureplt;
11470 # Check whether --enable-leading-mingw64-underscores was given.
11471 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11472 enableval=$enable_leading_mingw64_underscores;
11475 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11477 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11481 # Check whether --enable-cld was given.
11482 if test "${enable_cld+set}" = set; then :
11483 enableval=$enable_cld;
11484 else
11485 enable_cld=no
11489 # Check whether --enable-frame-pointer was given.
11490 if test "${enable_frame_pointer+set}" = set; then :
11491 enableval=$enable_frame_pointer;
11492 else
11494 case $target_os in
11495 linux* | darwin[8912]*)
11496 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11497 # DWARF2.
11498 enable_frame_pointer=no
11501 enable_frame_pointer=yes
11503 esac
11508 # Windows32 Registry support for specifying GCC installation paths.
11509 # Check whether --enable-win32-registry was given.
11510 if test "${enable_win32_registry+set}" = set; then :
11511 enableval=$enable_win32_registry;
11515 case $host_os in
11516 win32 | pe | cygwin* | mingw32* | uwin*)
11517 if test "x$enable_win32_registry" != xno; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11519 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11520 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 ac_func_search_save_LIBS=$LIBS
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char RegOpenKeyExA ();
11535 main ()
11537 return RegOpenKeyExA ();
11539 return 0;
11541 _ACEOF
11542 for ac_lib in '' advapi32; do
11543 if test -z "$ac_lib"; then
11544 ac_res="none required"
11545 else
11546 ac_res=-l$ac_lib
11547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_search_RegOpenKeyExA=$ac_res
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext
11554 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11555 break
11557 done
11558 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11560 else
11561 ac_cv_search_RegOpenKeyExA=no
11563 rm conftest.$ac_ext
11564 LIBS=$ac_func_search_save_LIBS
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11567 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11568 ac_res=$ac_cv_search_RegOpenKeyExA
11569 if test "$ac_res" != no; then :
11570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11572 else
11573 enable_win32_registry=no
11578 if test "x$enable_win32_registry" != xno; then
11580 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11583 if test "x$enable_win32_registry" != xyes \
11584 && test "x$enable_win32_registry" != x; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11588 _ACEOF
11593 esac
11595 # Get an absolute path to the GCC top-level source directory
11596 holddir=`${PWDCMD-pwd}`
11597 cd $srcdir
11598 topdir=`${PWDCMD-pwd}`
11599 cd $holddir
11601 # Conditionalize the makefile for this host machine.
11602 xmake_file=
11603 for f in ${host_xmake_file}
11605 if test -f ${srcdir}/config/$f
11606 then
11607 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11609 done
11611 # Conditionalize the makefile for this target machine.
11612 tmake_file_=
11613 for f in ${tmake_file}
11615 if test -f ${srcdir}/config/$f
11616 then
11617 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11619 done
11620 tmake_file="${tmake_file_}"
11622 out_object_file=`basename $out_file .c`.o
11623 common_out_object_file=`basename $common_out_file .c`.o
11625 tm_file_list="options.h"
11626 tm_include_list="options.h insn-constants.h"
11627 for f in $tm_file; do
11628 case $f in
11629 ./* )
11630 f=`echo $f | sed 's/^..//'`
11631 tm_file_list="${tm_file_list} $f"
11632 tm_include_list="${tm_include_list} $f"
11634 defaults.h )
11635 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11636 tm_include_list="${tm_include_list} $f"
11639 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11640 tm_include_list="${tm_include_list} config/$f"
11642 esac
11643 done
11645 libgcc_tm_file_list=
11646 libgcc_tm_include_list=
11647 for f in $libgcc_tm_file; do
11648 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11649 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11650 done
11652 tm_p_file_list=
11653 tm_p_include_list=
11654 for f in $tm_p_file; do
11655 case $f in
11656 tm-preds.h )
11657 tm_p_file_list="${tm_p_file_list} $f"
11658 tm_p_include_list="${tm_p_include_list} $f"
11661 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11662 tm_p_include_list="${tm_p_include_list} config/$f"
11663 esac
11664 done
11666 xm_file_list=
11667 xm_include_list=
11668 for f in $xm_file; do
11669 case $f in
11670 ansidecl.h )
11671 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11672 xm_include_list="${xm_include_list} $f"
11674 auto-host.h )
11675 xm_file_list="${xm_file_list} $f"
11676 xm_include_list="${xm_include_list} $f"
11679 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11680 xm_include_list="${xm_include_list} config/$f"
11682 esac
11683 done
11685 host_xm_file_list=
11686 host_xm_include_list=
11687 for f in $host_xm_file; do
11688 case $f in
11689 ansidecl.h )
11690 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11691 host_xm_include_list="${host_xm_include_list} $f"
11693 auto-host.h )
11694 host_xm_file_list="${host_xm_file_list} $f"
11695 host_xm_include_list="${host_xm_include_list} $f"
11698 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11699 host_xm_include_list="${host_xm_include_list} config/$f"
11701 esac
11702 done
11704 build_xm_file_list=
11705 for f in $build_xm_file; do
11706 case $f in
11707 ansidecl.h )
11708 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11709 build_xm_include_list="${build_xm_include_list} $f"
11711 auto-build.h | auto-host.h )
11712 build_xm_file_list="${build_xm_file_list} $f"
11713 build_xm_include_list="${build_xm_include_list} $f"
11716 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11717 build_xm_include_list="${build_xm_include_list} config/$f"
11719 esac
11720 done
11722 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11723 # cross-compiler which does not use the native headers and libraries.
11724 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11725 CROSS=
11726 ALL=all.internal
11727 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11729 if test "x$with_build_sysroot" != x; then
11730 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11731 else
11732 # This value is used, even on a native system, because
11733 # CROSS_SYSTEM_HEADER_DIR is just
11734 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11735 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11738 if test x$host != x$target
11739 then
11740 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11741 ALL=all.cross
11742 SYSTEM_HEADER_DIR=$build_system_header_dir
11743 case "$host","$target" in
11744 # Darwin crosses can use the host system's libraries and headers,
11745 # because of the fat library support. Of course, it must be the
11746 # same version of Darwin on both sides. Allow the user to
11747 # just say --target=foo-darwin without a version number to mean
11748 # "the version on this system".
11749 *-*-darwin*,*-*-darwin*)
11750 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11751 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11752 if test $hostos = $targetos -o $targetos = darwin ; then
11753 CROSS=
11754 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11755 with_headers=yes
11759 i?86-*-*,x86_64-*-* \
11760 | powerpc*-*-*,powerpc64*-*-*)
11761 CROSS="$CROSS -DNATIVE_CROSS" ;;
11762 esac
11764 case $target in
11765 *-*-mingw*)
11766 if test "x$with_headers" = x; then
11767 with_headers=yes
11772 esac
11773 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11774 SYSTEM_HEADER_DIR=$build_system_header_dir
11777 # If this is a cross-compiler that does not
11778 # have its own set of headers then define
11779 # inhibit_libc
11781 # If this is using newlib, without having the headers available now,
11782 # then define inhibit_libc in LIBGCC2_CFLAGS.
11783 # This prevents libgcc2 from containing any code which requires libc
11784 # support.
11785 : ${inhibit_libc=false}
11786 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11787 test x$with_newlib = xyes ; } &&
11788 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11789 inhibit_libc=true
11793 # When building gcc with a cross-compiler, we need to adjust things so
11794 # that the generator programs are still built with the native compiler.
11795 # Also, we cannot run fixincludes.
11797 # These are the normal (build=host) settings:
11798 CC_FOR_BUILD='$(CC)'
11799 BUILD_CFLAGS='$(ALL_CFLAGS)'
11800 BUILD_LDFLAGS='$(LDFLAGS)'
11801 STMP_FIXINC=stmp-fixinc
11803 # And these apply if build != host, or we are generating coverage data
11804 if test x$build != x$host || test "x$coverage_flags" != x
11805 then
11806 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11807 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11810 # Expand extra_headers to include complete path.
11811 # This substitutes for lots of t-* files.
11812 extra_headers_list=
11813 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11814 for file in ${extra_headers} ; do
11815 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11816 done
11818 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11819 if test x"$use_gcc_tgmath" = xyes
11820 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11823 # Define collect2 in Makefile.
11824 case $host_can_use_collect2 in
11825 no) collect2= ;;
11826 *) collect2='collect2$(exeext)' ;;
11827 esac
11830 # Add a definition of USE_COLLECT2 if system wants one.
11831 case $use_collect2 in
11832 no) use_collect2= ;;
11833 "") ;;
11835 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11836 xm_defines="${xm_defines} USE_COLLECT2"
11837 case $host_can_use_collect2 in
11839 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11841 esac
11843 esac
11846 cat >>confdefs.h <<_ACEOF
11847 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11848 _ACEOF
11851 # ---------------------------
11852 # Assembler & linker features
11853 # ---------------------------
11855 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11856 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11857 # However when ld-new is first executed from the build tree, libtool will
11858 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11859 # to the build tree. While doing this we need to use the previous-stage
11860 # linker, or we have an infinite loop. The presence of a shell script as
11861 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11862 # the gcc/collect-ld script. So we need to know how libtool works, or
11863 # exec-tool will fail.
11866 case `pwd` in
11867 *\ * | *\ *)
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11869 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11870 esac
11874 macro_version='2.2.7a'
11875 macro_revision='1.3134'
11889 ltmain="$ac_aux_dir/ltmain.sh"
11891 # Backslashify metacharacters that are still active within
11892 # double-quoted strings.
11893 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11895 # Same as above, but do not quote variable references.
11896 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11898 # Sed substitution to delay expansion of an escaped shell variable in a
11899 # double_quote_subst'ed string.
11900 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11902 # Sed substitution to delay expansion of an escaped single quote.
11903 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11905 # Sed substitution to avoid accidental globbing in evaled expressions
11906 no_glob_subst='s/\*/\\\*/g'
11908 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11909 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11913 $as_echo_n "checking how to print strings... " >&6; }
11914 # Test print first, because it will be a builtin if present.
11915 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11916 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11917 ECHO='print -r --'
11918 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11919 ECHO='printf %s\n'
11920 else
11921 # Use this function as a fallback that always works.
11922 func_fallback_echo ()
11924 eval 'cat <<_LTECHO_EOF
11926 _LTECHO_EOF'
11928 ECHO='func_fallback_echo'
11931 # func_echo_all arg...
11932 # Invoke $ECHO with all args, space-separated.
11933 func_echo_all ()
11935 $ECHO ""
11938 case "$ECHO" in
11939 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11940 $as_echo "printf" >&6; } ;;
11941 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11942 $as_echo "print -r" >&6; } ;;
11943 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11944 $as_echo "cat" >&6; } ;;
11945 esac
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11961 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11962 if test "${ac_cv_path_SED+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11966 for ac_i in 1 2 3 4 5 6 7; do
11967 ac_script="$ac_script$as_nl$ac_script"
11968 done
11969 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11970 { ac_script=; unset ac_script;}
11971 if test -z "$SED"; then
11972 ac_path_SED_found=false
11973 # Loop through the user's path and test for each of PROGNAME-LIST
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
11979 for ac_prog in sed gsed; do
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11982 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11983 # Check for GNU ac_path_SED and select it if it is found.
11984 # Check for GNU $ac_path_SED
11985 case `"$ac_path_SED" --version 2>&1` in
11986 *GNU*)
11987 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11989 ac_count=0
11990 $as_echo_n 0123456789 >"conftest.in"
11991 while :
11993 cat "conftest.in" "conftest.in" >"conftest.tmp"
11994 mv "conftest.tmp" "conftest.in"
11995 cp "conftest.in" "conftest.nl"
11996 $as_echo '' >> "conftest.nl"
11997 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11999 as_fn_arith $ac_count + 1 && ac_count=$as_val
12000 if test $ac_count -gt ${ac_path_SED_max-0}; then
12001 # Best one so far, save it but keep looking for a better one
12002 ac_cv_path_SED="$ac_path_SED"
12003 ac_path_SED_max=$ac_count
12005 # 10*(2^10) chars as input seems more than enough
12006 test $ac_count -gt 10 && break
12007 done
12008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12009 esac
12011 $ac_path_SED_found && break 3
12012 done
12013 done
12014 done
12015 IFS=$as_save_IFS
12016 if test -z "$ac_cv_path_SED"; then
12017 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12019 else
12020 ac_cv_path_SED=$SED
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12025 $as_echo "$ac_cv_path_SED" >&6; }
12026 SED="$ac_cv_path_SED"
12027 rm -f conftest.sed
12029 test -z "$SED" && SED=sed
12030 Xsed="$SED -e 1s/^X//"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12043 $as_echo_n "checking for fgrep... " >&6; }
12044 if test "${ac_cv_path_FGREP+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12048 then ac_cv_path_FGREP="$GREP -F"
12049 else
12050 if test -z "$FGREP"; then
12051 ac_path_FGREP_found=false
12052 # Loop through the user's path and test for each of PROGNAME-LIST
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_prog in fgrep; do
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12061 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12062 # Check for GNU ac_path_FGREP and select it if it is found.
12063 # Check for GNU $ac_path_FGREP
12064 case `"$ac_path_FGREP" --version 2>&1` in
12065 *GNU*)
12066 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12068 ac_count=0
12069 $as_echo_n 0123456789 >"conftest.in"
12070 while :
12072 cat "conftest.in" "conftest.in" >"conftest.tmp"
12073 mv "conftest.tmp" "conftest.in"
12074 cp "conftest.in" "conftest.nl"
12075 $as_echo 'FGREP' >> "conftest.nl"
12076 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12078 as_fn_arith $ac_count + 1 && ac_count=$as_val
12079 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12080 # Best one so far, save it but keep looking for a better one
12081 ac_cv_path_FGREP="$ac_path_FGREP"
12082 ac_path_FGREP_max=$ac_count
12084 # 10*(2^10) chars as input seems more than enough
12085 test $ac_count -gt 10 && break
12086 done
12087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12088 esac
12090 $ac_path_FGREP_found && break 3
12091 done
12092 done
12093 done
12094 IFS=$as_save_IFS
12095 if test -z "$ac_cv_path_FGREP"; then
12096 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12098 else
12099 ac_cv_path_FGREP=$FGREP
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12105 $as_echo "$ac_cv_path_FGREP" >&6; }
12106 FGREP="$ac_cv_path_FGREP"
12109 test -z "$GREP" && GREP=grep
12129 # Check whether --with-gnu-ld was given.
12130 if test "${with_gnu_ld+set}" = set; then :
12131 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12132 else
12133 with_gnu_ld=no
12136 ac_prog=ld
12137 if test "$GCC" = yes; then
12138 # Check if gcc -print-prog-name=ld gives a path.
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12140 $as_echo_n "checking for ld used by $CC... " >&6; }
12141 case $host in
12142 *-*-mingw*)
12143 # gcc leaves a trailing carriage return which upsets mingw
12144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12147 esac
12148 case $ac_prog in
12149 # Accept absolute paths.
12150 [\\/]* | ?:[\\/]*)
12151 re_direlt='/[^/][^/]*/\.\./'
12152 # Canonicalize the pathname of ld
12153 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12154 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12155 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12156 done
12157 test -z "$LD" && LD="$ac_prog"
12160 # If it fails, then pretend we aren't using GCC.
12161 ac_prog=ld
12164 # If it is relative, then search for the first ld in PATH.
12165 with_gnu_ld=unknown
12167 esac
12168 elif test "$with_gnu_ld" = yes; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12170 $as_echo_n "checking for GNU ld... " >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12173 $as_echo_n "checking for non-GNU ld... " >&6; }
12175 if test "${lt_cv_path_LD+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -z "$LD"; then
12179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12180 for ac_dir in $PATH; do
12181 IFS="$lt_save_ifs"
12182 test -z "$ac_dir" && ac_dir=.
12183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12184 lt_cv_path_LD="$ac_dir/$ac_prog"
12185 # Check to see if the program is GNU ld. I'd rather use --version,
12186 # but apparently some variants of GNU ld only accept -v.
12187 # Break only if it was the GNU/non-GNU ld that we prefer.
12188 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12189 *GNU* | *'with BFD'*)
12190 test "$with_gnu_ld" != no && break
12193 test "$with_gnu_ld" != yes && break
12195 esac
12197 done
12198 IFS="$lt_save_ifs"
12199 else
12200 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12204 LD="$lt_cv_path_LD"
12205 if test -n "$LD"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12207 $as_echo "$LD" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12214 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12215 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12219 case `$LD -v 2>&1 </dev/null` in
12220 *GNU* | *'with BFD'*)
12221 lt_cv_prog_gnu_ld=yes
12224 lt_cv_prog_gnu_ld=no
12226 esac
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12229 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12230 with_gnu_ld=$lt_cv_prog_gnu_ld
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12241 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12242 if test "${lt_cv_path_NM+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 if test -n "$NM"; then
12246 # Let the user override the test.
12247 lt_cv_path_NM="$NM"
12248 else
12249 lt_nm_to_check="${ac_tool_prefix}nm"
12250 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12251 lt_nm_to_check="$lt_nm_to_check nm"
12253 for lt_tmp_nm in $lt_nm_to_check; do
12254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12255 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12256 IFS="$lt_save_ifs"
12257 test -z "$ac_dir" && ac_dir=.
12258 tmp_nm="$ac_dir/$lt_tmp_nm"
12259 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12260 # Check to see if the nm accepts a BSD-compat flag.
12261 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12262 # nm: unknown option "B" ignored
12263 # Tru64's nm complains that /dev/null is an invalid object file
12264 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12265 */dev/null* | *'Invalid file or object type'*)
12266 lt_cv_path_NM="$tmp_nm -B"
12267 break
12270 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12271 */dev/null*)
12272 lt_cv_path_NM="$tmp_nm -p"
12273 break
12276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12277 continue # so that we can try to find one that supports BSD flags
12279 esac
12281 esac
12283 done
12284 IFS="$lt_save_ifs"
12285 done
12286 : ${lt_cv_path_NM=no}
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12290 $as_echo "$lt_cv_path_NM" >&6; }
12291 if test "$lt_cv_path_NM" != "no"; then
12292 NM="$lt_cv_path_NM"
12293 else
12294 # Didn't find any BSD compatible name lister, look for dumpbin.
12295 if test -n "$DUMPBIN"; then :
12296 # Let the user override the test.
12297 else
12298 if test -n "$ac_tool_prefix"; then
12299 for ac_prog in dumpbin "link -dump"
12301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 if test -n "$DUMPBIN"; then
12309 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12322 done
12323 done
12324 IFS=$as_save_IFS
12328 DUMPBIN=$ac_cv_prog_DUMPBIN
12329 if test -n "$DUMPBIN"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12331 $as_echo "$DUMPBIN" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12338 test -n "$DUMPBIN" && break
12339 done
12341 if test -z "$DUMPBIN"; then
12342 ac_ct_DUMPBIN=$DUMPBIN
12343 for ac_prog in dumpbin "link -dump"
12345 # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 if test -n "$ac_ct_DUMPBIN"; then
12353 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12366 done
12367 done
12368 IFS=$as_save_IFS
12372 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12373 if test -n "$ac_ct_DUMPBIN"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12375 $as_echo "$ac_ct_DUMPBIN" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 test -n "$ac_ct_DUMPBIN" && break
12383 done
12385 if test "x$ac_ct_DUMPBIN" = x; then
12386 DUMPBIN=":"
12387 else
12388 case $cross_compiling:$ac_tool_warned in
12389 yes:)
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392 ac_tool_warned=yes ;;
12393 esac
12394 DUMPBIN=$ac_ct_DUMPBIN
12398 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12399 *COFF*)
12400 DUMPBIN="$DUMPBIN -symbols"
12403 DUMPBIN=:
12405 esac
12408 if test "$DUMPBIN" != ":"; then
12409 NM="$DUMPBIN"
12412 test -z "$NM" && NM=nm
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12420 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12421 if test "${lt_cv_nm_interface+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 lt_cv_nm_interface="BSD nm"
12425 echo "int some_variable = 0;" > conftest.$ac_ext
12426 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12427 (eval "$ac_compile" 2>conftest.err)
12428 cat conftest.err >&5
12429 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12430 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12431 cat conftest.err >&5
12432 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12433 cat conftest.out >&5
12434 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12435 lt_cv_nm_interface="MS dumpbin"
12437 rm -f conftest*
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12440 $as_echo "$lt_cv_nm_interface" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12443 $as_echo_n "checking whether ln -s works... " >&6; }
12444 LN_S=$as_ln_s
12445 if test "$LN_S" = "ln -s"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; }
12448 else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12450 $as_echo "no, using $LN_S" >&6; }
12453 # find the maximum length of command line arguments
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12455 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12456 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12460 teststring="ABCD"
12462 case $build_os in
12463 msdosdjgpp*)
12464 # On DJGPP, this test can blow up pretty badly due to problems in libc
12465 # (any single argument exceeding 2000 bytes causes a buffer overrun
12466 # during glob expansion). Even if it were fixed, the result of this
12467 # check would be larger than it should be.
12468 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12471 gnu*)
12472 # Under GNU Hurd, this test is not required because there is
12473 # no limit to the length of command line arguments.
12474 # Libtool will interpret -1 as no limit whatsoever
12475 lt_cv_sys_max_cmd_len=-1;
12478 cygwin* | mingw* | cegcc*)
12479 # On Win9x/ME, this test blows up -- it succeeds, but takes
12480 # about 5 minutes as the teststring grows exponentially.
12481 # Worse, since 9x/ME are not pre-emptively multitasking,
12482 # you end up with a "frozen" computer, even though with patience
12483 # the test eventually succeeds (with a max line length of 256k).
12484 # Instead, let's just punt: use the minimum linelength reported by
12485 # all of the supported platforms: 8192 (on NT/2K/XP).
12486 lt_cv_sys_max_cmd_len=8192;
12489 mint*)
12490 # On MiNT this can take a long time and run out of memory.
12491 lt_cv_sys_max_cmd_len=8192;
12494 amigaos*)
12495 # On AmigaOS with pdksh, this test takes hours, literally.
12496 # So we just punt and use a minimum line length of 8192.
12497 lt_cv_sys_max_cmd_len=8192;
12500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12501 # This has been around since 386BSD, at least. Likely further.
12502 if test -x /sbin/sysctl; then
12503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12504 elif test -x /usr/sbin/sysctl; then
12505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12506 else
12507 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12509 # And add a safety zone
12510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12514 interix*)
12515 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12516 lt_cv_sys_max_cmd_len=196608
12519 osf*)
12520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12522 # nice to cause kernel panics so lets avoid the loop below.
12523 # First set a reasonable default.
12524 lt_cv_sys_max_cmd_len=16384
12526 if test -x /sbin/sysconfig; then
12527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12528 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12529 esac
12532 sco3.2v5*)
12533 lt_cv_sys_max_cmd_len=102400
12535 sysv5* | sco5v6* | sysv4.2uw2*)
12536 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12537 if test -n "$kargmax"; then
12538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12539 else
12540 lt_cv_sys_max_cmd_len=32768
12544 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12545 if test -n "$lt_cv_sys_max_cmd_len"; then
12546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12548 else
12549 # Make teststring a little bigger before we do anything with it.
12550 # a 1K string should be a reasonable start.
12551 for i in 1 2 3 4 5 6 7 8 ; do
12552 teststring=$teststring$teststring
12553 done
12554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12555 # If test is not a shell built-in, we'll probably end up computing a
12556 # maximum length that is only half of the actual maximum length, but
12557 # we can't tell.
12558 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12559 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12560 test $i != 17 # 1/2 MB should be enough
12562 i=`expr $i + 1`
12563 teststring=$teststring$teststring
12564 done
12565 # Only check the string length outside the loop.
12566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12567 teststring=
12568 # Add a significant safety factor because C++ compilers can tack on
12569 # massive amounts of additional arguments before passing them to the
12570 # linker. It appears as though 1/2 is a usable value.
12571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12574 esac
12578 if test -n $lt_cv_sys_max_cmd_len ; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12580 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12583 $as_echo "none" >&6; }
12585 max_cmd_len=$lt_cv_sys_max_cmd_len
12592 : ${CP="cp -f"}
12593 : ${MV="mv -f"}
12594 : ${RM="rm -f"}
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12597 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12598 # Try some XSI features
12599 xsi_shell=no
12600 ( _lt_dummy="a/b/c"
12601 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12602 = c,a/b,, \
12603 && eval 'test $(( 1 + 1 )) -eq 2 \
12604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12605 && xsi_shell=yes
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12607 $as_echo "$xsi_shell" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12611 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12612 lt_shell_append=no
12613 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12614 >/dev/null 2>&1 \
12615 && lt_shell_append=yes
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12617 $as_echo "$lt_shell_append" >&6; }
12620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12621 lt_unset=unset
12622 else
12623 lt_unset=false
12630 # test EBCDIC or ASCII
12631 case `echo X|tr X '\101'` in
12632 A) # ASCII based system
12633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12634 lt_SP2NL='tr \040 \012'
12635 lt_NL2SP='tr \015\012 \040\040'
12637 *) # EBCDIC based system
12638 lt_SP2NL='tr \100 \n'
12639 lt_NL2SP='tr \r\n \100\100'
12641 esac
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12652 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12653 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 lt_cv_ld_reload_flag='-r'
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12659 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12660 reload_flag=$lt_cv_ld_reload_flag
12661 case $reload_flag in
12662 "" | " "*) ;;
12663 *) reload_flag=" $reload_flag" ;;
12664 esac
12665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12666 case $host_os in
12667 darwin*)
12668 if test "$GCC" = yes; then
12669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12670 else
12671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12674 esac
12684 if test -n "$ac_tool_prefix"; then
12685 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12686 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 if test -n "$OBJDUMP"; then
12693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12702 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12706 done
12707 done
12708 IFS=$as_save_IFS
12712 OBJDUMP=$ac_cv_prog_OBJDUMP
12713 if test -n "$OBJDUMP"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12715 $as_echo "$OBJDUMP" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12723 if test -z "$ac_cv_prog_OBJDUMP"; then
12724 ac_ct_OBJDUMP=$OBJDUMP
12725 # Extract the first word of "objdump", so it can be a program name with args.
12726 set dummy objdump; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 if test -n "$ac_ct_OBJDUMP"; then
12733 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12734 else
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12746 done
12747 done
12748 IFS=$as_save_IFS
12752 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12753 if test -n "$ac_ct_OBJDUMP"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12755 $as_echo "$ac_ct_OBJDUMP" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12761 if test "x$ac_ct_OBJDUMP" = x; then
12762 OBJDUMP="false"
12763 else
12764 case $cross_compiling:$ac_tool_warned in
12765 yes:)
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12768 ac_tool_warned=yes ;;
12769 esac
12770 OBJDUMP=$ac_ct_OBJDUMP
12772 else
12773 OBJDUMP="$ac_cv_prog_OBJDUMP"
12776 test -z "$OBJDUMP" && OBJDUMP=objdump
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12787 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12788 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 lt_cv_file_magic_cmd='$MAGIC_CMD'
12792 lt_cv_file_magic_test_file=
12793 lt_cv_deplibs_check_method='unknown'
12794 # Need to set the preceding variable on all platforms that support
12795 # interlibrary dependencies.
12796 # 'none' -- dependencies not supported.
12797 # `unknown' -- same as none, but documents that we really don't know.
12798 # 'pass_all' -- all dependencies passed with no checks.
12799 # 'test_compile' -- check by making test program.
12800 # 'file_magic [[regex]]' -- check by looking for files in library path
12801 # which responds to the $file_magic_cmd with a given extended regex.
12802 # If you have `file' or equivalent on your system and you're not sure
12803 # whether `pass_all' will *always* work, you probably want this one.
12805 case $host_os in
12806 aix[4-9]*)
12807 lt_cv_deplibs_check_method=pass_all
12810 beos*)
12811 lt_cv_deplibs_check_method=pass_all
12814 bsdi[45]*)
12815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12816 lt_cv_file_magic_cmd='/usr/bin/file -L'
12817 lt_cv_file_magic_test_file=/shlib/libc.so
12820 cygwin*)
12821 # func_win32_libid is a shell function defined in ltmain.sh
12822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12823 lt_cv_file_magic_cmd='func_win32_libid'
12826 mingw* | pw32*)
12827 # Base MSYS/MinGW do not provide the 'file' command needed by
12828 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12829 # unless we find 'file', for example because we are cross-compiling.
12830 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12831 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12832 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12833 lt_cv_file_magic_cmd='func_win32_libid'
12834 else
12835 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12836 lt_cv_file_magic_cmd='$OBJDUMP -f'
12840 cegcc*)
12841 # use the weaker test based on 'objdump'. See mingw*.
12842 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12843 lt_cv_file_magic_cmd='$OBJDUMP -f'
12846 darwin* | rhapsody*)
12847 lt_cv_deplibs_check_method=pass_all
12850 freebsd* | dragonfly*)
12851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12852 case $host_cpu in
12853 i*86 )
12854 # Not sure whether the presence of OpenBSD here was a mistake.
12855 # Let's accept both of them until this is cleared up.
12856 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12857 lt_cv_file_magic_cmd=/usr/bin/file
12858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12860 esac
12861 else
12862 lt_cv_deplibs_check_method=pass_all
12866 gnu*)
12867 lt_cv_deplibs_check_method=pass_all
12870 haiku*)
12871 lt_cv_deplibs_check_method=pass_all
12874 hpux10.20* | hpux11*)
12875 lt_cv_file_magic_cmd=/usr/bin/file
12876 case $host_cpu in
12877 ia64*)
12878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12881 hppa*64*)
12882 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]'
12883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12889 esac
12892 interix[3-9]*)
12893 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12897 irix5* | irix6* | nonstopux*)
12898 case $LD in
12899 *-32|*"-32 ") libmagic=32-bit;;
12900 *-n32|*"-n32 ") libmagic=N32;;
12901 *-64|*"-64 ") libmagic=64-bit;;
12902 *) libmagic=never-match;;
12903 esac
12904 lt_cv_deplibs_check_method=pass_all
12907 # This must be Linux ELF.
12908 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12909 lt_cv_deplibs_check_method=pass_all
12912 netbsd*)
12913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12915 else
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12920 newos6*)
12921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12922 lt_cv_file_magic_cmd=/usr/bin/file
12923 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12926 *nto* | *qnx*)
12927 lt_cv_deplibs_check_method=pass_all
12930 openbsd*)
12931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12933 else
12934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12938 osf3* | osf4* | osf5*)
12939 lt_cv_deplibs_check_method=pass_all
12942 rdos*)
12943 lt_cv_deplibs_check_method=pass_all
12946 solaris*)
12947 lt_cv_deplibs_check_method=pass_all
12950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12951 lt_cv_deplibs_check_method=pass_all
12954 sysv4 | sysv4.3*)
12955 case $host_vendor in
12956 motorola)
12957 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]'
12958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12960 ncr)
12961 lt_cv_deplibs_check_method=pass_all
12963 sequent)
12964 lt_cv_file_magic_cmd='/bin/file'
12965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12967 sni)
12968 lt_cv_file_magic_cmd='/bin/file'
12969 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12970 lt_cv_file_magic_test_file=/lib/libc.so
12972 siemens)
12973 lt_cv_deplibs_check_method=pass_all
12976 lt_cv_deplibs_check_method=pass_all
12978 esac
12981 tpf*)
12982 lt_cv_deplibs_check_method=pass_all
12984 esac
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12988 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12989 file_magic_cmd=$lt_cv_file_magic_cmd
12990 deplibs_check_method=$lt_cv_deplibs_check_method
12991 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13004 if test -n "$ac_tool_prefix"; then
13005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13006 set dummy ${ac_tool_prefix}ar; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if test "${ac_cv_prog_AR+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 if test -n "$AR"; then
13013 ac_cv_prog_AR="$AR" # Let the user override the test.
13014 else
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_prog_AR="${ac_tool_prefix}ar"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13026 done
13027 done
13028 IFS=$as_save_IFS
13032 AR=$ac_cv_prog_AR
13033 if test -n "$AR"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13035 $as_echo "$AR" >&6; }
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13043 if test -z "$ac_cv_prog_AR"; then
13044 ac_ct_AR=$AR
13045 # Extract the first word of "ar", so it can be a program name with args.
13046 set dummy ar; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -n "$ac_ct_AR"; then
13053 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_prog_ac_ct_AR="ar"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13072 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13073 if test -n "$ac_ct_AR"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13075 $as_echo "$ac_ct_AR" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13081 if test "x$ac_ct_AR" = x; then
13082 AR="false"
13083 else
13084 case $cross_compiling:$ac_tool_warned in
13085 yes:)
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13088 ac_tool_warned=yes ;;
13089 esac
13090 AR=$ac_ct_AR
13092 else
13093 AR="$ac_cv_prog_AR"
13096 test -z "$AR" && AR=ar
13097 test -z "$AR_FLAGS" && AR_FLAGS=cru
13109 if test -n "$ac_tool_prefix"; then
13110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13111 set dummy ${ac_tool_prefix}strip; ac_word=$2
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if test "${ac_cv_prog_STRIP+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 if test -n "$STRIP"; then
13118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13131 done
13132 done
13133 IFS=$as_save_IFS
13137 STRIP=$ac_cv_prog_STRIP
13138 if test -n "$STRIP"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13140 $as_echo "$STRIP" >&6; }
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13148 if test -z "$ac_cv_prog_STRIP"; then
13149 ac_ct_STRIP=$STRIP
13150 # Extract the first word of "strip", so it can be a program name with args.
13151 set dummy strip; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$ac_ct_STRIP"; then
13158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_ac_ct_STRIP="strip"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13178 if test -n "$ac_ct_STRIP"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13180 $as_echo "$ac_ct_STRIP" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13186 if test "x$ac_ct_STRIP" = x; then
13187 STRIP=":"
13188 else
13189 case $cross_compiling:$ac_tool_warned in
13190 yes:)
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13193 ac_tool_warned=yes ;;
13194 esac
13195 STRIP=$ac_ct_STRIP
13197 else
13198 STRIP="$ac_cv_prog_STRIP"
13201 test -z "$STRIP" && STRIP=:
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$RANLIB"; then
13217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13230 done
13231 done
13232 IFS=$as_save_IFS
13236 RANLIB=$ac_cv_prog_RANLIB
13237 if test -n "$RANLIB"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13239 $as_echo "$RANLIB" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13247 if test -z "$ac_cv_prog_RANLIB"; then
13248 ac_ct_RANLIB=$RANLIB
13249 # Extract the first word of "ranlib", so it can be a program name with args.
13250 set dummy ranlib; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$ac_ct_RANLIB"; then
13257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_RANLIB="ranlib"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13277 if test -n "$ac_ct_RANLIB"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13279 $as_echo "$ac_ct_RANLIB" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13285 if test "x$ac_ct_RANLIB" = x; then
13286 RANLIB=":"
13287 else
13288 case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294 RANLIB=$ac_ct_RANLIB
13296 else
13297 RANLIB="$ac_cv_prog_RANLIB"
13300 test -z "$RANLIB" && RANLIB=:
13307 # Determine commands to create old-style static archives.
13308 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13309 old_postinstall_cmds='chmod 644 $oldlib'
13310 old_postuninstall_cmds=
13312 if test -n "$RANLIB"; then
13313 case $host_os in
13314 openbsd*)
13315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13320 esac
13321 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13324 case $host_os in
13325 darwin*)
13326 lock_old_archive_extraction=yes ;;
13328 lock_old_archive_extraction=no ;;
13329 esac
13369 # If no C compiler was specified, use CC.
13370 LTCC=${LTCC-"$CC"}
13372 # If no C compiler flags were specified, use CFLAGS.
13373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13375 # Allow CC to be a program name with arguments.
13376 compiler=$CC
13379 # Check for command to grab the raw symbol name followed by C symbol from nm.
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13381 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13382 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13386 # These are sane defaults that work on at least a few old systems.
13387 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13389 # Character class describing NM global symbol codes.
13390 symcode='[BCDEGRST]'
13392 # Regexp to match symbols that can be accessed directly from C.
13393 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13395 # Define system-specific variables.
13396 case $host_os in
13397 aix*)
13398 symcode='[BCDT]'
13400 cygwin* | mingw* | pw32* | cegcc*)
13401 symcode='[ABCDGISTW]'
13403 hpux*)
13404 if test "$host_cpu" = ia64; then
13405 symcode='[ABCDEGRST]'
13408 irix* | nonstopux*)
13409 symcode='[BCDEGRST]'
13411 osf*)
13412 symcode='[BCDEGQRST]'
13414 solaris*)
13415 symcode='[BDRT]'
13417 sco3.2v5*)
13418 symcode='[DT]'
13420 sysv4.2uw2*)
13421 symcode='[DT]'
13423 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13424 symcode='[ABDT]'
13426 sysv4)
13427 symcode='[DFNSTU]'
13429 esac
13431 # If we're using GNU nm, then use its standard symbol codes.
13432 case `$NM -V 2>&1` in
13433 *GNU* | *'with BFD'*)
13434 symcode='[ABCDGIRSTW]' ;;
13435 esac
13437 # Transform an extracted symbol line into a proper C declaration.
13438 # Some systems (esp. on ia64) link data and code symbols differently,
13439 # so use this general approach.
13440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13442 # Transform an extracted symbol line into symbol name and symbol address
13443 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13444 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'"
13446 # Handle CRLF in mingw tool chain
13447 opt_cr=
13448 case $build_os in
13449 mingw*)
13450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13452 esac
13454 # Try without a prefix underscore, then with it.
13455 for ac_symprfx in "" "_"; do
13457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13458 symxfrm="\\1 $ac_symprfx\\2 \\2"
13460 # Write the raw and C identifiers.
13461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13462 # Fake it for dumpbin and say T for any non-static function
13463 # and D for any global variable.
13464 # Also find C++ and __fastcall symbols from MSVC++,
13465 # which start with @ or ?.
13466 lt_cv_sys_global_symbol_pipe="$AWK '"\
13467 " {last_section=section; section=\$ 3};"\
13468 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13469 " \$ 0!~/External *\|/{next};"\
13470 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13471 " {if(hide[section]) next};"\
13472 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13473 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13474 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13475 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13476 " ' prfx=^$ac_symprfx"
13477 else
13478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13481 # Check to see that the pipe works correctly.
13482 pipe_works=no
13484 rm -f conftest*
13485 cat > conftest.$ac_ext <<_LT_EOF
13486 #ifdef __cplusplus
13487 extern "C" {
13488 #endif
13489 char nm_test_var;
13490 void nm_test_func(void);
13491 void nm_test_func(void){}
13492 #ifdef __cplusplus
13494 #endif
13495 int main(){nm_test_var='a';nm_test_func();return(0);}
13496 _LT_EOF
13498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13499 (eval $ac_compile) 2>&5
13500 ac_status=$?
13501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502 test $ac_status = 0; }; then
13503 # Now try to grab the symbols.
13504 nlist=conftest.nm
13505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13506 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13507 ac_status=$?
13508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13509 test $ac_status = 0; } && test -s "$nlist"; then
13510 # Try sorting and uniquifying the output.
13511 if sort "$nlist" | uniq > "$nlist"T; then
13512 mv -f "$nlist"T "$nlist"
13513 else
13514 rm -f "$nlist"T
13517 # Make sure that we snagged all the symbols we need.
13518 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13519 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13520 cat <<_LT_EOF > conftest.$ac_ext
13521 #ifdef __cplusplus
13522 extern "C" {
13523 #endif
13525 _LT_EOF
13526 # Now generate the symbol file.
13527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13529 cat <<_LT_EOF >> conftest.$ac_ext
13531 /* The mapping between symbol names and symbols. */
13532 const struct {
13533 const char *name;
13534 void *address;
13536 lt__PROGRAM__LTX_preloaded_symbols[] =
13538 { "@PROGRAM@", (void *) 0 },
13539 _LT_EOF
13540 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13541 cat <<\_LT_EOF >> conftest.$ac_ext
13542 {0, (void *) 0}
13545 /* This works around a problem in FreeBSD linker */
13546 #ifdef FREEBSD_WORKAROUND
13547 static const void *lt_preloaded_setup() {
13548 return lt__PROGRAM__LTX_preloaded_symbols;
13550 #endif
13552 #ifdef __cplusplus
13554 #endif
13555 _LT_EOF
13556 # Now try linking the two files.
13557 mv conftest.$ac_objext conftstm.$ac_objext
13558 lt_save_LIBS="$LIBS"
13559 lt_save_CFLAGS="$CFLAGS"
13560 LIBS="conftstm.$ac_objext"
13561 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13563 (eval $ac_link) 2>&5
13564 ac_status=$?
13565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13566 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13567 pipe_works=yes
13569 LIBS="$lt_save_LIBS"
13570 CFLAGS="$lt_save_CFLAGS"
13571 else
13572 echo "cannot find nm_test_func in $nlist" >&5
13574 else
13575 echo "cannot find nm_test_var in $nlist" >&5
13577 else
13578 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13580 else
13581 echo "$progname: failed program was:" >&5
13582 cat conftest.$ac_ext >&5
13584 rm -rf conftest* conftst*
13586 # Do not use the global_symbol_pipe unless it works.
13587 if test "$pipe_works" = yes; then
13588 break
13589 else
13590 lt_cv_sys_global_symbol_pipe=
13592 done
13596 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13597 lt_cv_sys_global_symbol_to_cdecl=
13599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13601 $as_echo "failed" >&6; }
13602 else
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13604 $as_echo "ok" >&6; }
13628 # Check whether --enable-libtool-lock was given.
13629 if test "${enable_libtool_lock+set}" = set; then :
13630 enableval=$enable_libtool_lock;
13633 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13635 # Some flags need to be propagated to the compiler or linker for good
13636 # libtool support.
13637 case $host in
13638 ia64-*-hpux*)
13639 # Find out which ABI we are using.
13640 echo 'int i;' > conftest.$ac_ext
13641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13642 (eval $ac_compile) 2>&5
13643 ac_status=$?
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645 test $ac_status = 0; }; then
13646 case `/usr/bin/file conftest.$ac_objext` in
13647 *ELF-32*)
13648 HPUX_IA64_MODE="32"
13650 *ELF-64*)
13651 HPUX_IA64_MODE="64"
13653 esac
13655 rm -rf conftest*
13657 *-*-irix6*)
13658 # Find out which ABI we are using.
13659 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 if test "$lt_cv_prog_gnu_ld" = yes; then
13666 case `/usr/bin/file conftest.$ac_objext` in
13667 *32-bit*)
13668 LD="${LD-ld} -melf32bsmip"
13670 *N32*)
13671 LD="${LD-ld} -melf32bmipn32"
13673 *64-bit*)
13674 LD="${LD-ld} -melf64bmip"
13676 esac
13677 else
13678 case `/usr/bin/file conftest.$ac_objext` in
13679 *32-bit*)
13680 LD="${LD-ld} -32"
13682 *N32*)
13683 LD="${LD-ld} -n32"
13685 *64-bit*)
13686 LD="${LD-ld} -64"
13688 esac
13691 rm -rf conftest*
13694 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13695 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13696 # Find out which ABI we are using.
13697 echo 'int i;' > conftest.$ac_ext
13698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13702 test $ac_status = 0; }; then
13703 case `/usr/bin/file conftest.o` in
13704 *32-bit*)
13705 case $host in
13706 x86_64-*kfreebsd*-gnu)
13707 LD="${LD-ld} -m elf_i386_fbsd"
13709 x86_64-*linux*)
13710 LD="${LD-ld} -m elf_i386"
13712 ppc64-*linux*|powerpc64-*linux*)
13713 LD="${LD-ld} -m elf32ppclinux"
13715 s390x-*linux*)
13716 LD="${LD-ld} -m elf_s390"
13718 sparc64-*linux*)
13719 LD="${LD-ld} -m elf32_sparc"
13721 esac
13723 *64-bit*)
13724 case $host in
13725 x86_64-*kfreebsd*-gnu)
13726 LD="${LD-ld} -m elf_x86_64_fbsd"
13728 x86_64-*linux*)
13729 LD="${LD-ld} -m elf_x86_64"
13731 ppc*-*linux*|powerpc*-*linux*)
13732 LD="${LD-ld} -m elf64ppc"
13734 s390*-*linux*|s390*-*tpf*)
13735 LD="${LD-ld} -m elf64_s390"
13737 sparc*-*linux*)
13738 LD="${LD-ld} -m elf64_sparc"
13740 esac
13742 esac
13744 rm -rf conftest*
13747 *-*-sco3.2v5*)
13748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13749 SAVE_CFLAGS="$CFLAGS"
13750 CFLAGS="$CFLAGS -belf"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13752 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13753 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_ext=c
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13766 main ()
13770 return 0;
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 lt_cv_cc_needs_belf=yes
13775 else
13776 lt_cv_cc_needs_belf=no
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 ac_ext=c
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13788 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13789 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13790 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13791 CFLAGS="$SAVE_CFLAGS"
13794 sparc*-*solaris*)
13795 # Find out which ABI we are using.
13796 echo 'int i;' > conftest.$ac_ext
13797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798 (eval $ac_compile) 2>&5
13799 ac_status=$?
13800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13801 test $ac_status = 0; }; then
13802 case `/usr/bin/file conftest.o` in
13803 *64-bit*)
13804 case $lt_cv_prog_gnu_ld in
13805 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13808 LD="${LD-ld} -64"
13811 esac
13813 esac
13815 rm -rf conftest*
13817 esac
13819 need_locks="$enable_libtool_lock"
13822 case $host_os in
13823 rhapsody* | darwin*)
13824 if test -n "$ac_tool_prefix"; then
13825 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 if test -n "$DSYMUTIL"; then
13833 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13834 else
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13842 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13846 done
13847 done
13848 IFS=$as_save_IFS
13852 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13853 if test -n "$DSYMUTIL"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13855 $as_echo "$DSYMUTIL" >&6; }
13856 else
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 $as_echo "no" >&6; }
13863 if test -z "$ac_cv_prog_DSYMUTIL"; then
13864 ac_ct_DSYMUTIL=$DSYMUTIL
13865 # Extract the first word of "dsymutil", so it can be a program name with args.
13866 set dummy dsymutil; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 if test -n "$ac_ct_DSYMUTIL"; then
13873 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13882 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13886 done
13887 done
13888 IFS=$as_save_IFS
13892 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13893 if test -n "$ac_ct_DSYMUTIL"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13895 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13896 else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13901 if test "x$ac_ct_DSYMUTIL" = x; then
13902 DSYMUTIL=":"
13903 else
13904 case $cross_compiling:$ac_tool_warned in
13905 yes:)
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13908 ac_tool_warned=yes ;;
13909 esac
13910 DSYMUTIL=$ac_ct_DSYMUTIL
13912 else
13913 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13916 if test -n "$ac_tool_prefix"; then
13917 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13918 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if test -n "$NMEDIT"; then
13925 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13938 done
13939 done
13940 IFS=$as_save_IFS
13944 NMEDIT=$ac_cv_prog_NMEDIT
13945 if test -n "$NMEDIT"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13947 $as_echo "$NMEDIT" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13955 if test -z "$ac_cv_prog_NMEDIT"; then
13956 ac_ct_NMEDIT=$NMEDIT
13957 # Extract the first word of "nmedit", so it can be a program name with args.
13958 set dummy nmedit; ac_word=$2
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 $as_echo_n "checking for $ac_word... " >&6; }
13961 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 if test -n "$ac_ct_NMEDIT"; then
13965 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13966 else
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13974 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 break 2
13978 done
13979 done
13980 IFS=$as_save_IFS
13984 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13985 if test -n "$ac_ct_NMEDIT"; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13987 $as_echo "$ac_ct_NMEDIT" >&6; }
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13993 if test "x$ac_ct_NMEDIT" = x; then
13994 NMEDIT=":"
13995 else
13996 case $cross_compiling:$ac_tool_warned in
13997 yes:)
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14000 ac_tool_warned=yes ;;
14001 esac
14002 NMEDIT=$ac_ct_NMEDIT
14004 else
14005 NMEDIT="$ac_cv_prog_NMEDIT"
14008 if test -n "$ac_tool_prefix"; then
14009 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14010 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if test "${ac_cv_prog_LIPO+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 if test -n "$LIPO"; then
14017 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14030 done
14031 done
14032 IFS=$as_save_IFS
14036 LIPO=$ac_cv_prog_LIPO
14037 if test -n "$LIPO"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14039 $as_echo "$LIPO" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14047 if test -z "$ac_cv_prog_LIPO"; then
14048 ac_ct_LIPO=$LIPO
14049 # Extract the first word of "lipo", so it can be a program name with args.
14050 set dummy lipo; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 if test -n "$ac_ct_LIPO"; then
14057 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14062 IFS=$as_save_IFS
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_prog_ac_ct_LIPO="lipo"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 break 2
14070 done
14071 done
14072 IFS=$as_save_IFS
14076 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14077 if test -n "$ac_ct_LIPO"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14079 $as_echo "$ac_ct_LIPO" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14085 if test "x$ac_ct_LIPO" = x; then
14086 LIPO=":"
14087 else
14088 case $cross_compiling:$ac_tool_warned in
14089 yes:)
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14092 ac_tool_warned=yes ;;
14093 esac
14094 LIPO=$ac_ct_LIPO
14096 else
14097 LIPO="$ac_cv_prog_LIPO"
14100 if test -n "$ac_tool_prefix"; then
14101 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}otool; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 if test -n "$OTOOL"; then
14109 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14122 done
14123 done
14124 IFS=$as_save_IFS
14128 OTOOL=$ac_cv_prog_OTOOL
14129 if test -n "$OTOOL"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14131 $as_echo "$OTOOL" >&6; }
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14139 if test -z "$ac_cv_prog_OTOOL"; then
14140 ac_ct_OTOOL=$OTOOL
14141 # Extract the first word of "otool", so it can be a program name with args.
14142 set dummy otool; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 $as_echo_n "checking for $ac_word... " >&6; }
14145 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 if test -n "$ac_ct_OTOOL"; then
14149 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_ac_ct_OTOOL="otool"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14162 done
14163 done
14164 IFS=$as_save_IFS
14168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14169 if test -n "$ac_ct_OTOOL"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14171 $as_echo "$ac_ct_OTOOL" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14177 if test "x$ac_ct_OTOOL" = x; then
14178 OTOOL=":"
14179 else
14180 case $cross_compiling:$ac_tool_warned in
14181 yes:)
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14184 ac_tool_warned=yes ;;
14185 esac
14186 OTOOL=$ac_ct_OTOOL
14188 else
14189 OTOOL="$ac_cv_prog_OTOOL"
14192 if test -n "$ac_tool_prefix"; then
14193 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14194 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 if test -n "$OTOOL64"; then
14201 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14210 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14214 done
14215 done
14216 IFS=$as_save_IFS
14220 OTOOL64=$ac_cv_prog_OTOOL64
14221 if test -n "$OTOOL64"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14223 $as_echo "$OTOOL64" >&6; }
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14231 if test -z "$ac_cv_prog_OTOOL64"; then
14232 ac_ct_OTOOL64=$OTOOL64
14233 # Extract the first word of "otool64", so it can be a program name with args.
14234 set dummy otool64; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236 $as_echo_n "checking for $ac_word... " >&6; }
14237 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 if test -n "$ac_ct_OTOOL64"; then
14241 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14242 else
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14246 IFS=$as_save_IFS
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14250 ac_cv_prog_ac_ct_OTOOL64="otool64"
14251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252 break 2
14254 done
14255 done
14256 IFS=$as_save_IFS
14260 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14261 if test -n "$ac_ct_OTOOL64"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14263 $as_echo "$ac_ct_OTOOL64" >&6; }
14264 else
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14269 if test "x$ac_ct_OTOOL64" = x; then
14270 OTOOL64=":"
14271 else
14272 case $cross_compiling:$ac_tool_warned in
14273 yes:)
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14276 ac_tool_warned=yes ;;
14277 esac
14278 OTOOL64=$ac_ct_OTOOL64
14280 else
14281 OTOOL64="$ac_cv_prog_OTOOL64"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14311 $as_echo_n "checking for -single_module linker flag... " >&6; }
14312 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 lt_cv_apple_cc_single_mod=no
14316 if test -z "${LT_MULTI_MODULE}"; then
14317 # By default we will add the -single_module flag. You can override
14318 # by either setting the environment variable LT_MULTI_MODULE
14319 # non-empty at configure time, or by adding -multi_module to the
14320 # link flags.
14321 rm -rf libconftest.dylib*
14322 echo "int foo(void){return 1;}" > conftest.c
14323 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14324 -dynamiclib -Wl,-single_module conftest.c" >&5
14325 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14326 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14327 _lt_result=$?
14328 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14329 lt_cv_apple_cc_single_mod=yes
14330 else
14331 cat conftest.err >&5
14333 rm -rf libconftest.dylib*
14334 rm -f conftest.*
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14338 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14340 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14341 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 lt_cv_ld_exported_symbols_list=no
14345 save_LDFLAGS=$LDFLAGS
14346 echo "_main" > conftest.sym
14347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14352 main ()
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 lt_cv_ld_exported_symbols_list=yes
14361 else
14362 lt_cv_ld_exported_symbols_list=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LDFLAGS="$save_LDFLAGS"
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14372 $as_echo_n "checking for -force_load linker flag... " >&6; }
14373 if test "${lt_cv_ld_force_load+set}" = set; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 lt_cv_ld_force_load=no
14377 cat > conftest.c << _LT_EOF
14378 int forced_loaded() { return 2;}
14379 _LT_EOF
14380 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14381 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14382 echo "$AR cru libconftest.a conftest.o" >&5
14383 $AR cru libconftest.a conftest.o 2>&5
14384 cat > conftest.c << _LT_EOF
14385 int main() { return 0;}
14386 _LT_EOF
14387 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14388 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14389 _lt_result=$?
14390 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14391 lt_cv_ld_force_load=yes
14392 else
14393 cat conftest.err >&5
14395 rm -f conftest.err libconftest.a conftest conftest.c
14396 rm -rf conftest.dSYM
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14400 $as_echo "$lt_cv_ld_force_load" >&6; }
14401 case $host_os in
14402 rhapsody* | darwin1.[012])
14403 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14404 darwin1.*)
14405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14406 darwin*) # darwin 5.x on
14407 # if running on 10.5 or later, the deployment target defaults
14408 # to the OS version, if on x86, and 10.4, the deployment
14409 # target defaults to 10.4. Don't you love it?
14410 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14411 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14413 10.[012]*)
14414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14415 10.*)
14416 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14417 esac
14419 esac
14420 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14421 _lt_dar_single_mod='$single_module'
14423 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14424 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14425 else
14426 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14428 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14429 _lt_dsymutil='~$DSYMUTIL $lib || :'
14430 else
14431 _lt_dsymutil=
14434 esac
14436 for ac_header in dlfcn.h
14437 do :
14438 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14439 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DLFCN_H 1
14442 _ACEOF
14445 done
14451 # Set options
14455 enable_dlopen=no
14458 enable_win32_dll=no
14461 # Check whether --enable-shared was given.
14462 if test "${enable_shared+set}" = set; then :
14463 enableval=$enable_shared; p=${PACKAGE-default}
14464 case $enableval in
14465 yes) enable_shared=yes ;;
14466 no) enable_shared=no ;;
14468 enable_shared=no
14469 # Look at the argument we got. We use all the common list separators.
14470 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14471 for pkg in $enableval; do
14472 IFS="$lt_save_ifs"
14473 if test "X$pkg" = "X$p"; then
14474 enable_shared=yes
14476 done
14477 IFS="$lt_save_ifs"
14479 esac
14480 else
14481 enable_shared=yes
14492 # Check whether --enable-static was given.
14493 if test "${enable_static+set}" = set; then :
14494 enableval=$enable_static; p=${PACKAGE-default}
14495 case $enableval in
14496 yes) enable_static=yes ;;
14497 no) enable_static=no ;;
14499 enable_static=no
14500 # Look at the argument we got. We use all the common list separators.
14501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14502 for pkg in $enableval; do
14503 IFS="$lt_save_ifs"
14504 if test "X$pkg" = "X$p"; then
14505 enable_static=yes
14507 done
14508 IFS="$lt_save_ifs"
14510 esac
14511 else
14512 enable_static=yes
14524 # Check whether --with-pic was given.
14525 if test "${with_pic+set}" = set; then :
14526 withval=$with_pic; pic_mode="$withval"
14527 else
14528 pic_mode=default
14532 test -z "$pic_mode" && pic_mode=default
14540 # Check whether --enable-fast-install was given.
14541 if test "${enable_fast_install+set}" = set; then :
14542 enableval=$enable_fast_install; p=${PACKAGE-default}
14543 case $enableval in
14544 yes) enable_fast_install=yes ;;
14545 no) enable_fast_install=no ;;
14547 enable_fast_install=no
14548 # Look at the argument we got. We use all the common list separators.
14549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14550 for pkg in $enableval; do
14551 IFS="$lt_save_ifs"
14552 if test "X$pkg" = "X$p"; then
14553 enable_fast_install=yes
14555 done
14556 IFS="$lt_save_ifs"
14558 esac
14559 else
14560 enable_fast_install=yes
14573 # This can be used to rebuild libtool when needed
14574 LIBTOOL_DEPS="$ltmain"
14576 # Always use our own libtool.
14577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14604 test -z "$LN_S" && LN_S="ln -s"
14619 if test -n "${ZSH_VERSION+set}" ; then
14620 setopt NO_GLOB_SUBST
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14624 $as_echo_n "checking for objdir... " >&6; }
14625 if test "${lt_cv_objdir+set}" = set; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 rm -f .libs 2>/dev/null
14629 mkdir .libs 2>/dev/null
14630 if test -d .libs; then
14631 lt_cv_objdir=.libs
14632 else
14633 # MS-DOS does not allow filenames that begin with a dot.
14634 lt_cv_objdir=_libs
14636 rmdir .libs 2>/dev/null
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14639 $as_echo "$lt_cv_objdir" >&6; }
14640 objdir=$lt_cv_objdir
14646 cat >>confdefs.h <<_ACEOF
14647 #define LT_OBJDIR "$lt_cv_objdir/"
14648 _ACEOF
14653 case $host_os in
14654 aix3*)
14655 # AIX sometimes has problems with the GCC collect2 program. For some
14656 # reason, if we set the COLLECT_NAMES environment variable, the problems
14657 # vanish in a puff of smoke.
14658 if test "X${COLLECT_NAMES+set}" != Xset; then
14659 COLLECT_NAMES=
14660 export COLLECT_NAMES
14663 esac
14665 # Global variables:
14666 ofile=libtool
14667 can_build_shared=yes
14669 # All known linkers require a `.a' archive for static linking (except MSVC,
14670 # which needs '.lib').
14671 libext=a
14673 with_gnu_ld="$lt_cv_prog_gnu_ld"
14675 old_CC="$CC"
14676 old_CFLAGS="$CFLAGS"
14678 # Set sane defaults for various variables
14679 test -z "$CC" && CC=cc
14680 test -z "$LTCC" && LTCC=$CC
14681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14682 test -z "$LD" && LD=ld
14683 test -z "$ac_objext" && ac_objext=o
14685 for cc_temp in $compiler""; do
14686 case $cc_temp in
14687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14689 \-*) ;;
14690 *) break;;
14691 esac
14692 done
14693 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14696 # Only perform the check for file, if the check method requires it
14697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14698 case $deplibs_check_method in
14699 file_magic*)
14700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14702 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 case $MAGIC_CMD in
14707 [\\/*] | ?:[\\/]*)
14708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14711 lt_save_MAGIC_CMD="$MAGIC_CMD"
14712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14714 for ac_dir in $ac_dummy; do
14715 IFS="$lt_save_ifs"
14716 test -z "$ac_dir" && ac_dir=.
14717 if test -f $ac_dir/${ac_tool_prefix}file; then
14718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14719 if test -n "$file_magic_test_file"; then
14720 case $deplibs_check_method in
14721 "file_magic "*)
14722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14725 $EGREP "$file_magic_regex" > /dev/null; then
14727 else
14728 cat <<_LT_EOF 1>&2
14730 *** Warning: the command libtool uses to detect shared libraries,
14731 *** $file_magic_cmd, produces output that libtool cannot recognize.
14732 *** The result is that libtool may fail to recognize shared libraries
14733 *** as such. This will affect the creation of libtool libraries that
14734 *** depend on shared libraries, but programs linked with such libtool
14735 *** libraries will work regardless of this problem. Nevertheless, you
14736 *** may want to report the problem to your system manager and/or to
14737 *** bug-libtool@gnu.org
14739 _LT_EOF
14740 fi ;;
14741 esac
14743 break
14745 done
14746 IFS="$lt_save_ifs"
14747 MAGIC_CMD="$lt_save_MAGIC_CMD"
14749 esac
14752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14753 if test -n "$MAGIC_CMD"; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14755 $as_echo "$MAGIC_CMD" >&6; }
14756 else
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14765 if test -z "$lt_cv_path_MAGIC_CMD"; then
14766 if test -n "$ac_tool_prefix"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14768 $as_echo_n "checking for file... " >&6; }
14769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 case $MAGIC_CMD in
14773 [\\/*] | ?:[\\/]*)
14774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14777 lt_save_MAGIC_CMD="$MAGIC_CMD"
14778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14780 for ac_dir in $ac_dummy; do
14781 IFS="$lt_save_ifs"
14782 test -z "$ac_dir" && ac_dir=.
14783 if test -f $ac_dir/file; then
14784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14785 if test -n "$file_magic_test_file"; then
14786 case $deplibs_check_method in
14787 "file_magic "*)
14788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14791 $EGREP "$file_magic_regex" > /dev/null; then
14793 else
14794 cat <<_LT_EOF 1>&2
14796 *** Warning: the command libtool uses to detect shared libraries,
14797 *** $file_magic_cmd, produces output that libtool cannot recognize.
14798 *** The result is that libtool may fail to recognize shared libraries
14799 *** as such. This will affect the creation of libtool libraries that
14800 *** depend on shared libraries, but programs linked with such libtool
14801 *** libraries will work regardless of this problem. Nevertheless, you
14802 *** may want to report the problem to your system manager and/or to
14803 *** bug-libtool@gnu.org
14805 _LT_EOF
14806 fi ;;
14807 esac
14809 break
14811 done
14812 IFS="$lt_save_ifs"
14813 MAGIC_CMD="$lt_save_MAGIC_CMD"
14815 esac
14818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14819 if test -n "$MAGIC_CMD"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14821 $as_echo "$MAGIC_CMD" >&6; }
14822 else
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14828 else
14829 MAGIC_CMD=:
14835 esac
14837 # Use C for the default configuration in the libtool script
14839 lt_save_CC="$CC"
14840 ac_ext=c
14841 ac_cpp='$CPP $CPPFLAGS'
14842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847 # Source file extension for C test sources.
14848 ac_ext=c
14850 # Object file extension for compiled C test sources.
14851 objext=o
14852 objext=$objext
14854 # Code to be used in simple compile tests
14855 lt_simple_compile_test_code="int some_variable = 0;"
14857 # Code to be used in simple link tests
14858 lt_simple_link_test_code='int main(){return(0);}'
14866 # If no C compiler was specified, use CC.
14867 LTCC=${LTCC-"$CC"}
14869 # If no C compiler flags were specified, use CFLAGS.
14870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14872 # Allow CC to be a program name with arguments.
14873 compiler=$CC
14875 # Save the default compiler, since it gets overwritten when the other
14876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14877 compiler_DEFAULT=$CC
14879 # save warnings/boilerplate of simple test code
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_compiler_boilerplate=`cat conftest.err`
14884 $RM conftest*
14886 ac_outfile=conftest.$ac_objext
14887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14889 _lt_linker_boilerplate=`cat conftest.err`
14890 $RM -r conftest*
14893 ## CAVEAT EMPTOR:
14894 ## There is no encapsulation within the following macros, do not change
14895 ## the running order or otherwise move them around unless you know exactly
14896 ## what you are doing...
14897 if test -n "$compiler"; then
14899 lt_prog_compiler_no_builtin_flag=
14901 if test "$GCC" = yes; then
14902 case $cc_basename in
14903 nvcc*)
14904 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14906 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14907 esac
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14910 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14911 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 lt_cv_prog_compiler_rtti_exceptions=no
14915 ac_outfile=conftest.$ac_objext
14916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14917 lt_compiler_flag="-fno-rtti -fno-exceptions"
14918 # Insert the option either (1) after the last *FLAGS variable, or
14919 # (2) before a word containing "conftest.", or (3) at the end.
14920 # Note that $ac_compile itself does not contain backslashes and begins
14921 # with a dollar sign (not a hyphen), so the echo should work correctly.
14922 # The option is referenced via a variable to avoid confusing sed.
14923 lt_compile=`echo "$ac_compile" | $SED \
14924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14926 -e 's:$: $lt_compiler_flag:'`
14927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14928 (eval "$lt_compile" 2>conftest.err)
14929 ac_status=$?
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 if (exit $ac_status) && test -s "$ac_outfile"; then
14933 # The compiler can only warn and ignore the option if not recognized
14934 # So say no if there are warnings other than the usual output.
14935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14938 lt_cv_prog_compiler_rtti_exceptions=yes
14941 $RM conftest*
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14945 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14947 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14948 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14949 else
14960 lt_prog_compiler_wl=
14961 lt_prog_compiler_pic=
14962 lt_prog_compiler_static=
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14965 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14967 if test "$GCC" = yes; then
14968 lt_prog_compiler_wl='-Wl,'
14969 lt_prog_compiler_static='-static'
14971 case $host_os in
14972 aix*)
14973 # All AIX code is PIC.
14974 if test "$host_cpu" = ia64; then
14975 # AIX 5 now supports IA64 processor
14976 lt_prog_compiler_static='-Bstatic'
14980 amigaos*)
14981 case $host_cpu in
14982 powerpc)
14983 # see comment about AmigaOS4 .so support
14984 lt_prog_compiler_pic='-fPIC'
14986 m68k)
14987 # FIXME: we need at least 68020 code to build shared libraries, but
14988 # adding the `-m68020' flag to GCC prevents building anything better,
14989 # like `-m68040'.
14990 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14992 esac
14995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14996 # PIC is the default for these OSes.
14999 mingw* | cygwin* | pw32* | os2* | cegcc*)
15000 # This hack is so that the source file can tell whether it is being
15001 # built for inclusion in a dll (and should export symbols for example).
15002 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15003 # (--disable-auto-import) libraries
15004 lt_prog_compiler_pic='-DDLL_EXPORT'
15007 darwin* | rhapsody*)
15008 # PIC is the default on this platform
15009 # Common symbols not allowed in MH_DYLIB files
15010 lt_prog_compiler_pic='-fno-common'
15013 haiku*)
15014 # PIC is the default for Haiku.
15015 # The "-static" flag exists, but is broken.
15016 lt_prog_compiler_static=
15019 hpux*)
15020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15022 # sets the default TLS model and affects inlining.
15023 case $host_cpu in
15024 hppa*64*)
15025 # +Z the default
15028 lt_prog_compiler_pic='-fPIC'
15030 esac
15033 interix[3-9]*)
15034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15035 # Instead, we relocate shared libraries at runtime.
15038 msdosdjgpp*)
15039 # Just because we use GCC doesn't mean we suddenly get shared libraries
15040 # on systems that don't support them.
15041 lt_prog_compiler_can_build_shared=no
15042 enable_shared=no
15045 *nto* | *qnx*)
15046 # QNX uses GNU C++, but need to define -shared option too, otherwise
15047 # it will coredump.
15048 lt_prog_compiler_pic='-fPIC -shared'
15051 sysv4*MP*)
15052 if test -d /usr/nec; then
15053 lt_prog_compiler_pic=-Kconform_pic
15058 lt_prog_compiler_pic='-fPIC'
15060 esac
15062 case $cc_basename in
15063 nvcc*) # Cuda Compiler Driver 2.2
15064 lt_prog_compiler_wl='-Xlinker '
15065 lt_prog_compiler_pic='-Xcompiler -fPIC'
15067 esac
15068 else
15069 # PORTME Check for flag to pass linker flags through the system compiler.
15070 case $host_os in
15071 aix*)
15072 lt_prog_compiler_wl='-Wl,'
15073 if test "$host_cpu" = ia64; then
15074 # AIX 5 now supports IA64 processor
15075 lt_prog_compiler_static='-Bstatic'
15076 else
15077 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15081 mingw* | cygwin* | pw32* | os2* | cegcc*)
15082 # This hack is so that the source file can tell whether it is being
15083 # built for inclusion in a dll (and should export symbols for example).
15084 lt_prog_compiler_pic='-DDLL_EXPORT'
15087 hpux9* | hpux10* | hpux11*)
15088 lt_prog_compiler_wl='-Wl,'
15089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090 # not for PA HP-UX.
15091 case $host_cpu in
15092 hppa*64*|ia64*)
15093 # +Z the default
15096 lt_prog_compiler_pic='+Z'
15098 esac
15099 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15100 lt_prog_compiler_static='${wl}-a ${wl}archive'
15103 irix5* | irix6* | nonstopux*)
15104 lt_prog_compiler_wl='-Wl,'
15105 # PIC (with -KPIC) is the default.
15106 lt_prog_compiler_static='-non_shared'
15109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15110 case $cc_basename in
15111 # old Intel for x86_64 which still supported -KPIC.
15112 ecc*)
15113 lt_prog_compiler_wl='-Wl,'
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-static'
15117 # icc used to be incompatible with GCC.
15118 # ICC 10 doesn't accept -KPIC any more.
15119 icc* | ifort*)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-fPIC'
15122 lt_prog_compiler_static='-static'
15124 # Lahey Fortran 8.1.
15125 lf95*)
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_pic='--shared'
15128 lt_prog_compiler_static='--static'
15130 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15131 # Portland Group compilers (*not* the Pentium gcc compiler,
15132 # which looks to be a dead project)
15133 lt_prog_compiler_wl='-Wl,'
15134 lt_prog_compiler_pic='-fpic'
15135 lt_prog_compiler_static='-Bstatic'
15137 ccc*)
15138 lt_prog_compiler_wl='-Wl,'
15139 # All Alpha code is PIC.
15140 lt_prog_compiler_static='-non_shared'
15142 xl* | bgxl* | bgf* | mpixl*)
15143 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15144 lt_prog_compiler_wl='-Wl,'
15145 lt_prog_compiler_pic='-qpic'
15146 lt_prog_compiler_static='-qstaticlink'
15149 case `$CC -V 2>&1 | sed 5q` in
15150 *Sun\ F* | *Sun*Fortran*)
15151 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15152 lt_prog_compiler_pic='-KPIC'
15153 lt_prog_compiler_static='-Bstatic'
15154 lt_prog_compiler_wl=''
15156 *Sun\ C*)
15157 # Sun C 5.9
15158 lt_prog_compiler_pic='-KPIC'
15159 lt_prog_compiler_static='-Bstatic'
15160 lt_prog_compiler_wl='-Wl,'
15162 esac
15164 esac
15167 newsos6)
15168 lt_prog_compiler_pic='-KPIC'
15169 lt_prog_compiler_static='-Bstatic'
15172 *nto* | *qnx*)
15173 # QNX uses GNU C++, but need to define -shared option too, otherwise
15174 # it will coredump.
15175 lt_prog_compiler_pic='-fPIC -shared'
15178 osf3* | osf4* | osf5*)
15179 lt_prog_compiler_wl='-Wl,'
15180 # All OSF/1 code is PIC.
15181 lt_prog_compiler_static='-non_shared'
15184 rdos*)
15185 lt_prog_compiler_static='-non_shared'
15188 solaris*)
15189 lt_prog_compiler_pic='-KPIC'
15190 lt_prog_compiler_static='-Bstatic'
15191 case $cc_basename in
15192 f77* | f90* | f95*)
15193 lt_prog_compiler_wl='-Qoption ld ';;
15195 lt_prog_compiler_wl='-Wl,';;
15196 esac
15199 sunos4*)
15200 lt_prog_compiler_wl='-Qoption ld '
15201 lt_prog_compiler_pic='-PIC'
15202 lt_prog_compiler_static='-Bstatic'
15205 sysv4 | sysv4.2uw2* | sysv4.3*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15211 sysv4*MP*)
15212 if test -d /usr/nec ;then
15213 lt_prog_compiler_pic='-Kconform_pic'
15214 lt_prog_compiler_static='-Bstatic'
15218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15219 lt_prog_compiler_wl='-Wl,'
15220 lt_prog_compiler_pic='-KPIC'
15221 lt_prog_compiler_static='-Bstatic'
15224 unicos*)
15225 lt_prog_compiler_wl='-Wl,'
15226 lt_prog_compiler_can_build_shared=no
15229 uts4*)
15230 lt_prog_compiler_pic='-pic'
15231 lt_prog_compiler_static='-Bstatic'
15235 lt_prog_compiler_can_build_shared=no
15237 esac
15240 case $host_os in
15241 # For platforms which do not support PIC, -DPIC is meaningless:
15242 *djgpp*)
15243 lt_prog_compiler_pic=
15246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15248 esac
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15250 $as_echo "$lt_prog_compiler_pic" >&6; }
15258 # Check to make sure the PIC flag actually works.
15260 if test -n "$lt_prog_compiler_pic"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15263 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15264 $as_echo_n "(cached) " >&6
15265 else
15266 lt_cv_prog_compiler_pic_works=no
15267 ac_outfile=conftest.$ac_objext
15268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15269 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 # The option is referenced via a variable to avoid confusing sed.
15275 lt_compile=`echo "$ac_compile" | $SED \
15276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15278 -e 's:$: $lt_compiler_flag:'`
15279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15280 (eval "$lt_compile" 2>conftest.err)
15281 ac_status=$?
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 if (exit $ac_status) && test -s "$ac_outfile"; then
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings other than the usual output.
15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15290 lt_cv_prog_compiler_pic_works=yes
15293 $RM conftest*
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15297 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15299 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15300 case $lt_prog_compiler_pic in
15301 "" | " "*) ;;
15302 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15303 esac
15304 else
15305 lt_prog_compiler_pic=
15306 lt_prog_compiler_can_build_shared=no
15317 # Check to make sure the static flag actually works.
15319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15322 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 lt_cv_prog_compiler_static_works=no
15326 save_LDFLAGS="$LDFLAGS"
15327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15330 # The linker can only warn and ignore the option if not recognized
15331 # So say no if there are warnings
15332 if test -s conftest.err; then
15333 # Append any errors to the config.log.
15334 cat conftest.err 1>&5
15335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15337 if diff conftest.exp conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_static_works=yes
15340 else
15341 lt_cv_prog_compiler_static_works=yes
15344 $RM -r conftest*
15345 LDFLAGS="$save_LDFLAGS"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15349 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15351 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15353 else
15354 lt_prog_compiler_static=
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15366 $as_echo_n "(cached) " >&6
15367 else
15368 lt_cv_prog_compiler_c_o=no
15369 $RM -r conftest 2>/dev/null
15370 mkdir conftest
15371 cd conftest
15372 mkdir out
15373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15375 lt_compiler_flag="-o out/conftest2.$ac_objext"
15376 # Insert the option either (1) after the last *FLAGS variable, or
15377 # (2) before a word containing "conftest.", or (3) at the end.
15378 # Note that $ac_compile itself does not contain backslashes and begins
15379 # with a dollar sign (not a hyphen), so the echo should work correctly.
15380 lt_compile=`echo "$ac_compile" | $SED \
15381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15383 -e 's:$: $lt_compiler_flag:'`
15384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15385 (eval "$lt_compile" 2>out/conftest.err)
15386 ac_status=$?
15387 cat out/conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15390 then
15391 # The compiler can only warn and ignore the option if not recognized
15392 # So say no if there are warnings
15393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15396 lt_cv_prog_compiler_c_o=yes
15399 chmod u+w . 2>&5
15400 $RM conftest*
15401 # SGI C++ compiler will create directory out/ii_files/ for
15402 # template instantiation
15403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15404 $RM out/* && rmdir out
15405 cd ..
15406 $RM -r conftest
15407 $RM conftest*
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15419 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15420 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423 lt_cv_prog_compiler_c_o=no
15424 $RM -r conftest 2>/dev/null
15425 mkdir conftest
15426 cd conftest
15427 mkdir out
15428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 lt_compiler_flag="-o out/conftest2.$ac_objext"
15431 # Insert the option either (1) after the last *FLAGS variable, or
15432 # (2) before a word containing "conftest.", or (3) at the end.
15433 # Note that $ac_compile itself does not contain backslashes and begins
15434 # with a dollar sign (not a hyphen), so the echo should work correctly.
15435 lt_compile=`echo "$ac_compile" | $SED \
15436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15438 -e 's:$: $lt_compiler_flag:'`
15439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15440 (eval "$lt_compile" 2>out/conftest.err)
15441 ac_status=$?
15442 cat out/conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15445 then
15446 # The compiler can only warn and ignore the option if not recognized
15447 # So say no if there are warnings
15448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15451 lt_cv_prog_compiler_c_o=yes
15454 chmod u+w . 2>&5
15455 $RM conftest*
15456 # SGI C++ compiler will create directory out/ii_files/ for
15457 # template instantiation
15458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15459 $RM out/* && rmdir out
15460 cd ..
15461 $RM -r conftest
15462 $RM conftest*
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15471 hard_links="nottested"
15472 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15473 # do not overwrite the value of need_locks provided by the user
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15475 $as_echo_n "checking if we can lock with hard links... " >&6; }
15476 hard_links=yes
15477 $RM conftest*
15478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15479 touch conftest.a
15480 ln conftest.a conftest.b 2>&5 || hard_links=no
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15483 $as_echo "$hard_links" >&6; }
15484 if test "$hard_links" = no; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15486 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15487 need_locks=warn
15489 else
15490 need_locks=no
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15501 runpath_var=
15502 allow_undefined_flag=
15503 always_export_symbols=no
15504 archive_cmds=
15505 archive_expsym_cmds=
15506 compiler_needs_object=no
15507 enable_shared_with_static_runtimes=no
15508 export_dynamic_flag_spec=
15509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15510 hardcode_automatic=no
15511 hardcode_direct=no
15512 hardcode_direct_absolute=no
15513 hardcode_libdir_flag_spec=
15514 hardcode_libdir_flag_spec_ld=
15515 hardcode_libdir_separator=
15516 hardcode_minus_L=no
15517 hardcode_shlibpath_var=unsupported
15518 inherit_rpath=no
15519 link_all_deplibs=unknown
15520 module_cmds=
15521 module_expsym_cmds=
15522 old_archive_from_new_cmds=
15523 old_archive_from_expsyms_cmds=
15524 thread_safe_flag_spec=
15525 whole_archive_flag_spec=
15526 # include_expsyms should be a list of space-separated symbols to be *always*
15527 # included in the symbol list
15528 include_expsyms=
15529 # exclude_expsyms can be an extended regexp of symbols to exclude
15530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15532 # as well as any symbol that contains `d'.
15533 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15535 # platforms (ab)use it in PIC code, but their linkers get confused if
15536 # the symbol is explicitly referenced. Since portable code cannot
15537 # rely on this symbol name, it's probably fine to never include it in
15538 # preloaded symbol tables.
15539 # Exclude shared library initialization/finalization symbols.
15540 extract_expsyms_cmds=
15542 case $host_os in
15543 cygwin* | mingw* | pw32* | cegcc*)
15544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15545 # When not using gcc, we currently assume that we are using
15546 # Microsoft Visual C++.
15547 if test "$GCC" != yes; then
15548 with_gnu_ld=no
15551 interix*)
15552 # we just hope/assume this is gcc and not c89 (= MSVC++)
15553 with_gnu_ld=yes
15555 openbsd*)
15556 with_gnu_ld=no
15558 esac
15560 ld_shlibs=yes
15562 # On some targets, GNU ld is compatible enough with the native linker
15563 # that we're better off using the native interface for both.
15564 lt_use_gnu_ld_interface=no
15565 if test "$with_gnu_ld" = yes; then
15566 case $host_os in
15567 aix*)
15568 # The AIX port of GNU ld has always aspired to compatibility
15569 # with the native linker. However, as the warning in the GNU ld
15570 # block says, versions before 2.19.5* couldn't really create working
15571 # shared libraries, regardless of the interface used.
15572 case `$LD -v 2>&1` in
15573 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15574 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15575 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15577 lt_use_gnu_ld_interface=yes
15579 esac
15582 lt_use_gnu_ld_interface=yes
15584 esac
15587 if test "$lt_use_gnu_ld_interface" = yes; then
15588 # If archive_cmds runs LD, not CC, wlarc should be empty
15589 wlarc='${wl}'
15591 # Set some defaults for GNU ld with shared library support. These
15592 # are reset later if shared libraries are not supported. Putting them
15593 # here allows them to be overridden if necessary.
15594 runpath_var=LD_RUN_PATH
15595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15596 export_dynamic_flag_spec='${wl}--export-dynamic'
15597 # ancient GNU ld didn't support --whole-archive et. al.
15598 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15599 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15600 else
15601 whole_archive_flag_spec=
15603 supports_anon_versioning=no
15604 case `$LD -v 2>&1` in
15605 *GNU\ gold*) supports_anon_versioning=yes ;;
15606 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15609 *\ 2.11.*) ;; # other 2.11 versions
15610 *) supports_anon_versioning=yes ;;
15611 esac
15613 # See if GNU ld supports shared libraries.
15614 case $host_os in
15615 aix[3-9]*)
15616 # On AIX/PPC, the GNU linker is very broken
15617 if test "$host_cpu" != ia64; then
15618 ld_shlibs=no
15619 cat <<_LT_EOF 1>&2
15621 *** Warning: the GNU linker, at least up to release 2.19, is reported
15622 *** to be unable to reliably create shared libraries on AIX.
15623 *** Therefore, libtool is disabling shared libraries support. If you
15624 *** really care for shared libraries, you may want to install binutils
15625 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15626 *** You will then need to restart the configuration process.
15628 _LT_EOF
15632 amigaos*)
15633 case $host_cpu in
15634 powerpc)
15635 # see comment about AmigaOS4 .so support
15636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15637 archive_expsym_cmds=''
15639 m68k)
15640 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)'
15641 hardcode_libdir_flag_spec='-L$libdir'
15642 hardcode_minus_L=yes
15644 esac
15647 beos*)
15648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15649 allow_undefined_flag=unsupported
15650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15651 # support --undefined. This deserves some investigation. FIXME
15652 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653 else
15654 ld_shlibs=no
15658 cygwin* | mingw* | pw32* | cegcc*)
15659 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15660 # as there is no search path for DLLs.
15661 hardcode_libdir_flag_spec='-L$libdir'
15662 export_dynamic_flag_spec='${wl}--export-all-symbols'
15663 allow_undefined_flag=unsupported
15664 always_export_symbols=no
15665 enable_shared_with_static_runtimes=yes
15666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15668 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15670 # If the export-symbols file already is a .def file (1st line
15671 # is EXPORTS), use it as is; otherwise, prepend...
15672 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15673 cp $export_symbols $output_objdir/$soname.def;
15674 else
15675 echo EXPORTS > $output_objdir/$soname.def;
15676 cat $export_symbols >> $output_objdir/$soname.def;
15678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15679 else
15680 ld_shlibs=no
15684 haiku*)
15685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 link_all_deplibs=yes
15689 interix[3-9]*)
15690 hardcode_direct=no
15691 hardcode_shlibpath_var=no
15692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15693 export_dynamic_flag_spec='${wl}-E'
15694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15695 # Instead, shared libraries are loaded at an image base (0x10000000 by
15696 # default) and relocated if they conflict, which is a slow very memory
15697 # consuming and fragmenting process. To avoid this, we pick a random,
15698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15699 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15701 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'
15704 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15705 tmp_diet=no
15706 if test "$host_os" = linux-dietlibc; then
15707 case $cc_basename in
15708 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15709 esac
15711 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15712 && test "$tmp_diet" = no
15713 then
15714 tmp_addflag=
15715 tmp_sharedflag='-shared'
15716 case $cc_basename,$host_cpu in
15717 pgcc*) # Portland Group C compiler
15718 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'
15719 tmp_addflag=' $pic_flag'
15721 pgf77* | pgf90* | pgf95* | pgfortran*)
15722 # Portland Group f77 and f90 compilers
15723 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'
15724 tmp_addflag=' $pic_flag -Mnomain' ;;
15725 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15726 tmp_addflag=' -i_dynamic' ;;
15727 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15728 tmp_addflag=' -i_dynamic -nofor_main' ;;
15729 ifc* | ifort*) # Intel Fortran compiler
15730 tmp_addflag=' -nofor_main' ;;
15731 lf95*) # Lahey Fortran 8.1
15732 whole_archive_flag_spec=
15733 tmp_sharedflag='--shared' ;;
15734 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15735 tmp_sharedflag='-qmkshrobj'
15736 tmp_addflag= ;;
15737 nvcc*) # Cuda Compiler Driver 2.2
15738 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'
15739 compiler_needs_object=yes
15741 esac
15742 case `$CC -V 2>&1 | sed 5q` in
15743 *Sun\ C*) # Sun C 5.9
15744 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'
15745 compiler_needs_object=yes
15746 tmp_sharedflag='-G' ;;
15747 *Sun\ F*) # Sun Fortran 8.3
15748 tmp_sharedflag='-G' ;;
15749 esac
15750 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15752 if test "x$supports_anon_versioning" = xyes; then
15753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15755 echo "local: *; };" >> $output_objdir/$libname.ver~
15756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15759 case $cc_basename in
15760 xlf* | bgf* | bgxlf* | mpixlf*)
15761 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15762 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15763 hardcode_libdir_flag_spec=
15764 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15765 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15766 if test "x$supports_anon_versioning" = xyes; then
15767 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15769 echo "local: *; };" >> $output_objdir/$libname.ver~
15770 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15773 esac
15774 else
15775 ld_shlibs=no
15779 netbsd*)
15780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15781 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15782 wlarc=
15783 else
15784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15789 solaris*)
15790 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15791 ld_shlibs=no
15792 cat <<_LT_EOF 1>&2
15794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15795 *** create shared libraries on Solaris systems. Therefore, libtool
15796 *** is disabling shared libraries support. We urge you to upgrade GNU
15797 *** binutils to release 2.9.1 or newer. Another option is to modify
15798 *** your PATH or compiler configuration so that the native linker is
15799 *** used, and then restart.
15801 _LT_EOF
15802 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15805 else
15806 ld_shlibs=no
15810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15811 case `$LD -v 2>&1` in
15812 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15813 ld_shlibs=no
15814 cat <<_LT_EOF 1>&2
15816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15817 *** reliably create shared libraries on SCO systems. Therefore, libtool
15818 *** is disabling shared libraries support. We urge you to upgrade GNU
15819 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15820 *** your PATH or compiler configuration so that the native linker is
15821 *** used, and then restart.
15823 _LT_EOF
15826 # For security reasons, it is highly recommended that you always
15827 # use absolute paths for naming shared libraries, and exclude the
15828 # DT_RUNPATH tag from executables and libraries. But doing so
15829 # requires that you compile everything twice, which is a pain.
15830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834 else
15835 ld_shlibs=no
15838 esac
15841 sunos4*)
15842 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15843 wlarc=
15844 hardcode_direct=yes
15845 hardcode_shlibpath_var=no
15849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15852 else
15853 ld_shlibs=no
15856 esac
15858 if test "$ld_shlibs" = no; then
15859 runpath_var=
15860 hardcode_libdir_flag_spec=
15861 export_dynamic_flag_spec=
15862 whole_archive_flag_spec=
15864 else
15865 # PORTME fill in a description of your system's linker (not GNU ld)
15866 case $host_os in
15867 aix3*)
15868 allow_undefined_flag=unsupported
15869 always_export_symbols=yes
15870 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'
15871 # Note: this linker hardcodes the directories in LIBPATH if there
15872 # are no directories specified by -L.
15873 hardcode_minus_L=yes
15874 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15875 # Neither direct hardcoding nor static linking is supported with a
15876 # broken collect2.
15877 hardcode_direct=unsupported
15881 aix[4-9]*)
15882 if test "$host_cpu" = ia64; then
15883 # On IA64, the linker does run time linking by default, so we don't
15884 # have to do anything special.
15885 aix_use_runtimelinking=no
15886 exp_sym_flag='-Bexport'
15887 no_entry_flag=""
15888 else
15889 # If we're using GNU nm, then we don't want the "-C" option.
15890 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15891 # Also, AIX nm treats weak defined symbols like other global
15892 # defined symbols, whereas GNU nm marks them as "W".
15893 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15894 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'
15895 else
15896 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'
15898 aix_use_runtimelinking=no
15900 # Test if we are trying to use run time linking or normal
15901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15902 # need to do runtime linking.
15903 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15904 for ld_flag in $LDFLAGS; do
15905 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15906 aix_use_runtimelinking=yes
15907 break
15909 done
15911 esac
15913 exp_sym_flag='-bexport'
15914 no_entry_flag='-bnoentry'
15917 # When large executables or shared objects are built, AIX ld can
15918 # have problems creating the table of contents. If linking a library
15919 # or program results in "error TOC overflow" add -mminimal-toc to
15920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15923 archive_cmds=''
15924 hardcode_direct=yes
15925 hardcode_direct_absolute=yes
15926 hardcode_libdir_separator=':'
15927 link_all_deplibs=yes
15928 file_list_spec='${wl}-f,'
15930 if test "$GCC" = yes; then
15931 case $host_os in aix4.[012]|aix4.[012].*)
15932 # We only want to do this on AIX 4.2 and lower, the check
15933 # below for broken collect2 doesn't work under 4.3+
15934 collect2name=`${CC} -print-prog-name=collect2`
15935 if test -f "$collect2name" &&
15936 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15937 then
15938 # We have reworked collect2
15940 else
15941 # We have old collect2
15942 hardcode_direct=unsupported
15943 # It fails to find uninstalled libraries when the uninstalled
15944 # path is not listed in the libpath. Setting hardcode_minus_L
15945 # to unsupported forces relinking
15946 hardcode_minus_L=yes
15947 hardcode_libdir_flag_spec='-L$libdir'
15948 hardcode_libdir_separator=
15951 esac
15952 shared_flag='-shared'
15953 if test "$aix_use_runtimelinking" = yes; then
15954 shared_flag="$shared_flag "'${wl}-G'
15956 else
15957 # not using gcc
15958 if test "$host_cpu" = ia64; then
15959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15960 # chokes on -Wl,-G. The following line is correct:
15961 shared_flag='-G'
15962 else
15963 if test "$aix_use_runtimelinking" = yes; then
15964 shared_flag='${wl}-G'
15965 else
15966 shared_flag='${wl}-bM:SRE'
15971 export_dynamic_flag_spec='${wl}-bexpall'
15972 # It seems that -bexpall does not export symbols beginning with
15973 # underscore (_), so it is better to generate a list of symbols to export.
15974 always_export_symbols=yes
15975 if test "$aix_use_runtimelinking" = yes; then
15976 # Warning - without using the other runtime loading flags (-brtl),
15977 # -berok will link without error, but may produce a broken library.
15978 allow_undefined_flag='-berok'
15979 # Determine the default libpath from the value encoded in an
15980 # empty executable.
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15985 main ()
15989 return 0;
15991 _ACEOF
15992 if ac_fn_c_try_link "$LINENO"; then :
15994 lt_aix_libpath_sed='
15995 /Import File Strings/,/^$/ {
15996 /^0/ {
15997 s/^0 *\(.*\)$/\1/
16001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16002 # Check for a 64-bit object if we didn't find anything.
16003 if test -z "$aix_libpath"; then
16004 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16007 rm -f core conftest.err conftest.$ac_objext \
16008 conftest$ac_exeext conftest.$ac_ext
16009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16012 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"
16013 else
16014 if test "$host_cpu" = ia64; then
16015 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16016 allow_undefined_flag="-z nodefs"
16017 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"
16018 else
16019 # Determine the default libpath from the value encoded in an
16020 # empty executable.
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16025 main ()
16029 return 0;
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16034 lt_aix_libpath_sed='
16035 /Import File Strings/,/^$/ {
16036 /^0/ {
16037 s/^0 *\(.*\)$/\1/
16041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16042 # Check for a 64-bit object if we didn't find anything.
16043 if test -z "$aix_libpath"; then
16044 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16052 # Warning - without using the other run time loading flags,
16053 # -berok will link without error, but may produce a broken library.
16054 no_undefined_flag=' ${wl}-bernotok'
16055 allow_undefined_flag=' ${wl}-berok'
16056 if test "$with_gnu_ld" = yes; then
16057 # We only use this code for GNU lds that support --whole-archive.
16058 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16059 else
16060 # Exported symbols can be pulled into shared objects from archives
16061 whole_archive_flag_spec='$convenience'
16063 archive_cmds_need_lc=yes
16064 # This is similar to how AIX traditionally builds its shared libraries.
16065 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'
16070 amigaos*)
16071 case $host_cpu in
16072 powerpc)
16073 # see comment about AmigaOS4 .so support
16074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075 archive_expsym_cmds=''
16077 m68k)
16078 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)'
16079 hardcode_libdir_flag_spec='-L$libdir'
16080 hardcode_minus_L=yes
16082 esac
16085 bsdi[45]*)
16086 export_dynamic_flag_spec=-rdynamic
16089 cygwin* | mingw* | pw32* | cegcc*)
16090 # When not using gcc, we currently assume that we are using
16091 # Microsoft Visual C++.
16092 # hardcode_libdir_flag_spec is actually meaningless, as there is
16093 # no search path for DLLs.
16094 hardcode_libdir_flag_spec=' '
16095 allow_undefined_flag=unsupported
16096 # Tell ltmain to make .lib files, not .a files.
16097 libext=lib
16098 # Tell ltmain to make .dll files, not .so files.
16099 shrext_cmds=".dll"
16100 # FIXME: Setting linknames here is a bad hack.
16101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16102 # The linker will automatically build a .lib file if we build a DLL.
16103 old_archive_from_new_cmds='true'
16104 # FIXME: Should let the user specify the lib program.
16105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16106 fix_srcfile_path='`cygpath -w "$srcfile"`'
16107 enable_shared_with_static_runtimes=yes
16110 darwin* | rhapsody*)
16113 archive_cmds_need_lc=no
16114 hardcode_direct=no
16115 hardcode_automatic=yes
16116 hardcode_shlibpath_var=unsupported
16117 if test "$lt_cv_ld_force_load" = "yes"; then
16118 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\"`'
16119 else
16120 whole_archive_flag_spec=''
16122 link_all_deplibs=yes
16123 allow_undefined_flag="$_lt_dar_allow_undefined"
16124 case $cc_basename in
16125 ifort*) _lt_dar_can_shared=yes ;;
16126 *) _lt_dar_can_shared=$GCC ;;
16127 esac
16128 if test "$_lt_dar_can_shared" = "yes"; then
16129 output_verbose_link_cmd=func_echo_all
16130 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16131 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16132 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}"
16133 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}"
16135 else
16136 ld_shlibs=no
16141 dgux*)
16142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 hardcode_libdir_flag_spec='-L$libdir'
16144 hardcode_shlibpath_var=no
16147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16148 # support. Future versions do this automatically, but an explicit c++rt0.o
16149 # does not break anything, and helps significantly (at the cost of a little
16150 # extra space).
16151 freebsd2.2*)
16152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16153 hardcode_libdir_flag_spec='-R$libdir'
16154 hardcode_direct=yes
16155 hardcode_shlibpath_var=no
16158 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16159 freebsd2*)
16160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16161 hardcode_direct=yes
16162 hardcode_minus_L=yes
16163 hardcode_shlibpath_var=no
16166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16167 freebsd* | dragonfly*)
16168 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16169 hardcode_libdir_flag_spec='-R$libdir'
16170 hardcode_direct=yes
16171 hardcode_shlibpath_var=no
16174 hpux9*)
16175 if test "$GCC" = yes; then
16176 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'
16177 else
16178 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'
16180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16181 hardcode_libdir_separator=:
16182 hardcode_direct=yes
16184 # hardcode_minus_L: Not really in the search PATH,
16185 # but as the default location of the library.
16186 hardcode_minus_L=yes
16187 export_dynamic_flag_spec='${wl}-E'
16190 hpux10*)
16191 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16193 else
16194 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16196 if test "$with_gnu_ld" = no; then
16197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16198 hardcode_libdir_flag_spec_ld='+b $libdir'
16199 hardcode_libdir_separator=:
16200 hardcode_direct=yes
16201 hardcode_direct_absolute=yes
16202 export_dynamic_flag_spec='${wl}-E'
16203 # hardcode_minus_L: Not really in the search PATH,
16204 # but as the default location of the library.
16205 hardcode_minus_L=yes
16209 hpux11*)
16210 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16211 case $host_cpu in
16212 hppa*64*)
16213 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16215 ia64*)
16216 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16221 esac
16222 else
16223 case $host_cpu in
16224 hppa*64*)
16225 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 ia64*)
16228 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16232 # Older versions of the 11.00 compiler do not understand -b yet
16233 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16235 $as_echo_n "checking if $CC understands -b... " >&6; }
16236 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 lt_cv_prog_compiler__b=no
16240 save_LDFLAGS="$LDFLAGS"
16241 LDFLAGS="$LDFLAGS -b"
16242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16244 # The linker can only warn and ignore the option if not recognized
16245 # So say no if there are warnings
16246 if test -s conftest.err; then
16247 # Append any errors to the config.log.
16248 cat conftest.err 1>&5
16249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16251 if diff conftest.exp conftest.er2 >/dev/null; then
16252 lt_cv_prog_compiler__b=yes
16254 else
16255 lt_cv_prog_compiler__b=yes
16258 $RM -r conftest*
16259 LDFLAGS="$save_LDFLAGS"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16263 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16265 if test x"$lt_cv_prog_compiler__b" = xyes; then
16266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16267 else
16268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16272 esac
16274 if test "$with_gnu_ld" = no; then
16275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16276 hardcode_libdir_separator=:
16278 case $host_cpu in
16279 hppa*64*|ia64*)
16280 hardcode_direct=no
16281 hardcode_shlibpath_var=no
16284 hardcode_direct=yes
16285 hardcode_direct_absolute=yes
16286 export_dynamic_flag_spec='${wl}-E'
16288 # hardcode_minus_L: Not really in the search PATH,
16289 # but as the default location of the library.
16290 hardcode_minus_L=yes
16292 esac
16296 irix5* | irix6* | nonstopux*)
16297 if test "$GCC" = yes; then
16298 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'
16299 # Try to use the -exported_symbol ld option, if it does not
16300 # work, assume that -exports_file does not work either and
16301 # implicitly export all symbols.
16302 save_LDFLAGS="$LDFLAGS"
16303 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 int foo(void) {}
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309 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'
16312 rm -f core conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16314 LDFLAGS="$save_LDFLAGS"
16315 else
16316 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'
16317 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'
16319 archive_cmds_need_lc='no'
16320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16321 hardcode_libdir_separator=:
16322 inherit_rpath=yes
16323 link_all_deplibs=yes
16326 netbsd*)
16327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16329 else
16330 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16332 hardcode_libdir_flag_spec='-R$libdir'
16333 hardcode_direct=yes
16334 hardcode_shlibpath_var=no
16337 newsos6)
16338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16339 hardcode_direct=yes
16340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16341 hardcode_libdir_separator=:
16342 hardcode_shlibpath_var=no
16345 *nto* | *qnx*)
16348 openbsd*)
16349 if test -f /usr/libexec/ld.so; then
16350 hardcode_direct=yes
16351 hardcode_shlibpath_var=no
16352 hardcode_direct_absolute=yes
16353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16355 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16357 export_dynamic_flag_spec='${wl}-E'
16358 else
16359 case $host_os in
16360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_libdir_flag_spec='-R$libdir'
16365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16368 esac
16370 else
16371 ld_shlibs=no
16375 os2*)
16376 hardcode_libdir_flag_spec='-L$libdir'
16377 hardcode_minus_L=yes
16378 allow_undefined_flag=unsupported
16379 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'
16380 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16383 osf3*)
16384 if test "$GCC" = yes; then
16385 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16386 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'
16387 else
16388 allow_undefined_flag=' -expect_unresolved \*'
16389 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'
16391 archive_cmds_need_lc='no'
16392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393 hardcode_libdir_separator=:
16396 osf4* | osf5*) # as osf3* with the addition of -msym flag
16397 if test "$GCC" = yes; then
16398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16399 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'
16400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16401 else
16402 allow_undefined_flag=' -expect_unresolved \*'
16403 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'
16404 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~
16405 $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'
16407 # Both c and cxx compiler support -rpath directly
16408 hardcode_libdir_flag_spec='-rpath $libdir'
16410 archive_cmds_need_lc='no'
16411 hardcode_libdir_separator=:
16414 solaris*)
16415 no_undefined_flag=' -z defs'
16416 if test "$GCC" = yes; then
16417 wlarc='${wl}'
16418 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16420 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16421 else
16422 case `$CC -V 2>&1` in
16423 *"Compilers 5.0"*)
16424 wlarc=''
16425 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16426 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16430 wlarc='${wl}'
16431 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16433 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16435 esac
16437 hardcode_libdir_flag_spec='-R$libdir'
16438 hardcode_shlibpath_var=no
16439 case $host_os in
16440 solaris2.[0-5] | solaris2.[0-5].*) ;;
16442 # The compiler driver will combine and reorder linker options,
16443 # but understands `-z linker_flag'. GCC discards it without `$wl',
16444 # but is careful enough not to reorder.
16445 # Supported since Solaris 2.6 (maybe 2.5.1?)
16446 if test "$GCC" = yes; then
16447 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16448 else
16449 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16452 esac
16453 link_all_deplibs=yes
16456 sunos4*)
16457 if test "x$host_vendor" = xsequent; then
16458 # Use $CC to link under sequent, because it throws in some extra .o
16459 # files that make .init and .fini sections work.
16460 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16461 else
16462 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_libdir_flag_spec='-L$libdir'
16465 hardcode_direct=yes
16466 hardcode_minus_L=yes
16467 hardcode_shlibpath_var=no
16470 sysv4)
16471 case $host_vendor in
16472 sni)
16473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_direct=yes # is this really true???
16476 siemens)
16477 ## LD is ld it makes a PLAMLIB
16478 ## CC just makes a GrossModule.
16479 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16480 reload_cmds='$CC -r -o $output$reload_objs'
16481 hardcode_direct=no
16483 motorola)
16484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16487 esac
16488 runpath_var='LD_RUN_PATH'
16489 hardcode_shlibpath_var=no
16492 sysv4.3*)
16493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_shlibpath_var=no
16495 export_dynamic_flag_spec='-Bexport'
16498 sysv4*MP*)
16499 if test -d /usr/nec; then
16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_shlibpath_var=no
16502 runpath_var=LD_RUN_PATH
16503 hardcode_runpath_var=yes
16504 ld_shlibs=yes
16508 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16509 no_undefined_flag='${wl}-z,text'
16510 archive_cmds_need_lc=no
16511 hardcode_shlibpath_var=no
16512 runpath_var='LD_RUN_PATH'
16514 if test "$GCC" = yes; then
16515 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 else
16518 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 sysv5* | sco3.2v5* | sco5v6*)
16524 # Note: We can NOT use -z defs as we might desire, because we do not
16525 # link with -lc, and that would cause any symbols used from libc to
16526 # always be unresolved, which means just about no library would
16527 # ever link correctly. If we're not using GNU ld we use -z text
16528 # though, which does catch some bad symbols but isn't as heavy-handed
16529 # as -z defs.
16530 no_undefined_flag='${wl}-z,text'
16531 allow_undefined_flag='${wl}-z,nodefs'
16532 archive_cmds_need_lc=no
16533 hardcode_shlibpath_var=no
16534 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16535 hardcode_libdir_separator=':'
16536 link_all_deplibs=yes
16537 export_dynamic_flag_spec='${wl}-Bexport'
16538 runpath_var='LD_RUN_PATH'
16540 if test "$GCC" = yes; then
16541 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 else
16544 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16549 uts4*)
16550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_libdir_flag_spec='-L$libdir'
16552 hardcode_shlibpath_var=no
16556 ld_shlibs=no
16558 esac
16560 if test x$host_vendor = xsni; then
16561 case $host in
16562 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16563 export_dynamic_flag_spec='${wl}-Blargedynsym'
16565 esac
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16570 $as_echo "$ld_shlibs" >&6; }
16571 test "$ld_shlibs" = no && can_build_shared=no
16573 with_gnu_ld=$with_gnu_ld
16590 # Do we need to explicitly link libc?
16592 case "x$archive_cmds_need_lc" in
16593 x|xyes)
16594 # Assume -lc should be added
16595 archive_cmds_need_lc=yes
16597 if test "$enable_shared" = yes && test "$GCC" = yes; then
16598 case $archive_cmds in
16599 *'~'*)
16600 # FIXME: we may have to deal with multi-command sequences.
16602 '$CC '*)
16603 # Test whether the compiler implicitly links with -lc since on some
16604 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16605 # to ld, don't add -lc before -lgcc.
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16607 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16608 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 $RM conftest*
16612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16615 (eval $ac_compile) 2>&5
16616 ac_status=$?
16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618 test $ac_status = 0; } 2>conftest.err; then
16619 soname=conftest
16620 lib=conftest
16621 libobjs=conftest.$ac_objext
16622 deplibs=
16623 wl=$lt_prog_compiler_wl
16624 pic_flag=$lt_prog_compiler_pic
16625 compiler_flags=-v
16626 linker_flags=-v
16627 verstring=
16628 output_objdir=.
16629 libname=conftest
16630 lt_save_allow_undefined_flag=$allow_undefined_flag
16631 allow_undefined_flag=
16632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16633 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16634 ac_status=$?
16635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16636 test $ac_status = 0; }
16637 then
16638 lt_cv_archive_cmds_need_lc=no
16639 else
16640 lt_cv_archive_cmds_need_lc=yes
16642 allow_undefined_flag=$lt_save_allow_undefined_flag
16643 else
16644 cat conftest.err 1>&5
16646 $RM conftest*
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16650 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16651 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16653 esac
16656 esac
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16817 if test "$GCC" = yes; then
16818 case $host_os in
16819 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16820 *) lt_awk_arg="/^libraries:/" ;;
16821 esac
16822 case $host_os in
16823 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16824 *) lt_sed_strip_eq="s,=/,/,g" ;;
16825 esac
16826 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16827 case $lt_search_path_spec in
16828 *\;*)
16829 # if the path contains ";" then we assume it to be the separator
16830 # otherwise default to the standard path separator (i.e. ":") - it is
16831 # assumed that no part of a normal pathname contains ";" but that should
16832 # okay in the real world where ";" in dirpaths is itself problematic.
16833 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16836 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16838 esac
16839 # Ok, now we have the path, separated by spaces, we can step through it
16840 # and add multilib dir if necessary.
16841 lt_tmp_lt_search_path_spec=
16842 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16843 for lt_sys_path in $lt_search_path_spec; do
16844 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16846 else
16847 test -d "$lt_sys_path" && \
16848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16850 done
16851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16852 BEGIN {RS=" "; FS="/|\n";} {
16853 lt_foo="";
16854 lt_count=0;
16855 for (lt_i = NF; lt_i > 0; lt_i--) {
16856 if ($lt_i != "" && $lt_i != ".") {
16857 if ($lt_i == "..") {
16858 lt_count++;
16859 } else {
16860 if (lt_count == 0) {
16861 lt_foo="/" $lt_i lt_foo;
16862 } else {
16863 lt_count--;
16868 if (lt_foo != "") { lt_freq[lt_foo]++; }
16869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16871 # AWK program above erroneously prepends '/' to C:/dos/paths
16872 # for these hosts.
16873 case $host_os in
16874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16875 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16876 esac
16877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16878 else
16879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16881 library_names_spec=
16882 libname_spec='lib$name'
16883 soname_spec=
16884 shrext_cmds=".so"
16885 postinstall_cmds=
16886 postuninstall_cmds=
16887 finish_cmds=
16888 finish_eval=
16889 shlibpath_var=
16890 shlibpath_overrides_runpath=unknown
16891 version_type=none
16892 dynamic_linker="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16894 need_lib_prefix=unknown
16895 hardcode_into_libs=no
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version=unknown
16901 case $host_os in
16902 aix3*)
16903 version_type=linux
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16905 shlibpath_var=LIBPATH
16907 # AIX 3 has no versioning support, so we append a major version to the name.
16908 soname_spec='${libname}${release}${shared_ext}$major'
16911 aix[4-9]*)
16912 version_type=linux
16913 need_lib_prefix=no
16914 need_version=no
16915 hardcode_into_libs=yes
16916 if test "$host_cpu" = ia64; then
16917 # AIX 5 supports IA64
16918 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 else
16921 # With GCC up to 2.95.x, collect2 would create an import file
16922 # for dependence libraries. The import file would start with
16923 # the line `#! .'. This would cause the generated library to
16924 # depend on `.', always an invalid library. This was fixed in
16925 # development snapshots of GCC prior to 3.0.
16926 case $host_os in
16927 aix4 | aix4.[01] | aix4.[01].*)
16928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16929 echo ' yes '
16930 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16932 else
16933 can_build_shared=no
16936 esac
16937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938 # soname into executable. Probably we can add versioning support to
16939 # collect2, so additional links can be useful in future.
16940 if test "$aix_use_runtimelinking" = yes; then
16941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942 # instead of lib<name>.a to let people know that these are not
16943 # typical AIX shared libraries.
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 else
16946 # We preserve .a as extension for shared libraries through AIX4.2
16947 # and later when we are not doing run time linking.
16948 library_names_spec='${libname}${release}.a $libname.a'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LIBPATH
16955 amigaos*)
16956 case $host_cpu in
16957 powerpc)
16958 # Since July 2007 AmigaOS4 officially supports .so libraries.
16959 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962 m68k)
16963 library_names_spec='$libname.ixlibrary $libname.a'
16964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16965 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'
16967 esac
16970 beos*)
16971 library_names_spec='${libname}${shared_ext}'
16972 dynamic_linker="$host_os ld.so"
16973 shlibpath_var=LIBRARY_PATH
16976 bsdi[45]*)
16977 version_type=linux
16978 need_version=no
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16982 shlibpath_var=LD_LIBRARY_PATH
16983 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16984 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16985 # the default ld.so.conf also contains /usr/contrib/lib and
16986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16987 # libtool to hard-code these into programs
16990 cygwin* | mingw* | pw32* | cegcc*)
16991 version_type=windows
16992 shrext_cmds=".dll"
16993 need_version=no
16994 need_lib_prefix=no
16996 case $GCC,$host_os in
16997 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16998 library_names_spec='$libname.dll.a'
16999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17000 postinstall_cmds='base_file=`basename \${file}`~
17001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17002 dldir=$destdir/`dirname \$dlpath`~
17003 test -d \$dldir || mkdir -p \$dldir~
17004 $install_prog $dir/$dlname \$dldir/$dlname~
17005 chmod a+x \$dldir/$dlname~
17006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17010 dlpath=$dir/\$dldll~
17011 $RM \$dlpath'
17012 shlibpath_overrides_runpath=yes
17014 case $host_os in
17015 cygwin*)
17016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17021 mingw* | cegcc*)
17022 # MinGW DLLs use traditional 'lib' prefix
17023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025 pw32*)
17026 # pw32 DLLs use 'pw' prefix rather than 'lib'
17027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17029 esac
17033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17035 esac
17036 dynamic_linker='Win32 ld.exe'
17037 # FIXME: first we should search . and the directory the executable is in
17038 shlibpath_var=PATH
17041 darwin* | rhapsody*)
17042 dynamic_linker="$host_os dyld"
17043 version_type=darwin
17044 need_lib_prefix=no
17045 need_version=no
17046 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17047 soname_spec='${libname}${release}${major}$shared_ext'
17048 shlibpath_overrides_runpath=yes
17049 shlibpath_var=DYLD_LIBRARY_PATH
17050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17052 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17056 dgux*)
17057 version_type=linux
17058 need_lib_prefix=no
17059 need_version=no
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17061 soname_spec='${libname}${release}${shared_ext}$major'
17062 shlibpath_var=LD_LIBRARY_PATH
17065 freebsd* | dragonfly*)
17066 # DragonFly does not have aout. When/if they implement a new
17067 # versioning mechanism, adjust this.
17068 if test -x /usr/bin/objformat; then
17069 objformat=`/usr/bin/objformat`
17070 else
17071 case $host_os in
17072 freebsd[123]*) objformat=aout ;;
17073 *) objformat=elf ;;
17074 esac
17076 version_type=freebsd-$objformat
17077 case $version_type in
17078 freebsd-elf*)
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17080 need_version=no
17081 need_lib_prefix=no
17083 freebsd-*)
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17085 need_version=yes
17087 esac
17088 shlibpath_var=LD_LIBRARY_PATH
17089 case $host_os in
17090 freebsd2*)
17091 shlibpath_overrides_runpath=yes
17093 freebsd3.[01]* | freebsdelf3.[01]*)
17094 shlibpath_overrides_runpath=yes
17095 hardcode_into_libs=yes
17097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17099 shlibpath_overrides_runpath=no
17100 hardcode_into_libs=yes
17102 *) # from 4.6 on, and DragonFly
17103 shlibpath_overrides_runpath=yes
17104 hardcode_into_libs=yes
17106 esac
17109 gnu*)
17110 version_type=linux
17111 need_lib_prefix=no
17112 need_version=no
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114 soname_spec='${libname}${release}${shared_ext}$major'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 hardcode_into_libs=yes
17119 haiku*)
17120 version_type=linux
17121 need_lib_prefix=no
17122 need_version=no
17123 dynamic_linker="$host_os runtime_loader"
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes
17128 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17129 hardcode_into_libs=yes
17132 hpux9* | hpux10* | hpux11*)
17133 # Give a soname corresponding to the major version so that dld.sl refuses to
17134 # link against other versions.
17135 version_type=sunos
17136 need_lib_prefix=no
17137 need_version=no
17138 case $host_cpu in
17139 ia64*)
17140 shrext_cmds='.so'
17141 hardcode_into_libs=yes
17142 dynamic_linker="$host_os dld.so"
17143 shlibpath_var=LD_LIBRARY_PATH
17144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 if test "X$HPUX_IA64_MODE" = X32; then
17148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17149 else
17150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17154 hppa*64*)
17155 shrext_cmds='.sl'
17156 hardcode_into_libs=yes
17157 dynamic_linker="$host_os dld.sl"
17158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17166 shrext_cmds='.sl'
17167 dynamic_linker="$host_os dld.sl"
17168 shlibpath_var=SHLIB_PATH
17169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17173 esac
17174 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17175 postinstall_cmds='chmod 555 $lib'
17176 # or fails outright, so override atomically:
17177 install_override_mode=555
17180 interix[3-9]*)
17181 version_type=linux
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17192 irix5* | irix6* | nonstopux*)
17193 case $host_os in
17194 nonstopux*) version_type=nonstopux ;;
17196 if test "$lt_cv_prog_gnu_ld" = yes; then
17197 version_type=linux
17198 else
17199 version_type=irix
17200 fi ;;
17201 esac
17202 need_lib_prefix=no
17203 need_version=no
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17206 case $host_os in
17207 irix5* | nonstopux*)
17208 libsuff= shlibsuff=
17211 case $LD in # libtool.m4 will add one of these switches to LD
17212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17213 libsuff= shlibsuff= libmagic=32-bit;;
17214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17215 libsuff=32 shlibsuff=N32 libmagic=N32;;
17216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17218 *) libsuff= shlibsuff= libmagic=never-match;;
17219 esac
17221 esac
17222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17223 shlibpath_overrides_runpath=no
17224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17226 hardcode_into_libs=yes
17229 # No shared lib support for Linux oldld, aout, or coff.
17230 linux*oldld* | linux*aout* | linux*coff*)
17231 dynamic_linker=no
17234 # This must be Linux ELF.
17235 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17236 version_type=linux
17237 need_lib_prefix=no
17238 need_version=no
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 shlibpath_overrides_runpath=no
17245 # Some binutils ld are patched to set DT_RUNPATH
17246 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17249 lt_cv_shlibpath_overrides_runpath=no
17250 save_LDFLAGS=$LDFLAGS
17251 save_libdir=$libdir
17252 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17253 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17258 main ()
17262 return 0;
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17267 lt_cv_shlibpath_overrides_runpath=yes
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LDFLAGS=$save_LDFLAGS
17273 libdir=$save_libdir
17277 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17279 # This implies no fast_install, which is unacceptable.
17280 # Some rework will be needed to allow for fast_install
17281 # before this can be enabled.
17282 hardcode_into_libs=yes
17284 # Append ld.so.conf contents to the search path
17285 if test -f /etc/ld.so.conf; then
17286 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' ' '`
17287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17290 # We used to test for /lib/ld.so.1 and disable shared libraries on
17291 # powerpc, because MkLinux only supported shared libraries with the
17292 # GNU dynamic linker. Since this was broken with cross compilers,
17293 # most powerpc-linux boxes support dynamic linking these days and
17294 # people can always --disable-shared, the test was removed, and we
17295 # assume the GNU/Linux dynamic linker is in use.
17296 dynamic_linker='GNU/Linux ld.so'
17299 netbsd*)
17300 version_type=sunos
17301 need_lib_prefix=no
17302 need_version=no
17303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306 dynamic_linker='NetBSD (a.out) ld.so'
17307 else
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 dynamic_linker='NetBSD ld.elf_so'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes
17314 hardcode_into_libs=yes
17317 newsos6)
17318 version_type=linux
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 shlibpath_overrides_runpath=yes
17324 *nto* | *qnx*)
17325 version_type=qnx
17326 need_lib_prefix=no
17327 need_version=no
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 shlibpath_overrides_runpath=no
17332 hardcode_into_libs=yes
17333 dynamic_linker='ldqnx.so'
17336 openbsd*)
17337 version_type=sunos
17338 sys_lib_dlsearch_path_spec="/usr/lib"
17339 need_lib_prefix=no
17340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17341 case $host_os in
17342 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17343 *) need_version=no ;;
17344 esac
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17349 case $host_os in
17350 openbsd2.[89] | openbsd2.[89].*)
17351 shlibpath_overrides_runpath=no
17354 shlibpath_overrides_runpath=yes
17356 esac
17357 else
17358 shlibpath_overrides_runpath=yes
17362 os2*)
17363 libname_spec='$name'
17364 shrext_cmds=".dll"
17365 need_lib_prefix=no
17366 library_names_spec='$libname${shared_ext} $libname.a'
17367 dynamic_linker='OS/2 ld.exe'
17368 shlibpath_var=LIBPATH
17371 osf3* | osf4* | osf5*)
17372 version_type=osf
17373 need_lib_prefix=no
17374 need_version=no
17375 soname_spec='${libname}${release}${shared_ext}$major'
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17382 rdos*)
17383 dynamic_linker=no
17386 solaris*)
17387 version_type=linux
17388 need_lib_prefix=no
17389 need_version=no
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=yes
17394 hardcode_into_libs=yes
17395 # ldd complains unless libraries are executable
17396 postinstall_cmds='chmod +x $lib'
17399 sunos4*)
17400 version_type=sunos
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath=yes
17405 if test "$with_gnu_ld" = yes; then
17406 need_lib_prefix=no
17408 need_version=yes
17411 sysv4 | sysv4.3*)
17412 version_type=linux
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 case $host_vendor in
17417 sni)
17418 shlibpath_overrides_runpath=no
17419 need_lib_prefix=no
17420 runpath_var=LD_RUN_PATH
17422 siemens)
17423 need_lib_prefix=no
17425 motorola)
17426 need_lib_prefix=no
17427 need_version=no
17428 shlibpath_overrides_runpath=no
17429 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17431 esac
17434 sysv4*MP*)
17435 if test -d /usr/nec ;then
17436 version_type=linux
17437 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17438 soname_spec='$libname${shared_ext}.$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17444 version_type=freebsd-elf
17445 need_lib_prefix=no
17446 need_version=no
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17448 soname_spec='${libname}${release}${shared_ext}$major'
17449 shlibpath_var=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath=yes
17451 hardcode_into_libs=yes
17452 if test "$with_gnu_ld" = yes; then
17453 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17454 else
17455 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17456 case $host_os in
17457 sco3.2v5*)
17458 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17460 esac
17462 sys_lib_dlsearch_path_spec='/usr/lib'
17465 tpf*)
17466 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17467 version_type=linux
17468 need_lib_prefix=no
17469 need_version=no
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 shlibpath_overrides_runpath=no
17473 hardcode_into_libs=yes
17476 uts4*)
17477 version_type=linux
17478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479 soname_spec='${libname}${release}${shared_ext}$major'
17480 shlibpath_var=LD_LIBRARY_PATH
17484 dynamic_linker=no
17486 esac
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17488 $as_echo "$dynamic_linker" >&6; }
17489 test "$dynamic_linker" = no && can_build_shared=no
17491 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17492 if test "$GCC" = yes; then
17493 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17496 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17497 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17499 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17500 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17595 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17596 hardcode_action=
17597 if test -n "$hardcode_libdir_flag_spec" ||
17598 test -n "$runpath_var" ||
17599 test "X$hardcode_automatic" = "Xyes" ; then
17601 # We can hardcode non-existent directories.
17602 if test "$hardcode_direct" != no &&
17603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17604 # have to relink, otherwise we might link with an installed library
17605 # when we should be linking with a yet-to-be-installed one
17606 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17607 test "$hardcode_minus_L" != no; then
17608 # Linking always hardcodes the temporary library directory.
17609 hardcode_action=relink
17610 else
17611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17612 hardcode_action=immediate
17614 else
17615 # We cannot hardcode anything, or else we can only hardcode existing
17616 # directories.
17617 hardcode_action=unsupported
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17620 $as_echo "$hardcode_action" >&6; }
17622 if test "$hardcode_action" = relink ||
17623 test "$inherit_rpath" = yes; then
17624 # Fast installation is not supported
17625 enable_fast_install=no
17626 elif test "$shlibpath_overrides_runpath" = yes ||
17627 test "$enable_shared" = no; then
17628 # Fast installation is not necessary
17629 enable_fast_install=needless
17637 if test "x$enable_dlopen" != xyes; then
17638 enable_dlopen=unknown
17639 enable_dlopen_self=unknown
17640 enable_dlopen_self_static=unknown
17641 else
17642 lt_cv_dlopen=no
17643 lt_cv_dlopen_libs=
17645 case $host_os in
17646 beos*)
17647 lt_cv_dlopen="load_add_on"
17648 lt_cv_dlopen_libs=
17649 lt_cv_dlopen_self=yes
17652 mingw* | pw32* | cegcc*)
17653 lt_cv_dlopen="LoadLibrary"
17654 lt_cv_dlopen_libs=
17657 cygwin*)
17658 lt_cv_dlopen="dlopen"
17659 lt_cv_dlopen_libs=
17662 darwin*)
17663 # if libdl is installed we need to link against it
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17668 else
17669 ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-ldl $LIBS"
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17674 /* Override any GCC internal prototype to avoid an error.
17675 Use char because int might match the return type of a GCC
17676 builtin and then its argument prototype would still apply. */
17677 #ifdef __cplusplus
17678 extern "C"
17679 #endif
17680 char dlopen ();
17682 main ()
17684 return dlopen ();
17686 return 0;
17688 _ACEOF
17689 if ac_fn_c_try_link "$LINENO"; then :
17690 ac_cv_lib_dl_dlopen=yes
17691 else
17692 ac_cv_lib_dl_dlopen=no
17694 rm -f core conftest.err conftest.$ac_objext \
17695 conftest$ac_exeext conftest.$ac_ext
17696 LIBS=$ac_check_lib_save_LIBS
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17700 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17702 else
17704 lt_cv_dlopen="dyld"
17705 lt_cv_dlopen_libs=
17706 lt_cv_dlopen_self=yes
17713 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17714 if test "x$ac_cv_func_shl_load" = x""yes; then :
17715 lt_cv_dlopen="shl_load"
17716 else
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17718 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17719 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17722 ac_check_lib_save_LIBS=$LIBS
17723 LIBS="-ldld $LIBS"
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17727 /* Override any GCC internal prototype to avoid an error.
17728 Use char because int might match the return type of a GCC
17729 builtin and then its argument prototype would still apply. */
17730 #ifdef __cplusplus
17731 extern "C"
17732 #endif
17733 char shl_load ();
17735 main ()
17737 return shl_load ();
17739 return 0;
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"; then :
17743 ac_cv_lib_dld_shl_load=yes
17744 else
17745 ac_cv_lib_dld_shl_load=no
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 LIBS=$ac_check_lib_save_LIBS
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17752 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17753 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17754 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17755 else
17756 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17757 if test "x$ac_cv_func_dlopen" = x""yes; then :
17758 lt_cv_dlopen="dlopen"
17759 else
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17763 $as_echo_n "(cached) " >&6
17764 else
17765 ac_check_lib_save_LIBS=$LIBS
17766 LIBS="-ldl $LIBS"
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17770 /* Override any GCC internal prototype to avoid an error.
17771 Use char because int might match the return type of a GCC
17772 builtin and then its argument prototype would still apply. */
17773 #ifdef __cplusplus
17774 extern "C"
17775 #endif
17776 char dlopen ();
17778 main ()
17780 return dlopen ();
17782 return 0;
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"; then :
17786 ac_cv_lib_dl_dlopen=yes
17787 else
17788 ac_cv_lib_dl_dlopen=no
17790 rm -f core conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17796 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17798 else
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17800 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-lsvld $LIBS"
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char dlopen ();
17817 main ()
17819 return dlopen ();
17821 return 0;
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825 ac_cv_lib_svld_dlopen=yes
17826 else
17827 ac_cv_lib_svld_dlopen=no
17829 rm -f core conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17834 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17835 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17837 else
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17839 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17840 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-ldld $LIBS"
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 char dld_link ();
17856 main ()
17858 return dld_link ();
17860 return 0;
17862 _ACEOF
17863 if ac_fn_c_try_link "$LINENO"; then :
17864 ac_cv_lib_dld_dld_link=yes
17865 else
17866 ac_cv_lib_dld_dld_link=no
17868 rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17873 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17874 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17875 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17894 esac
17896 if test "x$lt_cv_dlopen" != xno; then
17897 enable_dlopen=yes
17898 else
17899 enable_dlopen=no
17902 case $lt_cv_dlopen in
17903 dlopen)
17904 save_CPPFLAGS="$CPPFLAGS"
17905 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17907 save_LDFLAGS="$LDFLAGS"
17908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910 save_LIBS="$LIBS"
17911 LIBS="$lt_cv_dlopen_libs $LIBS"
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17914 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17915 if test "${lt_cv_dlopen_self+set}" = set; then :
17916 $as_echo_n "(cached) " >&6
17917 else
17918 if test "$cross_compiling" = yes; then :
17919 lt_cv_dlopen_self=cross
17920 else
17921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17922 lt_status=$lt_dlunknown
17923 cat > conftest.$ac_ext <<_LT_EOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17927 #if HAVE_DLFCN_H
17928 #include <dlfcn.h>
17929 #endif
17931 #include <stdio.h>
17933 #ifdef RTLD_GLOBAL
17934 # define LT_DLGLOBAL RTLD_GLOBAL
17935 #else
17936 # ifdef DL_GLOBAL
17937 # define LT_DLGLOBAL DL_GLOBAL
17938 # else
17939 # define LT_DLGLOBAL 0
17940 # endif
17941 #endif
17943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17944 find out it does not work in some platform. */
17945 #ifndef LT_DLLAZY_OR_NOW
17946 # ifdef RTLD_LAZY
17947 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17948 # else
17949 # ifdef DL_LAZY
17950 # define LT_DLLAZY_OR_NOW DL_LAZY
17951 # else
17952 # ifdef RTLD_NOW
17953 # define LT_DLLAZY_OR_NOW RTLD_NOW
17954 # else
17955 # ifdef DL_NOW
17956 # define LT_DLLAZY_OR_NOW DL_NOW
17957 # else
17958 # define LT_DLLAZY_OR_NOW 0
17959 # endif
17960 # endif
17961 # endif
17962 # endif
17963 #endif
17965 /* When -fvisbility=hidden is used, assume the code has been annotated
17966 correspondingly for the symbols needed. */
17967 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17968 void fnord () __attribute__((visibility("default")));
17969 #endif
17971 void fnord () { int i=42; }
17972 int main ()
17974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17975 int status = $lt_dlunknown;
17977 if (self)
17979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17980 else
17982 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17983 else puts (dlerror ());
17985 /* dlclose (self); */
17987 else
17988 puts (dlerror ());
17990 return status;
17992 _LT_EOF
17993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17994 (eval $ac_link) 2>&5
17995 ac_status=$?
17996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17997 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17998 (./conftest; exit; ) >&5 2>/dev/null
17999 lt_status=$?
18000 case x$lt_status in
18001 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18002 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18003 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18004 esac
18005 else :
18006 # compilation failed
18007 lt_cv_dlopen_self=no
18010 rm -fr conftest*
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18015 $as_echo "$lt_cv_dlopen_self" >&6; }
18017 if test "x$lt_cv_dlopen_self" = xyes; then
18018 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18020 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18021 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18022 $as_echo_n "(cached) " >&6
18023 else
18024 if test "$cross_compiling" = yes; then :
18025 lt_cv_dlopen_self_static=cross
18026 else
18027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18028 lt_status=$lt_dlunknown
18029 cat > conftest.$ac_ext <<_LT_EOF
18030 #line 18030 "configure"
18031 #include "confdefs.h"
18033 #if HAVE_DLFCN_H
18034 #include <dlfcn.h>
18035 #endif
18037 #include <stdio.h>
18039 #ifdef RTLD_GLOBAL
18040 # define LT_DLGLOBAL RTLD_GLOBAL
18041 #else
18042 # ifdef DL_GLOBAL
18043 # define LT_DLGLOBAL DL_GLOBAL
18044 # else
18045 # define LT_DLGLOBAL 0
18046 # endif
18047 #endif
18049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18050 find out it does not work in some platform. */
18051 #ifndef LT_DLLAZY_OR_NOW
18052 # ifdef RTLD_LAZY
18053 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18054 # else
18055 # ifdef DL_LAZY
18056 # define LT_DLLAZY_OR_NOW DL_LAZY
18057 # else
18058 # ifdef RTLD_NOW
18059 # define LT_DLLAZY_OR_NOW RTLD_NOW
18060 # else
18061 # ifdef DL_NOW
18062 # define LT_DLLAZY_OR_NOW DL_NOW
18063 # else
18064 # define LT_DLLAZY_OR_NOW 0
18065 # endif
18066 # endif
18067 # endif
18068 # endif
18069 #endif
18071 /* When -fvisbility=hidden is used, assume the code has been annotated
18072 correspondingly for the symbols needed. */
18073 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18074 void fnord () __attribute__((visibility("default")));
18075 #endif
18077 void fnord () { int i=42; }
18078 int main ()
18080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18081 int status = $lt_dlunknown;
18083 if (self)
18085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18086 else
18088 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18089 else puts (dlerror ());
18091 /* dlclose (self); */
18093 else
18094 puts (dlerror ());
18096 return status;
18098 _LT_EOF
18099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18100 (eval $ac_link) 2>&5
18101 ac_status=$?
18102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18103 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18104 (./conftest; exit; ) >&5 2>/dev/null
18105 lt_status=$?
18106 case x$lt_status in
18107 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18108 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18109 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18110 esac
18111 else :
18112 # compilation failed
18113 lt_cv_dlopen_self_static=no
18116 rm -fr conftest*
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18121 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18124 CPPFLAGS="$save_CPPFLAGS"
18125 LDFLAGS="$save_LDFLAGS"
18126 LIBS="$save_LIBS"
18128 esac
18130 case $lt_cv_dlopen_self in
18131 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18132 *) enable_dlopen_self=unknown ;;
18133 esac
18135 case $lt_cv_dlopen_self_static in
18136 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18137 *) enable_dlopen_self_static=unknown ;;
18138 esac
18157 striplib=
18158 old_striplib=
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18160 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18161 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18162 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18163 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165 $as_echo "yes" >&6; }
18166 else
18167 # FIXME - insert some real tests, host_os isn't really good enough
18168 case $host_os in
18169 darwin*)
18170 if test -n "$STRIP" ; then
18171 striplib="$STRIP -x"
18172 old_striplib="$STRIP -S"
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18174 $as_echo "yes" >&6; }
18175 else
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18184 esac
18198 # Report which library types will actually be built
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18200 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18202 $as_echo "$can_build_shared" >&6; }
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18205 $as_echo_n "checking whether to build shared libraries... " >&6; }
18206 test "$can_build_shared" = "no" && enable_shared=no
18208 # On AIX, shared libraries and static libraries use the same namespace, and
18209 # are all built from PIC.
18210 case $host_os in
18211 aix3*)
18212 test "$enable_shared" = yes && enable_static=no
18213 if test -n "$RANLIB"; then
18214 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18215 postinstall_cmds='$RANLIB $lib'
18219 aix[4-9]*)
18220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18221 test "$enable_shared" = yes && enable_static=no
18224 esac
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18226 $as_echo "$enable_shared" >&6; }
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18229 $as_echo_n "checking whether to build static libraries... " >&6; }
18230 # Make sure either enable_shared or enable_static is yes.
18231 test "$enable_shared" = yes || enable_static=yes
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18233 $as_echo "$enable_static" >&6; }
18239 ac_ext=c
18240 ac_cpp='$CPP $CPPFLAGS'
18241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245 CC="$lt_save_CC"
18247 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18248 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18249 (test "X$CXX" != "Xg++"))) ; then
18250 ac_ext=cpp
18251 ac_cpp='$CXXCPP $CPPFLAGS'
18252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18256 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18257 if test -z "$CXXCPP"; then
18258 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18259 $as_echo_n "(cached) " >&6
18260 else
18261 # Double quotes because CXXCPP needs to be expanded
18262 for CXXCPP in "$CXX -E" "/lib/cpp"
18264 ac_preproc_ok=false
18265 for ac_cxx_preproc_warn_flag in '' yes
18267 # Use a header file that comes with gcc, so configuring glibc
18268 # with a fresh cross-compiler works.
18269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18270 # <limits.h> exists even on freestanding compilers.
18271 # On the NeXT, cc -E runs the code through the compiler's parser,
18272 # not just through cpp. "Syntax error" is here to catch this case.
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18280 Syntax error
18281 _ACEOF
18282 if ac_fn_cxx_try_cpp "$LINENO"; then :
18284 else
18285 # Broken: fails on valid input.
18286 continue
18288 rm -f conftest.err conftest.$ac_ext
18290 # OK, works on sane cases. Now check whether nonexistent headers
18291 # can be detected and how.
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 #include <ac_nonexistent.h>
18295 _ACEOF
18296 if ac_fn_cxx_try_cpp "$LINENO"; then :
18297 # Broken: success on invalid input.
18298 continue
18299 else
18300 # Passes both tests.
18301 ac_preproc_ok=:
18302 break
18304 rm -f conftest.err conftest.$ac_ext
18306 done
18307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18308 rm -f conftest.err conftest.$ac_ext
18309 if $ac_preproc_ok; then :
18310 break
18313 done
18314 ac_cv_prog_CXXCPP=$CXXCPP
18317 CXXCPP=$ac_cv_prog_CXXCPP
18318 else
18319 ac_cv_prog_CXXCPP=$CXXCPP
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18322 $as_echo "$CXXCPP" >&6; }
18323 ac_preproc_ok=false
18324 for ac_cxx_preproc_warn_flag in '' yes
18326 # Use a header file that comes with gcc, so configuring glibc
18327 # with a fresh cross-compiler works.
18328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18329 # <limits.h> exists even on freestanding compilers.
18330 # On the NeXT, cc -E runs the code through the compiler's parser,
18331 # not just through cpp. "Syntax error" is here to catch this case.
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18334 #ifdef __STDC__
18335 # include <limits.h>
18336 #else
18337 # include <assert.h>
18338 #endif
18339 Syntax error
18340 _ACEOF
18341 if ac_fn_cxx_try_cpp "$LINENO"; then :
18343 else
18344 # Broken: fails on valid input.
18345 continue
18347 rm -f conftest.err conftest.$ac_ext
18349 # OK, works on sane cases. Now check whether nonexistent headers
18350 # can be detected and how.
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353 #include <ac_nonexistent.h>
18354 _ACEOF
18355 if ac_fn_cxx_try_cpp "$LINENO"; then :
18356 # Broken: success on invalid input.
18357 continue
18358 else
18359 # Passes both tests.
18360 ac_preproc_ok=:
18361 break
18363 rm -f conftest.err conftest.$ac_ext
18365 done
18366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18367 rm -f conftest.err conftest.$ac_ext
18368 if $ac_preproc_ok; then :
18370 else
18371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18373 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18374 See \`config.log' for more details." "$LINENO" 5; }
18377 ac_ext=c
18378 ac_cpp='$CPP $CPPFLAGS'
18379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18383 else
18384 _lt_caught_CXX_error=yes
18387 ac_ext=cpp
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18393 archive_cmds_need_lc_CXX=no
18394 allow_undefined_flag_CXX=
18395 always_export_symbols_CXX=no
18396 archive_expsym_cmds_CXX=
18397 compiler_needs_object_CXX=no
18398 export_dynamic_flag_spec_CXX=
18399 hardcode_direct_CXX=no
18400 hardcode_direct_absolute_CXX=no
18401 hardcode_libdir_flag_spec_CXX=
18402 hardcode_libdir_flag_spec_ld_CXX=
18403 hardcode_libdir_separator_CXX=
18404 hardcode_minus_L_CXX=no
18405 hardcode_shlibpath_var_CXX=unsupported
18406 hardcode_automatic_CXX=no
18407 inherit_rpath_CXX=no
18408 module_cmds_CXX=
18409 module_expsym_cmds_CXX=
18410 link_all_deplibs_CXX=unknown
18411 old_archive_cmds_CXX=$old_archive_cmds
18412 reload_flag_CXX=$reload_flag
18413 reload_cmds_CXX=$reload_cmds
18414 no_undefined_flag_CXX=
18415 whole_archive_flag_spec_CXX=
18416 enable_shared_with_static_runtimes_CXX=no
18418 # Source file extension for C++ test sources.
18419 ac_ext=cpp
18421 # Object file extension for compiled C++ test sources.
18422 objext=o
18423 objext_CXX=$objext
18425 # No sense in running all these tests if we already determined that
18426 # the CXX compiler isn't working. Some variables (like enable_shared)
18427 # are currently assumed to apply to all compilers on this platform,
18428 # and will be corrupted by setting them based on a non-working compiler.
18429 if test "$_lt_caught_CXX_error" != yes; then
18430 # Code to be used in simple compile tests
18431 lt_simple_compile_test_code="int some_variable = 0;"
18433 # Code to be used in simple link tests
18434 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18436 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18443 # If no C compiler was specified, use CC.
18444 LTCC=${LTCC-"$CC"}
18446 # If no C compiler flags were specified, use CFLAGS.
18447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18449 # Allow CC to be a program name with arguments.
18450 compiler=$CC
18453 # save warnings/boilerplate of simple test code
18454 ac_outfile=conftest.$ac_objext
18455 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18457 _lt_compiler_boilerplate=`cat conftest.err`
18458 $RM conftest*
18460 ac_outfile=conftest.$ac_objext
18461 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18463 _lt_linker_boilerplate=`cat conftest.err`
18464 $RM -r conftest*
18467 # Allow CC to be a program name with arguments.
18468 lt_save_CC=$CC
18469 lt_save_LD=$LD
18470 lt_save_GCC=$GCC
18471 GCC=$GXX
18472 lt_save_with_gnu_ld=$with_gnu_ld
18473 lt_save_path_LD=$lt_cv_path_LD
18474 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18475 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18476 else
18477 $as_unset lt_cv_prog_gnu_ld
18479 if test -n "${lt_cv_path_LDCXX+set}"; then
18480 lt_cv_path_LD=$lt_cv_path_LDCXX
18481 else
18482 $as_unset lt_cv_path_LD
18484 test -z "${LDCXX+set}" || LD=$LDCXX
18485 CC=${CXX-"c++"}
18486 compiler=$CC
18487 compiler_CXX=$CC
18488 for cc_temp in $compiler""; do
18489 case $cc_temp in
18490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18492 \-*) ;;
18493 *) break;;
18494 esac
18495 done
18496 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18499 if test -n "$compiler"; then
18500 # We don't want -fno-exception when compiling C++ code, so set the
18501 # no_builtin_flag separately
18502 if test "$GXX" = yes; then
18503 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18504 else
18505 lt_prog_compiler_no_builtin_flag_CXX=
18508 if test "$GXX" = yes; then
18509 # Set up default GNU C++ configuration
18513 # Check whether --with-gnu-ld was given.
18514 if test "${with_gnu_ld+set}" = set; then :
18515 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18516 else
18517 with_gnu_ld=no
18520 ac_prog=ld
18521 if test "$GCC" = yes; then
18522 # Check if gcc -print-prog-name=ld gives a path.
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18524 $as_echo_n "checking for ld used by $CC... " >&6; }
18525 case $host in
18526 *-*-mingw*)
18527 # gcc leaves a trailing carriage return which upsets mingw
18528 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18530 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18531 esac
18532 case $ac_prog in
18533 # Accept absolute paths.
18534 [\\/]* | ?:[\\/]*)
18535 re_direlt='/[^/][^/]*/\.\./'
18536 # Canonicalize the pathname of ld
18537 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18538 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18539 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18540 done
18541 test -z "$LD" && LD="$ac_prog"
18544 # If it fails, then pretend we aren't using GCC.
18545 ac_prog=ld
18548 # If it is relative, then search for the first ld in PATH.
18549 with_gnu_ld=unknown
18551 esac
18552 elif test "$with_gnu_ld" = yes; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18554 $as_echo_n "checking for GNU ld... " >&6; }
18555 else
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18557 $as_echo_n "checking for non-GNU ld... " >&6; }
18559 if test "${lt_cv_path_LD+set}" = set; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18562 if test -z "$LD"; then
18563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18564 for ac_dir in $PATH; do
18565 IFS="$lt_save_ifs"
18566 test -z "$ac_dir" && ac_dir=.
18567 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18568 lt_cv_path_LD="$ac_dir/$ac_prog"
18569 # Check to see if the program is GNU ld. I'd rather use --version,
18570 # but apparently some variants of GNU ld only accept -v.
18571 # Break only if it was the GNU/non-GNU ld that we prefer.
18572 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18573 *GNU* | *'with BFD'*)
18574 test "$with_gnu_ld" != no && break
18577 test "$with_gnu_ld" != yes && break
18579 esac
18581 done
18582 IFS="$lt_save_ifs"
18583 else
18584 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18588 LD="$lt_cv_path_LD"
18589 if test -n "$LD"; then
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18591 $as_echo "$LD" >&6; }
18592 else
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594 $as_echo "no" >&6; }
18596 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18598 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18599 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18600 $as_echo_n "(cached) " >&6
18601 else
18602 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18603 case `$LD -v 2>&1 </dev/null` in
18604 *GNU* | *'with BFD'*)
18605 lt_cv_prog_gnu_ld=yes
18608 lt_cv_prog_gnu_ld=no
18610 esac
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18613 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18614 with_gnu_ld=$lt_cv_prog_gnu_ld
18622 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18623 # archiving commands below assume that GNU ld is being used.
18624 if test "$with_gnu_ld" = yes; then
18625 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626 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'
18628 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18631 # If archive_cmds runs LD, not CC, wlarc should be empty
18632 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18633 # investigate it a little bit more. (MM)
18634 wlarc='${wl}'
18636 # ancient GNU ld didn't support --whole-archive et. al.
18637 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18638 $GREP 'no-whole-archive' > /dev/null; then
18639 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18640 else
18641 whole_archive_flag_spec_CXX=
18643 else
18644 with_gnu_ld=no
18645 wlarc=
18647 # A generic and very simple default shared library creation
18648 # command for GNU C++ for the case where it uses the native
18649 # linker, instead of GNU ld. If possible, this setting should
18650 # overridden to take advantage of the native linker features on
18651 # the platform it is being used on.
18652 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18655 # Commands to make compiler produce verbose output that lists
18656 # what "hidden" libraries, object files and flags are used when
18657 # linking a shared library.
18658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18660 else
18661 GXX=no
18662 with_gnu_ld=no
18663 wlarc=
18666 # PORTME: fill in a description of your system's C++ link characteristics
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18669 ld_shlibs_CXX=yes
18670 case $host_os in
18671 aix3*)
18672 # FIXME: insert proper C++ library support
18673 ld_shlibs_CXX=no
18675 aix[4-9]*)
18676 if test "$host_cpu" = ia64; then
18677 # On IA64, the linker does run time linking by default, so we don't
18678 # have to do anything special.
18679 aix_use_runtimelinking=no
18680 exp_sym_flag='-Bexport'
18681 no_entry_flag=""
18682 else
18683 aix_use_runtimelinking=no
18685 # Test if we are trying to use run time linking or normal
18686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18687 # need to do runtime linking.
18688 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18689 for ld_flag in $LDFLAGS; do
18690 case $ld_flag in
18691 *-brtl*)
18692 aix_use_runtimelinking=yes
18693 break
18695 esac
18696 done
18698 esac
18700 exp_sym_flag='-bexport'
18701 no_entry_flag='-bnoentry'
18704 # When large executables or shared objects are built, AIX ld can
18705 # have problems creating the table of contents. If linking a library
18706 # or program results in "error TOC overflow" add -mminimal-toc to
18707 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18708 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18710 archive_cmds_CXX=''
18711 hardcode_direct_CXX=yes
18712 hardcode_direct_absolute_CXX=yes
18713 hardcode_libdir_separator_CXX=':'
18714 link_all_deplibs_CXX=yes
18715 file_list_spec_CXX='${wl}-f,'
18717 if test "$GXX" = yes; then
18718 case $host_os in aix4.[012]|aix4.[012].*)
18719 # We only want to do this on AIX 4.2 and lower, the check
18720 # below for broken collect2 doesn't work under 4.3+
18721 collect2name=`${CC} -print-prog-name=collect2`
18722 if test -f "$collect2name" &&
18723 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18724 then
18725 # We have reworked collect2
18727 else
18728 # We have old collect2
18729 hardcode_direct_CXX=unsupported
18730 # It fails to find uninstalled libraries when the uninstalled
18731 # path is not listed in the libpath. Setting hardcode_minus_L
18732 # to unsupported forces relinking
18733 hardcode_minus_L_CXX=yes
18734 hardcode_libdir_flag_spec_CXX='-L$libdir'
18735 hardcode_libdir_separator_CXX=
18737 esac
18738 shared_flag='-shared'
18739 if test "$aix_use_runtimelinking" = yes; then
18740 shared_flag="$shared_flag "'${wl}-G'
18742 else
18743 # not using gcc
18744 if test "$host_cpu" = ia64; then
18745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18746 # chokes on -Wl,-G. The following line is correct:
18747 shared_flag='-G'
18748 else
18749 if test "$aix_use_runtimelinking" = yes; then
18750 shared_flag='${wl}-G'
18751 else
18752 shared_flag='${wl}-bM:SRE'
18757 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18758 # It seems that -bexpall does not export symbols beginning with
18759 # underscore (_), so it is better to generate a list of symbols to
18760 # export.
18761 always_export_symbols_CXX=yes
18762 if test "$aix_use_runtimelinking" = yes; then
18763 # Warning - without using the other runtime loading flags (-brtl),
18764 # -berok will link without error, but may produce a broken library.
18765 allow_undefined_flag_CXX='-berok'
18766 # Determine the default libpath from the value encoded in an empty
18767 # executable.
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18772 main ()
18776 return 0;
18778 _ACEOF
18779 if ac_fn_cxx_try_link "$LINENO"; then :
18781 lt_aix_libpath_sed='
18782 /Import File Strings/,/^$/ {
18783 /^0/ {
18784 s/^0 *\(.*\)$/\1/
18788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18789 # Check for a 64-bit object if we didn't find anything.
18790 if test -z "$aix_libpath"; then
18791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18794 rm -f core conftest.err conftest.$ac_objext \
18795 conftest$ac_exeext conftest.$ac_ext
18796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18798 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18800 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"
18801 else
18802 if test "$host_cpu" = ia64; then
18803 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18804 allow_undefined_flag_CXX="-z nodefs"
18805 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"
18806 else
18807 # Determine the default libpath from the value encoded in an
18808 # empty executable.
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h. */
18813 main ()
18817 return 0;
18819 _ACEOF
18820 if ac_fn_cxx_try_link "$LINENO"; then :
18822 lt_aix_libpath_sed='
18823 /Import File Strings/,/^$/ {
18824 /^0/ {
18825 s/^0 *\(.*\)$/\1/
18829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18830 # Check for a 64-bit object if we didn't find anything.
18831 if test -z "$aix_libpath"; then
18832 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18835 rm -f core conftest.err conftest.$ac_objext \
18836 conftest$ac_exeext conftest.$ac_ext
18837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18839 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18840 # Warning - without using the other run time loading flags,
18841 # -berok will link without error, but may produce a broken library.
18842 no_undefined_flag_CXX=' ${wl}-bernotok'
18843 allow_undefined_flag_CXX=' ${wl}-berok'
18844 if test "$with_gnu_ld" = yes; then
18845 # We only use this code for GNU lds that support --whole-archive.
18846 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18847 else
18848 # Exported symbols can be pulled into shared objects from archives
18849 whole_archive_flag_spec_CXX='$convenience'
18851 archive_cmds_need_lc_CXX=yes
18852 # This is similar to how AIX traditionally builds its shared
18853 # libraries.
18854 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'
18859 beos*)
18860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18861 allow_undefined_flag_CXX=unsupported
18862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18863 # support --undefined. This deserves some investigation. FIXME
18864 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18865 else
18866 ld_shlibs_CXX=no
18870 chorus*)
18871 case $cc_basename in
18873 # FIXME: insert proper C++ library support
18874 ld_shlibs_CXX=no
18876 esac
18879 cygwin* | mingw* | pw32* | cegcc*)
18880 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18881 # as there is no search path for DLLs.
18882 hardcode_libdir_flag_spec_CXX='-L$libdir'
18883 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18884 allow_undefined_flag_CXX=unsupported
18885 always_export_symbols_CXX=no
18886 enable_shared_with_static_runtimes_CXX=yes
18888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18889 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'
18890 # If the export-symbols file already is a .def file (1st line
18891 # is EXPORTS), use it as is; otherwise, prepend...
18892 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18893 cp $export_symbols $output_objdir/$soname.def;
18894 else
18895 echo EXPORTS > $output_objdir/$soname.def;
18896 cat $export_symbols >> $output_objdir/$soname.def;
18898 $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'
18899 else
18900 ld_shlibs_CXX=no
18903 darwin* | rhapsody*)
18906 archive_cmds_need_lc_CXX=no
18907 hardcode_direct_CXX=no
18908 hardcode_automatic_CXX=yes
18909 hardcode_shlibpath_var_CXX=unsupported
18910 if test "$lt_cv_ld_force_load" = "yes"; then
18911 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\"`'
18912 else
18913 whole_archive_flag_spec_CXX=''
18915 link_all_deplibs_CXX=yes
18916 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18917 case $cc_basename in
18918 ifort*) _lt_dar_can_shared=yes ;;
18919 *) _lt_dar_can_shared=$GCC ;;
18920 esac
18921 if test "$_lt_dar_can_shared" = "yes"; then
18922 output_verbose_link_cmd=func_echo_all
18923 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}"
18924 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18925 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}"
18926 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}"
18927 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18928 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}"
18929 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}"
18932 else
18933 ld_shlibs_CXX=no
18938 dgux*)
18939 case $cc_basename in
18940 ec++*)
18941 # FIXME: insert proper C++ library support
18942 ld_shlibs_CXX=no
18944 ghcx*)
18945 # Green Hills C++ Compiler
18946 # FIXME: insert proper C++ library support
18947 ld_shlibs_CXX=no
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18953 esac
18956 freebsd[12]*)
18957 # C++ shared libraries reported to be fairly broken before
18958 # switch to ELF
18959 ld_shlibs_CXX=no
18962 freebsd-elf*)
18963 archive_cmds_need_lc_CXX=no
18966 freebsd* | dragonfly*)
18967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968 # conventions
18969 ld_shlibs_CXX=yes
18972 gnu*)
18975 haiku*)
18976 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18977 link_all_deplibs_CXX=yes
18980 hpux9*)
18981 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18982 hardcode_libdir_separator_CXX=:
18983 export_dynamic_flag_spec_CXX='${wl}-E'
18984 hardcode_direct_CXX=yes
18985 hardcode_minus_L_CXX=yes # Not in the search PATH,
18986 # but as the default
18987 # location of the library.
18989 case $cc_basename in
18990 CC*)
18991 # FIXME: insert proper C++ library support
18992 ld_shlibs_CXX=no
18994 aCC*)
18995 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'
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19003 # dependencies.
19004 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"'
19007 if test "$GXX" = yes; then
19008 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'
19009 else
19010 # FIXME: insert proper C++ library support
19011 ld_shlibs_CXX=no
19014 esac
19017 hpux10*|hpux11*)
19018 if test $with_gnu_ld = no; then
19019 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19020 hardcode_libdir_separator_CXX=:
19022 case $host_cpu in
19023 hppa*64*|ia64*)
19026 export_dynamic_flag_spec_CXX='${wl}-E'
19028 esac
19030 case $host_cpu in
19031 hppa*64*|ia64*)
19032 hardcode_direct_CXX=no
19033 hardcode_shlibpath_var_CXX=no
19036 hardcode_direct_CXX=yes
19037 hardcode_direct_absolute_CXX=yes
19038 hardcode_minus_L_CXX=yes # Not in the search PATH,
19039 # but as the default
19040 # location of the library.
19042 esac
19044 case $cc_basename in
19045 CC*)
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19049 aCC*)
19050 case $host_cpu in
19051 hppa*64*)
19052 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054 ia64*)
19055 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19060 esac
19061 # Commands to make compiler produce verbose output that lists
19062 # what "hidden" libraries, object files and flags are used when
19063 # linking a shared library.
19065 # There doesn't appear to be a way to prevent this compiler from
19066 # explicitly linking system object files so we need to strip them
19067 # from the output so that they don't get included in the library
19068 # dependencies.
19069 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"'
19072 if test "$GXX" = yes; then
19073 if test $with_gnu_ld = no; then
19074 case $host_cpu in
19075 hppa*64*)
19076 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19078 ia64*)
19079 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19082 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'
19084 esac
19086 else
19087 # FIXME: insert proper C++ library support
19088 ld_shlibs_CXX=no
19091 esac
19094 interix[3-9]*)
19095 hardcode_direct_CXX=no
19096 hardcode_shlibpath_var_CXX=no
19097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19098 export_dynamic_flag_spec_CXX='${wl}-E'
19099 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19100 # Instead, shared libraries are loaded at an image base (0x10000000 by
19101 # default) and relocated if they conflict, which is a slow very memory
19102 # consuming and fragmenting process. To avoid this, we pick a random,
19103 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19104 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19105 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'
19106 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'
19108 irix5* | irix6*)
19109 case $cc_basename in
19110 CC*)
19111 # SGI C++
19112 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'
19114 # Archives containing C++ object files must be created using
19115 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19116 # necessary to make sure instantiated templates are included
19117 # in the archive.
19118 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19121 if test "$GXX" = yes; then
19122 if test "$with_gnu_ld" = no; then
19123 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'
19124 else
19125 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'
19128 link_all_deplibs_CXX=yes
19130 esac
19131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19132 hardcode_libdir_separator_CXX=:
19133 inherit_rpath_CXX=yes
19136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19137 case $cc_basename in
19138 KCC*)
19139 # Kuck and Associates, Inc. (KAI) C++ Compiler
19141 # KCC will only create a shared library if the output file
19142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19143 # to its proper name (with version) after linking.
19144 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'
19145 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'
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19153 # dependencies.
19154 output_verbose_link_cmd='templist=`$CC $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"'
19156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19159 # Archives containing C++ object files must be created using
19160 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19161 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19163 icpc* | ecpc* )
19164 # Intel C++
19165 with_gnu_ld=yes
19166 # version 8.0 and above of icpc choke on multiply defined symbols
19167 # if we add $predep_objects and $postdep_objects, however 7.1 and
19168 # earlier do not add the objects themselves.
19169 case `$CC -V 2>&1` in
19170 *"Version 7."*)
19171 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 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'
19174 *) # Version 8.0 or newer
19175 tmp_idyn=
19176 case $host_cpu in
19177 ia64*) tmp_idyn=' -i_dynamic';;
19178 esac
19179 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180 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'
19182 esac
19183 archive_cmds_need_lc_CXX=no
19184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19185 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19186 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19188 pgCC* | pgcpp*)
19189 # Portland Group C++ compiler
19190 case `$CC -V` in
19191 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19192 prelink_cmds_CXX='tpldir=Template.dir~
19193 rm -rf $tpldir~
19194 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19195 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19196 old_archive_cmds_CXX='tpldir=Template.dir~
19197 rm -rf $tpldir~
19198 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19199 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19200 $RANLIB $oldlib'
19201 archive_cmds_CXX='tpldir=Template.dir~
19202 rm -rf $tpldir~
19203 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19204 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19205 archive_expsym_cmds_CXX='tpldir=Template.dir~
19206 rm -rf $tpldir~
19207 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19208 $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'
19210 *) # Version 6 and above use weak symbols
19211 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19212 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'
19214 esac
19216 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19217 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19218 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'
19220 cxx*)
19221 # Compaq C++
19222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19223 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19225 runpath_var=LD_RUN_PATH
19226 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19227 hardcode_libdir_separator_CXX=:
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19236 # dependencies.
19237 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'
19239 xl* | mpixl* | bgxl*)
19240 # IBM XL 8.0 on PPC, with GNU ld
19241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19243 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244 if test "x$supports_anon_versioning" = xyes; then
19245 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19247 echo "local: *; };" >> $output_objdir/$libname.ver~
19248 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19252 case `$CC -V 2>&1 | sed 5q` in
19253 *Sun\ C*)
19254 # Sun C++ 5.9
19255 no_undefined_flag_CXX=' -zdefs'
19256 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19257 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'
19258 hardcode_libdir_flag_spec_CXX='-R$libdir'
19259 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'
19260 compiler_needs_object_CXX=yes
19262 # Not sure whether something based on
19263 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19264 # would be better.
19265 output_verbose_link_cmd='func_echo_all'
19267 # Archives containing C++ object files must be created using
19268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19270 # in the archive.
19271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19273 esac
19275 esac
19278 lynxos*)
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19283 m88k*)
19284 # FIXME: insert proper C++ library support
19285 ld_shlibs_CXX=no
19288 mvs*)
19289 case $cc_basename in
19290 cxx*)
19291 # FIXME: insert proper C++ library support
19292 ld_shlibs_CXX=no
19295 # FIXME: insert proper C++ library support
19296 ld_shlibs_CXX=no
19298 esac
19301 netbsd*)
19302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19303 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19304 wlarc=
19305 hardcode_libdir_flag_spec_CXX='-R$libdir'
19306 hardcode_direct_CXX=yes
19307 hardcode_shlibpath_var_CXX=no
19309 # Workaround some broken pre-1.5 toolchains
19310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19313 *nto* | *qnx*)
19314 ld_shlibs_CXX=yes
19317 openbsd2*)
19318 # C++ shared libraries are fairly broken
19319 ld_shlibs_CXX=no
19322 openbsd*)
19323 if test -f /usr/libexec/ld.so; then
19324 hardcode_direct_CXX=yes
19325 hardcode_shlibpath_var_CXX=no
19326 hardcode_direct_absolute_CXX=yes
19327 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19330 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19331 export_dynamic_flag_spec_CXX='${wl}-E'
19332 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19334 output_verbose_link_cmd=func_echo_all
19335 else
19336 ld_shlibs_CXX=no
19340 osf3* | osf4* | osf5*)
19341 case $cc_basename in
19342 KCC*)
19343 # Kuck and Associates, Inc. (KAI) C++ Compiler
19345 # KCC will only create a shared library if the output file
19346 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19347 # to its proper name (with version) after linking.
19348 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'
19350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19351 hardcode_libdir_separator_CXX=:
19353 # Archives containing C++ object files must be created using
19354 # the KAI C++ compiler.
19355 case $host in
19356 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19357 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19358 esac
19360 RCC*)
19361 # Rational C++ 2.4.1
19362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19365 cxx*)
19366 case $host in
19367 osf3*)
19368 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19369 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'
19370 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19373 allow_undefined_flag_CXX=' -expect_unresolved \*'
19374 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'
19375 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19376 echo "-hidden">> $lib.exp~
19377 $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~
19378 $RM $lib.exp'
19379 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19381 esac
19383 hardcode_libdir_separator_CXX=:
19385 # Commands to make compiler produce verbose output that lists
19386 # what "hidden" libraries, object files and flags are used when
19387 # linking a shared library.
19389 # There doesn't appear to be a way to prevent this compiler from
19390 # explicitly linking system object files so we need to strip them
19391 # from the output so that they don't get included in the library
19392 # dependencies.
19393 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"'
19396 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19398 case $host in
19399 osf3*)
19400 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'
19403 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'
19405 esac
19407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19408 hardcode_libdir_separator_CXX=:
19410 # Commands to make compiler produce verbose output that lists
19411 # what "hidden" libraries, object files and flags are used when
19412 # linking a shared library.
19413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19415 else
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19420 esac
19423 psos*)
19424 # FIXME: insert proper C++ library support
19425 ld_shlibs_CXX=no
19428 sunos4*)
19429 case $cc_basename in
19430 CC*)
19431 # Sun C++ 4.x
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19435 lcc*)
19436 # Lucid
19437 # FIXME: insert proper C++ library support
19438 ld_shlibs_CXX=no
19441 # FIXME: insert proper C++ library support
19442 ld_shlibs_CXX=no
19444 esac
19447 solaris*)
19448 case $cc_basename in
19449 CC*)
19450 # Sun C++ 4.2, 5.x and Centerline C++
19451 archive_cmds_need_lc_CXX=yes
19452 no_undefined_flag_CXX=' -zdefs'
19453 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19454 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19455 $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'
19457 hardcode_libdir_flag_spec_CXX='-R$libdir'
19458 hardcode_shlibpath_var_CXX=no
19459 case $host_os in
19460 solaris2.[0-5] | solaris2.[0-5].*) ;;
19462 # The compiler driver will combine and reorder linker options,
19463 # but understands `-z linker_flag'.
19464 # Supported since Solaris 2.6 (maybe 2.5.1?)
19465 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19467 esac
19468 link_all_deplibs_CXX=yes
19470 output_verbose_link_cmd='func_echo_all'
19472 # Archives containing C++ object files must be created using
19473 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19474 # necessary to make sure instantiated templates are included
19475 # in the archive.
19476 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19478 gcx*)
19479 # Green Hills C++ Compiler
19480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19482 # The C++ compiler must be used to create the archive.
19483 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19486 # GNU C++ compiler with Solaris linker
19487 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19488 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19489 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19490 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19491 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19492 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19494 # Commands to make compiler produce verbose output that lists
19495 # what "hidden" libraries, object files and flags are used when
19496 # linking a shared library.
19497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19498 else
19499 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19500 # platform.
19501 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19502 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19503 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19508 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19511 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19512 case $host_os in
19513 solaris2.[0-5] | solaris2.[0-5].*) ;;
19515 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19517 esac
19520 esac
19523 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19524 no_undefined_flag_CXX='${wl}-z,text'
19525 archive_cmds_need_lc_CXX=no
19526 hardcode_shlibpath_var_CXX=no
19527 runpath_var='LD_RUN_PATH'
19529 case $cc_basename in
19530 CC*)
19531 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19536 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 esac
19541 sysv5* | sco3.2v5* | sco5v6*)
19542 # Note: We can NOT use -z defs as we might desire, because we do not
19543 # link with -lc, and that would cause any symbols used from libc to
19544 # always be unresolved, which means just about no library would
19545 # ever link correctly. If we're not using GNU ld we use -z text
19546 # though, which does catch some bad symbols but isn't as heavy-handed
19547 # as -z defs.
19548 no_undefined_flag_CXX='${wl}-z,text'
19549 allow_undefined_flag_CXX='${wl}-z,nodefs'
19550 archive_cmds_need_lc_CXX=no
19551 hardcode_shlibpath_var_CXX=no
19552 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19553 hardcode_libdir_separator_CXX=':'
19554 link_all_deplibs_CXX=yes
19555 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19556 runpath_var='LD_RUN_PATH'
19558 case $cc_basename in
19559 CC*)
19560 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19563 '"$old_archive_cmds_CXX"
19564 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19565 '"$reload_cmds_CXX"
19568 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19569 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 esac
19574 tandem*)
19575 case $cc_basename in
19576 NCC*)
19577 # NonStop-UX NCC 3.20
19578 # FIXME: insert proper C++ library support
19579 ld_shlibs_CXX=no
19582 # FIXME: insert proper C++ library support
19583 ld_shlibs_CXX=no
19585 esac
19588 vxworks*)
19589 # FIXME: insert proper C++ library support
19590 ld_shlibs_CXX=no
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19597 esac
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19600 $as_echo "$ld_shlibs_CXX" >&6; }
19601 test "$ld_shlibs_CXX" = no && can_build_shared=no
19603 GCC_CXX="$GXX"
19604 LD_CXX="$LD"
19606 ## CAVEAT EMPTOR:
19607 ## There is no encapsulation within the following macros, do not change
19608 ## the running order or otherwise move them around unless you know exactly
19609 ## what you are doing...
19610 # Dependencies to place before and after the object being linked:
19611 predep_objects_CXX=
19612 postdep_objects_CXX=
19613 predeps_CXX=
19614 postdeps_CXX=
19615 compiler_lib_search_path_CXX=
19617 cat > conftest.$ac_ext <<_LT_EOF
19618 class Foo
19620 public:
19621 Foo (void) { a = 0; }
19622 private:
19623 int a;
19625 _LT_EOF
19627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19628 (eval $ac_compile) 2>&5
19629 ac_status=$?
19630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19631 test $ac_status = 0; }; then
19632 # Parse the compiler output and extract the necessary
19633 # objects, libraries and library flags.
19635 # Sentinel used to keep track of whether or not we are before
19636 # the conftest object file.
19637 pre_test_object_deps_done=no
19639 for p in `eval "$output_verbose_link_cmd"`; do
19640 case $p in
19642 -L* | -R* | -l*)
19643 # Some compilers place space between "-{L,R}" and the path.
19644 # Remove the space.
19645 if test $p = "-L" ||
19646 test $p = "-R"; then
19647 prev=$p
19648 continue
19649 else
19650 prev=
19653 if test "$pre_test_object_deps_done" = no; then
19654 case $p in
19655 -L* | -R*)
19656 # Internal compiler library paths should come after those
19657 # provided the user. The postdeps already come after the
19658 # user supplied libs so there is no need to process them.
19659 if test -z "$compiler_lib_search_path_CXX"; then
19660 compiler_lib_search_path_CXX="${prev}${p}"
19661 else
19662 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19665 # The "-l" case would never come before the object being
19666 # linked, so don't bother handling this case.
19667 esac
19668 else
19669 if test -z "$postdeps_CXX"; then
19670 postdeps_CXX="${prev}${p}"
19671 else
19672 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19677 *.$objext)
19678 # This assumes that the test object file only shows up
19679 # once in the compiler output.
19680 if test "$p" = "conftest.$objext"; then
19681 pre_test_object_deps_done=yes
19682 continue
19685 if test "$pre_test_object_deps_done" = no; then
19686 if test -z "$predep_objects_CXX"; then
19687 predep_objects_CXX="$p"
19688 else
19689 predep_objects_CXX="$predep_objects_CXX $p"
19691 else
19692 if test -z "$postdep_objects_CXX"; then
19693 postdep_objects_CXX="$p"
19694 else
19695 postdep_objects_CXX="$postdep_objects_CXX $p"
19700 *) ;; # Ignore the rest.
19702 esac
19703 done
19705 # Clean up.
19706 rm -f a.out a.exe
19707 else
19708 echo "libtool.m4: error: problem compiling CXX test program"
19711 $RM -f confest.$objext
19713 # PORTME: override above test on systems where it is broken
19714 case $host_os in
19715 interix[3-9]*)
19716 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19717 # hack all around it, let's just trust "g++" to DTRT.
19718 predep_objects_CXX=
19719 postdep_objects_CXX=
19720 postdeps_CXX=
19723 linux*)
19724 case `$CC -V 2>&1 | sed 5q` in
19725 *Sun\ C*)
19726 # Sun C++ 5.9
19728 # The more standards-conforming stlport4 library is
19729 # incompatible with the Cstd library. Avoid specifying
19730 # it if it's in CXXFLAGS. Ignore libCrun as
19731 # -library=stlport4 depends on it.
19732 case " $CXX $CXXFLAGS " in
19733 *" -library=stlport4 "*)
19734 solaris_use_stlport4=yes
19736 esac
19738 if test "$solaris_use_stlport4" != yes; then
19739 postdeps_CXX='-library=Cstd -library=Crun'
19742 esac
19745 solaris*)
19746 case $cc_basename in
19747 CC*)
19748 # The more standards-conforming stlport4 library is
19749 # incompatible with the Cstd library. Avoid specifying
19750 # it if it's in CXXFLAGS. Ignore libCrun as
19751 # -library=stlport4 depends on it.
19752 case " $CXX $CXXFLAGS " in
19753 *" -library=stlport4 "*)
19754 solaris_use_stlport4=yes
19756 esac
19758 # Adding this requires a known-good setup of shared libraries for
19759 # Sun compiler versions before 5.6, else PIC objects from an old
19760 # archive will be linked into the output, leading to subtle bugs.
19761 if test "$solaris_use_stlport4" != yes; then
19762 postdeps_CXX='-library=Cstd -library=Crun'
19765 esac
19767 esac
19770 case " $postdeps_CXX " in
19771 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19772 esac
19773 compiler_lib_search_dirs_CXX=
19774 if test -n "${compiler_lib_search_path_CXX}"; then
19775 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19808 lt_prog_compiler_wl_CXX=
19809 lt_prog_compiler_pic_CXX=
19810 lt_prog_compiler_static_CXX=
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19813 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19815 # C++ specific cases for pic, static, wl, etc.
19816 if test "$GXX" = yes; then
19817 lt_prog_compiler_wl_CXX='-Wl,'
19818 lt_prog_compiler_static_CXX='-static'
19820 case $host_os in
19821 aix*)
19822 # All AIX code is PIC.
19823 if test "$host_cpu" = ia64; then
19824 # AIX 5 now supports IA64 processor
19825 lt_prog_compiler_static_CXX='-Bstatic'
19829 amigaos*)
19830 case $host_cpu in
19831 powerpc)
19832 # see comment about AmigaOS4 .so support
19833 lt_prog_compiler_pic_CXX='-fPIC'
19835 m68k)
19836 # FIXME: we need at least 68020 code to build shared libraries, but
19837 # adding the `-m68020' flag to GCC prevents building anything better,
19838 # like `-m68040'.
19839 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19841 esac
19844 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19845 # PIC is the default for these OSes.
19847 mingw* | cygwin* | os2* | pw32* | cegcc*)
19848 # This hack is so that the source file can tell whether it is being
19849 # built for inclusion in a dll (and should export symbols for example).
19850 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19851 # (--disable-auto-import) libraries
19852 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19854 darwin* | rhapsody*)
19855 # PIC is the default on this platform
19856 # Common symbols not allowed in MH_DYLIB files
19857 lt_prog_compiler_pic_CXX='-fno-common'
19859 *djgpp*)
19860 # DJGPP does not support shared libraries at all
19861 lt_prog_compiler_pic_CXX=
19863 haiku*)
19864 # PIC is the default for Haiku.
19865 # The "-static" flag exists, but is broken.
19866 lt_prog_compiler_static_CXX=
19868 interix[3-9]*)
19869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870 # Instead, we relocate shared libraries at runtime.
19872 sysv4*MP*)
19873 if test -d /usr/nec; then
19874 lt_prog_compiler_pic_CXX=-Kconform_pic
19877 hpux*)
19878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19880 # sets the default TLS model and affects inlining.
19881 case $host_cpu in
19882 hppa*64*)
19885 lt_prog_compiler_pic_CXX='-fPIC'
19887 esac
19889 *qnx* | *nto*)
19890 # QNX uses GNU C++, but need to define -shared option too, otherwise
19891 # it will coredump.
19892 lt_prog_compiler_pic_CXX='-fPIC -shared'
19895 lt_prog_compiler_pic_CXX='-fPIC'
19897 esac
19898 else
19899 case $host_os in
19900 aix[4-9]*)
19901 # All AIX code is PIC.
19902 if test "$host_cpu" = ia64; then
19903 # AIX 5 now supports IA64 processor
19904 lt_prog_compiler_static_CXX='-Bstatic'
19905 else
19906 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19909 chorus*)
19910 case $cc_basename in
19911 cxch68*)
19912 # Green Hills C++ Compiler
19913 # _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"
19915 esac
19917 dgux*)
19918 case $cc_basename in
19919 ec++*)
19920 lt_prog_compiler_pic_CXX='-KPIC'
19922 ghcx*)
19923 # Green Hills C++ Compiler
19924 lt_prog_compiler_pic_CXX='-pic'
19928 esac
19930 freebsd* | dragonfly*)
19931 # FreeBSD uses GNU C++
19933 hpux9* | hpux10* | hpux11*)
19934 case $cc_basename in
19935 CC*)
19936 lt_prog_compiler_wl_CXX='-Wl,'
19937 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19938 if test "$host_cpu" != ia64; then
19939 lt_prog_compiler_pic_CXX='+Z'
19942 aCC*)
19943 lt_prog_compiler_wl_CXX='-Wl,'
19944 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19945 case $host_cpu in
19946 hppa*64*|ia64*)
19947 # +Z the default
19950 lt_prog_compiler_pic_CXX='+Z'
19952 esac
19956 esac
19958 interix*)
19959 # This is c89, which is MS Visual C++ (no shared libs)
19960 # Anyone wants to do a port?
19962 irix5* | irix6* | nonstopux*)
19963 case $cc_basename in
19964 CC*)
19965 lt_prog_compiler_wl_CXX='-Wl,'
19966 lt_prog_compiler_static_CXX='-non_shared'
19967 # CC pic flag -KPIC is the default.
19971 esac
19973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19974 case $cc_basename in
19975 KCC*)
19976 # KAI C++ Compiler
19977 lt_prog_compiler_wl_CXX='--backend -Wl,'
19978 lt_prog_compiler_pic_CXX='-fPIC'
19980 ecpc* )
19981 # old Intel C++ for x86_64 which still supported -KPIC.
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_pic_CXX='-KPIC'
19984 lt_prog_compiler_static_CXX='-static'
19986 icpc* )
19987 # Intel C++, used to be incompatible with GCC.
19988 # ICC 10 doesn't accept -KPIC any more.
19989 lt_prog_compiler_wl_CXX='-Wl,'
19990 lt_prog_compiler_pic_CXX='-fPIC'
19991 lt_prog_compiler_static_CXX='-static'
19993 pgCC* | pgcpp*)
19994 # Portland Group C++ compiler
19995 lt_prog_compiler_wl_CXX='-Wl,'
19996 lt_prog_compiler_pic_CXX='-fpic'
19997 lt_prog_compiler_static_CXX='-Bstatic'
19999 cxx*)
20000 # Compaq C++
20001 # Make sure the PIC flag is empty. It appears that all Alpha
20002 # Linux and Compaq Tru64 Unix objects are PIC.
20003 lt_prog_compiler_pic_CXX=
20004 lt_prog_compiler_static_CXX='-non_shared'
20006 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20007 # IBM XL 8.0, 9.0 on PPC and BlueGene
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-qpic'
20010 lt_prog_compiler_static_CXX='-qstaticlink'
20013 case `$CC -V 2>&1 | sed 5q` in
20014 *Sun\ C*)
20015 # Sun C++ 5.9
20016 lt_prog_compiler_pic_CXX='-KPIC'
20017 lt_prog_compiler_static_CXX='-Bstatic'
20018 lt_prog_compiler_wl_CXX='-Qoption ld '
20020 esac
20022 esac
20024 lynxos*)
20026 m88k*)
20028 mvs*)
20029 case $cc_basename in
20030 cxx*)
20031 lt_prog_compiler_pic_CXX='-W c,exportall'
20035 esac
20037 netbsd*)
20039 *qnx* | *nto*)
20040 # QNX uses GNU C++, but need to define -shared option too, otherwise
20041 # it will coredump.
20042 lt_prog_compiler_pic_CXX='-fPIC -shared'
20044 osf3* | osf4* | osf5*)
20045 case $cc_basename in
20046 KCC*)
20047 lt_prog_compiler_wl_CXX='--backend -Wl,'
20049 RCC*)
20050 # Rational C++ 2.4.1
20051 lt_prog_compiler_pic_CXX='-pic'
20053 cxx*)
20054 # Digital/Compaq C++
20055 lt_prog_compiler_wl_CXX='-Wl,'
20056 # Make sure the PIC flag is empty. It appears that all Alpha
20057 # Linux and Compaq Tru64 Unix objects are PIC.
20058 lt_prog_compiler_pic_CXX=
20059 lt_prog_compiler_static_CXX='-non_shared'
20063 esac
20065 psos*)
20067 solaris*)
20068 case $cc_basename in
20069 CC*)
20070 # Sun C++ 4.2, 5.x and Centerline C++
20071 lt_prog_compiler_pic_CXX='-KPIC'
20072 lt_prog_compiler_static_CXX='-Bstatic'
20073 lt_prog_compiler_wl_CXX='-Qoption ld '
20075 gcx*)
20076 # Green Hills C++ Compiler
20077 lt_prog_compiler_pic_CXX='-PIC'
20081 esac
20083 sunos4*)
20084 case $cc_basename in
20085 CC*)
20086 # Sun C++ 4.x
20087 lt_prog_compiler_pic_CXX='-pic'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20090 lcc*)
20091 # Lucid
20092 lt_prog_compiler_pic_CXX='-pic'
20096 esac
20098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20099 case $cc_basename in
20100 CC*)
20101 lt_prog_compiler_wl_CXX='-Wl,'
20102 lt_prog_compiler_pic_CXX='-KPIC'
20103 lt_prog_compiler_static_CXX='-Bstatic'
20105 esac
20107 tandem*)
20108 case $cc_basename in
20109 NCC*)
20110 # NonStop-UX NCC 3.20
20111 lt_prog_compiler_pic_CXX='-KPIC'
20115 esac
20117 vxworks*)
20120 lt_prog_compiler_can_build_shared_CXX=no
20122 esac
20125 case $host_os in
20126 # For platforms which do not support PIC, -DPIC is meaningless:
20127 *djgpp*)
20128 lt_prog_compiler_pic_CXX=
20131 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20133 esac
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20135 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20140 # Check to make sure the PIC flag actually works.
20142 if test -n "$lt_prog_compiler_pic_CXX"; then
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20145 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20146 $as_echo_n "(cached) " >&6
20147 else
20148 lt_cv_prog_compiler_pic_works_CXX=no
20149 ac_outfile=conftest.$ac_objext
20150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20151 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20152 # Insert the option either (1) after the last *FLAGS variable, or
20153 # (2) before a word containing "conftest.", or (3) at the end.
20154 # Note that $ac_compile itself does not contain backslashes and begins
20155 # with a dollar sign (not a hyphen), so the echo should work correctly.
20156 # The option is referenced via a variable to avoid confusing sed.
20157 lt_compile=`echo "$ac_compile" | $SED \
20158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20160 -e 's:$: $lt_compiler_flag:'`
20161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20162 (eval "$lt_compile" 2>conftest.err)
20163 ac_status=$?
20164 cat conftest.err >&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 if (exit $ac_status) && test -s "$ac_outfile"; then
20167 # The compiler can only warn and ignore the option if not recognized
20168 # So say no if there are warnings other than the usual output.
20169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20172 lt_cv_prog_compiler_pic_works_CXX=yes
20175 $RM conftest*
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20179 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20181 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20182 case $lt_prog_compiler_pic_CXX in
20183 "" | " "*) ;;
20184 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20185 esac
20186 else
20187 lt_prog_compiler_pic_CXX=
20188 lt_prog_compiler_can_build_shared_CXX=no
20196 # Check to make sure the static flag actually works.
20198 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20201 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20202 $as_echo_n "(cached) " >&6
20203 else
20204 lt_cv_prog_compiler_static_works_CXX=no
20205 save_LDFLAGS="$LDFLAGS"
20206 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20207 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20208 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20209 # The linker can only warn and ignore the option if not recognized
20210 # So say no if there are warnings
20211 if test -s conftest.err; then
20212 # Append any errors to the config.log.
20213 cat conftest.err 1>&5
20214 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20216 if diff conftest.exp conftest.er2 >/dev/null; then
20217 lt_cv_prog_compiler_static_works_CXX=yes
20219 else
20220 lt_cv_prog_compiler_static_works_CXX=yes
20223 $RM -r conftest*
20224 LDFLAGS="$save_LDFLAGS"
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20228 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20230 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20232 else
20233 lt_prog_compiler_static_CXX=
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20241 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20242 $as_echo_n "(cached) " >&6
20243 else
20244 lt_cv_prog_compiler_c_o_CXX=no
20245 $RM -r conftest 2>/dev/null
20246 mkdir conftest
20247 cd conftest
20248 mkdir out
20249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20251 lt_compiler_flag="-o out/conftest2.$ac_objext"
20252 # Insert the option either (1) after the last *FLAGS variable, or
20253 # (2) before a word containing "conftest.", or (3) at the end.
20254 # Note that $ac_compile itself does not contain backslashes and begins
20255 # with a dollar sign (not a hyphen), so the echo should work correctly.
20256 lt_compile=`echo "$ac_compile" | $SED \
20257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20259 -e 's:$: $lt_compiler_flag:'`
20260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20261 (eval "$lt_compile" 2>out/conftest.err)
20262 ac_status=$?
20263 cat out/conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20266 then
20267 # The compiler can only warn and ignore the option if not recognized
20268 # So say no if there are warnings
20269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20272 lt_cv_prog_compiler_c_o_CXX=yes
20275 chmod u+w . 2>&5
20276 $RM conftest*
20277 # SGI C++ compiler will create directory out/ii_files/ for
20278 # template instantiation
20279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20280 $RM out/* && rmdir out
20281 cd ..
20282 $RM -r conftest
20283 $RM conftest*
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20287 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20293 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20294 $as_echo_n "(cached) " >&6
20295 else
20296 lt_cv_prog_compiler_c_o_CXX=no
20297 $RM -r conftest 2>/dev/null
20298 mkdir conftest
20299 cd conftest
20300 mkdir out
20301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20303 lt_compiler_flag="-o out/conftest2.$ac_objext"
20304 # Insert the option either (1) after the last *FLAGS variable, or
20305 # (2) before a word containing "conftest.", or (3) at the end.
20306 # Note that $ac_compile itself does not contain backslashes and begins
20307 # with a dollar sign (not a hyphen), so the echo should work correctly.
20308 lt_compile=`echo "$ac_compile" | $SED \
20309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20311 -e 's:$: $lt_compiler_flag:'`
20312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20313 (eval "$lt_compile" 2>out/conftest.err)
20314 ac_status=$?
20315 cat out/conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20318 then
20319 # The compiler can only warn and ignore the option if not recognized
20320 # So say no if there are warnings
20321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20324 lt_cv_prog_compiler_c_o_CXX=yes
20327 chmod u+w . 2>&5
20328 $RM conftest*
20329 # SGI C++ compiler will create directory out/ii_files/ for
20330 # template instantiation
20331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20332 $RM out/* && rmdir out
20333 cd ..
20334 $RM -r conftest
20335 $RM conftest*
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20339 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20344 hard_links="nottested"
20345 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20346 # do not overwrite the value of need_locks provided by the user
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20348 $as_echo_n "checking if we can lock with hard links... " >&6; }
20349 hard_links=yes
20350 $RM conftest*
20351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20352 touch conftest.a
20353 ln conftest.a conftest.b 2>&5 || hard_links=no
20354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20356 $as_echo "$hard_links" >&6; }
20357 if test "$hard_links" = no; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20359 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20360 need_locks=warn
20362 else
20363 need_locks=no
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20371 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20372 case $host_os in
20373 aix[4-9]*)
20374 # If we're using GNU nm, then we don't want the "-C" option.
20375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20376 # Also, AIX nm treats weak defined symbols like other global defined
20377 # symbols, whereas GNU nm marks them as "W".
20378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20379 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'
20380 else
20381 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'
20384 pw32*)
20385 export_symbols_cmds_CXX="$ltdll_cmds"
20387 cygwin* | mingw* | cegcc*)
20388 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'
20391 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20393 esac
20394 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20397 $as_echo "$ld_shlibs_CXX" >&6; }
20398 test "$ld_shlibs_CXX" = no && can_build_shared=no
20400 with_gnu_ld_CXX=$with_gnu_ld
20408 # Do we need to explicitly link libc?
20410 case "x$archive_cmds_need_lc_CXX" in
20411 x|xyes)
20412 # Assume -lc should be added
20413 archive_cmds_need_lc_CXX=yes
20415 if test "$enable_shared" = yes && test "$GCC" = yes; then
20416 case $archive_cmds_CXX in
20417 *'~'*)
20418 # FIXME: we may have to deal with multi-command sequences.
20420 '$CC '*)
20421 # Test whether the compiler implicitly links with -lc since on some
20422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20423 # to ld, don't add -lc before -lgcc.
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20425 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20426 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20427 $as_echo_n "(cached) " >&6
20428 else
20429 $RM conftest*
20430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20433 (eval $ac_compile) 2>&5
20434 ac_status=$?
20435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20436 test $ac_status = 0; } 2>conftest.err; then
20437 soname=conftest
20438 lib=conftest
20439 libobjs=conftest.$ac_objext
20440 deplibs=
20441 wl=$lt_prog_compiler_wl_CXX
20442 pic_flag=$lt_prog_compiler_pic_CXX
20443 compiler_flags=-v
20444 linker_flags=-v
20445 verstring=
20446 output_objdir=.
20447 libname=conftest
20448 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20449 allow_undefined_flag_CXX=
20450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20451 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20452 ac_status=$?
20453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; }
20455 then
20456 lt_cv_archive_cmds_need_lc_CXX=no
20457 else
20458 lt_cv_archive_cmds_need_lc_CXX=yes
20460 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20461 else
20462 cat conftest.err 1>&5
20464 $RM conftest*
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20468 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20469 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20471 esac
20474 esac
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20542 library_names_spec=
20543 libname_spec='lib$name'
20544 soname_spec=
20545 shrext_cmds=".so"
20546 postinstall_cmds=
20547 postuninstall_cmds=
20548 finish_cmds=
20549 finish_eval=
20550 shlibpath_var=
20551 shlibpath_overrides_runpath=unknown
20552 version_type=none
20553 dynamic_linker="$host_os ld.so"
20554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20555 need_lib_prefix=unknown
20556 hardcode_into_libs=no
20558 # when you set need_version to no, make sure it does not cause -set_version
20559 # flags to be left without arguments
20560 need_version=unknown
20562 case $host_os in
20563 aix3*)
20564 version_type=linux
20565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20566 shlibpath_var=LIBPATH
20568 # AIX 3 has no versioning support, so we append a major version to the name.
20569 soname_spec='${libname}${release}${shared_ext}$major'
20572 aix[4-9]*)
20573 version_type=linux
20574 need_lib_prefix=no
20575 need_version=no
20576 hardcode_into_libs=yes
20577 if test "$host_cpu" = ia64; then
20578 # AIX 5 supports IA64
20579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20580 shlibpath_var=LD_LIBRARY_PATH
20581 else
20582 # With GCC up to 2.95.x, collect2 would create an import file
20583 # for dependence libraries. The import file would start with
20584 # the line `#! .'. This would cause the generated library to
20585 # depend on `.', always an invalid library. This was fixed in
20586 # development snapshots of GCC prior to 3.0.
20587 case $host_os in
20588 aix4 | aix4.[01] | aix4.[01].*)
20589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20590 echo ' yes '
20591 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20593 else
20594 can_build_shared=no
20597 esac
20598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20599 # soname into executable. Probably we can add versioning support to
20600 # collect2, so additional links can be useful in future.
20601 if test "$aix_use_runtimelinking" = yes; then
20602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20603 # instead of lib<name>.a to let people know that these are not
20604 # typical AIX shared libraries.
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 else
20607 # We preserve .a as extension for shared libraries through AIX4.2
20608 # and later when we are not doing run time linking.
20609 library_names_spec='${libname}${release}.a $libname.a'
20610 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LIBPATH
20616 amigaos*)
20617 case $host_cpu in
20618 powerpc)
20619 # Since July 2007 AmigaOS4 officially supports .so libraries.
20620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20623 m68k)
20624 library_names_spec='$libname.ixlibrary $libname.a'
20625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20626 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'
20628 esac
20631 beos*)
20632 library_names_spec='${libname}${shared_ext}'
20633 dynamic_linker="$host_os ld.so"
20634 shlibpath_var=LIBRARY_PATH
20637 bsdi[45]*)
20638 version_type=linux
20639 need_version=no
20640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20641 soname_spec='${libname}${release}${shared_ext}$major'
20642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20643 shlibpath_var=LD_LIBRARY_PATH
20644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20646 # the default ld.so.conf also contains /usr/contrib/lib and
20647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20648 # libtool to hard-code these into programs
20651 cygwin* | mingw* | pw32* | cegcc*)
20652 version_type=windows
20653 shrext_cmds=".dll"
20654 need_version=no
20655 need_lib_prefix=no
20657 case $GCC,$host_os in
20658 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20659 library_names_spec='$libname.dll.a'
20660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20661 postinstall_cmds='base_file=`basename \${file}`~
20662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20663 dldir=$destdir/`dirname \$dlpath`~
20664 test -d \$dldir || mkdir -p \$dldir~
20665 $install_prog $dir/$dlname \$dldir/$dlname~
20666 chmod a+x \$dldir/$dlname~
20667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20671 dlpath=$dir/\$dldll~
20672 $RM \$dlpath'
20673 shlibpath_overrides_runpath=yes
20675 case $host_os in
20676 cygwin*)
20677 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20678 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20681 mingw* | cegcc*)
20682 # MinGW DLLs use traditional 'lib' prefix
20683 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20685 pw32*)
20686 # pw32 DLLs use 'pw' prefix rather than 'lib'
20687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20689 esac
20693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20695 esac
20696 dynamic_linker='Win32 ld.exe'
20697 # FIXME: first we should search . and the directory the executable is in
20698 shlibpath_var=PATH
20701 darwin* | rhapsody*)
20702 dynamic_linker="$host_os dyld"
20703 version_type=darwin
20704 need_lib_prefix=no
20705 need_version=no
20706 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20707 soname_spec='${libname}${release}${major}$shared_ext'
20708 shlibpath_overrides_runpath=yes
20709 shlibpath_var=DYLD_LIBRARY_PATH
20710 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20715 dgux*)
20716 version_type=linux
20717 need_lib_prefix=no
20718 need_version=no
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 shlibpath_var=LD_LIBRARY_PATH
20724 freebsd* | dragonfly*)
20725 # DragonFly does not have aout. When/if they implement a new
20726 # versioning mechanism, adjust this.
20727 if test -x /usr/bin/objformat; then
20728 objformat=`/usr/bin/objformat`
20729 else
20730 case $host_os in
20731 freebsd[123]*) objformat=aout ;;
20732 *) objformat=elf ;;
20733 esac
20735 version_type=freebsd-$objformat
20736 case $version_type in
20737 freebsd-elf*)
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20739 need_version=no
20740 need_lib_prefix=no
20742 freebsd-*)
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20744 need_version=yes
20746 esac
20747 shlibpath_var=LD_LIBRARY_PATH
20748 case $host_os in
20749 freebsd2*)
20750 shlibpath_overrides_runpath=yes
20752 freebsd3.[01]* | freebsdelf3.[01]*)
20753 shlibpath_overrides_runpath=yes
20754 hardcode_into_libs=yes
20756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20758 shlibpath_overrides_runpath=no
20759 hardcode_into_libs=yes
20761 *) # from 4.6 on, and DragonFly
20762 shlibpath_overrides_runpath=yes
20763 hardcode_into_libs=yes
20765 esac
20768 gnu*)
20769 version_type=linux
20770 need_lib_prefix=no
20771 need_version=no
20772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20773 soname_spec='${libname}${release}${shared_ext}$major'
20774 shlibpath_var=LD_LIBRARY_PATH
20775 hardcode_into_libs=yes
20778 haiku*)
20779 version_type=linux
20780 need_lib_prefix=no
20781 need_version=no
20782 dynamic_linker="$host_os runtime_loader"
20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 shlibpath_var=LIBRARY_PATH
20786 shlibpath_overrides_runpath=yes
20787 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20788 hardcode_into_libs=yes
20791 hpux9* | hpux10* | hpux11*)
20792 # Give a soname corresponding to the major version so that dld.sl refuses to
20793 # link against other versions.
20794 version_type=sunos
20795 need_lib_prefix=no
20796 need_version=no
20797 case $host_cpu in
20798 ia64*)
20799 shrext_cmds='.so'
20800 hardcode_into_libs=yes
20801 dynamic_linker="$host_os dld.so"
20802 shlibpath_var=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805 soname_spec='${libname}${release}${shared_ext}$major'
20806 if test "X$HPUX_IA64_MODE" = X32; then
20807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20808 else
20809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20813 hppa*64*)
20814 shrext_cmds='.sl'
20815 hardcode_into_libs=yes
20816 dynamic_linker="$host_os dld.sl"
20817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820 soname_spec='${libname}${release}${shared_ext}$major'
20821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20825 shrext_cmds='.sl'
20826 dynamic_linker="$host_os dld.sl"
20827 shlibpath_var=SHLIB_PATH
20828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20830 soname_spec='${libname}${release}${shared_ext}$major'
20832 esac
20833 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20834 postinstall_cmds='chmod 555 $lib'
20835 # or fails outright, so override atomically:
20836 install_override_mode=555
20839 interix[3-9]*)
20840 version_type=linux
20841 need_lib_prefix=no
20842 need_version=no
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20846 shlibpath_var=LD_LIBRARY_PATH
20847 shlibpath_overrides_runpath=no
20848 hardcode_into_libs=yes
20851 irix5* | irix6* | nonstopux*)
20852 case $host_os in
20853 nonstopux*) version_type=nonstopux ;;
20855 if test "$lt_cv_prog_gnu_ld" = yes; then
20856 version_type=linux
20857 else
20858 version_type=irix
20859 fi ;;
20860 esac
20861 need_lib_prefix=no
20862 need_version=no
20863 soname_spec='${libname}${release}${shared_ext}$major'
20864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20865 case $host_os in
20866 irix5* | nonstopux*)
20867 libsuff= shlibsuff=
20870 case $LD in # libtool.m4 will add one of these switches to LD
20871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20872 libsuff= shlibsuff= libmagic=32-bit;;
20873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20874 libsuff=32 shlibsuff=N32 libmagic=N32;;
20875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20877 *) libsuff= shlibsuff= libmagic=never-match;;
20878 esac
20880 esac
20881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20882 shlibpath_overrides_runpath=no
20883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20885 hardcode_into_libs=yes
20888 # No shared lib support for Linux oldld, aout, or coff.
20889 linux*oldld* | linux*aout* | linux*coff*)
20890 dynamic_linker=no
20893 # This must be Linux ELF.
20894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20895 version_type=linux
20896 need_lib_prefix=no
20897 need_version=no
20898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899 soname_spec='${libname}${release}${shared_ext}$major'
20900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 shlibpath_overrides_runpath=no
20904 # Some binutils ld are patched to set DT_RUNPATH
20905 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20906 $as_echo_n "(cached) " >&6
20907 else
20908 lt_cv_shlibpath_overrides_runpath=no
20909 save_LDFLAGS=$LDFLAGS
20910 save_libdir=$libdir
20911 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20912 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20917 main ()
20921 return 0;
20923 _ACEOF
20924 if ac_fn_cxx_try_link "$LINENO"; then :
20925 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20926 lt_cv_shlibpath_overrides_runpath=yes
20929 rm -f core conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
20931 LDFLAGS=$save_LDFLAGS
20932 libdir=$save_libdir
20936 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20938 # This implies no fast_install, which is unacceptable.
20939 # Some rework will be needed to allow for fast_install
20940 # before this can be enabled.
20941 hardcode_into_libs=yes
20943 # Append ld.so.conf contents to the search path
20944 if test -f /etc/ld.so.conf; then
20945 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' ' '`
20946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20949 # We used to test for /lib/ld.so.1 and disable shared libraries on
20950 # powerpc, because MkLinux only supported shared libraries with the
20951 # GNU dynamic linker. Since this was broken with cross compilers,
20952 # most powerpc-linux boxes support dynamic linking these days and
20953 # people can always --disable-shared, the test was removed, and we
20954 # assume the GNU/Linux dynamic linker is in use.
20955 dynamic_linker='GNU/Linux ld.so'
20958 netbsd*)
20959 version_type=sunos
20960 need_lib_prefix=no
20961 need_version=no
20962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20965 dynamic_linker='NetBSD (a.out) ld.so'
20966 else
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 dynamic_linker='NetBSD ld.elf_so'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=yes
20973 hardcode_into_libs=yes
20976 newsos6)
20977 version_type=linux
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 shlibpath_var=LD_LIBRARY_PATH
20980 shlibpath_overrides_runpath=yes
20983 *nto* | *qnx*)
20984 version_type=qnx
20985 need_lib_prefix=no
20986 need_version=no
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 soname_spec='${libname}${release}${shared_ext}$major'
20989 shlibpath_var=LD_LIBRARY_PATH
20990 shlibpath_overrides_runpath=no
20991 hardcode_into_libs=yes
20992 dynamic_linker='ldqnx.so'
20995 openbsd*)
20996 version_type=sunos
20997 sys_lib_dlsearch_path_spec="/usr/lib"
20998 need_lib_prefix=no
20999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21000 case $host_os in
21001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21002 *) need_version=no ;;
21003 esac
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21006 shlibpath_var=LD_LIBRARY_PATH
21007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21008 case $host_os in
21009 openbsd2.[89] | openbsd2.[89].*)
21010 shlibpath_overrides_runpath=no
21013 shlibpath_overrides_runpath=yes
21015 esac
21016 else
21017 shlibpath_overrides_runpath=yes
21021 os2*)
21022 libname_spec='$name'
21023 shrext_cmds=".dll"
21024 need_lib_prefix=no
21025 library_names_spec='$libname${shared_ext} $libname.a'
21026 dynamic_linker='OS/2 ld.exe'
21027 shlibpath_var=LIBPATH
21030 osf3* | osf4* | osf5*)
21031 version_type=osf
21032 need_lib_prefix=no
21033 need_version=no
21034 soname_spec='${libname}${release}${shared_ext}$major'
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 shlibpath_var=LD_LIBRARY_PATH
21037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21041 rdos*)
21042 dynamic_linker=no
21045 solaris*)
21046 version_type=linux
21047 need_lib_prefix=no
21048 need_version=no
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 shlibpath_var=LD_LIBRARY_PATH
21052 shlibpath_overrides_runpath=yes
21053 hardcode_into_libs=yes
21054 # ldd complains unless libraries are executable
21055 postinstall_cmds='chmod +x $lib'
21058 sunos4*)
21059 version_type=sunos
21060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21062 shlibpath_var=LD_LIBRARY_PATH
21063 shlibpath_overrides_runpath=yes
21064 if test "$with_gnu_ld" = yes; then
21065 need_lib_prefix=no
21067 need_version=yes
21070 sysv4 | sysv4.3*)
21071 version_type=linux
21072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21073 soname_spec='${libname}${release}${shared_ext}$major'
21074 shlibpath_var=LD_LIBRARY_PATH
21075 case $host_vendor in
21076 sni)
21077 shlibpath_overrides_runpath=no
21078 need_lib_prefix=no
21079 runpath_var=LD_RUN_PATH
21081 siemens)
21082 need_lib_prefix=no
21084 motorola)
21085 need_lib_prefix=no
21086 need_version=no
21087 shlibpath_overrides_runpath=no
21088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21090 esac
21093 sysv4*MP*)
21094 if test -d /usr/nec ;then
21095 version_type=linux
21096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21097 soname_spec='$libname${shared_ext}.$major'
21098 shlibpath_var=LD_LIBRARY_PATH
21102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21103 version_type=freebsd-elf
21104 need_lib_prefix=no
21105 need_version=no
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21107 soname_spec='${libname}${release}${shared_ext}$major'
21108 shlibpath_var=LD_LIBRARY_PATH
21109 shlibpath_overrides_runpath=yes
21110 hardcode_into_libs=yes
21111 if test "$with_gnu_ld" = yes; then
21112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21113 else
21114 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21115 case $host_os in
21116 sco3.2v5*)
21117 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21119 esac
21121 sys_lib_dlsearch_path_spec='/usr/lib'
21124 tpf*)
21125 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21126 version_type=linux
21127 need_lib_prefix=no
21128 need_version=no
21129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130 shlibpath_var=LD_LIBRARY_PATH
21131 shlibpath_overrides_runpath=no
21132 hardcode_into_libs=yes
21135 uts4*)
21136 version_type=linux
21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21138 soname_spec='${libname}${release}${shared_ext}$major'
21139 shlibpath_var=LD_LIBRARY_PATH
21143 dynamic_linker=no
21145 esac
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21147 $as_echo "$dynamic_linker" >&6; }
21148 test "$dynamic_linker" = no && can_build_shared=no
21150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21151 if test "$GCC" = yes; then
21152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21155 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21156 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21158 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21159 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21200 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21201 hardcode_action_CXX=
21202 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21203 test -n "$runpath_var_CXX" ||
21204 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21206 # We can hardcode non-existent directories.
21207 if test "$hardcode_direct_CXX" != no &&
21208 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21209 # have to relink, otherwise we might link with an installed library
21210 # when we should be linking with a yet-to-be-installed one
21211 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21212 test "$hardcode_minus_L_CXX" != no; then
21213 # Linking always hardcodes the temporary library directory.
21214 hardcode_action_CXX=relink
21215 else
21216 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21217 hardcode_action_CXX=immediate
21219 else
21220 # We cannot hardcode anything, or else we can only hardcode existing
21221 # directories.
21222 hardcode_action_CXX=unsupported
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21225 $as_echo "$hardcode_action_CXX" >&6; }
21227 if test "$hardcode_action_CXX" = relink ||
21228 test "$inherit_rpath_CXX" = yes; then
21229 # Fast installation is not supported
21230 enable_fast_install=no
21231 elif test "$shlibpath_overrides_runpath" = yes ||
21232 test "$enable_shared" = no; then
21233 # Fast installation is not necessary
21234 enable_fast_install=needless
21243 fi # test -n "$compiler"
21245 CC=$lt_save_CC
21246 LDCXX=$LD
21247 LD=$lt_save_LD
21248 GCC=$lt_save_GCC
21249 with_gnu_ld=$lt_save_with_gnu_ld
21250 lt_cv_path_LDCXX=$lt_cv_path_LD
21251 lt_cv_path_LD=$lt_save_path_LD
21252 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21253 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21254 fi # test "$_lt_caught_CXX_error" != yes
21256 ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21277 # Only expand once:
21283 # Identify the assembler which will work hand-in-glove with the newly
21284 # built GCC, so that we can examine its features. This is the assembler
21285 # which will be driven by the driver program.
21287 # If build != host, and we aren't building gas in-tree, we identify a
21288 # build->target assembler and hope that it will have the same features
21289 # as the host->target assembler we'll be using.
21290 gcc_cv_gas_major_version=
21291 gcc_cv_gas_minor_version=
21292 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21294 if test "${gcc_cv_as+set}" = set; then :
21296 else
21298 if test -x "$DEFAULT_ASSEMBLER"; then
21299 gcc_cv_as="$DEFAULT_ASSEMBLER"
21300 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21301 && test -f ../gas/Makefile \
21302 && test x$build = x$host; then
21303 gcc_cv_as=../gas/as-new$build_exeext
21304 elif test -x as$build_exeext; then
21305 # Build using assembler in the current directory.
21306 gcc_cv_as=./as$build_exeext
21307 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21308 gcc_cv_as="$AS_FOR_TARGET"
21309 else
21310 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21311 set dummy $AS_FOR_TARGET; ac_word=$2
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21313 $as_echo_n "checking for $ac_word... " >&6; }
21314 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21315 $as_echo_n "(cached) " >&6
21316 else
21317 case $gcc_cv_as in
21318 [\\/]* | ?:[\\/]*)
21319 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21323 for as_dir in $PATH
21325 IFS=$as_save_IFS
21326 test -z "$as_dir" && as_dir=.
21327 for ac_exec_ext in '' $ac_executable_extensions; do
21328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21329 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21331 break 2
21333 done
21334 done
21335 IFS=$as_save_IFS
21338 esac
21340 gcc_cv_as=$ac_cv_path_gcc_cv_as
21341 if test -n "$gcc_cv_as"; then
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21343 $as_echo "$gcc_cv_as" >&6; }
21344 else
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 $as_echo "no" >&6; }
21353 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21355 case "$ORIGINAL_AS_FOR_TARGET" in
21356 ./as | ./as$build_exeext) ;;
21357 *) ac_config_files="$ac_config_files as:exec-tool.in"
21359 esac
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21362 $as_echo_n "checking what assembler to use... " >&6; }
21363 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21364 # Single tree build which includes gas. We want to prefer it
21365 # over whatever linker top-level may have detected, since
21366 # we'll use what we're building after installation anyway.
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21368 $as_echo "newly built gas" >&6; }
21369 in_tree_gas=yes
21370 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21371 for f in $gcc_cv_as_bfd_srcdir/configure \
21372 $gcc_cv_as_gas_srcdir/configure \
21373 $gcc_cv_as_gas_srcdir/configure.in \
21374 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21375 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21376 if test x$gcc_cv_gas_version != x; then
21377 break
21379 done
21380 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21381 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21382 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21383 case $gcc_cv_gas_patch_version in
21384 "") gcc_cv_gas_patch_version="0" ;;
21385 esac
21386 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21387 + $gcc_cv_gas_minor_version \) \* 1000 \
21388 + $gcc_cv_gas_patch_version`
21390 in_tree_gas_is_elf=no
21391 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21392 || (grep 'obj_format = multi' ../gas/Makefile \
21393 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21394 then
21395 in_tree_gas_is_elf=yes
21397 else
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21399 $as_echo "$gcc_cv_as" >&6; }
21400 in_tree_gas=no
21403 # Identify the linker which will work hand-in-glove with the newly
21404 # built GCC, so that we can examine its features. This is the linker
21405 # which will be driven by the driver program.
21407 # If build != host, and we aren't building gas in-tree, we identify a
21408 # build->target linker and hope that it will have the same features
21409 # as the host->target linker we'll be using.
21410 gcc_cv_gld_major_version=
21411 gcc_cv_gld_minor_version=
21412 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21413 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21415 if test "${gcc_cv_ld+set}" = set; then :
21417 else
21419 if test -x "$DEFAULT_LINKER"; then
21420 gcc_cv_ld="$DEFAULT_LINKER"
21421 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21422 && test -f ../ld/Makefile \
21423 && test x$build = x$host; then
21424 gcc_cv_ld=../ld/ld-new$build_exeext
21425 elif test -x collect-ld$build_exeext; then
21426 # Build using linker in the current directory.
21427 gcc_cv_ld=./collect-ld$build_exeext
21428 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21429 gcc_cv_ld="$LD_FOR_TARGET"
21430 else
21431 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21432 set dummy $LD_FOR_TARGET; ac_word=$2
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21434 $as_echo_n "checking for $ac_word... " >&6; }
21435 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21436 $as_echo_n "(cached) " >&6
21437 else
21438 case $gcc_cv_ld in
21439 [\\/]* | ?:[\\/]*)
21440 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21444 for as_dir in $PATH
21446 IFS=$as_save_IFS
21447 test -z "$as_dir" && as_dir=.
21448 for ac_exec_ext in '' $ac_executable_extensions; do
21449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21452 break 2
21454 done
21455 done
21456 IFS=$as_save_IFS
21459 esac
21461 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21462 if test -n "$gcc_cv_ld"; then
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21465 else
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467 $as_echo "no" >&6; }
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21475 PLUGIN_LD=`basename $gcc_cv_ld`
21477 # Check whether --with-plugin-ld was given.
21478 if test "${with_plugin_ld+set}" = set; then :
21479 withval=$with_plugin_ld; if test x"$withval" != x; then
21480 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21481 PLUGIN_LD="$withval"
21487 cat >>confdefs.h <<_ACEOF
21488 #define PLUGIN_LD "$PLUGIN_LD"
21489 _ACEOF
21492 # Check to see if we are using gold instead of ld
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21494 $as_echo_n "checking whether we are using gold... " >&6; }
21495 ld_is_gold=no
21496 if test x$gcc_cv_ld != x; then
21497 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21498 | grep "GNU gold" > /dev/null; then
21499 ld_is_gold=yes
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21503 $as_echo "$ld_is_gold" >&6; }
21505 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21507 case "$ORIGINAL_LD_FOR_TARGET" in
21508 ./collect-ld | ./collect-ld$build_exeext) ;;
21509 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21511 esac
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21514 $as_echo_n "checking what linker to use... " >&6; }
21515 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21516 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21517 # Single tree build which includes ld. We want to prefer it
21518 # over whatever linker top-level may have detected, since
21519 # we'll use what we're building after installation anyway.
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21521 $as_echo "newly built ld" >&6; }
21522 in_tree_ld=yes
21523 in_tree_ld_is_elf=no
21524 if (grep 'EMUL = .*elf' ../ld/Makefile \
21525 || grep 'EMUL = .*linux' ../ld/Makefile \
21526 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21527 in_tree_ld_is_elf=yes
21528 elif test "$ld_is_gold" = yes; then
21529 in_tree_ld_is_elf=yes
21531 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
21533 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21534 if test x$gcc_cv_gld_version != x; then
21535 break
21537 done
21538 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21539 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21540 else
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21542 $as_echo "$gcc_cv_ld" >&6; }
21543 in_tree_ld=no
21546 # Figure out what nm we will be using.
21547 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21548 if test "${gcc_cv_nm+set}" = set; then :
21550 else
21552 if test -f $gcc_cv_binutils_srcdir/configure.in \
21553 && test -f ../binutils/Makefile \
21554 && test x$build = x$host; then
21555 gcc_cv_nm=../binutils/nm-new$build_exeext
21556 elif test -x nm$build_exeext; then
21557 gcc_cv_nm=./nm$build_exeext
21558 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21559 gcc_cv_nm="$NM_FOR_TARGET"
21560 else
21561 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21562 set dummy $NM_FOR_TARGET; ac_word=$2
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21564 $as_echo_n "checking for $ac_word... " >&6; }
21565 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21566 $as_echo_n "(cached) " >&6
21567 else
21568 case $gcc_cv_nm in
21569 [\\/]* | ?:[\\/]*)
21570 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21574 for as_dir in $PATH
21576 IFS=$as_save_IFS
21577 test -z "$as_dir" && as_dir=.
21578 for ac_exec_ext in '' $ac_executable_extensions; do
21579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21580 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21582 break 2
21584 done
21585 done
21586 IFS=$as_save_IFS
21589 esac
21591 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21592 if test -n "$gcc_cv_nm"; then
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21594 $as_echo "$gcc_cv_nm" >&6; }
21595 else
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 $as_echo "no" >&6; }
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21605 $as_echo_n "checking what nm to use... " >&6; }
21606 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21607 # Single tree build which includes binutils.
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21609 $as_echo "newly built nm" >&6; }
21610 in_tree_nm=yes
21611 else
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21613 $as_echo "$gcc_cv_nm" >&6; }
21614 in_tree_nm=no
21617 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21619 case "$ORIGINAL_NM_FOR_TARGET" in
21620 ./nm | ./nm$build_exeext) ;;
21621 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21623 esac
21626 # Figure out what objdump we will be using.
21627 if test "${gcc_cv_objdump+set}" = set; then :
21629 else
21631 if test -f $gcc_cv_binutils_srcdir/configure.in \
21632 && test -f ../binutils/Makefile \
21633 && test x$build = x$host; then
21634 # Single tree build which includes binutils.
21635 gcc_cv_objdump=../binutils/objdump$build_exeext
21636 elif test -x objdump$build_exeext; then
21637 gcc_cv_objdump=./objdump$build_exeext
21638 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21639 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21640 else
21641 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21642 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21644 $as_echo_n "checking for $ac_word... " >&6; }
21645 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21647 else
21648 case $gcc_cv_objdump in
21649 [\\/]* | ?:[\\/]*)
21650 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21654 for as_dir in $PATH
21656 IFS=$as_save_IFS
21657 test -z "$as_dir" && as_dir=.
21658 for ac_exec_ext in '' $ac_executable_extensions; do
21659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21660 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21662 break 2
21664 done
21665 done
21666 IFS=$as_save_IFS
21669 esac
21671 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21672 if test -n "$gcc_cv_objdump"; then
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21674 $as_echo "$gcc_cv_objdump" >&6; }
21675 else
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677 $as_echo "no" >&6; }
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21685 $as_echo_n "checking what objdump to use... " >&6; }
21686 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21687 # Single tree build which includes binutils.
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21689 $as_echo "newly built objdump" >&6; }
21690 elif test x$gcc_cv_objdump = x; then
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21692 $as_echo "not found" >&6; }
21693 else
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21695 $as_echo "$gcc_cv_objdump" >&6; }
21698 # Figure out what readelf we will be using.
21699 if test "${gcc_cv_readelf+set}" = set; then :
21701 else
21703 if test -f $gcc_cv_binutils_srcdir/configure.in \
21704 && test -f ../binutils/Makefile \
21705 && test x$build = x$host; then
21706 # Single tree build which includes binutils.
21707 gcc_cv_readelf=../binutils/readelf$build_exeext
21708 elif test -x readelf$build_exeext; then
21709 gcc_cv_readelf=./readelf$build_exeext
21710 else
21711 # Extract the first word of "readelf", so it can be a program name with args.
21712 set dummy readelf; ac_word=$2
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21714 $as_echo_n "checking for $ac_word... " >&6; }
21715 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21716 $as_echo_n "(cached) " >&6
21717 else
21718 case $gcc_cv_readelf in
21719 [\\/]* | ?:[\\/]*)
21720 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21724 for as_dir in $PATH
21726 IFS=$as_save_IFS
21727 test -z "$as_dir" && as_dir=.
21728 for ac_exec_ext in '' $ac_executable_extensions; do
21729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21730 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21732 break 2
21734 done
21735 done
21736 IFS=$as_save_IFS
21739 esac
21741 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21742 if test -n "$gcc_cv_readelf"; then
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21744 $as_echo "$gcc_cv_readelf" >&6; }
21745 else
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21747 $as_echo "no" >&6; }
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21755 $as_echo_n "checking what readelf to use... " >&6; }
21756 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21757 # Single tree build which includes binutils.
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21759 $as_echo "newly built readelf" >&6; }
21760 elif test x$gcc_cv_readelf = x; then
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21762 $as_echo "not found" >&6; }
21763 else
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21765 $as_echo "$gcc_cv_readelf" >&6; }
21768 # Figure out what assembler alignment features are present.
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21770 $as_echo_n "checking assembler flags... " >&6; }
21771 if test "${gcc_cv_as_flags+set}" = set; then :
21772 $as_echo_n "(cached) " >&6
21773 else
21774 case "$target" in
21775 i[34567]86-*-linux*)
21776 gcc_cv_as_flags="--32"
21778 powerpc*-*-darwin*)
21779 gcc_cv_as_flags="-arch ppc"
21782 gcc_cv_as_flags=" "
21784 esac
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21787 $as_echo "$gcc_cv_as_flags" >&6; }
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21790 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21791 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21792 $as_echo_n "(cached) " >&6
21793 else
21794 gcc_cv_as_balign_and_p2align=no
21795 if test $in_tree_gas = yes; then
21796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21797 then gcc_cv_as_balign_and_p2align=yes
21799 elif test x$gcc_cv_as != x; then
21800 $as_echo '.balign 4
21801 .p2align 2' > conftest.s
21802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; }; }
21808 then
21809 gcc_cv_as_balign_and_p2align=yes
21810 else
21811 echo "configure: failed program was" >&5
21812 cat conftest.s >&5
21814 rm -f conftest.o conftest.s
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21818 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21819 if test $gcc_cv_as_balign_and_p2align = yes; then
21821 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21826 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21827 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21829 else
21830 gcc_cv_as_max_skip_p2align=no
21831 if test $in_tree_gas = yes; then
21832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21833 then gcc_cv_as_max_skip_p2align=yes
21835 elif test x$gcc_cv_as != x; then
21836 $as_echo '.p2align 4,,7' > conftest.s
21837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21842 test $ac_status = 0; }; }
21843 then
21844 gcc_cv_as_max_skip_p2align=yes
21845 else
21846 echo "configure: failed program was" >&5
21847 cat conftest.s >&5
21849 rm -f conftest.o conftest.s
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21853 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21854 if test $gcc_cv_as_max_skip_p2align = yes; then
21856 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21861 $as_echo_n "checking assembler for .literal16... " >&6; }
21862 if test "${gcc_cv_as_literal16+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21865 gcc_cv_as_literal16=no
21866 if test $in_tree_gas = yes; then
21867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21868 then gcc_cv_as_literal16=yes
21870 elif test x$gcc_cv_as != x; then
21871 $as_echo '.literal16' > conftest.s
21872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21877 test $ac_status = 0; }; }
21878 then
21879 gcc_cv_as_literal16=yes
21880 else
21881 echo "configure: failed program was" >&5
21882 cat conftest.s >&5
21884 rm -f conftest.o conftest.s
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21888 $as_echo "$gcc_cv_as_literal16" >&6; }
21889 if test $gcc_cv_as_literal16 = yes; then
21891 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21896 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21897 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21899 else
21900 gcc_cv_as_subsection_m1=no
21901 if test $in_tree_gas = yes; then
21902 if test $in_tree_gas_is_elf = yes \
21903 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21904 then gcc_cv_as_subsection_m1=yes
21906 elif test x$gcc_cv_as != x; then
21907 $as_echo 'conftest_label1: .word 0
21908 .subsection -1
21909 conftest_label2: .word 0
21910 .previous' > conftest.s
21911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916 test $ac_status = 0; }; }
21917 then
21918 if test x$gcc_cv_nm != x; then
21919 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21920 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21921 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21922 then :
21923 else gcc_cv_as_subsection_m1=yes
21925 rm -f conftest.nm1 conftest.nm2
21927 else
21928 echo "configure: failed program was" >&5
21929 cat conftest.s >&5
21931 rm -f conftest.o conftest.s
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21935 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21936 if test $gcc_cv_as_subsection_m1 = yes; then
21938 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21943 $as_echo_n "checking assembler for .weak... " >&6; }
21944 if test "${gcc_cv_as_weak+set}" = set; then :
21945 $as_echo_n "(cached) " >&6
21946 else
21947 gcc_cv_as_weak=no
21948 if test $in_tree_gas = yes; then
21949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21950 then gcc_cv_as_weak=yes
21952 elif test x$gcc_cv_as != x; then
21953 $as_echo ' .weak foobar' > conftest.s
21954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21960 then
21961 gcc_cv_as_weak=yes
21962 else
21963 echo "configure: failed program was" >&5
21964 cat conftest.s >&5
21966 rm -f conftest.o conftest.s
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21970 $as_echo "$gcc_cv_as_weak" >&6; }
21971 if test $gcc_cv_as_weak = yes; then
21973 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21978 $as_echo_n "checking assembler for .weakref... " >&6; }
21979 if test "${gcc_cv_as_weakref+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21981 else
21982 gcc_cv_as_weakref=no
21983 if test $in_tree_gas = yes; then
21984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21985 then gcc_cv_as_weakref=yes
21987 elif test x$gcc_cv_as != x; then
21988 $as_echo ' .weakref foobar, barfnot' > conftest.s
21989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }
21995 then
21996 gcc_cv_as_weakref=yes
21997 else
21998 echo "configure: failed program was" >&5
21999 cat conftest.s >&5
22001 rm -f conftest.o conftest.s
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22005 $as_echo "$gcc_cv_as_weakref" >&6; }
22006 if test $gcc_cv_as_weakref = yes; then
22008 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22013 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22014 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22016 else
22017 gcc_cv_as_nsubspa_comdat=no
22018 if test $in_tree_gas = yes; then
22019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22020 then gcc_cv_as_nsubspa_comdat=yes
22022 elif test x$gcc_cv_as != x; then
22023 $as_echo ' .SPACE $TEXT$
22024 .NSUBSPA $CODE$,COMDAT' > conftest.s
22025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030 test $ac_status = 0; }; }
22031 then
22032 gcc_cv_as_nsubspa_comdat=yes
22033 else
22034 echo "configure: failed program was" >&5
22035 cat conftest.s >&5
22037 rm -f conftest.o conftest.s
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22041 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22042 if test $gcc_cv_as_nsubspa_comdat = yes; then
22044 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22048 # .hidden needs to be supported in both the assembler and the linker,
22049 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22050 # This is irritatingly difficult to feature test for; we have to check the
22051 # date string after the version number. If we've got an in-tree
22052 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22053 # to be safe.
22054 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22056 $as_echo_n "checking assembler for .hidden... " >&6; }
22057 if test "${gcc_cv_as_hidden+set}" = set; then :
22058 $as_echo_n "(cached) " >&6
22059 else
22060 gcc_cv_as_hidden=no
22061 if test $in_tree_gas = yes; then
22062 if test $in_tree_gas_is_elf = yes \
22063 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22064 then gcc_cv_as_hidden=yes
22066 elif test x$gcc_cv_as != x; then
22067 $as_echo ' .hidden foobar
22068 foobar:' > conftest.s
22069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22074 test $ac_status = 0; }; }
22075 then
22077 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22078 # STV_HIDDEN, so disable .hidden support if so.
22079 case "${target}" in
22080 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22081 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22082 cat > conftest.s <<EOF
22083 .globl hidden
22084 .hidden hidden
22085 hidden:
22086 .globl default
22087 .set default,hidden
22089 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22090 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22091 grep '\.hidden default' > /dev/null; then
22092 gcc_cv_as_hidden=no
22093 else
22094 gcc_cv_as_hidden=yes
22096 else
22097 # Assume bug is present if objdump is missing.
22098 gcc_cv_as_hidden=no
22102 gcc_cv_as_hidden=yes
22104 esac
22105 else
22106 echo "configure: failed program was" >&5
22107 cat conftest.s >&5
22109 rm -f conftest.o conftest.s
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22113 $as_echo "$gcc_cv_as_hidden" >&6; }
22115 case "${target}" in
22116 *-*-darwin*)
22117 # Darwin as has some visibility support, though with a different syntax.
22118 gcc_cv_as_hidden=yes
22120 esac
22122 # gnu_indirect_function type is an extension proposed at
22123 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22124 # selection of function implementation
22125 # Check whether --enable-gnu-indirect-function was given.
22126 if test "${enable_gnu_indirect_function+set}" = set; then :
22127 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22128 yes | no) ;;
22129 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22130 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22131 esac
22132 else
22133 enable_gnu_indirect_function="$default_gnu_indirect_function"
22136 if test x$enable_gnu_indirect_function = xyes; then
22138 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22142 if test $in_tree_ld != yes ; then
22143 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22144 if echo "$ld_ver" | grep GNU > /dev/null; then
22145 if test x"$ld_is_gold" = xyes; then
22146 # GNU gold --version looks like this:
22148 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22150 # We extract the binutils version which is more familiar and specific
22151 # than the gold version.
22152 ld_vers=`echo $ld_ver | sed -n \
22153 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22154 else
22155 # GNU ld --version looks like this:
22157 # GNU ld (GNU Binutils) 2.21.51.20110225
22158 ld_vers=`echo $ld_ver | sed -n \
22159 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22161 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'`
22162 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22163 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22164 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22165 else
22166 case "${target}" in
22167 *-*-solaris2*)
22169 # Solaris 2 ld -V output looks like this for a regular version:
22171 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22173 # but test versions add stuff at the end:
22175 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22177 ld_ver=`$gcc_cv_ld -V 2>&1`
22178 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22179 ld_vers=`echo $ld_ver | sed -n \
22180 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22181 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22182 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22185 esac
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22190 $as_echo_n "checking linker for .hidden support... " >&6; }
22191 if test "${gcc_cv_ld_hidden+set}" = set; then :
22192 $as_echo_n "(cached) " >&6
22193 else
22194 if test $in_tree_ld = yes ; then
22195 gcc_cv_ld_hidden=no
22196 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 \
22197 && test $in_tree_ld_is_elf = yes; then
22198 gcc_cv_ld_hidden=yes
22200 else
22201 gcc_cv_ld_hidden=yes
22202 if test x"$ld_is_gold" = xyes; then
22204 elif echo "$ld_ver" | grep GNU > /dev/null; then
22205 if test 0"$ld_date" -lt 20020404; then
22206 if test -n "$ld_date"; then
22207 # If there was date string, but was earlier than 2002-04-04, fail
22208 gcc_cv_ld_hidden=no
22209 elif test -z "$ld_vers"; then
22210 # If there was no date string nor ld version number, something is wrong
22211 gcc_cv_ld_hidden=no
22212 else
22213 test -z "$ld_vers_patch" && ld_vers_patch=0
22214 if test "$ld_vers_major" -lt 2; then
22215 gcc_cv_ld_hidden=no
22216 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22217 gcc_cv_ld_hidden="no"
22218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22219 gcc_cv_ld_hidden=no
22223 else
22224 case "${target}" in
22225 *-*-darwin*)
22226 # Darwin ld has some visibility support.
22227 gcc_cv_ld_hidden=yes
22229 hppa64*-*-hpux* | ia64*-*-hpux*)
22230 gcc_cv_ld_hidden=yes
22232 *-*-solaris2.8*)
22233 # .hidden support was backported to Solaris 8, starting with ld
22234 # version 1.276.
22235 if test "$ld_vers_minor" -ge 276; then
22236 gcc_cv_ld_hidden=yes
22237 else
22238 gcc_cv_ld_hidden=no
22241 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22242 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22243 # .symbolic was only added in Solaris 9 12/02.
22244 gcc_cv_ld_hidden=yes
22247 gcc_cv_ld_hidden=no
22249 esac
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22254 $as_echo "$gcc_cv_ld_hidden" >&6; }
22255 libgcc_visibility=no
22258 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22259 libgcc_visibility=yes
22261 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22266 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22267 gcc_cv_ld_ro_rw_mix=unknown
22268 if test $in_tree_ld = yes ; then
22269 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 \
22270 && test $in_tree_ld_is_elf = yes; then
22271 gcc_cv_ld_ro_rw_mix=read-write
22273 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22274 echo '.section myfoosect, "a"' > conftest1.s
22275 echo '.section myfoosect, "aw"' > conftest2.s
22276 echo '.byte 1' >> conftest2.s
22277 echo '.section myfoosect, "a"' > conftest3.s
22278 echo '.byte 0' >> conftest3.s
22279 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22280 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22281 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22282 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22283 conftest2.o conftest3.o > /dev/null 2>&1; then
22284 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22285 | sed -e '/myfoosect/!d' -e N`
22286 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22287 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22288 gcc_cv_ld_ro_rw_mix=read-only
22289 else
22290 gcc_cv_ld_ro_rw_mix=read-write
22294 rm -f conftest.* conftest[123].*
22296 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22298 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22302 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22304 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22306 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22307 if test "${gcc_cv_as_leb128+set}" = set; then :
22308 $as_echo_n "(cached) " >&6
22309 else
22310 gcc_cv_as_leb128=no
22311 if test $in_tree_gas = yes; then
22312 if test $in_tree_gas_is_elf = yes \
22313 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22314 then gcc_cv_as_leb128=yes
22316 elif test x$gcc_cv_as != x; then
22317 $as_echo ' .data
22318 .uleb128 L2 - L1
22320 .uleb128 1280
22321 .sleb128 -1010
22322 L2:' > conftest.s
22323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22325 (eval $ac_try) 2>&5
22326 ac_status=$?
22327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22328 test $ac_status = 0; }; }
22329 then
22330 # GAS versions before 2.11 do not support uleb128,
22331 # despite appearing to.
22332 # ??? There exists an elf-specific test that will crash
22333 # the assembler. Perhaps it's better to figure out whether
22334 # arbitrary sections are supported and try the test.
22335 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22336 if echo "$as_ver" | grep GNU > /dev/null; then
22337 as_vers=`echo $as_ver | sed -n \
22338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22339 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22340 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22341 if test $as_major -eq 2 && test $as_minor -lt 11
22342 then :
22343 else gcc_cv_as_leb128=yes
22346 else
22347 echo "configure: failed program was" >&5
22348 cat conftest.s >&5
22350 rm -f conftest.o conftest.s
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22354 $as_echo "$gcc_cv_as_leb128" >&6; }
22355 if test $gcc_cv_as_leb128 = yes; then
22357 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22361 # Check if we have assembler support for unwind directives.
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22363 $as_echo_n "checking assembler for cfi directives... " >&6; }
22364 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22366 else
22367 gcc_cv_as_cfi_directive=no
22368 if test x$gcc_cv_as != x; then
22369 $as_echo ' .text
22370 .cfi_startproc
22371 .cfi_offset 0, 0
22372 .cfi_same_value 1
22373 .cfi_def_cfa 1, 2
22374 .cfi_escape 1, 2, 3, 4, 5
22375 .cfi_endproc' > conftest.s
22376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22381 test $ac_status = 0; }; }
22382 then
22383 case "$target" in
22384 *-*-solaris*)
22385 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22386 # read-only and read-write sections, we need to make sure that the
22387 # assembler used emits read-write .eh_frame sections.
22388 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22389 if test "x$gcc_cv_objdump" != x; then
22390 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22391 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22392 gcc_cv_as_cfi_directive=no
22393 else
22394 case "$target" in
22395 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22396 # On Solaris/x86, make sure that GCC and gas agree on using
22397 # read-only .eh_frame sections for 64-bit.
22398 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22399 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22400 sed -e /.eh_frame/!d -e N | \
22401 grep READONLY > /dev/null; then
22402 gcc_cv_as_cfi_directive=yes
22403 else
22404 gcc_cv_as_cfi_directive=no
22408 gcc_cv_as_cfi_directive=yes
22410 esac
22412 else
22413 # no objdump, err on the side of caution
22414 gcc_cv_as_cfi_directive=no
22416 else
22417 gcc_cv_as_cfi_directive=yes
22420 *-*-*)
22421 gcc_cv_as_cfi_directive=yes
22423 esac
22424 else
22425 echo "configure: failed program was" >&5
22426 cat conftest.s >&5
22428 rm -f conftest.o conftest.s
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22432 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22434 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22436 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22437 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22439 else
22440 gcc_cv_as_cfi_advance_working=no
22441 if test x$gcc_cv_as != x; then
22442 $as_echo ' .text
22443 .cfi_startproc
22444 .cfi_adjust_cfa_offset 64
22445 .skip 75040, 0
22446 .cfi_adjust_cfa_offset 128
22447 .cfi_endproc' > conftest.s
22448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22450 (eval $ac_try) 2>&5
22451 ac_status=$?
22452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22453 test $ac_status = 0; }; }
22454 then
22456 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22457 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22458 gcc_cv_as_cfi_advance_working=yes
22461 else
22462 echo "configure: failed program was" >&5
22463 cat conftest.s >&5
22465 rm -f conftest.o conftest.s
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22469 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22471 else
22472 # no objdump, err on the side of caution
22473 gcc_cv_as_cfi_advance_working=no
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22479 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22480 _ACEOF
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22485 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22486 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22487 $as_echo_n "(cached) " >&6
22488 else
22489 gcc_cv_as_cfi_personality_directive=no
22490 if test x$gcc_cv_as != x; then
22491 $as_echo ' .text
22492 .cfi_startproc
22493 .cfi_personality 0, symbol
22494 .cfi_endproc' > conftest.s
22495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
22499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500 test $ac_status = 0; }; }
22501 then
22502 gcc_cv_as_cfi_personality_directive=yes
22503 else
22504 echo "configure: failed program was" >&5
22505 cat conftest.s >&5
22507 rm -f conftest.o conftest.s
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22511 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22514 cat >>confdefs.h <<_ACEOF
22515 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22516 then echo 1; else echo 0; fi`
22517 _ACEOF
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22521 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22522 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22523 $as_echo_n "(cached) " >&6
22524 else
22525 gcc_cv_as_cfi_sections_directive=no
22526 if test x$gcc_cv_as != x; then
22527 $as_echo ' .text
22528 .cfi_sections .debug_frame, .eh_frame
22529 .cfi_startproc
22530 .cfi_endproc' > conftest.s
22531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536 test $ac_status = 0; }; }
22537 then
22538 case $target_os in
22539 win32 | pe | cygwin* | mingw32* | uwin*)
22540 # Need to check that we generated the correct relocation for the
22541 # .debug_frame section. This was fixed for binutils 2.21.
22542 gcc_cv_as_cfi_sections_directive=no
22543 if test "x$gcc_cv_objdump" != x; then
22544 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22545 grep secrel > /dev/null; then
22546 gcc_cv_as_cfi_sections_directive=yes
22551 gcc_cv_as_cfi_sections_directive=yes
22553 esac
22554 else
22555 echo "configure: failed program was" >&5
22556 cat conftest.s >&5
22558 rm -f conftest.o conftest.s
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22562 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22566 cat >>confdefs.h <<_ACEOF
22567 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22568 then echo 1; else echo 0; fi`
22569 _ACEOF
22572 # GAS versions up to and including 2.11.0 may mis-optimize
22573 # .eh_frame data.
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22575 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22576 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22577 $as_echo_n "(cached) " >&6
22578 else
22579 gcc_cv_as_eh_frame=no
22580 if test $in_tree_gas = yes; then
22581 if test $in_tree_gas_is_elf = yes \
22582 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22583 then gcc_cv_as_eh_frame=yes
22585 elif test x$gcc_cv_as != x; then
22586 $as_echo ' .text
22587 .LFB1:
22588 .4byte 0
22589 .L1:
22590 .4byte 0
22591 .LFE1:
22592 .section .eh_frame,"aw",@progbits
22593 __FRAME_BEGIN__:
22594 .4byte .LECIE1-.LSCIE1
22595 .LSCIE1:
22596 .4byte 0x0
22597 .byte 0x1
22598 .ascii "z\0"
22599 .byte 0x1
22600 .byte 0x78
22601 .byte 0x1a
22602 .byte 0x0
22603 .byte 0x4
22604 .4byte 1
22605 .p2align 1
22606 .LECIE1:
22607 .LSFDE1:
22608 .4byte .LEFDE1-.LASFDE1
22609 .LASFDE1:
22610 .4byte .LASFDE1-__FRAME_BEGIN__
22611 .4byte .LFB1
22612 .4byte .LFE1-.LFB1
22613 .byte 0x4
22614 .4byte .LFE1-.LFB1
22615 .byte 0x4
22616 .4byte .L1-.LFB1
22617 .LEFDE1:' > conftest.s
22618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }
22624 then
22625 cat > conftest.lit <<EOF
22626 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22627 0010 01000000 12000000 18000000 00000000 ................
22628 0020 08000000 04080000 0044 .........D
22630 cat > conftest.big <<EOF
22631 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22632 0010 00000001 00000012 00000018 00000000 ................
22633 0020 00000008 04000000 0844 .........D
22635 # If the assembler didn't choke, and we can objdump,
22636 # and we got the correct data, then succeed.
22637 # The text in the here-document typically retains its unix-style line
22638 # endings, while the output of objdump will use host line endings.
22639 # Therefore, use diff -b for the comparisons.
22640 if test x$gcc_cv_objdump != x \
22641 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22642 | tail -3 > conftest.got \
22643 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22644 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22645 then
22646 gcc_cv_as_eh_frame=yes
22647 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22649 (eval $ac_try) 2>&5
22650 ac_status=$?
22651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22652 test $ac_status = 0; }; }; then
22653 gcc_cv_as_eh_frame=buggy
22654 else
22655 # Uh oh, what do we do now?
22656 gcc_cv_as_eh_frame=no
22658 else
22659 echo "configure: failed program was" >&5
22660 cat conftest.s >&5
22662 rm -f conftest.o conftest.s
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22666 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22669 if test $gcc_cv_as_eh_frame = buggy; then
22671 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22676 $as_echo_n "checking assembler for section merging support... " >&6; }
22677 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22678 $as_echo_n "(cached) " >&6
22679 else
22680 gcc_cv_as_shf_merge=no
22681 if test $in_tree_gas = yes; then
22682 if test $in_tree_gas_is_elf = yes \
22683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22684 then gcc_cv_as_shf_merge=yes
22686 elif test x$gcc_cv_as != x; then
22687 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }
22694 then
22695 gcc_cv_as_shf_merge=yes
22696 else
22697 echo "configure: failed program was" >&5
22698 cat conftest.s >&5
22700 rm -f conftest.o conftest.s
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22704 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22706 if test $gcc_cv_as_shf_merge = no; then
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22708 $as_echo_n "checking assembler for section merging support... " >&6; }
22709 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22710 $as_echo_n "(cached) " >&6
22711 else
22712 gcc_cv_as_shf_merge=no
22713 if test $in_tree_gas = yes; then
22714 if test $in_tree_gas_is_elf = yes \
22715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22716 then gcc_cv_as_shf_merge=yes
22718 elif test x$gcc_cv_as != x; then
22719 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22726 then
22727 gcc_cv_as_shf_merge=yes
22728 else
22729 echo "configure: failed program was" >&5
22730 cat conftest.s >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22736 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22740 cat >>confdefs.h <<_ACEOF
22741 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22742 _ACEOF
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22746 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22747 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22749 else
22750 gcc_cv_as_comdat_group=no
22751 if test $in_tree_gas = yes; then
22752 if test $in_tree_gas_is_elf = yes \
22753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22754 then gcc_cv_as_comdat_group=yes
22756 elif test x$gcc_cv_as != x; then
22757 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763 test $ac_status = 0; }; }
22764 then
22765 gcc_cv_as_comdat_group=yes
22766 else
22767 echo "configure: failed program was" >&5
22768 cat conftest.s >&5
22770 rm -f conftest.o conftest.s
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22774 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22776 if test $gcc_cv_as_comdat_group = yes; then
22777 gcc_cv_as_comdat_group_percent=no
22778 gcc_cv_as_comdat_group_group=no
22779 else
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22781 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22782 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22783 $as_echo_n "(cached) " >&6
22784 else
22785 gcc_cv_as_comdat_group_percent=no
22786 if test $in_tree_gas = yes; then
22787 if test $in_tree_gas_is_elf = yes \
22788 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22789 then gcc_cv_as_comdat_group_percent=yes
22791 elif test x$gcc_cv_as != x; then
22792 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798 test $ac_status = 0; }; }
22799 then
22800 gcc_cv_as_comdat_group_percent=yes
22801 else
22802 echo "configure: failed program was" >&5
22803 cat conftest.s >&5
22805 rm -f conftest.o conftest.s
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22809 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22811 if test $gcc_cv_as_comdat_group_percent = yes; then
22812 gcc_cv_as_comdat_group_group=no
22813 else
22814 case "${target}" in
22815 # Sun as uses a completely different syntax.
22816 *-*-solaris2*)
22817 case "${target}" in
22818 sparc*-*-solaris2*)
22819 conftest_s='
22820 .group foo,".text%foo",#comdat
22821 .section ".text%foo", #alloc,#execinstr,#progbits
22822 .globl foo
22823 foo:
22826 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22827 conftest_s='
22828 .group foo,.text%foo,#comdat
22829 .section .text%foo, "ax", @progbits
22830 .globl foo
22831 foo:
22834 esac
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22836 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22837 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22838 $as_echo_n "(cached) " >&6
22839 else
22840 gcc_cv_as_comdat_group_group=no
22841 if test x$gcc_cv_as != x; then
22842 $as_echo "$conftest_s" > conftest.s
22843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22849 then
22850 gcc_cv_as_comdat_group_group=yes
22851 else
22852 echo "configure: failed program was" >&5
22853 cat conftest.s >&5
22855 rm -f conftest.o conftest.s
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22859 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22862 esac
22865 if test x"$ld_is_gold" = xyes; then
22866 comdat_group=yes
22867 elif test $in_tree_ld = yes ; then
22868 comdat_group=no
22869 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 \
22870 && test $in_tree_ld_is_elf = yes; then
22871 comdat_group=yes
22873 elif echo "$ld_ver" | grep GNU > /dev/null; then
22874 comdat_group=yes
22875 if test 0"$ld_date" -lt 20050308; then
22876 if test -n "$ld_date"; then
22877 # If there was date string, but was earlier than 2005-03-08, fail
22878 comdat_group=no
22879 elif test "$ld_vers_major" -lt 2; then
22880 comdat_group=no
22881 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22882 comdat_group=no
22885 else
22886 case "${target}" in
22887 *-*-solaris2.1[1-9]*)
22888 comdat_group=no
22889 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22890 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22891 # version 1.688.
22893 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22894 # least ld version 1.2267.
22895 if test "$ld_vers_major" -gt 1; then
22896 comdat_group=yes
22897 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22898 comdat_group=yes
22899 elif test "$ld_vers_minor" -ge 2267; then
22900 comdat_group=yes
22904 # Assume linkers other than GNU ld don't support COMDAT group.
22905 comdat_group=no
22907 esac
22909 # Allow overriding the automatic COMDAT group tests above.
22910 # Check whether --enable-comdat was given.
22911 if test "${enable_comdat+set}" = set; then :
22912 enableval=$enable_comdat; comdat_group="$enable_comdat"
22915 if test $comdat_group = no; then
22916 gcc_cv_as_comdat_group=no
22917 gcc_cv_as_comdat_group_percent=no
22918 gcc_cv_as_comdat_group_group=no
22921 cat >>confdefs.h <<_ACEOF
22922 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22923 || test $gcc_cv_as_comdat_group_percent = yes \
22924 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22925 _ACEOF
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22929 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22930 if test "${gcc_cv_as_discriminator+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22932 else
22933 gcc_cv_as_discriminator=no
22934 if test $in_tree_gas = yes; then
22935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22936 then gcc_cv_as_discriminator=yes
22938 elif test x$gcc_cv_as != x; then
22939 $as_echo ' .text
22940 .file 1 "conf.c"
22941 .loc 1 1 0 discriminator 1' > conftest.s
22942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947 test $ac_status = 0; }; }
22948 then
22949 gcc_cv_as_discriminator=yes
22950 else
22951 echo "configure: failed program was" >&5
22952 cat conftest.s >&5
22954 rm -f conftest.o conftest.s
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22958 $as_echo "$gcc_cv_as_discriminator" >&6; }
22959 if test $gcc_cv_as_discriminator = yes; then
22961 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22965 # Thread-local storage - the check is heavily parameterized.
22966 conftest_s=
22967 tls_first_major=
22968 tls_first_minor=
22969 tls_as_opt=
22970 case "$target" in
22971 alpha*-*-*)
22972 conftest_s='
22973 .section ".tdata","awT",@progbits
22974 foo: .long 25
22975 .text
22976 ldq $27,__tls_get_addr($29) !literal!1
22977 lda $16,foo($29) !tlsgd!1
22978 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22979 ldq $27,__tls_get_addr($29) !literal!2
22980 lda $16,foo($29) !tlsldm!2
22981 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22982 ldq $1,foo($29) !gotdtprel
22983 ldah $2,foo($29) !dtprelhi
22984 lda $3,foo($2) !dtprello
22985 lda $4,foo($29) !dtprel
22986 ldq $1,foo($29) !gottprel
22987 ldah $2,foo($29) !tprelhi
22988 lda $3,foo($2) !tprello
22989 lda $4,foo($29) !tprel'
22990 tls_first_major=2
22991 tls_first_minor=13
22992 tls_as_opt=--fatal-warnings
22994 cris-*-*|crisv32-*-*)
22995 conftest_s='
22996 .section ".tdata","awT",@progbits
22997 x: .long 25
22998 .text
22999 move.d x:IE,$r10
23000 nop'
23001 tls_first_major=2
23002 tls_first_minor=20
23003 tls_as_opt=--fatal-warnings
23005 frv*-*-*)
23006 conftest_s='
23007 .section ".tdata","awT",@progbits
23008 x: .long 25
23009 .text
23010 call #gettlsoff(x)'
23011 tls_first_major=2
23012 tls_first_minor=14
23014 hppa*-*-linux*)
23015 conftest_s='
23016 t1: .reg %r20
23017 t2: .reg %r21
23018 gp: .reg %r19
23019 .section ".tdata","awT",@progbits
23020 foo: .long 25
23021 .text
23022 .align 4
23023 addil LT%foo-$tls_gdidx$,gp
23024 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23025 b __tls_get_addr
23027 addil LT%foo-$tls_ldidx$,gp
23028 b __tls_get_addr
23029 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23030 addil LR%foo-$tls_dtpoff$,%ret0
23031 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23032 mfctl %cr27,%t1
23033 addil LT%foo-$tls_ieoff$,gp
23034 ldw RT%foo-$tls_ieoff$(%r1),%t2
23035 add %t1,%t2,%t3
23036 mfctl %cr27,%t1
23037 addil LR%foo-$tls_leoff$,%t1
23038 ldo RR%foo-$tls_leoff$(%r1),%t2'
23039 tls_first_major=2
23040 tls_first_minor=15
23041 tls_as_opt=--fatal-warnings
23043 arm*-*-*)
23044 conftest_s='
23045 .section ".tdata","awT",%progbits
23046 foo: .long 25
23047 .text
23048 .word foo(gottpoff)
23049 .word foo(tpoff)
23050 .word foo(tlsgd)
23051 .word foo(tlsldm)
23052 .word foo(tlsldo)'
23053 tls_first_major=2
23054 tls_first_minor=17
23056 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23057 case "$target" in
23058 i[34567]86-*-solaris2.*)
23059 on_solaris=yes
23060 tga_func=___tls_get_addr
23062 x86_64-*-solaris2.1[0-9]*)
23063 on_solaris=yes
23064 tga_func=__tls_get_addr
23067 on_solaris=no
23069 esac
23070 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23071 conftest_s='
23072 .section .tdata,"awt",@progbits'
23073 tls_first_major=0
23074 tls_first_minor=0
23076 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23078 else
23079 conftest_s='
23080 .section ".tdata","awT",@progbits'
23081 tls_first_major=2
23082 tls_first_minor=14
23083 tls_as_opt="--fatal-warnings"
23085 conftest_s="$conftest_s
23086 foo: .long 25
23087 .text
23088 movl %gs:0, %eax
23089 leal foo@tlsgd(,%ebx,1), %eax
23090 leal foo@tlsldm(%ebx), %eax
23091 leal foo@dtpoff(%eax), %edx
23092 movl foo@gottpoff(%ebx), %eax
23093 subl foo@gottpoff(%ebx), %eax
23094 addl foo@gotntpoff(%ebx), %eax
23095 movl foo@indntpoff, %eax
23096 movl \$foo@tpoff, %eax
23097 subl \$foo@tpoff, %eax
23098 leal foo@ntpoff(%ecx), %eax"
23100 x86_64-*-*)
23101 conftest_s='
23102 .section ".tdata","awT",@progbits
23103 foo: .long 25
23104 .text
23105 movq %fs:0, %rax
23106 leaq foo@TLSGD(%rip), %rdi
23107 leaq foo@TLSLD(%rip), %rdi
23108 leaq foo@DTPOFF(%rax), %rdx
23109 movq foo@GOTTPOFF(%rip), %rax
23110 movq $foo@TPOFF, %rax'
23111 tls_first_major=2
23112 tls_first_minor=14
23113 tls_as_opt=--fatal-warnings
23115 ia64-*-*)
23116 conftest_s='
23117 .section ".tdata","awT",@progbits
23118 foo: data8 25
23119 .text
23120 addl r16 = @ltoff(@dtpmod(foo#)), gp
23121 addl r17 = @ltoff(@dtprel(foo#)), gp
23122 addl r18 = @ltoff(@tprel(foo#)), gp
23123 addl r19 = @dtprel(foo#), gp
23124 adds r21 = @dtprel(foo#), r13
23125 movl r23 = @dtprel(foo#)
23126 addl r20 = @tprel(foo#), gp
23127 adds r22 = @tprel(foo#), r13
23128 movl r24 = @tprel(foo#)'
23129 tls_first_major=2
23130 tls_first_minor=13
23131 tls_as_opt=--fatal-warnings
23133 mips*-*-*)
23134 conftest_s='
23135 .section .tdata,"awT",@progbits
23137 .word 2
23138 .text
23139 addiu $4, $28, %tlsgd(x)
23140 addiu $4, $28, %tlsldm(x)
23141 lui $4, %dtprel_hi(x)
23142 addiu $4, $4, %dtprel_lo(x)
23143 lw $4, %gottprel(x)($28)
23144 lui $4, %tprel_hi(x)
23145 addiu $4, $4, %tprel_lo(x)'
23146 tls_first_major=2
23147 tls_first_minor=16
23148 tls_as_opt='-32 --fatal-warnings'
23150 m68k-*-*)
23151 conftest_s='
23152 .section .tdata,"awT",@progbits
23154 .word 2
23155 .text
23156 foo:
23157 move.l x@TLSGD(%a5),%a0
23158 move.l x@TLSLDM(%a5),%a0
23159 move.l x@TLSLDO(%a5),%a0
23160 move.l x@TLSIE(%a5),%a0
23161 move.l x@TLSLE(%a5),%a0'
23162 tls_first_major=2
23163 tls_first_minor=19
23164 tls_as_opt='--fatal-warnings'
23166 powerpc-*-*)
23167 conftest_s='
23168 .section ".tdata","awT",@progbits
23169 .align 2
23170 ld0: .space 4
23171 ld1: .space 4
23172 x1: .space 4
23173 x2: .space 4
23174 x3: .space 4
23175 .text
23176 addi 3,31,ld0@got@tlsgd
23177 bl __tls_get_addr
23178 addi 3,31,x1@got@tlsld
23179 bl __tls_get_addr
23180 addi 9,3,x1@dtprel
23181 addis 9,3,x2@dtprel@ha
23182 addi 9,9,x2@dtprel@l
23183 lwz 9,x3@got@tprel(31)
23184 add 9,9,x@tls
23185 addi 9,2,x1@tprel
23186 addis 9,2,x2@tprel@ha
23187 addi 9,9,x2@tprel@l'
23188 tls_first_major=2
23189 tls_first_minor=14
23190 tls_as_opt="-a32 --fatal-warnings"
23192 powerpc64-*-*)
23193 conftest_s='
23194 .section ".tdata","awT",@progbits
23195 .align 3
23196 ld0: .space 8
23197 ld1: .space 8
23198 x1: .space 8
23199 x2: .space 8
23200 x3: .space 8
23201 .text
23202 addi 3,2,ld0@got@tlsgd
23203 bl .__tls_get_addr
23205 addi 3,2,ld1@toc
23206 bl .__tls_get_addr
23208 addi 3,2,x1@got@tlsld
23209 bl .__tls_get_addr
23211 addi 9,3,x1@dtprel
23212 bl .__tls_get_addr
23214 addis 9,3,x2@dtprel@ha
23215 addi 9,9,x2@dtprel@l
23216 bl .__tls_get_addr
23218 ld 9,x3@got@dtprel(2)
23219 add 9,9,3
23220 bl .__tls_get_addr
23221 nop'
23222 tls_first_major=2
23223 tls_first_minor=14
23224 tls_as_opt="-a64 --fatal-warnings"
23226 s390-*-*)
23227 conftest_s='
23228 .section ".tdata","awT",@progbits
23229 foo: .long 25
23230 .text
23231 .long foo@TLSGD
23232 .long foo@TLSLDM
23233 .long foo@DTPOFF
23234 .long foo@NTPOFF
23235 .long foo@GOTNTPOFF
23236 .long foo@INDNTPOFF
23237 l %r1,foo@GOTNTPOFF(%r12)
23238 l %r1,0(%r1):tls_load:foo
23239 bas %r14,0(%r1,%r13):tls_gdcall:foo
23240 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23241 tls_first_major=2
23242 tls_first_minor=14
23243 tls_as_opt="-m31 --fatal-warnings"
23245 s390x-*-*)
23246 conftest_s='
23247 .section ".tdata","awT",@progbits
23248 foo: .long 25
23249 .text
23250 .quad foo@TLSGD
23251 .quad foo@TLSLDM
23252 .quad foo@DTPOFF
23253 .quad foo@NTPOFF
23254 .quad foo@GOTNTPOFF
23255 lg %r1,foo@GOTNTPOFF(%r12)
23256 larl %r1,foo@INDNTPOFF
23257 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23258 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23259 tls_first_major=2
23260 tls_first_minor=14
23261 tls_as_opt="-m64 -Aesame --fatal-warnings"
23263 sh-*-* | sh[34]-*-*)
23264 conftest_s='
23265 .section ".tdata","awT",@progbits
23266 foo: .long 25
23267 .text
23268 .long foo@TLSGD
23269 .long foo@TLSLDM
23270 .long foo@DTPOFF
23271 .long foo@GOTTPOFF
23272 .long foo@TPOFF'
23273 tls_first_major=2
23274 tls_first_minor=13
23275 tls_as_opt=--fatal-warnings
23277 sparc*-*-*)
23278 case "$target" in
23279 sparc*-sun-solaris2.*)
23280 on_solaris=yes
23281 tga_func=__tls_get_addr
23284 on_solaris=no
23286 esac
23287 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23288 conftest_s='
23289 .section ".tdata",#alloc,#write,#tls'
23290 tls_first_major=0
23291 tls_first_minor=0
23292 else
23293 conftest_s='
23294 .section ".tdata","awT",@progbits'
23295 tls_first_major=2
23296 tls_first_minor=14
23297 tls_as_opt="-32 --fatal-warnings"
23299 conftest_s="$conftest_s
23300 foo: .long 25
23301 .text
23302 sethi %tgd_hi22(foo), %o0
23303 add %o0, %tgd_lo10(foo), %o1
23304 add %l7, %o1, %o0, %tgd_add(foo)
23305 call __tls_get_addr, %tgd_call(foo)
23306 sethi %tldm_hi22(foo), %l1
23307 add %l1, %tldm_lo10(foo), %l2
23308 add %l7, %l2, %o0, %tldm_add(foo)
23309 call __tls_get_addr, %tldm_call(foo)
23310 sethi %tldo_hix22(foo), %l3
23311 xor %l3, %tldo_lox10(foo), %l4
23312 add %o0, %l4, %l5, %tldo_add(foo)
23313 sethi %tie_hi22(foo), %o3
23314 add %o3, %tie_lo10(foo), %o3
23315 ld [%l7 + %o3], %o2, %tie_ld(foo)
23316 add %g7, %o2, %o4, %tie_add(foo)
23317 sethi %tle_hix22(foo), %l1
23318 xor %l1, %tle_lox10(foo), %o5
23319 ld [%g7 + %o5], %o1"
23321 xtensa*-*-*)
23322 conftest_s='
23323 .section ".tdata","awT",@progbits
23324 foo: .long 25
23325 .text
23326 movi a8, foo@TLSFUNC
23327 movi a10, foo@TLSARG
23328 callx8.tls a8, foo@TLSCALL'
23329 tls_first_major=2
23330 tls_first_minor=19
23332 esac
23333 set_have_as_tls=no
23334 if test "x$enable_tls" = xno ; then
23335 : # TLS explicitly disabled.
23336 elif test "x$enable_tls" = xyes ; then
23337 set_have_as_tls=yes # TLS explicitly enabled.
23338 elif test -z "$tls_first_major"; then
23339 : # If we don't have a check, assume no support.
23340 else
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23342 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23343 if test "${gcc_cv_as_tls+set}" = set; then :
23344 $as_echo_n "(cached) " >&6
23345 else
23346 gcc_cv_as_tls=no
23347 if test $in_tree_gas = yes; then
23348 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23349 then gcc_cv_as_tls=yes
23351 elif test x$gcc_cv_as != x; then
23352 $as_echo "$conftest_s" > conftest.s
23353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23355 (eval $ac_try) 2>&5
23356 ac_status=$?
23357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23358 test $ac_status = 0; }; }
23359 then
23360 gcc_cv_as_tls=yes
23361 else
23362 echo "configure: failed program was" >&5
23363 cat conftest.s >&5
23365 rm -f conftest.o conftest.s
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23369 $as_echo "$gcc_cv_as_tls" >&6; }
23370 if test $gcc_cv_as_tls = yes; then
23371 set_have_as_tls=yes
23374 case "$target" in
23375 *-*-irix6*)
23376 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23377 # with TLS support are in use, native TLS cannot work.
23378 set_have_as_tls=no
23380 *-*-osf*)
23381 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23382 # gld with TLS support are in use, native TLS cannot work.
23383 set_have_as_tls=no
23385 # TLS was introduced in the Solaris 9 FCS release and backported to
23386 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23387 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23388 # ld and GCC don't support any longer.
23389 *-*-solaris2.*)
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23391 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23392 ld_tls_support=no
23393 # Check ld and ld.so.1 TLS support.
23394 if echo "$ld_ver" | grep GNU > /dev/null; then
23395 # Assume all interesting versions of GNU ld have TLS support.
23396 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23397 ld_tls_support=yes
23398 else
23399 case "$target" in
23400 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23401 i?86-*-solaris2.8)
23402 min_tls_ld_vers_minor=280
23404 # Solaris 8/SPARC ld has TLS support since version 1.272.
23405 sparc*-*-solaris2.8)
23406 min_tls_ld_vers_minor=272
23408 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23409 i?86-*-solaris2.9)
23410 min_tls_ld_vers_minor=374
23412 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23413 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23414 min_tls_ld_vers_minor=343
23416 esac
23417 if test "$ld_vers_major" -gt 1 || \
23418 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23419 ld_tls_support=yes
23420 else
23421 set_have_as_tls=no
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23425 $as_echo "$ld_tls_support" >&6; }
23427 save_LIBS="$LIBS"
23428 save_LDFLAGS="$LDFLAGS"
23429 LIBS=
23430 LDFLAGS=
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23433 $as_echo_n "checking alternate thread library... " >&6; }
23434 case "$target" in
23435 # TLS support was backported to Solaris 8 patches, but only lives in
23436 # the alternate thread library which became the default in Solaris 9.
23437 # We want to always use that, irrespective of TLS support.
23438 *-*-solaris2.8)
23439 # Take multilib subdir into account. There's no spec to handle
23440 # this. The 64 symlink exists since Solaris 8.
23441 lwp_dir=/usr/lib/lwp
23442 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23443 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23445 *-*-solaris2*)
23446 lwp_dir="none"
23447 lwp_spec=""
23449 esac
23450 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23452 cat >>confdefs.h <<_ACEOF
23453 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23454 _ACEOF
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23457 $as_echo "$lwp_dir" >&6; }
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23460 $as_echo_n "checking library containing $tga_func... " >&6; }
23461 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23462 # (32-bit x86) only lived in libthread, so check for that. Keep
23463 # set_have_as_tls if found, disable if not.
23464 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23466 $as_echo_n "checking for library containing $tga_func... " >&6; }
23467 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23468 $as_echo_n "(cached) " >&6
23469 else
23470 ac_func_search_save_LIBS=$LIBS
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23474 /* Override any GCC internal prototype to avoid an error.
23475 Use char because int might match the return type of a GCC
23476 builtin and then its argument prototype would still apply. */
23477 #ifdef __cplusplus
23478 extern "C"
23479 #endif
23480 char $tga_func ();
23482 main ()
23484 return $tga_func ();
23486 return 0;
23488 _ACEOF
23489 for ac_lib in '' thread; do
23490 if test -z "$ac_lib"; then
23491 ac_res="none required"
23492 else
23493 ac_res=-l$ac_lib
23494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23496 if ac_fn_c_try_link "$LINENO"; then :
23497 eval "$as_ac_Search=\$ac_res"
23499 rm -f core conftest.err conftest.$ac_objext \
23500 conftest$ac_exeext
23501 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23502 break
23504 done
23505 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23507 else
23508 eval "$as_ac_Search=no"
23510 rm conftest.$ac_ext
23511 LIBS=$ac_func_search_save_LIBS
23513 eval ac_res=\$$as_ac_Search
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23515 $as_echo "$ac_res" >&6; }
23516 eval ac_res=\$$as_ac_Search
23517 if test "$ac_res" != no; then :
23518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23520 else
23521 set_have_as_tls=no
23524 # Clear LIBS if we cannot support TLS.
23525 if test $set_have_as_tls = no; then
23526 LIBS=
23528 # Always define LIB_TLS_SPEC, even without TLS support.
23530 cat >>confdefs.h <<_ACEOF
23531 #define LIB_TLS_SPEC "$LIBS"
23532 _ACEOF
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23535 $as_echo "$LIBS" >&6; }
23537 LIBS="$save_LIBS"
23538 LDFLAGS="$save_LDFLAGS"
23540 esac
23541 if test $set_have_as_tls = yes ; then
23543 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23547 # Target-specific assembler checks.
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23550 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23551 gcc_cv_ld_static_dynamic=no
23552 gcc_cv_ld_static_option='-Bstatic'
23553 gcc_cv_ld_dynamic_option='-Bdynamic'
23554 if test $in_tree_ld = yes ; then
23555 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
23556 gcc_cv_ld_static_dynamic=yes
23558 elif test x$gcc_cv_ld != x; then
23559 # Check if linker supports -Bstatic/-Bdynamic option
23560 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23561 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23562 gcc_cv_ld_static_dynamic=yes
23563 else
23564 case "$target" in
23565 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23566 alpha*-dec-osf*)
23567 gcc_cv_ld_static_dynamic=yes
23568 gcc_cv_ld_static_option="-noso"
23569 gcc_cv_ld_dynamic_option="-so_archive"
23571 # HP-UX ld uses -a flags to select between shared and archive.
23572 *-*-hpux*)
23573 if test x"$gnu_ld" = xno; then
23574 gcc_cv_ld_static_dynamic=yes
23575 gcc_cv_ld_static_option="-aarchive_shared"
23576 gcc_cv_ld_dynamic_option="-adefault"
23579 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23580 mips-sgi-irix6*)
23581 gcc_cv_ld_static_dynamic=yes
23583 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23584 *-*-solaris2*)
23585 gcc_cv_ld_static_dynamic=yes
23587 esac
23590 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23592 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23595 cat >>confdefs.h <<_ACEOF
23596 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23597 _ACEOF
23600 cat >>confdefs.h <<_ACEOF
23601 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23602 _ACEOF
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23606 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23608 if test x"$demangler_in_ld" = xyes; then
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23610 $as_echo_n "checking linker --demangle support... " >&6; }
23611 gcc_cv_ld_demangle=no
23612 if test $in_tree_ld = yes; then
23613 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 \
23614 gcc_cv_ld_demangle=yes
23616 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23617 # Check if the GNU linker supports --demangle option
23618 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23619 gcc_cv_ld_demangle=yes
23622 if test x"$gcc_cv_ld_demangle" = xyes; then
23624 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23628 $as_echo "$gcc_cv_ld_demangle" >&6; }
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23632 $as_echo_n "checking linker plugin support... " >&6; }
23633 gcc_cv_lto_plugin=0
23634 if test -f liblto_plugin.la; then
23635 save_ld_ver="$ld_ver"
23636 save_ld_vers_major="$ld_vers_major"
23637 save_ld_vers_minor="$ld_vers_minor"
23638 save_ld_is_gold="$ld_is_gold"
23640 ld_is_gold=no
23642 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23643 ld_ver="GNU ld"
23644 # FIXME: ld_is_gold?
23645 ld_vers_major="$gcc_cv_gld_major_version"
23646 ld_vers_minor="$gcc_cv_gld_minor_version"
23647 else
23648 # Determine plugin linker version.
23649 # FIXME: Partial duplicate from above, generalize.
23650 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23651 if echo "$ld_ver" | grep GNU > /dev/null; then
23652 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23653 ld_is_gold=yes
23654 ld_vers=`echo $ld_ver | sed -n \
23655 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23656 else
23657 ld_vers=`echo $ld_ver | sed -n \
23658 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23660 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23661 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23665 # Determine plugin support.
23666 if echo "$ld_ver" | grep GNU > /dev/null; then
23667 # Require GNU ld or gold 2.21+ for plugin support by default.
23668 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23669 gcc_cv_lto_plugin=2
23670 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23671 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23672 gcc_cv_lto_plugin=1
23676 ld_ver="$save_ld_ver"
23677 ld_vers_major="$save_ld_vers_major"
23678 ld_vers_minor="$save_ld_vers_minor"
23679 ld_is_gold="$save_ld_is_gold"
23682 cat >>confdefs.h <<_ACEOF
23683 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23684 _ACEOF
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23687 $as_echo "$gcc_cv_lto_plugin" >&6; }
23689 case "$target" in
23690 # All TARGET_ABI_OSF targets.
23691 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23693 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23694 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23695 $as_echo_n "(cached) " >&6
23696 else
23697 gcc_cv_as_alpha_explicit_relocs=no
23698 if test $in_tree_gas = yes; then
23699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23700 then gcc_cv_as_alpha_explicit_relocs=yes
23702 elif test x$gcc_cv_as != x; then
23703 $as_echo ' .set nomacro
23704 .text
23705 extbl $3, $2, $3 !lituse_bytoff!1
23706 ldq $2, a($29) !literal!1
23707 ldq $4, b($29) !literal!2
23708 ldq_u $3, 0($2) !lituse_base!1
23709 ldq $27, f($29) !literal!5
23710 jsr $26, ($27), f !lituse_jsr!5
23711 ldah $29, 0($26) !gpdisp!3
23712 lda $0, c($29) !gprel
23713 ldah $1, d($29) !gprelhigh
23714 lda $1, d($1) !gprellow
23715 lda $29, 0($29) !gpdisp!3' > conftest.s
23716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23721 test $ac_status = 0; }; }
23722 then
23723 gcc_cv_as_alpha_explicit_relocs=yes
23724 else
23725 echo "configure: failed program was" >&5
23726 cat conftest.s >&5
23728 rm -f conftest.o conftest.s
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23732 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23733 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23735 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23739 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23740 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23741 $as_echo_n "(cached) " >&6
23742 else
23743 gcc_cv_as_alpha_jsrdirect_relocs=no
23744 if test $in_tree_gas = yes; then
23745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23746 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23748 elif test x$gcc_cv_as != x; then
23749 $as_echo ' .set nomacro
23750 .text
23751 ldq $27, a($29) !literal!1
23752 jsr $26, ($27), a !lituse_jsrdirect!1' > 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_alpha_jsrdirect_relocs=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_alpha_jsrdirect_relocs" >&5
23769 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23770 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23772 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23777 cris-*-*)
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23779 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23780 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23781 $as_echo_n "(cached) " >&6
23782 else
23783 gcc_cv_as_cris_no_mul_bug=no
23784 if test $in_tree_gas = yes; then
23785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23786 then gcc_cv_as_cris_no_mul_bug=yes
23788 elif test x$gcc_cv_as != x; then
23789 $as_echo '.text' > conftest.s
23790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795 test $ac_status = 0; }; }
23796 then
23797 gcc_cv_as_cris_no_mul_bug=yes
23798 else
23799 echo "configure: failed program was" >&5
23800 cat conftest.s >&5
23802 rm -f conftest.o conftest.s
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23806 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23807 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23809 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23814 sparc*-*-*)
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23816 $as_echo_n "checking assembler for .register... " >&6; }
23817 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23818 $as_echo_n "(cached) " >&6
23819 else
23820 gcc_cv_as_sparc_register_op=no
23821 if test x$gcc_cv_as != x; then
23822 $as_echo '.register %g2, #scratch' > conftest.s
23823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }
23829 then
23830 gcc_cv_as_sparc_register_op=yes
23831 else
23832 echo "configure: failed program was" >&5
23833 cat conftest.s >&5
23835 rm -f conftest.o conftest.s
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23839 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23840 if test $gcc_cv_as_sparc_register_op = yes; then
23842 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23847 $as_echo_n "checking assembler for -relax option... " >&6; }
23848 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23849 $as_echo_n "(cached) " >&6
23850 else
23851 gcc_cv_as_sparc_relax=no
23852 if test x$gcc_cv_as != x; then
23853 $as_echo '.text' > conftest.s
23854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23856 (eval $ac_try) 2>&5
23857 ac_status=$?
23858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23859 test $ac_status = 0; }; }
23860 then
23861 gcc_cv_as_sparc_relax=yes
23862 else
23863 echo "configure: failed program was" >&5
23864 cat conftest.s >&5
23866 rm -f conftest.o conftest.s
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23870 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23871 if test $gcc_cv_as_sparc_relax = yes; then
23873 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23878 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23879 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23880 $as_echo_n "(cached) " >&6
23881 else
23882 gcc_cv_as_sparc_gotdata_op=no
23883 if test x$gcc_cv_as != x; then
23884 $as_echo '.text
23885 .align 4
23886 foo:
23888 bar:
23889 sethi %gdop_hix22(foo), %g1
23890 xor %g1, %gdop_lox10(foo), %g1
23891 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23894 (eval $ac_try) 2>&5
23895 ac_status=$?
23896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23897 test $ac_status = 0; }; }
23898 then
23899 if test x$gcc_cv_ld != x \
23900 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23901 if test x$gcc_cv_objdump != x; then
23902 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23903 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23904 gcc_cv_as_sparc_gotdata_op=no
23905 else
23906 gcc_cv_as_sparc_gotdata_op=yes
23910 rm -f conftest
23911 else
23912 echo "configure: failed program was" >&5
23913 cat conftest.s >&5
23915 rm -f conftest.o conftest.s
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23919 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23920 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23922 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23927 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23928 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23929 $as_echo_n "(cached) " >&6
23930 else
23931 gcc_cv_as_sparc_ua_pcrel=no
23932 if test x$gcc_cv_as != x; then
23933 $as_echo '.text
23934 foo:
23936 .data
23937 .align 4
23938 .byte 0
23939 .uaword %r_disp32(foo)' > conftest.s
23940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23942 (eval $ac_try) 2>&5
23943 ac_status=$?
23944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23945 test $ac_status = 0; }; }
23946 then
23947 if test x$gcc_cv_ld != x \
23948 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23949 gcc_cv_as_sparc_ua_pcrel=yes
23951 rm -f conftest
23952 else
23953 echo "configure: failed program was" >&5
23954 cat conftest.s >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23960 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23961 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23963 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23967 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23968 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23969 $as_echo_n "(cached) " >&6
23970 else
23971 gcc_cv_as_sparc_ua_pcrel_hidden=no
23972 if test x$gcc_cv_as != x; then
23973 $as_echo '.data
23974 .align 4
23975 .byte 0x31
23976 .uaword %r_disp32(foo)
23977 .byte 0x32, 0x33, 0x34
23978 .global foo
23979 .hidden foo
23980 foo:
23981 .skip 4' > conftest.s
23982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23984 (eval $ac_try) 2>&5
23985 ac_status=$?
23986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23987 test $ac_status = 0; }; }
23988 then
23989 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23990 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23991 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23992 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23993 if $gcc_cv_objdump -R conftest 2> /dev/null \
23994 | grep 'DISP32' > /dev/null 2>&1; then
23996 else
23997 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24000 rm -f conftest
24001 else
24002 echo "configure: failed program was" >&5
24003 cat conftest.s >&5
24005 rm -f conftest.o conftest.s
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24009 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24010 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24012 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24016 fi # unaligned pcrel relocs
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24019 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24020 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24021 $as_echo_n "(cached) " >&6
24022 else
24023 gcc_cv_as_sparc_offsetable_lo10=no
24024 if test x$gcc_cv_as != x; then
24025 $as_echo '.text
24026 or %g1, %lo(ab) + 12, %g1
24027 or %g1, %lo(ab + 12), %g1' > conftest.s
24028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24030 (eval $ac_try) 2>&5
24031 ac_status=$?
24032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24033 test $ac_status = 0; }; }
24034 then
24035 if test x$gcc_cv_objdump != x \
24036 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24037 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24038 gcc_cv_as_sparc_offsetable_lo10=yes
24040 else
24041 echo "configure: failed program was" >&5
24042 cat conftest.s >&5
24044 rm -f conftest.o conftest.s
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24048 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24049 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24051 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24056 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24057 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24059 else
24060 gcc_cv_as_sparc_fmaf=no
24061 if test x$gcc_cv_as != x; then
24062 $as_echo '.text
24063 .register %g2, #scratch
24064 .register %g3, #scratch
24065 .align 4
24066 fmaddd %f0, %f2, %f4, %f6
24067 addxccc %g1, %g2, %g3
24068 fsrl32 %f2, %f4, %f8
24069 fnaddd %f10, %f12, %f14' > conftest.s
24070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24075 test $ac_status = 0; }; }
24076 then
24077 gcc_cv_as_sparc_fmaf=yes
24078 else
24079 echo "configure: failed program was" >&5
24080 cat conftest.s >&5
24082 rm -f conftest.o conftest.s
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24086 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24087 if test $gcc_cv_as_sparc_fmaf = yes; then
24089 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24094 i[34567]86-*-* | x86_64-*-*)
24095 case $target_os in
24096 cygwin*)
24097 # Full C++ conformance when using a shared libstdc++-v3 requires some
24098 # support from the Cygwin DLL, which in more recent versions exports
24099 # wrappers to aid in interposing and redirecting operators new, delete,
24100 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24101 # are configuring for a version of Cygwin that exports the wrappers.
24102 if test x$host = x$target; then
24103 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24104 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24105 gcc_ac_cygwin_dll_wrappers=yes
24106 else
24107 gcc_ac_cygwin_dll_wrappers=no
24110 else
24111 # Can't check presence of libc functions during cross-compile, so
24112 # we just have to assume we're building for an up-to-date target.
24113 gcc_ac_cygwin_dll_wrappers=yes
24116 cat >>confdefs.h <<_ACEOF
24117 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24118 _ACEOF
24120 esac
24121 case $target_os in
24122 cygwin* | pe | mingw32*)
24123 # Recent binutils allows the three-operand form of ".comm" on PE. This
24124 # definition is used unconditionally to initialise the default state of
24125 # the target option variable that governs usage of the feature.
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24127 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24128 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24129 $as_echo_n "(cached) " >&6
24130 else
24131 gcc_cv_as_comm_has_align=no
24132 if test $in_tree_gas = yes; then
24133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24134 then gcc_cv_as_comm_has_align=yes
24136 elif test x$gcc_cv_as != x; then
24137 $as_echo '.comm foo,1,32' > conftest.s
24138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143 test $ac_status = 0; }; }
24144 then
24145 gcc_cv_as_comm_has_align=yes
24146 else
24147 echo "configure: failed program was" >&5
24148 cat conftest.s >&5
24150 rm -f conftest.o conftest.s
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24154 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24157 cat >>confdefs.h <<_ACEOF
24158 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24159 _ACEOF
24161 # Used for DWARF 2 in PE
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24163 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24164 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24165 $as_echo_n "(cached) " >&6
24166 else
24167 gcc_cv_as_ix86_pe_secrel32=no
24168 if test $in_tree_gas = yes; then
24169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24170 then gcc_cv_as_ix86_pe_secrel32=yes
24172 elif test x$gcc_cv_as != x; then
24173 $as_echo '.text
24174 foo: nop
24175 .data
24176 .secrel32 foo' > conftest.s
24177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179 (eval $ac_try) 2>&5
24180 ac_status=$?
24181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182 test $ac_status = 0; }; }
24183 then
24184 if test x$gcc_cv_ld != x \
24185 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24186 gcc_cv_as_ix86_pe_secrel32=yes
24188 rm -f conftest
24189 else
24190 echo "configure: failed program was" >&5
24191 cat conftest.s >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24197 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24198 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24200 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24203 # Test if the assembler supports the extended form of the .section
24204 # directive that specifies section alignment. LTO support uses this,
24205 # but normally only after installation, so we warn but don't fail the
24206 # configure if LTO is enabled but the assembler does not support it.
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24208 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24209 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24210 $as_echo_n "(cached) " >&6
24211 else
24212 gcc_cv_as_section_has_align=no
24213 if test $in_tree_gas = yes; then
24214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24215 then gcc_cv_as_section_has_align=yes
24217 elif test x$gcc_cv_as != x; then
24218 $as_echo '.section lto_test,"dr0"' > conftest.s
24219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24221 (eval $ac_try) 2>&5
24222 ac_status=$?
24223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24224 test $ac_status = 0; }; }
24225 then
24226 gcc_cv_as_section_has_align=yes
24227 else
24228 echo "configure: failed program was" >&5
24229 cat conftest.s >&5
24231 rm -f conftest.o conftest.s
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24235 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24237 if test x$gcc_cv_as_section_has_align != xyes; then
24238 case ",$enable_languages," in
24239 *,lto,*)
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24241 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24243 esac
24245 # Test if the assembler supports the section flag 'e' for specifying
24246 # an excluded section.
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24248 $as_echo_n "checking assembler for .section with e... " >&6; }
24249 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24250 $as_echo_n "(cached) " >&6
24251 else
24252 gcc_cv_as_section_has_e=no
24253 if test $in_tree_gas = yes; then
24254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24255 then gcc_cv_as_section_has_e=yes
24257 elif test x$gcc_cv_as != x; then
24258 $as_echo '.section foo1,"e"
24259 .byte 0,0,0,0' > conftest.s
24260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; }
24266 then
24267 gcc_cv_as_section_has_e=yes
24268 else
24269 echo "configure: failed program was" >&5
24270 cat conftest.s >&5
24272 rm -f conftest.o conftest.s
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24276 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24279 cat >>confdefs.h <<_ACEOF
24280 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24281 _ACEOF
24284 esac
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24287 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24288 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24289 $as_echo_n "(cached) " >&6
24290 else
24291 gcc_cv_as_ix86_filds=no
24292 if test x$gcc_cv_as != x; then
24293 $as_echo 'filds mem; fists mem' > conftest.s
24294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }; }
24300 then
24301 gcc_cv_as_ix86_filds=yes
24302 else
24303 echo "configure: failed program was" >&5
24304 cat conftest.s >&5
24306 rm -f conftest.o conftest.s
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24310 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24311 if test $gcc_cv_as_ix86_filds = yes; then
24313 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24318 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24319 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24320 $as_echo_n "(cached) " >&6
24321 else
24322 gcc_cv_as_ix86_fildq=no
24323 if test x$gcc_cv_as != x; then
24324 $as_echo 'fildq mem; fistpq mem' > conftest.s
24325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24330 test $ac_status = 0; }; }
24331 then
24332 gcc_cv_as_ix86_fildq=yes
24333 else
24334 echo "configure: failed program was" >&5
24335 cat conftest.s >&5
24337 rm -f conftest.o conftest.s
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24341 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24342 if test $gcc_cv_as_ix86_fildq = yes; then
24344 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24349 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24350 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24351 $as_echo_n "(cached) " >&6
24352 else
24353 gcc_cv_as_ix86_cmov_sun_syntax=no
24354 if test x$gcc_cv_as != x; then
24355 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24361 test $ac_status = 0; }; }
24362 then
24363 gcc_cv_as_ix86_cmov_sun_syntax=yes
24364 else
24365 echo "configure: failed program was" >&5
24366 cat conftest.s >&5
24368 rm -f conftest.o conftest.s
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24372 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24373 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24375 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24380 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24381 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24383 else
24384 gcc_cv_as_ix86_ffreep=no
24385 if test x$gcc_cv_as != x; then
24386 $as_echo 'ffreep %st(1)' > conftest.s
24387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24389 (eval $ac_try) 2>&5
24390 ac_status=$?
24391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24392 test $ac_status = 0; }; }
24393 then
24394 gcc_cv_as_ix86_ffreep=yes
24395 else
24396 echo "configure: failed program was" >&5
24397 cat conftest.s >&5
24399 rm -f conftest.o conftest.s
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24403 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24404 if test $gcc_cv_as_ix86_ffreep = yes; then
24406 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24411 $as_echo_n "checking assembler for .quad directive... " >&6; }
24412 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24414 else
24415 gcc_cv_as_ix86_quad=no
24416 if test x$gcc_cv_as != x; then
24417 $as_echo '.quad 0' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24424 then
24425 gcc_cv_as_ix86_quad=yes
24426 else
24427 echo "configure: failed program was" >&5
24428 cat conftest.s >&5
24430 rm -f conftest.o conftest.s
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24434 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24435 if test $gcc_cv_as_ix86_quad = yes; then
24437 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24442 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24443 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24445 else
24446 gcc_cv_as_ix86_sahf=no
24447 if test x$gcc_cv_as != x; then
24448 $as_echo '.code64
24449 sahf' > conftest.s
24450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24453 ac_status=$?
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; }
24456 then
24457 gcc_cv_as_ix86_sahf=yes
24458 else
24459 echo "configure: failed program was" >&5
24460 cat conftest.s >&5
24462 rm -f conftest.o conftest.s
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24466 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24467 if test $gcc_cv_as_ix86_sahf = yes; then
24469 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24474 $as_echo_n "checking assembler for swap suffix... " >&6; }
24475 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 gcc_cv_as_ix86_swap=no
24479 if test x$gcc_cv_as != x; then
24480 $as_echo 'movl.s %esp, %ebp' > conftest.s
24481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486 test $ac_status = 0; }; }
24487 then
24488 gcc_cv_as_ix86_swap=yes
24489 else
24490 echo "configure: failed program was" >&5
24491 cat conftest.s >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24497 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24498 if test $gcc_cv_as_ix86_swap = yes; then
24500 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24505 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24506 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24508 else
24509 gcc_cv_as_ix86_diff_sect_delta=no
24510 if test x$gcc_cv_as != x; then
24511 $as_echo '.section .rodata
24512 .L1:
24513 .long .L2-.L1
24514 .long .L3-.L1
24515 .text
24516 .L3: nop
24517 .L2: nop' > conftest.s
24518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24520 (eval $ac_try) 2>&5
24521 ac_status=$?
24522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24523 test $ac_status = 0; }; }
24524 then
24525 gcc_cv_as_ix86_diff_sect_delta=yes
24526 else
24527 echo "configure: failed program was" >&5
24528 cat conftest.s >&5
24530 rm -f conftest.o conftest.s
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24534 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24535 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24537 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24541 # These two are used unconditionally by i386.[ch]; it is to be defined
24542 # to 1 if the feature is present, 0 otherwise.
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24544 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24545 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24546 $as_echo_n "(cached) " >&6
24547 else
24548 gcc_cv_as_ix86_gotoff_in_data=no
24549 if test $in_tree_gas = yes; then
24550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24551 then gcc_cv_as_ix86_gotoff_in_data=yes
24553 elif test x$gcc_cv_as != x; then
24554 $as_echo ' .text
24555 .L0:
24557 .data
24558 .long .L0@GOTOFF' > conftest.s
24559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24561 (eval $ac_try) 2>&5
24562 ac_status=$?
24563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24564 test $ac_status = 0; }; }
24565 then
24566 gcc_cv_as_ix86_gotoff_in_data=yes
24567 else
24568 echo "configure: failed program was" >&5
24569 cat conftest.s >&5
24571 rm -f conftest.o conftest.s
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24575 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24578 cat >>confdefs.h <<_ACEOF
24579 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24580 _ACEOF
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24584 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24585 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24586 $as_echo_n "(cached) " >&6
24587 else
24588 gcc_cv_as_ix86_rep_lock_prefix=no
24589 if test x$gcc_cv_as != x; then
24590 $as_echo 'rep movsl
24591 lock addl %edi, (%eax,%esi)
24592 lock orl $0, (%esp)' > conftest.s
24593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24595 (eval $ac_try) 2>&5
24596 ac_status=$?
24597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24598 test $ac_status = 0; }; }
24599 then
24600 gcc_cv_as_ix86_rep_lock_prefix=yes
24601 else
24602 echo "configure: failed program was" >&5
24603 cat conftest.s >&5
24605 rm -f conftest.o conftest.s
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24609 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24610 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24612 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24617 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24618 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24619 $as_echo_n "(cached) " >&6
24620 else
24621 gcc_cv_as_ix86_tlsgdplt=no
24622 if test x$gcc_cv_as != x; then
24623 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24629 test $ac_status = 0; }; }
24630 then
24631 gcc_cv_as_ix86_tlsgdplt=yes
24632 else
24633 echo "configure: failed program was" >&5
24634 cat conftest.s >&5
24636 rm -f conftest.o conftest.s
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24640 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24641 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24643 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24648 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24649 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24650 $as_echo_n "(cached) " >&6
24651 else
24652 gcc_cv_as_ix86_tlsldmplt=no
24653 if test x$gcc_cv_as != x; then
24654 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660 test $ac_status = 0; }; }
24661 then
24662 gcc_cv_as_ix86_tlsldmplt=yes
24663 else
24664 echo "configure: failed program was" >&5
24665 cat conftest.s >&5
24667 rm -f conftest.o conftest.s
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24671 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24672 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24674 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24680 ia64*-*-*)
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24682 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24683 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24689 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24691 elif test x$gcc_cv_as != x; then
24692 $as_echo ' .text
24693 addl r15 = @ltoffx(x#), gp
24695 ld8.mov r16 = [r15], x#' > conftest.s
24696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24702 then
24703 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24704 else
24705 echo "configure: failed program was" >&5
24706 cat conftest.s >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24712 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24713 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24715 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24721 powerpc*-*-*)
24722 case $target in
24723 *-*-aix*) conftest_s=' .machine "pwr5"
24724 .csect .text[PR]
24725 mfcr 3,128';;
24726 *-*-darwin*)
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24728 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24729 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24731 else
24732 gcc_cv_as_machine_directive=no
24733 if test x$gcc_cv_as != x; then
24734 $as_echo ' .machine ppc7400' > conftest.s
24735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740 test $ac_status = 0; }; }
24741 then
24742 gcc_cv_as_machine_directive=yes
24743 else
24744 echo "configure: failed program was" >&5
24745 cat conftest.s >&5
24747 rm -f conftest.o conftest.s
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24751 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24753 if test x$gcc_cv_as_machine_directive != xyes; then
24754 echo "*** This target requires an assembler supporting \".machine\"" >&2
24755 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24756 test x$build = x$target && exit 1
24758 conftest_s=' .text
24759 mfcr r3,128';;
24760 *) conftest_s=' .machine power4
24761 .text
24762 mfcr 3,128';;
24763 esac
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24766 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24767 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24769 else
24770 gcc_cv_as_powerpc_mfcrf=no
24771 if test $in_tree_gas = yes; then
24772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24773 then gcc_cv_as_powerpc_mfcrf=yes
24775 elif test x$gcc_cv_as != x; then
24776 $as_echo "$conftest_s" > conftest.s
24777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24782 test $ac_status = 0; }; }
24783 then
24784 gcc_cv_as_powerpc_mfcrf=yes
24785 else
24786 echo "configure: failed program was" >&5
24787 cat conftest.s >&5
24789 rm -f conftest.o conftest.s
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24793 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24794 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24796 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24800 case $target in
24801 *-*-aix*) conftest_s=' .machine "pwr5"
24802 .csect .text[PR]
24803 popcntb 3,3';;
24804 *) conftest_s=' .machine power5
24805 .text
24806 popcntb 3,3';;
24807 esac
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24810 $as_echo_n "checking assembler for popcntb support... " >&6; }
24811 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24812 $as_echo_n "(cached) " >&6
24813 else
24814 gcc_cv_as_powerpc_popcntb=no
24815 if test $in_tree_gas = yes; then
24816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24817 then gcc_cv_as_powerpc_popcntb=yes
24819 elif test x$gcc_cv_as != x; then
24820 $as_echo "$conftest_s" > conftest.s
24821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24823 (eval $ac_try) 2>&5
24824 ac_status=$?
24825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24826 test $ac_status = 0; }; }
24827 then
24828 gcc_cv_as_powerpc_popcntb=yes
24829 else
24830 echo "configure: failed program was" >&5
24831 cat conftest.s >&5
24833 rm -f conftest.o conftest.s
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24837 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24838 if test $gcc_cv_as_powerpc_popcntb = yes; then
24840 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24844 case $target in
24845 *-*-aix*) conftest_s=' .machine "pwr5x"
24846 .csect .text[PR]
24847 frin 1,1';;
24848 *) conftest_s=' .machine power5
24849 .text
24850 frin 1,1';;
24851 esac
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24854 $as_echo_n "checking assembler for fp round support... " >&6; }
24855 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_powerpc_fprnd=no
24859 if test $in_tree_gas = yes; then
24860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24861 then gcc_cv_as_powerpc_fprnd=yes
24863 elif test x$gcc_cv_as != x; then
24864 $as_echo "$conftest_s" > conftest.s
24865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24867 (eval $ac_try) 2>&5
24868 ac_status=$?
24869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24870 test $ac_status = 0; }; }
24871 then
24872 gcc_cv_as_powerpc_fprnd=yes
24873 else
24874 echo "configure: failed program was" >&5
24875 cat conftest.s >&5
24877 rm -f conftest.o conftest.s
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24881 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24882 if test $gcc_cv_as_powerpc_fprnd = yes; then
24884 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24888 case $target in
24889 *-*-aix*) conftest_s=' .machine "pwr6"
24890 .csect .text[PR]
24891 mffgpr 1,3';;
24892 *) conftest_s=' .machine power6
24893 .text
24894 mffgpr 1,3';;
24895 esac
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24898 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24899 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24900 $as_echo_n "(cached) " >&6
24901 else
24902 gcc_cv_as_powerpc_mfpgpr=no
24903 if test $in_tree_gas = yes; then
24904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24905 then gcc_cv_as_powerpc_mfpgpr=yes
24907 elif test x$gcc_cv_as != x; then
24908 $as_echo "$conftest_s" > conftest.s
24909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24915 then
24916 gcc_cv_as_powerpc_mfpgpr=yes
24917 else
24918 echo "configure: failed program was" >&5
24919 cat conftest.s >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24925 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24926 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24928 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24932 case $target in
24933 *-*-aix*) conftest_s=' .csect .text[PR]
24934 LCF..0:
24935 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24936 *-*-darwin*)
24937 conftest_s=' .text
24938 LCF0:
24939 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24940 *) conftest_s=' .text
24941 .LCF0:
24942 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24943 esac
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24946 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24947 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24948 $as_echo_n "(cached) " >&6
24949 else
24950 gcc_cv_as_powerpc_rel16=no
24951 if test $in_tree_gas = yes; then
24952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24953 then gcc_cv_as_powerpc_rel16=yes
24955 elif test x$gcc_cv_as != x; then
24956 $as_echo "$conftest_s" > conftest.s
24957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24959 (eval $ac_try) 2>&5
24960 ac_status=$?
24961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24962 test $ac_status = 0; }; }
24963 then
24964 gcc_cv_as_powerpc_rel16=yes
24965 else
24966 echo "configure: failed program was" >&5
24967 cat conftest.s >&5
24969 rm -f conftest.o conftest.s
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24973 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24974 if test $gcc_cv_as_powerpc_rel16 = yes; then
24976 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24980 case $target in
24981 *-*-aix*) conftest_s=' .machine "pwr6"
24982 .csect .text[PR]
24983 cmpb 3,4,5';;
24984 *) conftest_s=' .machine power6
24985 .text
24986 cmpb 3,4,5';;
24987 esac
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24990 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24991 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24993 else
24994 gcc_cv_as_powerpc_cmpb=no
24995 if test $in_tree_gas = yes; then
24996 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24997 then gcc_cv_as_powerpc_cmpb=yes
24999 elif test x$gcc_cv_as != x; then
25000 $as_echo "$conftest_s" > conftest.s
25001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006 test $ac_status = 0; }; }
25007 then
25008 gcc_cv_as_powerpc_cmpb=yes
25009 else
25010 echo "configure: failed program was" >&5
25011 cat conftest.s >&5
25013 rm -f conftest.o conftest.s
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25017 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25018 if test $gcc_cv_as_powerpc_cmpb = yes; then
25020 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25024 case $target in
25025 *-*-aix*) conftest_s=' .machine "pwr6"
25026 .csect .text[PR]
25027 dadd 1,2,3';;
25028 *) conftest_s=' .machine power6
25029 .text
25030 dadd 1,2,3';;
25031 esac
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25034 $as_echo_n "checking assembler for decimal float support... " >&6; }
25035 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25036 $as_echo_n "(cached) " >&6
25037 else
25038 gcc_cv_as_powerpc_dfp=no
25039 if test $in_tree_gas = yes; then
25040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25041 then gcc_cv_as_powerpc_dfp=yes
25043 elif test x$gcc_cv_as != x; then
25044 $as_echo "$conftest_s" > conftest.s
25045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25047 (eval $ac_try) 2>&5
25048 ac_status=$?
25049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25050 test $ac_status = 0; }; }
25051 then
25052 gcc_cv_as_powerpc_dfp=yes
25053 else
25054 echo "configure: failed program was" >&5
25055 cat conftest.s >&5
25057 rm -f conftest.o conftest.s
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25061 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25062 if test $gcc_cv_as_powerpc_dfp = yes; then
25064 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25068 case $target in
25069 *-*-aix*) conftest_s=' .machine "pwr7"
25070 .csect .text[PR]
25071 lxvd2x 1,2,3';;
25072 *) conftest_s=' .machine power7
25073 .text
25074 lxvd2x 1,2,3';;
25075 esac
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25078 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25079 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25080 $as_echo_n "(cached) " >&6
25081 else
25082 gcc_cv_as_powerpc_vsx=no
25083 if test $in_tree_gas = yes; then
25084 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25085 then gcc_cv_as_powerpc_vsx=yes
25087 elif test x$gcc_cv_as != x; then
25088 $as_echo "$conftest_s" > conftest.s
25089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094 test $ac_status = 0; }; }
25095 then
25096 gcc_cv_as_powerpc_vsx=yes
25097 else
25098 echo "configure: failed program was" >&5
25099 cat conftest.s >&5
25101 rm -f conftest.o conftest.s
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25105 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25106 if test $gcc_cv_as_powerpc_vsx = yes; then
25108 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25112 case $target in
25113 *-*-aix*) conftest_s=' .machine "pwr7"
25114 .csect .text[PR]
25115 popcntd 3,3';;
25116 *) conftest_s=' .machine power7
25117 .text
25118 popcntd 3,3';;
25119 esac
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25122 $as_echo_n "checking assembler for popcntd support... " >&6; }
25123 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25124 $as_echo_n "(cached) " >&6
25125 else
25126 gcc_cv_as_powerpc_popcntd=no
25127 if test $in_tree_gas = yes; then
25128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25129 then gcc_cv_as_powerpc_popcntd=yes
25131 elif test x$gcc_cv_as != x; then
25132 $as_echo "$conftest_s" > conftest.s
25133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }
25139 then
25140 gcc_cv_as_powerpc_popcntd=yes
25141 else
25142 echo "configure: failed program was" >&5
25143 cat conftest.s >&5
25145 rm -f conftest.o conftest.s
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25149 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25150 if test $gcc_cv_as_powerpc_popcntd = yes; then
25152 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25156 case $target in
25157 *-*-aix*) conftest_s=' .csect .text[PR]
25158 lwsync';;
25159 *) conftest_s=' .text
25160 lwsync';;
25161 esac
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25164 $as_echo_n "checking assembler for lwsync support... " >&6; }
25165 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25167 else
25168 gcc_cv_as_powerpc_lwsync=no
25169 if test $in_tree_gas = yes; then
25170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25171 then gcc_cv_as_powerpc_lwsync=yes
25173 elif test x$gcc_cv_as != x; then
25174 $as_echo "$conftest_s" > conftest.s
25175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }
25181 then
25182 gcc_cv_as_powerpc_lwsync=yes
25183 else
25184 echo "configure: failed program was" >&5
25185 cat conftest.s >&5
25187 rm -f conftest.o conftest.s
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25191 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25192 if test $gcc_cv_as_powerpc_lwsync = yes; then
25194 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25198 case $target in
25199 *-*-aix*) conftest_s=' .machine "476"
25200 .csect .text[PR]
25201 dci 0';;
25202 *) conftest_s=' .machine "476"
25203 .text
25204 dci 0';;
25205 esac
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25208 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25209 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25210 $as_echo_n "(cached) " >&6
25211 else
25212 gcc_cv_as_powerpc_dci=no
25213 if test $in_tree_gas = yes; then
25214 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25215 then gcc_cv_as_powerpc_dci=yes
25217 elif test x$gcc_cv_as != x; then
25218 $as_echo "$conftest_s" > conftest.s
25219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224 test $ac_status = 0; }; }
25225 then
25226 gcc_cv_as_powerpc_dci=yes
25227 else
25228 echo "configure: failed program was" >&5
25229 cat conftest.s >&5
25231 rm -f conftest.o conftest.s
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25235 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25236 if test $gcc_cv_as_powerpc_dci = yes; then
25238 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25243 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25244 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_powerpc_gnu_attribute=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25250 then gcc_cv_as_powerpc_gnu_attribute=yes
25252 elif test x$gcc_cv_as != x; then
25253 $as_echo '.gnu_attribute 4,1' > conftest.s
25254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25260 then
25261 gcc_cv_as_powerpc_gnu_attribute=yes
25262 else
25263 echo "configure: failed program was" >&5
25264 cat conftest.s >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25270 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25271 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25273 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25278 $as_echo_n "checking assembler for tls marker support... " >&6; }
25279 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25280 $as_echo_n "(cached) " >&6
25281 else
25282 gcc_cv_as_powerpc_tls_markers=no
25283 if test $in_tree_gas = yes; then
25284 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25285 then gcc_cv_as_powerpc_tls_markers=yes
25287 elif test x$gcc_cv_as != x; then
25288 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25295 then
25296 gcc_cv_as_powerpc_tls_markers=yes
25297 else
25298 echo "configure: failed program was" >&5
25299 cat conftest.s >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25305 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25306 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25308 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25312 case $target in
25313 *-*-aix*)
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25315 $as_echo_n "checking assembler for .ref support... " >&6; }
25316 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 gcc_cv_as_aix_ref=no
25320 if test $in_tree_gas = yes; then
25321 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25322 then :
25324 elif test x$gcc_cv_as != x; then
25325 $as_echo ' .csect stuff[rw]
25326 stuff:
25327 .long 1
25328 .extern sym
25329 .ref sym
25330 ' > conftest.s
25331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25337 then
25338 gcc_cv_as_aix_ref=yes
25339 else
25340 echo "configure: failed program was" >&5
25341 cat conftest.s >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25347 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25348 if test $gcc_cv_as_aix_ref = yes; then
25350 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25354 esac
25357 mips*-*-*)
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25359 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25360 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25362 else
25363 gcc_cv_as_mips_explicit_relocs=no
25364 if test $in_tree_gas = yes; then
25365 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25366 then gcc_cv_as_mips_explicit_relocs=yes
25368 elif test x$gcc_cv_as != x; then
25369 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25376 then
25377 gcc_cv_as_mips_explicit_relocs=yes
25378 else
25379 echo "configure: failed program was" >&5
25380 cat conftest.s >&5
25382 rm -f conftest.o conftest.s
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25386 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25387 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25388 if test x$target_cpu_default = x
25389 then target_cpu_default=MASK_EXPLICIT_RELOCS
25390 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25394 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25395 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25397 else
25398 gcc_cv_as_mips_no_shared=no
25399 if test $in_tree_gas = yes; then
25400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25401 then gcc_cv_as_mips_no_shared=yes
25403 elif test x$gcc_cv_as != x; then
25404 $as_echo 'nop' > conftest.s
25405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410 test $ac_status = 0; }; }
25411 then
25412 gcc_cv_as_mips_no_shared=yes
25413 else
25414 echo "configure: failed program was" >&5
25415 cat conftest.s >&5
25417 rm -f conftest.o conftest.s
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25421 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25422 if test $gcc_cv_as_mips_no_shared = yes; then
25424 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25429 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25430 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25431 $as_echo_n "(cached) " >&6
25432 else
25433 gcc_cv_as_mips_gnu_attribute=no
25434 if test $in_tree_gas = yes; then
25435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25436 then gcc_cv_as_mips_gnu_attribute=yes
25438 elif test x$gcc_cv_as != x; then
25439 $as_echo '.gnu_attribute 4,1' > conftest.s
25440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25446 then
25447 gcc_cv_as_mips_gnu_attribute=yes
25448 else
25449 echo "configure: failed program was" >&5
25450 cat conftest.s >&5
25452 rm -f conftest.o conftest.s
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25456 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25457 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25459 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25464 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25465 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_mips_dtprelword=no
25469 if test $in_tree_gas = yes; then
25470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25471 then gcc_cv_as_mips_dtprelword=yes
25473 elif test x$gcc_cv_as != x; then
25474 $as_echo '.section .tdata,"awT",@progbits
25476 .word 2
25477 .text
25478 .dtprelword x+0x8000' > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_mips_dtprelword=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25495 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25496 if test $gcc_cv_as_mips_dtprelword = yes; then
25498 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25503 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25504 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25506 else
25507 gcc_cv_as_mips_dspr1_mult=no
25508 if test x$gcc_cv_as != x; then
25509 $as_echo ' .set mips32r2
25510 .set nodspr2
25511 .set dsp
25512 madd $ac3,$4,$5
25513 maddu $ac3,$4,$5
25514 msub $ac3,$4,$5
25515 msubu $ac3,$4,$5
25516 mult $ac3,$4,$5
25517 multu $ac3,$4,$5' > conftest.s
25518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25524 then
25525 gcc_cv_as_mips_dspr1_mult=yes
25526 else
25527 echo "configure: failed program was" >&5
25528 cat conftest.s >&5
25530 rm -f conftest.o conftest.s
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25534 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25535 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25537 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25542 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25543 gcc_cv_as_ld_jalr_reloc=no
25544 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25545 if test $in_tree_ld = yes ; then
25546 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 \
25547 && test $in_tree_ld_is_elf = yes; then
25548 gcc_cv_as_ld_jalr_reloc=yes
25550 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25551 echo ' .ent x' > conftest.s
25552 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25553 echo ' ld $25,%call16(y)($28)' >> conftest.s
25554 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25555 echo '1: jalr $25' >> conftest.s
25556 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25557 echo '1: jalr $25' >> conftest.s
25558 echo ' .end x' >> conftest.s
25559 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25560 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25561 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25562 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25563 gcc_cv_as_ld_jalr_reloc=yes
25566 rm -f conftest.*
25569 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25570 if test x$target_cpu_default = x; then
25571 target_cpu_default=MASK_RELAX_PIC_CALLS
25572 else
25573 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25577 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25580 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25581 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25583 else
25584 gcc_cv_ld_mips_personality_relaxation=no
25585 if test $in_tree_ld = yes ; then
25586 if test "$gcc_cv_gld_major_version" -eq 2 \
25587 -a "$gcc_cv_gld_minor_version" -ge 21 \
25588 -o "$gcc_cv_gld_major_version" -gt 2; then
25589 gcc_cv_ld_mips_personality_relaxation=yes
25591 elif test x$gcc_cv_as != x \
25592 -a x$gcc_cv_ld != x \
25593 -a x$gcc_cv_readelf != x ; then
25594 cat > conftest.s <<EOF
25595 .cfi_startproc
25596 .cfi_personality 0x80,indirect_ptr
25597 .ent test
25598 test:
25600 .end test
25601 .cfi_endproc
25603 .section .data,"aw",@progbits
25604 indirect_ptr:
25605 .dc.a personality
25607 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25608 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25609 if $gcc_cv_readelf -d conftest 2>&1 \
25610 | grep TEXTREL > /dev/null 2>&1; then
25612 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25613 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25615 else
25616 gcc_cv_ld_mips_personality_relaxation=yes
25620 rm -f conftest.s conftest.o conftest
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25623 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25624 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25626 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25630 esac
25632 # Mips and HP-UX need the GNU assembler.
25633 # Linux on IA64 might be able to use the Intel assembler.
25635 case "$target" in
25636 mips*-*-* | *-*-hpux* )
25637 if test x$gas_flag = xyes \
25638 || test x"$host" != x"$build" \
25639 || test ! -x "$gcc_cv_as" \
25640 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25642 else
25643 echo "*** This configuration requires the GNU assembler" >&2
25644 exit 1
25647 esac
25649 # ??? Not all targets support dwarf2 debug_line, even within a version
25650 # of gas. Moreover, we need to emit a valid instruction to trigger any
25651 # info to the output file. So, as supported targets are added to gas 2.11,
25652 # add some instruction here to (also) show we expect this might work.
25653 # ??? Once 2.11 is released, probably need to add first known working
25654 # version to the per-target configury.
25655 case "$cpu_type" in
25656 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25657 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25658 insn="nop"
25660 ia64 | s390)
25661 insn="nop 0"
25663 mmix)
25664 insn="swym 0"
25666 esac
25667 if test x"$insn" != x; then
25668 conftest_s="\
25669 .file 1 \"conftest.s\"
25670 .loc 1 3 0
25671 $insn"
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25673 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25674 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 gcc_cv_as_dwarf2_debug_line=no
25678 if test $in_tree_gas = yes; then
25679 if test $in_tree_gas_is_elf = yes \
25680 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25681 then gcc_cv_as_dwarf2_debug_line=yes
25683 elif test x$gcc_cv_as != x; then
25684 $as_echo "$conftest_s" > conftest.s
25685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25687 (eval $ac_try) 2>&5
25688 ac_status=$?
25689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25690 test $ac_status = 0; }; }
25691 then
25692 if test x$gcc_cv_objdump != x \
25693 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25694 | grep debug_line > /dev/null 2>&1; then
25695 gcc_cv_as_dwarf2_debug_line=yes
25697 else
25698 echo "configure: failed program was" >&5
25699 cat conftest.s >&5
25701 rm -f conftest.o conftest.s
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25705 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25708 # The .debug_line file table must be in the exact order that
25709 # we specified the files, since these indices are also used
25710 # by DW_AT_decl_file. Approximate this test by testing if
25711 # the assembler bitches if the same index is assigned twice.
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25713 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25714 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25715 $as_echo_n "(cached) " >&6
25716 else
25717 gcc_cv_as_dwarf2_file_buggy=no
25718 if test x$gcc_cv_as != x; then
25719 $as_echo ' .file 1 "foo.s"
25720 .file 1 "bar.s"' > conftest.s
25721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726 test $ac_status = 0; }; }
25727 then
25728 gcc_cv_as_dwarf2_file_buggy=yes
25729 else
25730 echo "configure: failed program was" >&5
25731 cat conftest.s >&5
25733 rm -f conftest.o conftest.s
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25737 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25740 if test $gcc_cv_as_dwarf2_debug_line = yes \
25741 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25743 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25748 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25749 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25750 $as_echo_n "(cached) " >&6
25751 else
25752 gcc_cv_as_gdwarf2_flag=no
25753 if test $in_tree_gas = yes; then
25754 if test $in_tree_gas_is_elf = yes \
25755 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25756 then gcc_cv_as_gdwarf2_flag=yes
25758 elif test x$gcc_cv_as != x; then
25759 $as_echo "$insn" > conftest.s
25760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }
25766 then
25767 gcc_cv_as_gdwarf2_flag=yes
25768 else
25769 echo "configure: failed program was" >&5
25770 cat conftest.s >&5
25772 rm -f conftest.o conftest.s
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25776 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25777 if test $gcc_cv_as_gdwarf2_flag = yes; then
25779 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25784 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25785 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25786 $as_echo_n "(cached) " >&6
25787 else
25788 gcc_cv_as_gstabs_flag=no
25789 if test $in_tree_gas = yes; then
25790 if test $in_tree_gas_is_elf = yes \
25791 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25792 then gcc_cv_as_gstabs_flag=yes
25794 elif test x$gcc_cv_as != x; then
25795 $as_echo "$insn" > conftest.s
25796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25798 (eval $ac_try) 2>&5
25799 ac_status=$?
25800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25801 test $ac_status = 0; }; }
25802 then
25803 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25804 # and warns about it, but still exits successfully. So check for
25805 # this.
25806 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25811 test $ac_status = 0; }; }
25812 then :
25813 else gcc_cv_as_gstabs_flag=yes
25815 else
25816 echo "configure: failed program was" >&5
25817 cat conftest.s >&5
25819 rm -f conftest.o conftest.s
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25823 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25824 if test $gcc_cv_as_gstabs_flag = yes; then
25826 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25831 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25832 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25833 $as_echo_n "(cached) " >&6
25834 else
25835 gcc_cv_as_debug_prefix_map_flag=no
25836 if test $in_tree_gas = yes; then
25837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25838 then gcc_cv_as_debug_prefix_map_flag=yes
25840 elif test x$gcc_cv_as != x; then
25841 $as_echo "$insn" > conftest.s
25842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25847 test $ac_status = 0; }; }
25848 then
25849 gcc_cv_as_debug_prefix_map_flag=yes
25850 else
25851 echo "configure: failed program was" >&5
25852 cat conftest.s >&5
25854 rm -f conftest.o conftest.s
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25858 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25859 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25861 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25867 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25868 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25870 else
25871 gcc_cv_as_lcomm_with_alignment=no
25872 if test x$gcc_cv_as != x; then
25873 $as_echo '.lcomm bar,4,16' > conftest.s
25874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25879 test $ac_status = 0; }; }
25880 then
25881 gcc_cv_as_lcomm_with_alignment=yes
25882 else
25883 echo "configure: failed program was" >&5
25884 cat conftest.s >&5
25886 rm -f conftest.o conftest.s
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25890 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25891 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25893 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25897 # Check whether --enable-gnu-unique-object was given.
25898 if test "${enable_gnu_unique_object+set}" = set; then :
25899 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25900 yes | no) ;;
25901 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25902 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25903 esac
25904 else
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25906 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25907 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25908 $as_echo_n "(cached) " >&6
25909 else
25910 gcc_cv_as_gnu_unique_object=no
25911 if test $in_tree_gas = yes; then
25912 if test $in_tree_gas_is_elf = yes \
25913 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25914 then gcc_cv_as_gnu_unique_object=yes
25916 elif test x$gcc_cv_as != x; then
25917 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25924 then
25925 gcc_cv_as_gnu_unique_object=yes
25926 else
25927 echo "configure: failed program was" >&5
25928 cat conftest.s >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25934 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25935 if test $gcc_cv_as_gnu_unique_object = yes; then
25936 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25937 if test x$host = x$build -a x$host = x$target &&
25938 ldd --version 2>/dev/null &&
25939 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25940 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25941 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25942 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25943 if test "$glibcnum" -ge 2011 ; then
25944 enable_gnu_unique_object=yes
25950 if test x$enable_gnu_unique_object = xyes; then
25952 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25957 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25958 if test "${gcc_cv_as_line_zero+set}" = set; then :
25959 $as_echo_n "(cached) " >&6
25960 else
25961 gcc_cv_as_line_zero=no
25962 if test $in_tree_gas = yes; then
25963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25964 then gcc_cv_as_line_zero=yes
25966 elif test "x$gcc_cv_as" != x; then
25967 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25968 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25973 test $ac_status = 0; }; } &&
25974 test "x`cat conftest.out`" = x
25975 then
25976 gcc_cv_as_line_zero=yes
25977 else
25978 echo "configure: failed program was" >&5
25979 cat conftest.s >&5
25980 echo "configure: error output was" >&5
25981 cat conftest.out >&5
25983 rm -f conftest.o conftest.s conftest.out
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25987 $as_echo "$gcc_cv_as_line_zero" >&6; }
25988 if test "x$gcc_cv_as_line_zero" = xyes; then
25990 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25995 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25996 gcc_cv_ld_eh_frame_hdr=no
25997 if test $in_tree_ld = yes ; then
25998 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 \
25999 && test $in_tree_ld_is_elf = yes; then
26000 gcc_cv_ld_eh_frame_hdr=yes
26002 elif test x$gcc_cv_ld != x; then
26003 if echo "$ld_ver" | grep GNU > /dev/null; then
26004 # Check if linker supports --eh-frame-hdr option
26005 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26006 gcc_cv_ld_eh_frame_hdr=yes
26008 else
26009 case "$target" in
26010 *-*-solaris2*)
26011 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26012 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26013 gcc_cv_ld_eh_frame_hdr=yes
26016 esac
26020 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26022 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26026 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26029 $as_echo_n "checking linker position independent executable support... " >&6; }
26030 gcc_cv_ld_pie=no
26031 if test $in_tree_ld = yes ; then
26032 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 \
26033 && test $in_tree_ld_is_elf = yes; then
26034 gcc_cv_ld_pie=yes
26036 elif test x$gcc_cv_ld != x; then
26037 # Check if linker supports -pie option
26038 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26039 gcc_cv_ld_pie=yes
26042 if test x"$gcc_cv_ld_pie" = xyes; then
26044 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26048 $as_echo "$gcc_cv_ld_pie" >&6; }
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26051 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26052 gcc_cv_ld_eh_gc_sections=no
26053 if test $in_tree_ld = yes ; then
26054 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 \
26055 && test $in_tree_ld_is_elf = yes; then
26056 gcc_cv_ld_eh_gc_sections=yes
26058 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26059 cat > conftest.s <<EOF
26060 .section .text
26061 .globl _start
26062 .type _start, @function
26063 _start:
26064 .long foo
26065 .size _start, .-_start
26066 .section .text.foo,"ax",@progbits
26067 .type foo, @function
26068 foo:
26069 .long 0
26070 .size foo, .-foo
26071 .section .gcc_except_table.foo,"a",@progbits
26072 .L0:
26073 .long 0
26074 .section .eh_frame,"a",@progbits
26075 .long .L0
26077 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26078 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26079 | grep "gc-sections option ignored" > /dev/null; then
26080 gcc_cv_ld_eh_gc_sections=no
26081 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26082 | grep gcc_except_table > /dev/null; then
26083 gcc_cv_ld_eh_gc_sections=yes
26084 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26085 if test x$gcc_cv_as_comdat_group != xyes; then
26086 gcc_cv_ld_eh_gc_sections=no
26087 cat > conftest.s <<EOF
26088 .section .text
26089 .globl _start
26090 .type _start, @function
26091 _start:
26092 .long foo
26093 .size _start, .-_start
26094 .section .gnu.linkonce.t.foo,"ax",@progbits
26095 .type foo, @function
26096 foo:
26097 .long 0
26098 .size foo, .-foo
26099 .section .gcc_except_table.foo,"a",@progbits
26100 .L0:
26101 .long 0
26102 .section .eh_frame,"a",@progbits
26103 .long .L0
26105 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26106 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26107 | grep "gc-sections option ignored" > /dev/null; then
26108 gcc_cv_ld_eh_gc_sections=no
26109 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26110 | grep gcc_except_table > /dev/null; then
26111 gcc_cv_ld_eh_gc_sections=yes
26117 rm -f conftest.s conftest.o conftest
26119 case "$target" in
26120 hppa*-*-linux*)
26121 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26122 gcc_cv_ld_eh_gc_sections=no
26124 esac
26125 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26127 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26131 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26134 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26135 gcc_cv_ld_eh_gc_sections_bug=no
26136 if test $in_tree_ld = yes ; then
26137 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26138 && test $in_tree_ld_is_elf = yes; then
26139 gcc_cv_ld_eh_gc_sections_bug=yes
26141 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26142 gcc_cv_ld_eh_gc_sections_bug=yes
26143 cat > conftest.s <<EOF
26144 .section .text
26145 .globl _start
26146 .type _start, @function
26147 _start:
26148 .long foo
26149 .size _start, .-_start
26150 .section .text.startup.foo,"ax",@progbits
26151 .type foo, @function
26152 foo:
26153 .long 0
26154 .size foo, .-foo
26155 .section .gcc_except_table.foo,"a",@progbits
26156 .L0:
26157 .long 0
26158 .section .eh_frame,"a",@progbits
26159 .long .L0
26161 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26162 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26163 | grep "gc-sections option ignored" > /dev/null; then
26165 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26166 | grep gcc_except_table > /dev/null; then
26167 gcc_cv_ld_eh_gc_sections_bug=no
26170 rm -f conftest.s conftest.o conftest
26172 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26174 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26178 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26180 # --------
26181 # UNSORTED
26182 # --------
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26185 $as_echo_n "checking linker --as-needed support... " >&6; }
26186 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26187 $as_echo_n "(cached) " >&6
26188 else
26189 gcc_cv_ld_as_needed=no
26190 if test $in_tree_ld = yes ; then
26191 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 \
26192 && test $in_tree_ld_is_elf = yes; then
26193 gcc_cv_ld_as_needed=yes
26195 elif test x$gcc_cv_ld != x; then
26196 # Check if linker supports --as-needed and --no-as-needed options
26197 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26198 gcc_cv_ld_as_needed=yes
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26204 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26205 if test x"$gcc_cv_ld_as_needed" = xyes; then
26207 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26211 case "$target:$tm_file" in
26212 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26214 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26215 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218 gcc_cv_ld_no_dot_syms=no
26219 if test $in_tree_ld = yes ; then
26220 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
26221 gcc_cv_ld_no_dot_syms=yes
26223 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26224 cat > conftest1.s <<EOF
26225 .text
26226 bl .foo
26228 cat > conftest2.s <<EOF
26229 .section ".opd","aw"
26230 .align 3
26231 .globl foo
26232 .type foo,@function
26233 foo:
26234 .quad .LEfoo,.TOC.@tocbase,0
26235 .text
26236 .LEfoo:
26238 .size foo,.-.LEfoo
26240 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26241 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26242 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26243 gcc_cv_ld_no_dot_syms=yes
26245 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26250 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26251 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26253 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26258 $as_echo_n "checking linker large toc support... " >&6; }
26259 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26260 $as_echo_n "(cached) " >&6
26261 else
26262 gcc_cv_ld_large_toc=no
26263 if test $in_tree_ld = yes ; then
26264 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26265 gcc_cv_ld_large_toc=yes
26267 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26268 cat > conftest.s <<EOF
26269 .section ".tbss","awT",@nobits
26270 .align 3
26271 ie0: .space 8
26272 .global _start
26273 .text
26274 _start:
26275 addis 9,13,ie0@got@tprel@ha
26276 ld 9,ie0@got@tprel@l(9)
26278 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26279 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26280 gcc_cv_ld_large_toc=yes
26282 rm -f conftest conftest.o conftest.s
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26287 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26288 if test x"$gcc_cv_ld_large_toc" = xyes; then
26290 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26294 esac
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26297 $as_echo_n "checking linker --build-id support... " >&6; }
26298 if test "${gcc_cv_ld_buildid+set}" = set; then :
26299 $as_echo_n "(cached) " >&6
26300 else
26301 gcc_cv_ld_buildid=no
26302 if test $in_tree_ld = yes ; then
26303 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26304 "$gcc_cv_gld_minor_version" -ge 18 -o \
26305 "$gcc_cv_gld_major_version" -gt 2 \
26306 && test $in_tree_ld_is_elf = yes; then
26307 gcc_cv_ld_buildid=yes
26309 elif test x$gcc_cv_ld != x; then
26310 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26311 gcc_cv_ld_buildid=yes
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26316 $as_echo "$gcc_cv_ld_buildid" >&6; }
26317 if test x"$gcc_cv_ld_buildid" = xyes; then
26319 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26323 # Check whether --enable-linker-build-id was given.
26324 if test "${enable_linker_build_id+set}" = set; then :
26325 enableval=$enable_linker_build_id;
26326 else
26327 enable_linker_build_id=no
26331 if test x"$enable_linker_build_id" = xyes; then
26332 if test x"$gcc_cv_ld_buildid" = xyes; then
26334 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26336 else
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26338 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26342 # In binutils 2.21, GNU ld gained support for new emulations fully
26343 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26345 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26346 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26349 gcc_cv_ld_sol2_emulation=no
26350 if test $in_tree_ld = yes ; then
26351 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26352 "$gcc_cv_gld_minor_version" -ge 21 -o \
26353 "$gcc_cv_gld_major_version" -gt 2 \
26354 && test $in_tree_ld_is_elf = yes; then
26355 gcc_cv_ld_sol2_emulation=yes
26357 elif test x$gcc_cv_ld != x; then
26358 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26359 grep _sol2 > /dev/null; then
26360 gcc_cv_ld_sol2_emulation=yes
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26365 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26366 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26368 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26373 $as_echo_n "checking linker --sysroot support... " >&6; }
26374 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26375 $as_echo_n "(cached) " >&6
26376 else
26377 gcc_cv_ld_sysroot=no
26378 if test $in_tree_ld = yes ; then
26379 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
26380 gcc_cv_ld_sysroot=yes
26382 elif test x$gcc_cv_ld != x; then
26383 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26384 gcc_cv_ld_sysroot=yes
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26389 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26390 if test x"$gcc_cv_ld_sysroot" = xyes; then
26392 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26396 if test x$with_sysroot = x && test x$host = x$target \
26397 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26398 && test "$prefix" != "NONE"; then
26400 cat >>confdefs.h <<_ACEOF
26401 #define PREFIX_INCLUDE_DIR "$prefix/include"
26402 _ACEOF
26406 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26407 if test "x$with_headers" != x; then
26408 target_header_dir=$with_headers
26409 elif test "x$with_sysroot" = x; then
26410 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26411 elif test "x$with_build_sysroot" != "x"; then
26412 target_header_dir="${with_build_sysroot}/usr/include"
26413 elif test "x$with_sysroot" = xyes; then
26414 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26415 else
26416 target_header_dir="${with_sysroot}/usr/include"
26418 else
26419 target_header_dir=/usr/include
26422 # Test for stack protector support in target C library.
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26424 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26425 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_libc_provides_ssp=no
26429 case "$target" in
26430 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26431 # glibc 2.4 and later provides __stack_chk_fail and
26432 # either __stack_chk_guard, or TLS access to stack guard canary.
26433 if test -f $target_header_dir/features.h \
26434 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26435 $target_header_dir/features.h > /dev/null; then
26436 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26437 $target_header_dir/features.h > /dev/null; then
26438 gcc_cv_libc_provides_ssp=yes
26439 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26440 $target_header_dir/features.h > /dev/null \
26441 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26442 $target_header_dir/features.h > /dev/null; then
26443 gcc_cv_libc_provides_ssp=yes
26444 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26445 $target_header_dir/features.h > /dev/null && \
26446 test -f $target_header_dir/bits/uClibc_config.h && \
26447 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26448 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26449 gcc_cv_libc_provides_ssp=yes
26453 *-*-gnu*)
26454 # Avoid complicated tests (see
26455 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26456 # simply assert that glibc does provide this, which is true for all
26457 # realistically usable GNU/Hurd configurations.
26458 gcc_cv_libc_provides_ssp=yes;;
26459 *-*-darwin* | *-*-freebsd*)
26460 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26461 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26462 gcc_cv_libc_provides_ssp=yes
26463 else
26464 echo "no __stack_chk_fail on this target"
26468 *) gcc_cv_libc_provides_ssp=no ;;
26469 esac
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26472 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26474 if test x$gcc_cv_libc_provides_ssp = xyes; then
26476 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26480 # Test for <sys/sdt.h> on the target.
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26483 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26484 have_sys_sdt_h=no
26485 if test -f $target_header_dir/sys/sdt.h; then
26487 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26491 $as_echo "$have_sys_sdt_h" >&6; }
26493 # Check if TFmode long double should be used by default or not.
26494 # Some glibc targets used DFmode long double, but with glibc 2.4
26495 # and later they can use TFmode.
26496 case "$target" in
26497 powerpc*-*-linux* | \
26498 sparc*-*-linux* | \
26499 s390*-*-linux* | \
26500 alpha*-*-linux*)
26502 # Check whether --with-long-double-128 was given.
26503 if test "${with_long_double_128+set}" = set; then :
26504 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26505 else
26506 gcc_cv_target_ldbl128=no
26507 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26508 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26509 && gcc_cv_target_ldbl128=yes
26514 esac
26515 if test x$gcc_cv_target_ldbl128 = xyes; then
26517 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26522 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26523 gcc_cv_target_dl_iterate_phdr=unknown
26524 case "$target" in
26525 *-*-solaris2*)
26526 # <link.h> needs both a dl_iterate_phdr declaration and support for
26527 # compilation with largefile support.
26528 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26529 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26530 gcc_cv_target_dl_iterate_phdr=yes
26531 else
26532 gcc_cv_target_dl_iterate_phdr=no
26535 esac
26537 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26539 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26543 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26545 # Find out what GC implementation we want, or may, use.
26547 # Check whether --with-gc was given.
26548 if test "${with_gc+set}" = set; then :
26549 withval=$with_gc; case "$withval" in
26550 page)
26551 GGC=ggc-$withval
26553 zone)
26554 GGC=ggc-$withval
26556 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26560 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26562 esac
26563 else
26564 GGC=ggc-page
26568 echo "Using $GGC for garbage collection."
26570 # Libraries to use on the host. This will normally be set by the top
26571 # level Makefile. Here we simply capture the value for our Makefile.
26572 if test -z "${HOST_LIBS+set}"; then
26573 HOST_LIBS=
26577 # Use the system's zlib library.
26578 zlibdir=-L../zlib
26579 zlibinc="-I\$(srcdir)/../zlib"
26581 # Check whether --with-system-zlib was given.
26582 if test "${with_system_zlib+set}" = set; then :
26583 withval=$with_system_zlib; zlibdir=
26584 zlibinc=
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26593 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26594 # Check whether --enable-maintainer-mode was given.
26595 if test "${enable_maintainer_mode+set}" = set; then :
26596 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26597 else
26598 maintainer_mode=no
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26603 $as_echo "$maintainer_mode" >&6; }
26605 if test "$maintainer_mode" = "yes"; then
26606 MAINT=''
26607 else
26608 MAINT='#'
26611 # --------------
26612 # Language hooks
26613 # --------------
26615 # Make empty files to contain the specs and options for each language.
26616 # Then add #include lines to for a compiler that has specs and/or options.
26618 subdirs=
26619 lang_opt_files=
26620 lang_specs_files=
26621 lang_tree_files=
26622 # These (without "all_") are set in each config-lang.in.
26623 # `language' must be a single word so is spelled singularly.
26624 all_languages=
26625 all_compilers=
26626 all_outputs='Makefile'
26627 # List of language makefile fragments.
26628 all_lang_makefrags=
26629 # Additional files for gengtype
26630 all_gtfiles="$target_gtfiles"
26632 # These are the languages that are set in --enable-languages,
26633 # and are available in the GCC tree.
26634 all_selected_languages=
26636 # Add the language fragments.
26637 # Languages are added via two mechanisms. Some information must be
26638 # recorded in makefile variables, these are defined in config-lang.in.
26639 # We accumulate them and plug them into the main Makefile.
26640 # The other mechanism is a set of hooks for each of the main targets
26641 # like `clean', `install', etc.
26643 language_hooks="Make-hooks"
26645 for lang in ${srcdir}/*/config-lang.in
26647 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26649 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26650 if test "x$lang_alias" = x
26651 then
26652 echo "$lang doesn't set \$language." 1>&2
26653 exit 1
26655 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26656 subdirs="$subdirs $subdir"
26658 # $gcc_subdir is where the gcc integration files are to be found
26659 # for a language, both for internal compiler purposes (compiler
26660 # sources implementing front-end to GCC tree converters), and for
26661 # build infrastructure purposes (Make-lang.in, etc.)
26663 # This will be <subdir> (relative to $srcdir) if a line like
26664 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26665 # is found in <langdir>/config-lang.in, and will remain <langdir>
26666 # otherwise.
26668 # Except for the language alias (fetched above), the regular
26669 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26670 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26671 # only this and the language alias.
26673 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26674 if [ "$gcc_subdir" = "" ]; then
26675 gcc_subdir="$subdir"
26678 case ",$enable_languages," in
26679 *,$lang_alias,*)
26680 all_selected_languages="$all_selected_languages $lang_alias"
26681 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26682 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26685 esac
26687 language=
26688 boot_language=
26689 compilers=
26690 outputs=
26691 gtfiles=
26692 subdir_requires=
26693 . ${srcdir}/$gcc_subdir/config-lang.in
26694 if test "x$language" = x
26695 then
26696 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26697 exit 1
26700 ok=:
26701 case ",$enable_languages," in
26702 *,$lang_alias,*) ;;
26704 for i in $subdir_requires; do
26705 test -f "${srcdir}/$i/config-lang.in" && continue
26706 ok=false
26707 break
26708 done
26710 esac
26711 $ok || continue
26713 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26714 if test -f $srcdir/$gcc_subdir/lang.opt; then
26715 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26716 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26718 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26719 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26721 all_languages="$all_languages $language"
26722 all_compilers="$all_compilers $compilers"
26723 all_outputs="$all_outputs $outputs"
26724 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26725 case ",$enable_languages," in
26726 *,lto,*)
26728 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26730 enable_lto=yes
26733 *) ;;
26734 esac
26735 done
26737 # Pick up gtfiles for c
26738 gtfiles=
26739 . ${srcdir}/c-config-lang.in
26740 all_gtfiles="$all_gtfiles [c] $gtfiles"
26742 check_languages=
26743 for language in $all_selected_languages
26745 check_languages="$check_languages check-$language"
26746 done
26748 # We link each language in with a set of hooks, reached indirectly via
26749 # lang.${target}. Only do so for selected languages.
26751 rm -f Make-hooks
26752 touch Make-hooks
26753 target_list="all.cross start.encap rest.encap tags \
26754 install-common install-man install-info install-pdf install-html dvi \
26755 pdf html uninstall info man srcextra srcman srcinfo \
26756 mostlyclean clean distclean maintainer-clean install-plugin"
26758 for t in $target_list
26761 for lang in $all_selected_languages
26763 x="$x $lang.$t"
26764 done
26765 echo "lang.$t: $x" >> Make-hooks
26766 done
26768 # --------
26769 # Option include files
26770 # --------
26772 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26773 option_includes="option-includes.mk"
26776 # --------
26777 # UNSORTED
26778 # --------
26780 # Create .gdbinit.
26782 echo "dir ." > .gdbinit
26783 echo "dir ${srcdir}" >> .gdbinit
26784 if test x$gdb_needs_out_file_path = xyes
26785 then
26786 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26788 if test "x$subdirs" != x; then
26789 for s in $subdirs
26791 echo "dir ${srcdir}/$s" >> .gdbinit
26792 done
26794 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26796 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26800 # Find a directory in which to install a shared libgcc.
26802 # Check whether --enable-version-specific-runtime-libs was given.
26803 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26804 enableval=$enable_version_specific_runtime_libs;
26809 # Check whether --with-slibdir was given.
26810 if test "${with_slibdir+set}" = set; then :
26811 withval=$with_slibdir; slibdir="$with_slibdir"
26812 else
26813 if test "${enable_version_specific_runtime_libs+set}" = set; then
26814 slibdir='$(libsubdir)'
26815 elif test "$host" != "$target"; then
26816 slibdir='$(build_tooldir)/lib'
26817 else
26818 slibdir='$(libdir)'
26824 # Substitute configuration variables
26891 # Echo link setup.
26892 if test x${build} = x${host} ; then
26893 if test x${host} = x${target} ; then
26894 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26895 else
26896 echo "Links are now set up to build a cross-compiler" 1>&2
26897 echo " from ${host} to ${target}." 1>&2
26899 else
26900 if test x${host} = x${target} ; then
26901 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26902 echo " for ${target}." 1>&2
26903 else
26904 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26905 echo " from ${host} to ${target}." 1>&2
26917 if test "x${CLOOGLIBS}" != "x" ; then
26919 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26923 # Check for plugin support
26924 # Check whether --enable-plugin was given.
26925 if test "${enable_plugin+set}" = set; then :
26926 enableval=$enable_plugin; enable_plugin=$enableval
26927 else
26928 enable_plugin=yes; default_plugin=yes
26932 pluginlibs=
26934 case "${host}" in
26935 *-*-darwin*)
26936 if test x$build = x$host; then
26937 export_sym_check="nm${exeext} -g"
26938 elif test x$host = x$target; then
26939 export_sym_check="$gcc_cv_nm -g"
26940 else
26941 export_sym_check=
26945 if test x$build = x$host; then
26946 export_sym_check="objdump${exeext} -T"
26947 elif test x$host = x$target; then
26948 export_sym_check="$gcc_cv_objdump -T"
26949 else
26950 export_sym_check=
26953 esac
26955 if test x"$enable_plugin" = x"yes"; then
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26958 $as_echo_n "checking for exported symbols... " >&6; }
26959 if test "x$export_sym_check" != x; then
26960 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26961 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26962 if $export_sym_check conftest | grep foobar > /dev/null; then
26963 : # No need to use a flag
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26965 $as_echo "yes" >&6; }
26966 else
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968 $as_echo "yes" >&6; }
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26970 $as_echo_n "checking for -rdynamic... " >&6; }
26971 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26972 if $export_sym_check conftest | grep foobar > /dev/null; then
26973 plugin_rdynamic=yes
26974 pluginlibs="-rdynamic"
26975 else
26976 plugin_rdynamic=no
26977 enable_plugin=no
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26980 $as_echo "$plugin_rdynamic" >&6; }
26982 else
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26984 $as_echo "unable to check" >&6; }
26987 # Check -ldl
26988 saved_LIBS="$LIBS"
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26990 $as_echo_n "checking for library containing dlopen... " >&6; }
26991 if test "${ac_cv_search_dlopen+set}" = set; then :
26992 $as_echo_n "(cached) " >&6
26993 else
26994 ac_func_search_save_LIBS=$LIBS
26995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26996 /* end confdefs.h. */
26998 /* Override any GCC internal prototype to avoid an error.
26999 Use char because int might match the return type of a GCC
27000 builtin and then its argument prototype would still apply. */
27001 #ifdef __cplusplus
27002 extern "C"
27003 #endif
27004 char dlopen ();
27006 main ()
27008 return dlopen ();
27010 return 0;
27012 _ACEOF
27013 for ac_lib in '' dl; do
27014 if test -z "$ac_lib"; then
27015 ac_res="none required"
27016 else
27017 ac_res=-l$ac_lib
27018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27020 if ac_fn_c_try_link "$LINENO"; then :
27021 ac_cv_search_dlopen=$ac_res
27023 rm -f core conftest.err conftest.$ac_objext \
27024 conftest$ac_exeext
27025 if test "${ac_cv_search_dlopen+set}" = set; then :
27026 break
27028 done
27029 if test "${ac_cv_search_dlopen+set}" = set; then :
27031 else
27032 ac_cv_search_dlopen=no
27034 rm conftest.$ac_ext
27035 LIBS=$ac_func_search_save_LIBS
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27038 $as_echo "$ac_cv_search_dlopen" >&6; }
27039 ac_res=$ac_cv_search_dlopen
27040 if test "$ac_res" != no; then :
27041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27045 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27046 pluginlibs="$pluginlibs -ldl"
27048 LIBS="$saved_LIBS"
27050 # Check that we can build shared objects with -fPIC -shared
27051 saved_LDFLAGS="$LDFLAGS"
27052 saved_CFLAGS="$CFLAGS"
27053 case "${host}" in
27054 *-*-darwin*)
27055 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27056 CFLAGS="$CFLAGS -fPIC"
27057 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27060 CFLAGS="$CFLAGS -fPIC"
27061 LDFLAGS="$LDFLAGS -fPIC -shared"
27063 esac
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27065 $as_echo_n "checking for -fPIC -shared... " >&6; }
27066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27067 /* end confdefs.h. */
27068 extern int X;
27070 main ()
27072 return X == 0;
27074 return 0;
27076 _ACEOF
27077 if ac_fn_c_try_link "$LINENO"; then :
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27079 $as_echo "yes" >&6; }; have_pic_shared=yes
27080 else
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27082 $as_echo "no" >&6; }; have_pic_shared=no
27084 rm -f core conftest.err conftest.$ac_objext \
27085 conftest$ac_exeext conftest.$ac_ext
27086 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27087 pluginlibs=
27088 enable_plugin=no
27090 LDFLAGS="$saved_LDFLAGS"
27091 CFLAGS="$saved_CFLAGS"
27093 # If plugin support had been requested but not available, fail.
27094 if test x"$enable_plugin" = x"no" ; then
27095 if test x"$default_plugin" != x"yes"; then
27096 as_fn_error "
27097 Building GCC with plugin support requires a host that supports
27098 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27105 if test x"$enable_plugin" = x"yes"; then
27107 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27112 # Check whether --enable-libquadmath-support was given.
27113 if test "${enable_libquadmath_support+set}" = set; then :
27114 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27115 else
27116 ENABLE_LIBQUADMATH_SUPPORT=yes
27119 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27121 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27126 # Specify what hash style to use by default.
27128 # Check whether --with-linker-hash-style was given.
27129 if test "${with_linker_hash_style+set}" = set; then :
27130 withval=$with_linker_hash_style; case x"$withval" in
27131 xsysv)
27132 LINKER_HASH_STYLE=sysv
27134 xgnu)
27135 LINKER_HASH_STYLE=gnu
27137 xboth)
27138 LINKER_HASH_STYLE=both
27141 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27143 esac
27144 else
27145 LINKER_HASH_STYLE=''
27148 if test x"${LINKER_HASH_STYLE}" != x; then
27150 cat >>confdefs.h <<_ACEOF
27151 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27152 _ACEOF
27156 # Configure the subdirectories
27157 # AC_CONFIG_SUBDIRS($subdirs)
27159 # Create the Makefile
27160 # and configure language subdirectories
27161 ac_config_files="$ac_config_files $all_outputs"
27164 ac_config_commands="$ac_config_commands default"
27166 cat >confcache <<\_ACEOF
27167 # This file is a shell script that caches the results of configure
27168 # tests run on this system so they can be shared between configure
27169 # scripts and configure runs, see configure's option --config-cache.
27170 # It is not useful on other systems. If it contains results you don't
27171 # want to keep, you may remove or edit it.
27173 # config.status only pays attention to the cache file if you give it
27174 # the --recheck option to rerun configure.
27176 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27177 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27178 # following values.
27180 _ACEOF
27182 # The following way of writing the cache mishandles newlines in values,
27183 # but we know of no workaround that is simple, portable, and efficient.
27184 # So, we kill variables containing newlines.
27185 # Ultrix sh set writes to stderr and can't be redirected directly,
27186 # and sets the high bit in the cache file unless we assign to the vars.
27188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27189 eval ac_val=\$$ac_var
27190 case $ac_val in #(
27191 *${as_nl}*)
27192 case $ac_var in #(
27193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27194 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27195 esac
27196 case $ac_var in #(
27197 _ | IFS | as_nl) ;; #(
27198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27199 *) { eval $ac_var=; unset $ac_var;} ;;
27200 esac ;;
27201 esac
27202 done
27204 (set) 2>&1 |
27205 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27206 *${as_nl}ac_space=\ *)
27207 # `set' does not quote correctly, so add quotes: double-quote
27208 # substitution turns \\\\ into \\, and sed turns \\ into \.
27209 sed -n \
27210 "s/'/'\\\\''/g;
27211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27212 ;; #(
27214 # `set' quotes correctly as required by POSIX, so do not add quotes.
27215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27217 esac |
27218 sort
27220 sed '
27221 /^ac_cv_env_/b end
27222 t clear
27223 :clear
27224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27225 t end
27226 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27227 :end' >>confcache
27228 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27229 if test -w "$cache_file"; then
27230 test "x$cache_file" != "x/dev/null" &&
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27232 $as_echo "$as_me: updating cache $cache_file" >&6;}
27233 cat confcache >$cache_file
27234 else
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27236 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27239 rm -f confcache
27241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27242 # Let make expand exec_prefix.
27243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27245 DEFS=-DHAVE_CONFIG_H
27247 ac_libobjs=
27248 ac_ltlibobjs=
27249 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27250 # 1. Remove the extension, and $U if already installed.
27251 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27252 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27253 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27254 # will be set to the directory where LIBOBJS objects are built.
27255 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27256 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27257 done
27258 LIBOBJS=$ac_libobjs
27260 LTLIBOBJS=$ac_ltlibobjs
27265 : ${CONFIG_STATUS=./config.status}
27266 ac_write_fail=0
27267 ac_clean_files_save=$ac_clean_files
27268 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27270 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27271 as_write_fail=0
27272 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27273 #! $SHELL
27274 # Generated by $as_me.
27275 # Run this file to recreate the current configuration.
27276 # Compiler output produced by configure, useful for debugging
27277 # configure, is in config.log if it exists.
27279 debug=false
27280 ac_cs_recheck=false
27281 ac_cs_silent=false
27283 SHELL=\${CONFIG_SHELL-$SHELL}
27284 export SHELL
27285 _ASEOF
27286 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27287 ## -------------------- ##
27288 ## M4sh Initialization. ##
27289 ## -------------------- ##
27291 # Be more Bourne compatible
27292 DUALCASE=1; export DUALCASE # for MKS sh
27293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27294 emulate sh
27295 NULLCMD=:
27296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27297 # is contrary to our usage. Disable this feature.
27298 alias -g '${1+"$@"}'='"$@"'
27299 setopt NO_GLOB_SUBST
27300 else
27301 case `(set -o) 2>/dev/null` in #(
27302 *posix*) :
27303 set -o posix ;; #(
27304 *) :
27306 esac
27310 as_nl='
27312 export as_nl
27313 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27314 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27317 # Prefer a ksh shell builtin over an external printf program on Solaris,
27318 # but without wasting forks for bash or zsh.
27319 if test -z "$BASH_VERSION$ZSH_VERSION" \
27320 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27321 as_echo='print -r --'
27322 as_echo_n='print -rn --'
27323 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27324 as_echo='printf %s\n'
27325 as_echo_n='printf %s'
27326 else
27327 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27328 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27329 as_echo_n='/usr/ucb/echo -n'
27330 else
27331 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27332 as_echo_n_body='eval
27333 arg=$1;
27334 case $arg in #(
27335 *"$as_nl"*)
27336 expr "X$arg" : "X\\(.*\\)$as_nl";
27337 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27338 esac;
27339 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27341 export as_echo_n_body
27342 as_echo_n='sh -c $as_echo_n_body as_echo'
27344 export as_echo_body
27345 as_echo='sh -c $as_echo_body as_echo'
27348 # The user is always right.
27349 if test "${PATH_SEPARATOR+set}" != set; then
27350 PATH_SEPARATOR=:
27351 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27352 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27353 PATH_SEPARATOR=';'
27358 # IFS
27359 # We need space, tab and new line, in precisely that order. Quoting is
27360 # there to prevent editors from complaining about space-tab.
27361 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27362 # splitting by setting IFS to empty value.)
27363 IFS=" "" $as_nl"
27365 # Find who we are. Look in the path if we contain no directory separator.
27366 case $0 in #((
27367 *[\\/]* ) as_myself=$0 ;;
27368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27369 for as_dir in $PATH
27371 IFS=$as_save_IFS
27372 test -z "$as_dir" && as_dir=.
27373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27374 done
27375 IFS=$as_save_IFS
27378 esac
27379 # We did not find ourselves, most probably we were run as `sh COMMAND'
27380 # in which case we are not to be found in the path.
27381 if test "x$as_myself" = x; then
27382 as_myself=$0
27384 if test ! -f "$as_myself"; then
27385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27386 exit 1
27389 # Unset variables that we do not need and which cause bugs (e.g. in
27390 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27391 # suppresses any "Segmentation fault" message there. '((' could
27392 # trigger a bug in pdksh 5.2.14.
27393 for as_var in BASH_ENV ENV MAIL MAILPATH
27394 do eval test x\${$as_var+set} = xset \
27395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27396 done
27397 PS1='$ '
27398 PS2='> '
27399 PS4='+ '
27401 # NLS nuisances.
27402 LC_ALL=C
27403 export LC_ALL
27404 LANGUAGE=C
27405 export LANGUAGE
27407 # CDPATH.
27408 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27411 # as_fn_error ERROR [LINENO LOG_FD]
27412 # ---------------------------------
27413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27415 # script with status $?, using 1 if that was 0.
27416 as_fn_error ()
27418 as_status=$?; test $as_status -eq 0 && as_status=1
27419 if test "$3"; then
27420 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27423 $as_echo "$as_me: error: $1" >&2
27424 as_fn_exit $as_status
27425 } # as_fn_error
27428 # as_fn_set_status STATUS
27429 # -----------------------
27430 # Set $? to STATUS, without forking.
27431 as_fn_set_status ()
27433 return $1
27434 } # as_fn_set_status
27436 # as_fn_exit STATUS
27437 # -----------------
27438 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27439 as_fn_exit ()
27441 set +e
27442 as_fn_set_status $1
27443 exit $1
27444 } # as_fn_exit
27446 # as_fn_unset VAR
27447 # ---------------
27448 # Portably unset VAR.
27449 as_fn_unset ()
27451 { eval $1=; unset $1;}
27453 as_unset=as_fn_unset
27454 # as_fn_append VAR VALUE
27455 # ----------------------
27456 # Append the text in VALUE to the end of the definition contained in VAR. Take
27457 # advantage of any shell optimizations that allow amortized linear growth over
27458 # repeated appends, instead of the typical quadratic growth present in naive
27459 # implementations.
27460 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27461 eval 'as_fn_append ()
27463 eval $1+=\$2
27465 else
27466 as_fn_append ()
27468 eval $1=\$$1\$2
27470 fi # as_fn_append
27472 # as_fn_arith ARG...
27473 # ------------------
27474 # Perform arithmetic evaluation on the ARGs, and store the result in the
27475 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27476 # must be portable across $(()) and expr.
27477 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27478 eval 'as_fn_arith ()
27480 as_val=$(( $* ))
27482 else
27483 as_fn_arith ()
27485 as_val=`expr "$@" || test $? -eq 1`
27487 fi # as_fn_arith
27490 if expr a : '\(a\)' >/dev/null 2>&1 &&
27491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27492 as_expr=expr
27493 else
27494 as_expr=false
27497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27498 as_basename=basename
27499 else
27500 as_basename=false
27503 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27504 as_dirname=dirname
27505 else
27506 as_dirname=false
27509 as_me=`$as_basename -- "$0" ||
27510 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27511 X"$0" : 'X\(//\)$' \| \
27512 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27513 $as_echo X/"$0" |
27514 sed '/^.*\/\([^/][^/]*\)\/*$/{
27515 s//\1/
27518 /^X\/\(\/\/\)$/{
27519 s//\1/
27522 /^X\/\(\/\).*/{
27523 s//\1/
27526 s/.*/./; q'`
27528 # Avoid depending upon Character Ranges.
27529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27532 as_cr_digits='0123456789'
27533 as_cr_alnum=$as_cr_Letters$as_cr_digits
27535 ECHO_C= ECHO_N= ECHO_T=
27536 case `echo -n x` in #(((((
27537 -n*)
27538 case `echo 'xy\c'` in
27539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27540 xy) ECHO_C='\c';;
27541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27542 ECHO_T=' ';;
27543 esac;;
27545 ECHO_N='-n';;
27546 esac
27548 rm -f conf$$ conf$$.exe conf$$.file
27549 if test -d conf$$.dir; then
27550 rm -f conf$$.dir/conf$$.file
27551 else
27552 rm -f conf$$.dir
27553 mkdir conf$$.dir 2>/dev/null
27555 if (echo >conf$$.file) 2>/dev/null; then
27556 if ln -s conf$$.file conf$$ 2>/dev/null; then
27557 as_ln_s='ln -s'
27558 # ... but there are two gotchas:
27559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27561 # In both cases, we have to default to `cp -p'.
27562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27563 as_ln_s='cp -p'
27564 elif ln conf$$.file conf$$ 2>/dev/null; then
27565 as_ln_s=ln
27566 else
27567 as_ln_s='cp -p'
27569 else
27570 as_ln_s='cp -p'
27572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27573 rmdir conf$$.dir 2>/dev/null
27576 # as_fn_mkdir_p
27577 # -------------
27578 # Create "$as_dir" as a directory, including parents if necessary.
27579 as_fn_mkdir_p ()
27582 case $as_dir in #(
27583 -*) as_dir=./$as_dir;;
27584 esac
27585 test -d "$as_dir" || eval $as_mkdir_p || {
27586 as_dirs=
27587 while :; do
27588 case $as_dir in #(
27589 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27590 *) as_qdir=$as_dir;;
27591 esac
27592 as_dirs="'$as_qdir' $as_dirs"
27593 as_dir=`$as_dirname -- "$as_dir" ||
27594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27595 X"$as_dir" : 'X\(//\)[^/]' \| \
27596 X"$as_dir" : 'X\(//\)$' \| \
27597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27598 $as_echo X"$as_dir" |
27599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27600 s//\1/
27603 /^X\(\/\/\)[^/].*/{
27604 s//\1/
27607 /^X\(\/\/\)$/{
27608 s//\1/
27611 /^X\(\/\).*/{
27612 s//\1/
27615 s/.*/./; q'`
27616 test -d "$as_dir" && break
27617 done
27618 test -z "$as_dirs" || eval "mkdir $as_dirs"
27619 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27622 } # as_fn_mkdir_p
27623 if mkdir -p . 2>/dev/null; then
27624 as_mkdir_p='mkdir -p "$as_dir"'
27625 else
27626 test -d ./-p && rmdir ./-p
27627 as_mkdir_p=false
27630 if test -x / >/dev/null 2>&1; then
27631 as_test_x='test -x'
27632 else
27633 if ls -dL / >/dev/null 2>&1; then
27634 as_ls_L_option=L
27635 else
27636 as_ls_L_option=
27638 as_test_x='
27639 eval sh -c '\''
27640 if test -d "$1"; then
27641 test -d "$1/.";
27642 else
27643 case $1 in #(
27644 -*)set "./$1";;
27645 esac;
27646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27647 ???[sx]*):;;*)false;;esac;fi
27648 '\'' sh
27651 as_executable_p=$as_test_x
27653 # Sed expression to map a string onto a valid CPP name.
27654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27656 # Sed expression to map a string onto a valid variable name.
27657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27660 exec 6>&1
27661 ## ----------------------------------- ##
27662 ## Main body of $CONFIG_STATUS script. ##
27663 ## ----------------------------------- ##
27664 _ASEOF
27665 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27668 # Save the log message, to keep $0 and so on meaningful, and to
27669 # report actual input values of CONFIG_FILES etc. instead of their
27670 # values after options handling.
27671 ac_log="
27672 This file was extended by $as_me, which was
27673 generated by GNU Autoconf 2.64. Invocation command line was
27675 CONFIG_FILES = $CONFIG_FILES
27676 CONFIG_HEADERS = $CONFIG_HEADERS
27677 CONFIG_LINKS = $CONFIG_LINKS
27678 CONFIG_COMMANDS = $CONFIG_COMMANDS
27679 $ $0 $@
27681 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27684 _ACEOF
27686 case $ac_config_files in *"
27687 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27688 esac
27690 case $ac_config_headers in *"
27691 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27692 esac
27695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27696 # Files that config.status was made for.
27697 config_files="$ac_config_files"
27698 config_headers="$ac_config_headers"
27699 config_commands="$ac_config_commands"
27701 _ACEOF
27703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27704 ac_cs_usage="\
27705 \`$as_me' instantiates files and other configuration actions
27706 from templates according to the current configuration. Unless the files
27707 and actions are specified as TAGs, all are instantiated by default.
27709 Usage: $0 [OPTION]... [TAG]...
27711 -h, --help print this help, then exit
27712 -V, --version print version number and configuration settings, then exit
27713 -q, --quiet, --silent
27714 do not print progress messages
27715 -d, --debug don't remove temporary files
27716 --recheck update $as_me by reconfiguring in the same conditions
27717 --file=FILE[:TEMPLATE]
27718 instantiate the configuration file FILE
27719 --header=FILE[:TEMPLATE]
27720 instantiate the configuration header FILE
27722 Configuration files:
27723 $config_files
27725 Configuration headers:
27726 $config_headers
27728 Configuration commands:
27729 $config_commands
27731 Report bugs to the package provider."
27733 _ACEOF
27734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27735 ac_cs_version="\\
27736 config.status
27737 configured by $0, generated by GNU Autoconf 2.64,
27738 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27740 Copyright (C) 2009 Free Software Foundation, Inc.
27741 This config.status script is free software; the Free Software Foundation
27742 gives unlimited permission to copy, distribute and modify it."
27744 ac_pwd='$ac_pwd'
27745 srcdir='$srcdir'
27746 AWK='$AWK'
27747 test -n "\$AWK" || AWK=awk
27748 _ACEOF
27750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27751 # The default lists apply if the user does not specify any file.
27752 ac_need_defaults=:
27753 while test $# != 0
27755 case $1 in
27756 --*=*)
27757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27758 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27759 ac_shift=:
27762 ac_option=$1
27763 ac_optarg=$2
27764 ac_shift=shift
27766 esac
27768 case $ac_option in
27769 # Handling of the options.
27770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27771 ac_cs_recheck=: ;;
27772 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27773 $as_echo "$ac_cs_version"; exit ;;
27774 --debug | --debu | --deb | --de | --d | -d )
27775 debug=: ;;
27776 --file | --fil | --fi | --f )
27777 $ac_shift
27778 case $ac_optarg in
27779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27780 esac
27781 as_fn_append CONFIG_FILES " '$ac_optarg'"
27782 ac_need_defaults=false;;
27783 --header | --heade | --head | --hea )
27784 $ac_shift
27785 case $ac_optarg in
27786 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27787 esac
27788 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27789 ac_need_defaults=false;;
27790 --he | --h)
27791 # Conflict between --help and --header
27792 as_fn_error "ambiguous option: \`$1'
27793 Try \`$0 --help' for more information.";;
27794 --help | --hel | -h )
27795 $as_echo "$ac_cs_usage"; exit ;;
27796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27797 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27798 ac_cs_silent=: ;;
27800 # This is an error.
27801 -*) as_fn_error "unrecognized option: \`$1'
27802 Try \`$0 --help' for more information." ;;
27804 *) as_fn_append ac_config_targets " $1"
27805 ac_need_defaults=false ;;
27807 esac
27808 shift
27809 done
27811 ac_configure_extra_args=
27813 if $ac_cs_silent; then
27814 exec 6>/dev/null
27815 ac_configure_extra_args="$ac_configure_extra_args --silent"
27818 _ACEOF
27819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27820 if \$ac_cs_recheck; then
27821 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27822 shift
27823 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27824 CONFIG_SHELL='$SHELL'
27825 export CONFIG_SHELL
27826 exec "\$@"
27829 _ACEOF
27830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27831 exec 5>>config.log
27833 echo
27834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27835 ## Running $as_me. ##
27836 _ASBOX
27837 $as_echo "$ac_log"
27838 } >&5
27840 _ACEOF
27841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27843 # INIT-COMMANDS
27845 subdirs='$subdirs'
27847 _ACEOF
27849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27851 # Handling of arguments.
27852 for ac_config_target in $ac_config_targets
27854 case $ac_config_target in
27855 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27856 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27857 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27858 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27859 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27860 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27862 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27863 esac
27864 done
27867 # If the user did not use the arguments to specify the items to instantiate,
27868 # then the envvar interface is used. Set only those that are not.
27869 # We use the long form for the default assignment because of an extremely
27870 # bizarre bug on SunOS 4.1.3.
27871 if $ac_need_defaults; then
27872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27877 # Have a temporary directory for convenience. Make it in the build tree
27878 # simply because there is no reason against having it here, and in addition,
27879 # creating and moving files from /tmp can sometimes cause problems.
27880 # Hook for its removal unless debugging.
27881 # Note that there is a small window in which the directory will not be cleaned:
27882 # after its creation but before its name has been assigned to `$tmp'.
27883 $debug ||
27885 tmp=
27886 trap 'exit_status=$?
27887 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27889 trap 'as_fn_exit 1' 1 2 13 15
27891 # Create a (secure) tmp directory for tmp files.
27894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27895 test -n "$tmp" && test -d "$tmp"
27896 } ||
27898 tmp=./conf$$-$RANDOM
27899 (umask 077 && mkdir "$tmp")
27900 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27902 # Set up the scripts for CONFIG_FILES section.
27903 # No need to generate them if there are no CONFIG_FILES.
27904 # This happens for instance with `./config.status config.h'.
27905 if test -n "$CONFIG_FILES"; then
27907 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27908 ac_cs_awk_getline=:
27909 ac_cs_awk_pipe_init=
27910 ac_cs_awk_read_file='
27911 while ((getline aline < (F[key])) > 0)
27912 print(aline)
27913 close(F[key])'
27914 ac_cs_awk_pipe_fini=
27915 else
27916 ac_cs_awk_getline=false
27917 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27918 ac_cs_awk_read_file='
27919 print "|#_!!_#|"
27920 print "cat " F[key] " &&"
27921 '$ac_cs_awk_pipe_init
27922 # The final `:' finishes the AND list.
27923 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27925 ac_cr=`echo X | tr X '\015'`
27926 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27927 # But we know of no other shell where ac_cr would be empty at this
27928 # point, so we can use a bashism as a fallback.
27929 if test "x$ac_cr" = x; then
27930 eval ac_cr=\$\'\\r\'
27932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27934 ac_cs_awk_cr='\r'
27935 else
27936 ac_cs_awk_cr=$ac_cr
27939 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27940 _ACEOF
27942 # Create commands to substitute file output variables.
27944 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27945 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27946 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27947 echo "_ACAWK" &&
27948 echo "_ACEOF"
27949 } >conf$$files.sh &&
27950 . ./conf$$files.sh ||
27951 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27952 rm -f conf$$files.sh
27955 echo "cat >conf$$subs.awk <<_ACEOF" &&
27956 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27957 echo "_ACEOF"
27958 } >conf$$subs.sh ||
27959 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27960 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27961 ac_delim='%!_!# '
27962 for ac_last_try in false false false false false :; do
27963 . ./conf$$subs.sh ||
27964 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27966 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27967 if test $ac_delim_n = $ac_delim_num; then
27968 break
27969 elif $ac_last_try; then
27970 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27971 else
27972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27974 done
27975 rm -f conf$$subs.sh
27977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27978 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27979 _ACEOF
27980 sed -n '
27982 s/^/S["/; s/!.*/"]=/
27985 s/^[^!]*!//
27986 :repl
27987 t repl
27988 s/'"$ac_delim"'$//
27989 t delim
27992 s/\(.\{148\}\).*/\1/
27993 t more1
27994 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27997 b repl
27998 :more1
27999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28002 s/.\{148\}//
28003 t nl
28004 :delim
28006 s/\(.\{148\}\).*/\1/
28007 t more2
28008 s/["\\]/\\&/g; s/^/"/; s/$/"/
28011 :more2
28012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28015 s/.\{148\}//
28016 t delim
28017 ' <conf$$subs.awk | sed '
28018 /^[^""]/{
28020 s/\n//
28022 ' >>$CONFIG_STATUS || ac_write_fail=1
28023 rm -f conf$$subs.awk
28024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28025 _ACAWK
28026 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28027 for (key in S) S_is_set[key] = 1
28028 FS = "\a"
28029 \$ac_cs_awk_pipe_init
28032 line = $ 0
28033 nfields = split(line, field, "@")
28034 substed = 0
28035 len = length(field[1])
28036 for (i = 2; i < nfields; i++) {
28037 key = field[i]
28038 keylen = length(key)
28039 if (S_is_set[key]) {
28040 value = S[key]
28041 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28042 len += length(value) + length(field[++i])
28043 substed = 1
28044 } else
28045 len += 1 + keylen
28047 if (nfields == 3 && !substed) {
28048 key = field[2]
28049 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28050 \$ac_cs_awk_read_file
28051 next
28054 print line
28056 \$ac_cs_awk_pipe_fini
28057 _ACAWK
28058 _ACEOF
28059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28060 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28061 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28062 else
28064 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28065 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28066 _ACEOF
28068 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28069 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28070 # trailing colons and then remove the whole line if VPATH becomes empty
28071 # (actually we leave an empty line to preserve line numbers).
28072 if test "x$srcdir" = x.; then
28073 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28074 s/:*\$(srcdir):*/:/
28075 s/:*\${srcdir}:*/:/
28076 s/:*@srcdir@:*/:/
28077 s/^\([^=]*=[ ]*\):*/\1/
28078 s/:*$//
28079 s/^[^=]*=[ ]*$//
28083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28084 fi # test -n "$CONFIG_FILES"
28086 # Set up the scripts for CONFIG_HEADERS section.
28087 # No need to generate them if there are no CONFIG_HEADERS.
28088 # This happens for instance with `./config.status Makefile'.
28089 if test -n "$CONFIG_HEADERS"; then
28090 cat >"$tmp/defines.awk" <<\_ACAWK ||
28091 BEGIN {
28092 _ACEOF
28094 # Transform confdefs.h into an awk script `defines.awk', embedded as
28095 # here-document in config.status, that substitutes the proper values into
28096 # config.h.in to produce config.h.
28098 # Create a delimiter string that does not exist in confdefs.h, to ease
28099 # handling of long lines.
28100 ac_delim='%!_!# '
28101 for ac_last_try in false false :; do
28102 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28103 if test -z "$ac_t"; then
28104 break
28105 elif $ac_last_try; then
28106 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28107 else
28108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28110 done
28112 # For the awk script, D is an array of macro values keyed by name,
28113 # likewise P contains macro parameters if any. Preserve backslash
28114 # newline sequences.
28116 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28117 sed -n '
28118 s/.\{148\}/&'"$ac_delim"'/g
28119 t rset
28120 :rset
28121 s/^[ ]*#[ ]*define[ ][ ]*/ /
28122 t def
28124 :def
28125 s/\\$//
28126 t bsnl
28127 s/["\\]/\\&/g
28128 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28129 D["\1"]=" \3"/p
28130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28132 :bsnl
28133 s/["\\]/\\&/g
28134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28135 D["\1"]=" \3\\\\\\n"\\/p
28136 t cont
28137 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28138 t cont
28140 :cont
28142 s/.\{148\}/&'"$ac_delim"'/g
28143 t clear
28144 :clear
28145 s/\\$//
28146 t bsnlc
28147 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28149 :bsnlc
28150 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28151 b cont
28152 ' <confdefs.h | sed '
28153 s/'"$ac_delim"'/"\\\
28154 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28157 for (key in D) D_is_set[key] = 1
28158 FS = "\a"
28160 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28161 line = \$ 0
28162 split(line, arg, " ")
28163 if (arg[1] == "#") {
28164 defundef = arg[2]
28165 mac1 = arg[3]
28166 } else {
28167 defundef = substr(arg[1], 2)
28168 mac1 = arg[2]
28170 split(mac1, mac2, "(") #)
28171 macro = mac2[1]
28172 prefix = substr(line, 1, index(line, defundef) - 1)
28173 if (D_is_set[macro]) {
28174 # Preserve the white space surrounding the "#".
28175 print prefix "define", macro P[macro] D[macro]
28176 next
28177 } else {
28178 # Replace #undef with comments. This is necessary, for example,
28179 # in the case of _POSIX_SOURCE, which is predefined and required
28180 # on some systems where configure will not decide to define it.
28181 if (defundef == "undef") {
28182 print "/*", prefix defundef, macro, "*/"
28183 next
28187 { print }
28188 _ACAWK
28189 _ACEOF
28190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28191 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28192 fi # test -n "$CONFIG_HEADERS"
28195 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28196 shift
28197 for ac_tag
28199 case $ac_tag in
28200 :[FHLC]) ac_mode=$ac_tag; continue;;
28201 esac
28202 case $ac_mode$ac_tag in
28203 :[FHL]*:*);;
28204 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28205 :[FH]-) ac_tag=-:-;;
28206 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28207 esac
28208 ac_save_IFS=$IFS
28209 IFS=:
28210 set x $ac_tag
28211 IFS=$ac_save_IFS
28212 shift
28213 ac_file=$1
28214 shift
28216 case $ac_mode in
28217 :L) ac_source=$1;;
28218 :[FH])
28219 ac_file_inputs=
28220 for ac_f
28222 case $ac_f in
28223 -) ac_f="$tmp/stdin";;
28224 *) # Look for the file first in the build tree, then in the source tree
28225 # (if the path is not absolute). The absolute path cannot be DOS-style,
28226 # because $ac_f cannot contain `:'.
28227 test -f "$ac_f" ||
28228 case $ac_f in
28229 [\\/$]*) false;;
28230 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28231 esac ||
28232 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28233 esac
28234 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28235 as_fn_append ac_file_inputs " '$ac_f'"
28236 done
28238 # Let's still pretend it is `configure' which instantiates (i.e., don't
28239 # use $as_me), people would be surprised to read:
28240 # /* config.h. Generated by config.status. */
28241 configure_input='Generated from '`
28242 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28243 `' by configure.'
28244 if test x"$ac_file" != x-; then
28245 configure_input="$ac_file. $configure_input"
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28247 $as_echo "$as_me: creating $ac_file" >&6;}
28249 # Neutralize special characters interpreted by sed in replacement strings.
28250 case $configure_input in #(
28251 *\&* | *\|* | *\\* )
28252 ac_sed_conf_input=`$as_echo "$configure_input" |
28253 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28254 *) ac_sed_conf_input=$configure_input;;
28255 esac
28257 case $ac_tag in
28258 *:-:* | *:-) cat >"$tmp/stdin" \
28259 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28260 esac
28262 esac
28264 ac_dir=`$as_dirname -- "$ac_file" ||
28265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28266 X"$ac_file" : 'X\(//\)[^/]' \| \
28267 X"$ac_file" : 'X\(//\)$' \| \
28268 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28269 $as_echo X"$ac_file" |
28270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28271 s//\1/
28274 /^X\(\/\/\)[^/].*/{
28275 s//\1/
28278 /^X\(\/\/\)$/{
28279 s//\1/
28282 /^X\(\/\).*/{
28283 s//\1/
28286 s/.*/./; q'`
28287 as_dir="$ac_dir"; as_fn_mkdir_p
28288 ac_builddir=.
28290 case "$ac_dir" in
28291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28293 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28294 # A ".." for each directory in $ac_dir_suffix.
28295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28296 case $ac_top_builddir_sub in
28297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28299 esac ;;
28300 esac
28301 ac_abs_top_builddir=$ac_pwd
28302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28303 # for backward compatibility:
28304 ac_top_builddir=$ac_top_build_prefix
28306 case $srcdir in
28307 .) # We are building in place.
28308 ac_srcdir=.
28309 ac_top_srcdir=$ac_top_builddir_sub
28310 ac_abs_top_srcdir=$ac_pwd ;;
28311 [\\/]* | ?:[\\/]* ) # Absolute name.
28312 ac_srcdir=$srcdir$ac_dir_suffix;
28313 ac_top_srcdir=$srcdir
28314 ac_abs_top_srcdir=$srcdir ;;
28315 *) # Relative name.
28316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28317 ac_top_srcdir=$ac_top_build_prefix$srcdir
28318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28319 esac
28320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28323 case $ac_mode in
28326 # CONFIG_FILE
28329 _ACEOF
28331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28332 # If the template does not know about datarootdir, expand it.
28333 # FIXME: This hack should be removed a few years after 2.60.
28334 ac_datarootdir_hack=; ac_datarootdir_seen=
28335 ac_sed_dataroot='
28336 /datarootdir/ {
28340 /@datadir@/p
28341 /@docdir@/p
28342 /@infodir@/p
28343 /@localedir@/p
28344 /@mandir@/p'
28345 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28346 *datarootdir*) ac_datarootdir_seen=yes;;
28347 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28349 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28350 _ACEOF
28351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28352 ac_datarootdir_hack='
28353 s&@datadir@&$datadir&g
28354 s&@docdir@&$docdir&g
28355 s&@infodir@&$infodir&g
28356 s&@localedir@&$localedir&g
28357 s&@mandir@&$mandir&g
28358 s&\\\${datarootdir}&$datarootdir&g' ;;
28359 esac
28360 _ACEOF
28362 # Neutralize VPATH when `$srcdir' = `.'.
28363 # Shell code in configure.ac might set extrasub.
28364 # FIXME: do we really want to maintain this feature?
28365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28366 ac_sed_extra="$ac_vpsub
28367 $extrasub
28368 _ACEOF
28369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28372 s|@configure_input@|$ac_sed_conf_input|;t t
28373 s&@top_builddir@&$ac_top_builddir_sub&;t t
28374 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28375 s&@srcdir@&$ac_srcdir&;t t
28376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28377 s&@top_srcdir@&$ac_top_srcdir&;t t
28378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28379 s&@builddir@&$ac_builddir&;t t
28380 s&@abs_builddir@&$ac_abs_builddir&;t t
28381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28382 $ac_datarootdir_hack
28384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28385 if $ac_cs_awk_getline; then
28386 $AWK -f "$tmp/subs.awk"
28387 else
28388 $AWK -f "$tmp/subs.awk" | $SHELL
28389 fi >$tmp/out \
28390 || as_fn_error "could not create $ac_file" "$LINENO" 5
28392 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28393 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28394 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28396 which seems to be undefined. Please make sure it is defined." >&5
28397 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28398 which seems to be undefined. Please make sure it is defined." >&2;}
28400 rm -f "$tmp/stdin"
28401 case $ac_file in
28402 -) cat "$tmp/out" && rm -f "$tmp/out";;
28403 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28404 esac \
28405 || as_fn_error "could not create $ac_file" "$LINENO" 5
28409 # CONFIG_HEADER
28411 if test x"$ac_file" != x-; then
28413 $as_echo "/* $configure_input */" \
28414 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28415 } >"$tmp/config.h" \
28416 || as_fn_error "could not create $ac_file" "$LINENO" 5
28417 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28419 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28420 else
28421 rm -f "$ac_file"
28422 mv "$tmp/config.h" "$ac_file" \
28423 || as_fn_error "could not create $ac_file" "$LINENO" 5
28425 else
28426 $as_echo "/* $configure_input */" \
28427 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28428 || as_fn_error "could not create -" "$LINENO" 5
28432 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28433 $as_echo "$as_me: executing $ac_file commands" >&6;}
28435 esac
28438 case $ac_file$ac_mode in
28439 "as":F) chmod +x as ;;
28440 "collect-ld":F) chmod +x collect-ld ;;
28441 "nm":F) chmod +x nm ;;
28442 "default":C)
28443 case ${CONFIG_HEADERS} in
28444 *auto-host.h:config.in*)
28445 echo > cstamp-h ;;
28446 esac
28447 # Make sure all the subdirs exist.
28448 for d in $subdirs doc build common c-family
28450 test -d $d || mkdir $d
28451 done
28454 esac
28455 done # for ac_tag
28458 as_fn_exit 0
28459 _ACEOF
28460 ac_clean_files=$ac_clean_files_save
28462 test $ac_write_fail = 0 ||
28463 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28466 # configure is writing to config.log, and then calls config.status.
28467 # config.status does its own redirection, appending to config.log.
28468 # Unfortunately, on DOS this fails, as config.log is still kept open
28469 # by configure, so config.status won't be able to write to it; its
28470 # output is simply discarded. So we exec the FD to /dev/null,
28471 # effectively closing config.log, so it can be properly (re)opened and
28472 # appended to by config.status. When coming back to configure, we
28473 # need to make the FD available again.
28474 if test "$no_create" != yes; then
28475 ac_cs_success=:
28476 ac_config_status_args=
28477 test "$silent" = yes &&
28478 ac_config_status_args="$ac_config_status_args --quiet"
28479 exec 5>/dev/null
28480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28481 exec 5>>config.log
28482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28483 # would make configure fail if this is the last instruction.
28484 $ac_cs_success || as_fn_exit $?
28486 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28488 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}