Merge trunk version 196253 into gupc branch.
[official-gcc.git] / gcc / configure
blob82cd8be598fa321c083386e41eb800c089fb97d2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
699 FGREP
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 PERL
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREECHECKING
777 TREEBROWSER
778 nocommon_flag
779 noexception_flags
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_upc_pts
889 with_upc_pts_vaddr_order
890 with_upc_packed_bits
891 with_upc_pts_packed_bits
892 enable_upc_link_script
893 with_dwarf2
894 enable_shared
895 with_native_system_header_dir
896 with_build_sysroot
897 with_sysroot
898 with_specs
899 with_pkgversion
900 with_bugurl
901 enable_languages
902 with_multilib_list
903 enable_rpath
904 with_libiconv_prefix
905 enable_sjlj_exceptions
906 enable_secureplt
907 enable_leading_mingw64_underscores
908 enable_cld
909 enable_frame_pointer
910 enable_win32_registry
911 enable_static
912 with_pic
913 enable_fast_install
914 enable_libtool_lock
915 with_plugin_ld
916 enable_gnu_indirect_function
917 enable_initfini_array
918 enable_comdat
919 enable_gnu_unique_object
920 enable_linker_build_id
921 with_long_double_128
922 with_gc
923 with_system_zlib
924 enable_maintainer_mode
925 enable_version_specific_runtime_libs
926 enable_plugin
927 enable_libquadmath_support
928 with_linker_hash_style
930 ac_precious_vars='build_alias
931 host_alias
932 target_alias
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
939 CXXFLAGS
942 CXXCPP
943 GMPLIBS
944 GMPINC
945 ISLLIBS
946 ISLINC
947 CLOOGLIBS
948 CLOOGINC'
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 ac_unrecognized_opts=
955 ac_unrecognized_sep=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1006 ac_prev=
1007 continue
1010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1019 ac_dashdash=yes ;;
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1292 "with_$ac_useropt"
1293 "*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information."
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1343 esac
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 esac
1356 done
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
1366 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 Program names:
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 System types:
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 --target=TARGET configure for building compilers for TARGET [HOST]
1556 _ACEOF
1559 if test -n "$ac_init_help"; then
1561 cat <<\_ACEOF
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-generated-files-in-srcdir
1568 put copies of generated files in source dir intended
1569 for creating source tarballs for users without
1570 texinfo bison or flex
1571 --disable-largefile omit support for large files
1572 --enable-werror-always enable -Werror despite compiler version
1573 --enable-checking[=LIST]
1574 enable expensive run-time checks. With LIST, enable
1575 only specific categories of checks. Categories are:
1576 yes,no,all,none,release. Flags are:
1577 assert,df,fold,gc,gcac,gimple,misc,
1578 rtlflag,rtl,runtime,tree,valgrind,types
1579 --enable-coverage[=LEVEL]
1580 enable compiler's code coverage collection. Use to
1581 measure compiler performance and locate unused parts
1582 of the compiler. With LEVEL, specify optimization.
1583 Values are opt, noopt, default is noopt
1584 --enable-gather-detailed-mem-stats
1585 enable detailed memory allocation stats gathering
1586 --enable-multilib enable library support for multiple ABIs
1587 --enable-multiarch enable support for multiarch paths
1588 --enable-__cxa_atexit enable __cxa_atexit for C++
1589 --enable-decimal-float={no,yes,bid,dpd}
1590 enable decimal float extension to C. Selecting 'bid'
1591 or 'dpd' choses which decimal floating point format
1592 to use
1593 --enable-fixed-point enable fixed-point arithmetic extension to C
1594 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1595 package
1596 --enable-tls enable or disable generation of tls code overriding
1597 the assembler check for tls support
1598 --enable-objc-gc enable the use of Boehm's garbage collector with the
1599 GNU Objective-C runtime
1600 --enable-upc-link-script
1601 enable UPC's use of a custom linker script; this
1602 will define the UPC shared section as a no load
1603 section on targets where this feature is supported
1604 (requires GNU LD)
1605 --disable-shared don't provide a shared libgcc
1606 --enable-languages=LIST specify which front-ends to build
1607 --disable-rpath do not hardcode runtime library paths
1608 --enable-sjlj-exceptions
1609 arrange to use setjmp/longjmp exception handling
1610 --enable-secureplt enable -msecure-plt by default for PowerPC
1611 --enable-leading-mingw64-underscores
1612 enable leading underscores on 64 bit mingw targets
1613 --enable-cld enable -mcld by default for 32bit x86
1614 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1616 --disable-win32-registry
1617 disable lookup of installation paths in the Registry
1618 on Windows hosts
1619 --enable-win32-registry enable registry lookup (default)
1620 --enable-win32-registry=KEY
1621 use KEY instead of GCC version as the last portion
1622 of the registry key
1623 --enable-shared[=PKGS] build shared libraries [default=yes]
1624 --enable-static[=PKGS] build static libraries [default=yes]
1625 --enable-fast-install[=PKGS]
1626 optimize for fast installation [default=yes]
1627 --disable-libtool-lock avoid locking (might break parallel builds)
1628 --enable-gnu-indirect-function
1629 enable the use of the @gnu_indirect_function to
1630 glibc systems
1631 --enable-initfini-array use .init_array/.fini_array sections
1632 --enable-comdat enable COMDAT group support
1633 --enable-gnu-unique-object
1634 enable the use of the @gnu_unique_object ELF
1635 extension on glibc systems
1636 --enable-linker-build-id
1637 compiler will always pass --build-id to linker
1638 --enable-maintainer-mode
1639 enable make rules and dependencies not useful (and
1640 sometimes confusing) to the casual installer
1641 --enable-version-specific-runtime-libs
1642 specify that runtime libraries should be installed
1643 in a compiler-specific directory
1644 --enable-plugin enable plugin support
1645 --disable-libquadmath-support
1646 disable libquadmath support for Fortran
1648 Optional Packages:
1649 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1650 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1651 --with-build-libsubdir=DIR Directory where to find libraries for build system
1652 --with-local-prefix=DIR specifies directory to put local include
1653 --with-gxx-include-dir=DIR
1654 specifies directory to put g++ header files
1655 --with-cpp-install-dir=DIR
1656 install the user visible C preprocessor in DIR
1657 (relative to PREFIX) as well as PREFIX/bin
1658 --with-gnu-ld arrange to work with GNU ld
1659 --with-ld arrange to use the specified ld (full pathname)
1660 --with-demangler-in-ld try to use demangler in GNU ld
1661 --with-gnu-as arrange to work with GNU as
1662 --with-as arrange to use the specified as (full pathname)
1663 --with-stabs arrange to use stabs instead of host debug format
1664 --with-upc-pts={struct,packed}
1665 choose the representation of a UPC pointer-to-shared
1666 --with-upc-pts-vaddr-order={last,first}
1667 choose position of the address field in UPC
1668 pointer-to-shared representation
1670 --with-upc-pts-packed-bits=phase,thread,vaddr
1671 choose bit distribution in packed UPC
1672 pointer-to-shared representation
1673 --with-dwarf2 force the default debug format to be DWARF 2
1674 --with-native-system-header-dir=dir
1675 use dir as the directory to look for standard
1676 system header files in. Defaults to /usr/include.
1677 --with-build-sysroot=sysroot
1678 use sysroot as the system root during the build
1679 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1680 --with-specs=SPECS add SPECS to driver command-line processing
1681 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1682 --with-bugurl=URL Direct users to URL to report a bug
1683 --with-multilib-list select multilibs (SH and x86-64 only)
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1686 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1687 --with-pic try to use only PIC/non-PIC objects [default=use
1688 both]
1689 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1690 --with-plugin-ld=[ARG] specify the plugin linker
1691 --with-long-double-128 use 128-bit long double by default
1692 --with-gc={page,zone} this option is not supported anymore. It used to
1693 choose the garbage collection mechanism to use with
1694 the compiler
1695 --with-system-zlib use installed libz
1696 --with-linker-hash-style={sysv,gnu,both}
1697 specify the linker hash style
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1709 CPP C preprocessor
1710 CXXCPP C++ preprocessor
1711 GMPLIBS How to link GMP
1712 GMPINC How to find GMP include files
1713 ISLLIBS How to link ISL
1714 ISLINC How to find ISL include files
1715 CLOOGLIBS How to link CLOOG
1716 CLOOGINC How to find CLOOG include files
1718 Use these variables to override the choices made by `configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1721 Report bugs to the package provider.
1722 _ACEOF
1723 ac_status=$?
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731 continue
1732 ac_builddir=.
1734 case "$ac_dir" in
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 esac ;;
1744 esac
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1750 case $srcdir in
1751 .) # We are building in place.
1752 ac_srcdir=.
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1756 ac_srcdir=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1759 *) # Relative name.
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763 esac
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1772 echo &&
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1774 else
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776 fi || ac_status=$?
1777 cd "$ac_pwd" || { ac_status=$?; break; }
1778 done
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1783 cat <<\_ACEOF
1784 configure
1785 generated by GNU Autoconf 2.64
1787 Copyright (C) 2009 Free Software Foundation, Inc.
1788 This configure script is free software; the Free Software Foundation
1789 gives unlimited permission to copy, distribute and modify it.
1790 _ACEOF
1791 exit
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=1
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 return $ac_retval
1834 } # ac_fn_c_try_compile
1836 # ac_fn_cxx_try_compile LINENO
1837 # ----------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_cxx_try_compile
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_cpp ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } >/dev/null && {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 return $ac_retval
1909 } # ac_fn_c_try_cpp
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1915 # accordingly.
1916 ac_fn_c_check_header_mongrel ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 else
1929 # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_header_compiler=yes
1939 else
1940 ac_header_compiler=no
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954 ac_header_preproc=yes
1955 else
1956 ac_header_preproc=no
1958 rm -f conftest.err conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1962 # So? What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964 yes:no: )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 no:yes:* )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 esac
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 eval "$3=\$ac_header_compiler"
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 } # ac_fn_c_check_header_mongrel
1998 # ac_fn_c_try_run LINENO
1999 # ----------------------
2000 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2001 # that executables *can* be run.
2002 ac_fn_c_try_run ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if { { ac_try="$ac_link"
2006 case "(($ac_try" in
2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008 *) ac_try_echo=$ac_try;;
2009 esac
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_link") 2>&5
2013 ac_status=$?
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2016 { { case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_try") 2>&5
2023 ac_status=$?
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; }; }; then :
2026 ac_retval=0
2027 else
2028 $as_echo "$as_me: program exited with status $ac_status" >&5
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2032 ac_retval=$ac_status
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 return $ac_retval
2038 } # ac_fn_c_try_run
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2055 #include <$2>
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$3=yes"
2059 else
2060 eval "$3=no"
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_c_check_header_compile
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2075 # computed
2076 ac_fn_c_compute_int ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=0 ac_mid=0
2096 while :; do
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2101 main ()
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104 test_array [0] = 0
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=$ac_mid; break
2112 else
2113 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114 if test $ac_lo -le $ac_mid; then
2115 ac_lo= ac_hi=
2116 break
2118 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 done
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) < 0)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=-1 ac_mid=-1
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 main ()
2145 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2146 test_array [0] = 0
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_lo=$ac_mid; break
2154 else
2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156 if test $ac_mid -le $ac_hi; then
2157 ac_lo= ac_hi=
2158 break
2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164 else
2165 ac_lo= ac_hi=
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 # Binary search between lo and hi bounds.
2171 while test "x$ac_lo" != "x$ac_hi"; do
2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2177 main ()
2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 test_array [0] = 0
2183 return 0;
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=$ac_mid
2188 else
2189 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193 case $ac_lo in #((
2194 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195 '') ac_retval=1 ;;
2196 esac
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2201 static long int longval () { return $2; }
2202 static unsigned long int ulongval () { return $2; }
2203 #include <stdio.h>
2204 #include <stdlib.h>
2206 main ()
2209 FILE *f = fopen ("conftest.val", "w");
2210 if (! f)
2211 return 1;
2212 if (($2) < 0)
2214 long int i = longval ();
2215 if (i != ($2))
2216 return 1;
2217 fprintf (f, "%ld", i);
2219 else
2221 unsigned long int i = ulongval ();
2222 if (i != ($2))
2223 return 1;
2224 fprintf (f, "%lu", i);
2226 /* Do not output a trailing newline, as this causes \r\n confusion
2227 on some platforms. */
2228 return ferror (f) || fclose (f) != 0;
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_run "$LINENO"; then :
2235 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236 else
2237 ac_retval=1
2239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240 conftest.$ac_objext conftest.beam conftest.$ac_ext
2241 rm -f conftest.val
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245 return $ac_retval
2247 } # ac_fn_c_compute_int
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 eval "$3=no"
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2266 main ()
2268 if (sizeof ($2))
2269 return 0;
2271 return 0;
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 if (sizeof (($2)))
2282 return 0;
2284 return 0;
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2289 else
2290 eval "$3=yes"
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_find_intX_t LINENO BITS VAR
2304 # -----------------------------------
2305 # Finds a signed integer type with width BITS, setting cache variable VAR
2306 # accordingly.
2307 ac_fn_c_find_intX_t ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2311 $as_echo_n "checking for int$2_t... " >&6; }
2312 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 eval "$3=no"
2316 for ac_type in int$2_t 'int' 'long int' \
2317 'long long int' 'short int' 'signed char'; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 $ac_includes_default
2322 main ()
2324 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2325 test_array [0] = 0
2328 return 0;
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $ac_includes_default
2336 main ()
2338 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2339 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2340 test_array [0] = 0
2343 return 0;
2345 _ACEOF
2346 if ac_fn_c_try_compile "$LINENO"; then :
2348 else
2349 case $ac_type in #(
2350 int$2_t) :
2351 eval "$3=yes" ;; #(
2352 *) :
2353 eval "$3=\$ac_type" ;;
2354 esac
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 eval as_val=\$$3
2360 if test "x$as_val" = x""no; then :
2362 else
2363 break
2365 done
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_c_find_intX_t
2374 # ac_fn_c_try_link LINENO
2375 # -----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded.
2377 ac_fn_c_try_link ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2382 case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385 esac
2386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2389 ac_status=$?
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest$ac_exeext && {
2400 test "$cross_compiling" = yes ||
2401 $as_test_x conftest$ac_exeext
2402 }; then :
2403 ac_retval=0
2404 else
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_retval=1
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 return $ac_retval
2418 } # ac_fn_c_try_link
2420 # ac_fn_c_find_uintX_t LINENO BITS VAR
2421 # ------------------------------------
2422 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2423 # accordingly.
2424 ac_fn_c_find_uintX_t ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2428 $as_echo_n "checking for uint$2_t... " >&6; }
2429 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 eval "$3=no"
2433 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2434 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437 $ac_includes_default
2439 main ()
2441 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2442 test_array [0] = 0
2445 return 0;
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 case $ac_type in #(
2450 uint$2_t) :
2451 eval "$3=yes" ;; #(
2452 *) :
2453 eval "$3=\$ac_type" ;;
2454 esac
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 eval as_val=\$$3
2458 if test "x$as_val" = x""no; then :
2460 else
2461 break
2463 done
2465 eval ac_res=\$$3
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470 } # ac_fn_c_find_uintX_t
2472 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2473 # ----------------------------------------------
2474 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2475 ac_fn_c_check_header_preproc ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2485 #include <$2>
2486 _ACEOF
2487 if ac_fn_c_try_cpp "$LINENO"; then :
2488 eval "$3=yes"
2489 else
2490 eval "$3=no"
2492 rm -f conftest.err conftest.$ac_ext
2494 eval ac_res=\$$3
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499 } # ac_fn_c_check_header_preproc
2501 # ac_fn_cxx_try_cpp LINENO
2502 # ------------------------
2503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2504 ac_fn_cxx_try_cpp ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 if { { ac_try="$ac_cpp conftest.$ac_ext"
2508 case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511 esac
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2515 ac_status=$?
2516 if test -s conftest.err; then
2517 grep -v '^ *+' conftest.err >conftest.er1
2518 cat conftest.er1 >&5
2519 mv -f conftest.er1 conftest.err
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; } >/dev/null && {
2523 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2524 test ! -s conftest.err
2525 }; then :
2526 ac_retval=0
2527 else
2528 $as_echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 ac_retval=1
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534 return $ac_retval
2536 } # ac_fn_cxx_try_cpp
2538 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2539 # ------------------------------------------------
2540 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2541 ac_fn_cxx_check_header_preproc ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 #include <$2>
2552 _ACEOF
2553 if ac_fn_cxx_try_cpp "$LINENO"; then :
2554 eval "$3=yes"
2555 else
2556 eval "$3=no"
2558 rm -f conftest.err conftest.$ac_ext
2560 eval ac_res=\$$3
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_cxx_check_header_preproc
2567 # ac_fn_c_check_func LINENO FUNC VAR
2568 # ----------------------------------
2569 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2570 ac_fn_c_check_func ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2582 #define $2 innocuous_$2
2584 /* System header to define __stub macros and hopefully few prototypes,
2585 which can conflict with char $2 (); below.
2586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2587 <limits.h> exists even on freestanding compilers. */
2589 #ifdef __STDC__
2590 # include <limits.h>
2591 #else
2592 # include <assert.h>
2593 #endif
2595 #undef $2
2597 /* Override any GCC internal prototype to avoid an error.
2598 Use char because int might match the return type of a GCC
2599 builtin and then its argument prototype would still apply. */
2600 #ifdef __cplusplus
2601 extern "C"
2602 #endif
2603 char $2 ();
2604 /* The GNU C library defines this for functions which it implements
2605 to always fail with ENOSYS. Some functions are actually named
2606 something starting with __ and the normal name is an alias. */
2607 #if defined __stub_$2 || defined __stub___$2
2608 choke me
2609 #endif
2612 main ()
2614 return $2 ();
2616 return 0;
2618 _ACEOF
2619 if ac_fn_c_try_link "$LINENO"; then :
2620 eval "$3=yes"
2621 else
2622 eval "$3=no"
2624 rm -f core conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2627 eval ac_res=\$$3
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632 } # ac_fn_c_check_func
2634 # ac_fn_cxx_try_link LINENO
2635 # -------------------------
2636 # Try to link conftest.$ac_ext, and return whether this succeeded.
2637 ac_fn_cxx_try_link ()
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 rm -f conftest.$ac_objext conftest$ac_exeext
2641 if { { ac_try="$ac_link"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648 (eval "$ac_link") 2>conftest.err
2649 ac_status=$?
2650 if test -s conftest.err; then
2651 grep -v '^ *+' conftest.err >conftest.er1
2652 cat conftest.er1 >&5
2653 mv -f conftest.er1 conftest.err
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; } && {
2657 test -z "$ac_cxx_werror_flag" ||
2658 test ! -s conftest.err
2659 } && test -s conftest$ac_exeext && {
2660 test "$cross_compiling" = yes ||
2661 $as_test_x conftest$ac_exeext
2662 }; then :
2663 ac_retval=0
2664 else
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_retval=1
2670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2672 # interfere with the next link command; also delete a directory that is
2673 # left behind by Apple's compiler. We do this before executing the actions.
2674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676 return $ac_retval
2678 } # ac_fn_cxx_try_link
2679 cat >config.log <<_ACEOF
2680 This file contains any messages produced by compilers while
2681 running configure, to aid debugging if configure makes a mistake.
2683 It was created by $as_me, which was
2684 generated by GNU Autoconf 2.64. Invocation command line was
2686 $ $0 $@
2688 _ACEOF
2689 exec 5>>config.log
2691 cat <<_ASUNAME
2692 ## --------- ##
2693 ## Platform. ##
2694 ## --------- ##
2696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2713 _ASUNAME
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 $as_echo "PATH: $as_dir"
2721 done
2722 IFS=$as_save_IFS
2724 } >&5
2726 cat >&5 <<_ACEOF
2729 ## ----------- ##
2730 ## Core tests. ##
2731 ## ----------- ##
2733 _ACEOF
2736 # Keep a trace of the command line.
2737 # Strip out --no-create and --no-recursion so they do not pile up.
2738 # Strip out --silent because we don't want to record it for future runs.
2739 # Also quote any args containing shell meta-characters.
2740 # Make two passes to allow for proper duplicate-argument suppression.
2741 ac_configure_args=
2742 ac_configure_args0=
2743 ac_configure_args1=
2744 ac_must_keep_next=false
2745 for ac_pass in 1 2
2747 for ac_arg
2749 case $ac_arg in
2750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2752 | -silent | --silent | --silen | --sile | --sil)
2753 continue ;;
2754 *\'*)
2755 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2756 esac
2757 case $ac_pass in
2758 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2760 as_fn_append ac_configure_args1 " '$ac_arg'"
2761 if test $ac_must_keep_next = true; then
2762 ac_must_keep_next=false # Got value, back to normal.
2763 else
2764 case $ac_arg in
2765 *=* | --config-cache | -C | -disable-* | --disable-* \
2766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2768 | -with-* | --with-* | -without-* | --without-* | --x)
2769 case "$ac_configure_args0 " in
2770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2771 esac
2773 -* ) ac_must_keep_next=true ;;
2774 esac
2776 as_fn_append ac_configure_args " '$ac_arg'"
2778 esac
2779 done
2780 done
2781 { ac_configure_args0=; unset ac_configure_args0;}
2782 { ac_configure_args1=; unset ac_configure_args1;}
2784 # When interrupted or exit'd, cleanup temporary files, and complete
2785 # config.log. We remove comments because anyway the quotes in there
2786 # would cause problems or look ugly.
2787 # WARNING: Use '\'' to represent an apostrophe within the trap.
2788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2789 trap 'exit_status=$?
2790 # Save into config.log some information that might help in debugging.
2792 echo
2794 cat <<\_ASBOX
2795 ## ---------------- ##
2796 ## Cache variables. ##
2797 ## ---------------- ##
2798 _ASBOX
2799 echo
2800 # The following way of writing the cache mishandles newlines in values,
2802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2803 eval ac_val=\$$ac_var
2804 case $ac_val in #(
2805 *${as_nl}*)
2806 case $ac_var in #(
2807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2809 esac
2810 case $ac_var in #(
2811 _ | IFS | as_nl) ;; #(
2812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2813 *) { eval $ac_var=; unset $ac_var;} ;;
2814 esac ;;
2815 esac
2816 done
2817 (set) 2>&1 |
2818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2819 *${as_nl}ac_space=\ *)
2820 sed -n \
2821 "s/'\''/'\''\\\\'\'''\''/g;
2822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2823 ;; #(
2825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2827 esac |
2828 sort
2830 echo
2832 cat <<\_ASBOX
2833 ## ----------------- ##
2834 ## Output variables. ##
2835 ## ----------------- ##
2836 _ASBOX
2837 echo
2838 for ac_var in $ac_subst_vars
2840 eval ac_val=\$$ac_var
2841 case $ac_val in
2842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843 esac
2844 $as_echo "$ac_var='\''$ac_val'\''"
2845 done | sort
2846 echo
2848 if test -n "$ac_subst_files"; then
2849 cat <<\_ASBOX
2850 ## ------------------- ##
2851 ## File substitutions. ##
2852 ## ------------------- ##
2853 _ASBOX
2854 echo
2855 for ac_var in $ac_subst_files
2857 eval ac_val=\$$ac_var
2858 case $ac_val in
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2860 esac
2861 $as_echo "$ac_var='\''$ac_val'\''"
2862 done | sort
2863 echo
2866 if test -s confdefs.h; then
2867 cat <<\_ASBOX
2868 ## ----------- ##
2869 ## confdefs.h. ##
2870 ## ----------- ##
2871 _ASBOX
2872 echo
2873 cat confdefs.h
2874 echo
2876 test "$ac_signal" != 0 &&
2877 $as_echo "$as_me: caught signal $ac_signal"
2878 $as_echo "$as_me: exit $exit_status"
2879 } >&5
2880 rm -f core *.core core.conftest.* &&
2881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2882 exit $exit_status
2884 for ac_signal in 1 2 13 15; do
2885 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2886 done
2887 ac_signal=0
2889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2890 rm -f -r conftest* confdefs.h
2892 $as_echo "/* confdefs.h */" > confdefs.h
2894 # Predefined preprocessor variables.
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_NAME "$PACKAGE_NAME"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_STRING "$PACKAGE_STRING"
2910 _ACEOF
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2914 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_URL "$PACKAGE_URL"
2918 _ACEOF
2921 # Let the site file select an alternate cache file if it wants to.
2922 # Prefer an explicitly selected file to automatically selected ones.
2923 ac_site_file1=NONE
2924 ac_site_file2=NONE
2925 if test -n "$CONFIG_SITE"; then
2926 ac_site_file1=$CONFIG_SITE
2927 elif test "x$prefix" != xNONE; then
2928 ac_site_file1=$prefix/share/config.site
2929 ac_site_file2=$prefix/etc/config.site
2930 else
2931 ac_site_file1=$ac_default_prefix/share/config.site
2932 ac_site_file2=$ac_default_prefix/etc/config.site
2934 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2936 test "x$ac_site_file" = xNONE && continue
2937 if test -r "$ac_site_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2939 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2940 sed 's/^/| /' "$ac_site_file" >&5
2941 . "$ac_site_file"
2943 done
2945 if test -r "$cache_file"; then
2946 # Some versions of bash will fail to source /dev/null (special
2947 # files actually), so we avoid doing that.
2948 if test -f "$cache_file"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2950 $as_echo "$as_me: loading cache $cache_file" >&6;}
2951 case $cache_file in
2952 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2953 *) . "./$cache_file";;
2954 esac
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2958 $as_echo "$as_me: creating cache $cache_file" >&6;}
2959 >$cache_file
2962 # Check that the precious variables saved in the cache have kept the same
2963 # value.
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967 eval ac_new_set=\$ac_env_${ac_var}_set
2968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969 eval ac_new_val=\$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2971 set,)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted=: ;;
2975 ,set)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,);;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w=`echo x $ac_old_val`
2984 ac_new_val_w=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted=:
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2998 fi;;
2999 esac
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3002 case $ac_new_val in
3003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg=$ac_var=$ac_new_val ;;
3005 esac
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3009 esac
3011 done
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3023 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3037 gcc_version=`cat $srcdir/BASE-VER`
3039 # Determine the host, build, and target systems
3040 ac_aux_dir=
3041 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3042 for ac_t in install-sh install.sh shtool; do
3043 if test -f "$ac_dir/$ac_t"; then
3044 ac_aux_dir=$ac_dir
3045 ac_install_sh="$ac_aux_dir/$ac_t -c"
3046 break 2
3048 done
3049 done
3050 if test -z "$ac_aux_dir"; then
3051 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3054 # These three variables are undocumented and unsupported,
3055 # and are intended to be withdrawn in a future Autoconf release.
3056 # They can cause serious problems if a builder's source tree is in a directory
3057 # whose full name contains unusual characters.
3058 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3059 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3060 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3063 # Make sure we can run config.sub.
3064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3065 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3068 $as_echo_n "checking build system type... " >&6; }
3069 if test "${ac_cv_build+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 ac_build_alias=$build_alias
3073 test "x$ac_build_alias" = x &&
3074 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3075 test "x$ac_build_alias" = x &&
3076 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3077 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3078 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3082 $as_echo "$ac_cv_build" >&6; }
3083 case $ac_cv_build in
3084 *-*-*) ;;
3085 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3086 esac
3087 build=$ac_cv_build
3088 ac_save_IFS=$IFS; IFS='-'
3089 set x $ac_cv_build
3090 shift
3091 build_cpu=$1
3092 build_vendor=$2
3093 shift; shift
3094 # Remember, the first character of IFS is used to create $*,
3095 # except with old shells:
3096 build_os=$*
3097 IFS=$ac_save_IFS
3098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3102 $as_echo_n "checking host system type... " >&6; }
3103 if test "${ac_cv_host+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test "x$host_alias" = x; then
3107 ac_cv_host=$ac_cv_build
3108 else
3109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3110 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3115 $as_echo "$ac_cv_host" >&6; }
3116 case $ac_cv_host in
3117 *-*-*) ;;
3118 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3119 esac
3120 host=$ac_cv_host
3121 ac_save_IFS=$IFS; IFS='-'
3122 set x $ac_cv_host
3123 shift
3124 host_cpu=$1
3125 host_vendor=$2
3126 shift; shift
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3129 host_os=$*
3130 IFS=$ac_save_IFS
3131 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3135 $as_echo_n "checking target system type... " >&6; }
3136 if test "${ac_cv_target+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test "x$target_alias" = x; then
3140 ac_cv_target=$ac_cv_host
3141 else
3142 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3143 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3148 $as_echo "$ac_cv_target" >&6; }
3149 case $ac_cv_target in
3150 *-*-*) ;;
3151 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3152 esac
3153 target=$ac_cv_target
3154 ac_save_IFS=$IFS; IFS='-'
3155 set x $ac_cv_target
3156 shift
3157 target_cpu=$1
3158 target_vendor=$2
3159 shift; shift
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3162 target_os=$*
3163 IFS=$ac_save_IFS
3164 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3167 # The aliases save the names the user supplied, while $host etc.
3168 # will get canonicalized.
3169 test -n "$target_alias" &&
3170 test "$program_prefix$program_suffix$program_transform_name" = \
3171 NONENONEs,x,x, &&
3172 program_prefix=${target_alias}-
3174 # Determine the noncanonical target name, for directory use.
3175 case ${build_alias} in
3176 "") build_noncanonical=${build} ;;
3177 *) build_noncanonical=${build_alias} ;;
3178 esac
3180 case ${host_alias} in
3181 "") host_noncanonical=${build_noncanonical} ;;
3182 *) host_noncanonical=${host_alias} ;;
3183 esac
3185 case ${target_alias} in
3186 "") target_noncanonical=${host_noncanonical} ;;
3187 *) target_noncanonical=${target_alias} ;;
3188 esac
3193 # Determine the target- and build-specific subdirectories
3195 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3196 # have matching libraries, they should use host libraries: Makefile.tpl
3197 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3198 # However, they still use the build modules, because the corresponding
3199 # host modules (e.g. bison) are only built for the host when bootstrap
3200 # finishes. So:
3201 # - build_subdir is where we find build modules, and never changes.
3202 # - build_libsubdir is where we find build libraries, and can be overridden.
3204 # Prefix 'build-' so this never conflicts with target_subdir.
3205 build_subdir="build-${build_noncanonical}"
3207 # Check whether --with-build-libsubdir was given.
3208 if test "${with_build_libsubdir+set}" = set; then :
3209 withval=$with_build_libsubdir; build_libsubdir="$withval"
3210 else
3211 build_libsubdir="$build_subdir"
3214 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3215 if ( test $srcdir = . && test -d gcc ) \
3216 || test -d $srcdir/../host-${host_noncanonical}; then
3217 host_subdir="host-${host_noncanonical}"
3218 else
3219 host_subdir=.
3221 # No prefix.
3222 target_subdir=${target_noncanonical}
3225 # Set program_transform_name
3226 test "$program_prefix" != NONE &&
3227 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3228 # Use a double $ so make ignores it.
3229 test "$program_suffix" != NONE &&
3230 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3231 # Double any \ or $.
3232 # By default was `s,x,x', remove it if useless.
3233 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3234 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3237 # Check for bogus environment variables.
3238 # Test if LIBRARY_PATH contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # LIBRARY_PATH contains the current directory if one of the following
3241 # is true:
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3246 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3247 case ${LIBRARY_PATH} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 library_path_setting="contains current directory"
3252 library_path_setting="ok"
3254 esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3256 $as_echo "$library_path_setting" >&6; }
3257 if test "$library_path_setting" != "ok"; then
3258 as_fn_error "
3259 *** LIBRARY_PATH shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3264 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3265 # since this would lead to problems installing/building glibc.
3266 # GCC_EXEC_PREFIX contains the current directory if one of the following
3267 # is true:
3268 # - one of the terminals (":" and ";") is the first or last sign
3269 # - two terminals occur directly after each other
3270 # - the path contains an element with a dot in it
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3272 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3273 case ${GCC_EXEC_PREFIX} in
3274 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3275 gcc_exec_prefix_setting="contains current directory"
3278 gcc_exec_prefix_setting="ok"
3280 esac
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3282 $as_echo "$gcc_exec_prefix_setting" >&6; }
3283 if test "$gcc_exec_prefix_setting" != "ok"; then
3284 as_fn_error "
3285 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3286 *** building gcc. Please change the environment variable
3287 *** and run configure again." "$LINENO" 5
3290 # -----------
3291 # Directories
3292 # -----------
3294 # Specify the local prefix
3295 local_prefix=
3297 # Check whether --with-local-prefix was given.
3298 if test "${with_local_prefix+set}" = set; then :
3299 withval=$with_local_prefix; case "${withval}" in
3300 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3301 no) ;;
3302 *) local_prefix=$with_local_prefix ;;
3303 esac
3307 # Default local prefix if it is empty
3308 if test x$local_prefix = x; then
3309 local_prefix=/usr/local
3312 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3313 # passed in by the toplevel make and thus we'd get different behavior
3314 # depending on where we built the sources.
3315 gcc_gxx_include_dir=
3316 # Specify the g++ header file directory
3318 # Check whether --with-gxx-include-dir was given.
3319 if test "${with_gxx_include_dir+set}" = set; then :
3320 withval=$with_gxx_include_dir; case "${withval}" in
3321 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3322 no) ;;
3323 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3324 esac
3328 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3329 if test x${gcc_gxx_include_dir} = x; then
3330 if test x${enable_version_specific_runtime_libs} = xyes; then
3331 gcc_gxx_include_dir='${libsubdir}/include/c++'
3332 else
3333 libstdcxx_incdir='include/c++/$(version)'
3334 if test x$host != x$target; then
3335 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3337 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3341 gcc_gxx_include_dir_add_sysroot=0
3342 if test "${with_sysroot+set}" = set; then
3343 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3344 if test "${gcc_gxx_without_sysroot}"; then
3345 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3346 gcc_gxx_include_dir_add_sysroot=1
3351 # Check whether --with-cpp_install_dir was given.
3352 if test "${with_cpp_install_dir+set}" = set; then :
3353 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3354 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3355 elif test x$withval != xno; then
3356 cpp_install_dir=$withval
3361 # We would like to our source tree to be readonly. However when releases or
3362 # pre-releases are generated, the flex/bison generated files as well as the
3363 # various formats of manuals need to be included along with the rest of the
3364 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3365 # just that.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3368 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3369 # Check whether --enable-generated-files-in-srcdir was given.
3370 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3371 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3372 else
3373 generated_files_in_srcdir=no
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3378 $as_echo "$generated_files_in_srcdir" >&6; }
3380 if test "$generated_files_in_srcdir" = "yes"; then
3381 GENINSRC=''
3382 else
3383 GENINSRC='#'
3387 # -------------------
3388 # Find default linker
3389 # -------------------
3391 # With GNU ld
3393 # Check whether --with-gnu-ld was given.
3394 if test "${with_gnu_ld+set}" = set; then :
3395 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3396 else
3397 gnu_ld_flag=no
3401 # With pre-defined ld
3403 # Check whether --with-ld was given.
3404 if test "${with_ld+set}" = set; then :
3405 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3408 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3409 if test ! -x "$DEFAULT_LINKER"; then
3410 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3411 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3412 gnu_ld_flag=yes
3415 cat >>confdefs.h <<_ACEOF
3416 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3417 _ACEOF
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3422 $as_echo_n "checking whether a default linker was specified... " >&6; }
3423 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3424 if test x"$gnu_ld_flag" = x"no"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3426 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3429 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 # With demangler in GNU ld
3438 # Check whether --with-demangler-in-ld was given.
3439 if test "${with_demangler_in_ld+set}" = set; then :
3440 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3441 else
3442 demangler_in_ld=yes
3446 # ----------------------
3447 # Find default assembler
3448 # ----------------------
3450 # With GNU as
3452 # Check whether --with-gnu-as was given.
3453 if test "${with_gnu_as+set}" = set; then :
3454 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3455 else
3456 gas_flag=no
3461 # Check whether --with-as was given.
3462 if test "${with_as+set}" = set; then :
3463 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3466 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3467 if test ! -x "$DEFAULT_ASSEMBLER"; then
3468 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3469 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3470 gas_flag=yes
3473 cat >>confdefs.h <<_ACEOF
3474 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3475 _ACEOF
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3480 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3481 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3482 if test x"$gas_flag" = x"no"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3484 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3487 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3494 # ---------------
3495 # Find C compiler
3496 # ---------------
3498 # If a non-executable a.out is present (e.g. created by GNU as above even if
3499 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3500 # file, even when creating an executable, so an execution test fails.
3501 # Remove possible default executable files to avoid this.
3503 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3504 # Autoconf includes it.
3505 rm -f a.out a.exe b.out
3507 # Find the native compiler
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3541 CC=$ac_cv_prog_CC
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3545 else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3552 if test -z "$ac_cv_prog_CC"; then
3553 ac_ct_CC=$CC
3554 # Extract the first word of "gcc", so it can be a program name with args.
3555 set dummy gcc; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_CC="gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3590 if test "x$ac_ct_CC" = x; then
3591 CC=""
3592 else
3593 case $cross_compiling:$ac_tool_warned in
3594 yes:)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned=yes ;;
3598 esac
3599 CC=$ac_ct_CC
3601 else
3602 CC="$ac_cv_prog_CC"
3605 if test -z "$CC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3608 set dummy ${ac_tool_prefix}cc; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_CC+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_CC="${ac_tool_prefix}cc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 break 2
3628 done
3629 done
3630 IFS=$as_save_IFS
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3638 else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 # Extract the first word of "cc", so it can be a program name with args.
3648 set dummy cc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 ac_prog_rejected=no
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3666 ac_prog_rejected=yes
3667 continue
3669 ac_cv_prog_CC="cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3673 done
3674 done
3675 IFS=$as_save_IFS
3677 if test $ac_prog_rejected = yes; then
3678 # We found a bogon in the path, so make sure we never use it.
3679 set dummy $ac_cv_prog_CC
3680 shift
3681 if test $# != 0; then
3682 # We chose a different compiler from the bogus one.
3683 # However, it has the same basename, so the bogon will be chosen
3684 # first if we set CC to just the basename; use the full file name.
3685 shift
3686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3691 CC=$ac_cv_prog_CC
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3695 else
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog in cl.exe
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_CC+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CC" && break
3744 done
3746 if test -z "$CC"; then
3747 ac_ct_CC=$CC
3748 for ac_prog in cl.exe
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$ac_ct_CC"; then
3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_CC="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CC" && break
3788 done
3790 if test "x$ac_ct_CC" = x; then
3791 CC=""
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CC=$ac_ct_CC
3806 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error "no acceptable C compiler found in \$PATH
3809 See \`config.log' for more details." "$LINENO" 5; }
3811 # Provide some information about the compiler.
3812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3813 set X $ac_compile
3814 ac_compiler=$2
3815 for ac_option in --version -v -V -qversion; do
3816 { { ac_try="$ac_compiler $ac_option >&5"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3824 ac_status=$?
3825 if test -s conftest.err; then
3826 sed '10a\
3827 ... rest of stderr output deleted ...
3828 10q' conftest.err >conftest.er1
3829 cat conftest.er1 >&5
3830 rm -f conftest.er1 conftest.err
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3834 done
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main ()
3844 return 0;
3846 _ACEOF
3847 ac_clean_files_save=$ac_clean_files
3848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3849 # Try to create an executable without -o first, disregard a.out.
3850 # It will help us diagnose broken compilers, and finding out an intuition
3851 # of exeext.
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3853 $as_echo_n "checking for C compiler default output file name... " >&6; }
3854 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3856 # The possible output files:
3857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3859 ac_rmfiles=
3860 for ac_file in $ac_files
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3865 esac
3866 done
3867 rm -f $ac_rmfiles
3869 if { { ac_try="$ac_link_default"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link_default") 2>&5
3877 ac_status=$?
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3883 # so that the user can short-circuit this test for compilers unknown to
3884 # Autoconf.
3885 for ac_file in $ac_files ''
3887 test -f "$ac_file" || continue
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 [ab].out )
3892 # We found the default executable, but exeext='' is most
3893 # certainly right.
3894 break;;
3895 *.* )
3896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3897 then :; else
3898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 # We set ac_cv_exeext here because the later test for it is not
3901 # safe: cross compilers may not add the suffix if given an `-o'
3902 # argument, so we may need to know it at that point already.
3903 # Even if this section looks crufty: it has the advantage of
3904 # actually working.
3905 break;;
3907 break;;
3908 esac
3909 done
3910 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912 else
3913 ac_file=''
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3916 $as_echo "$ac_file" >&6; }
3917 if test -z "$ac_file"; then :
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 { as_fn_set_status 77
3924 as_fn_error "C compiler cannot create executables
3925 See \`config.log' for more details." "$LINENO" 5; }; }
3927 ac_exeext=$ac_cv_exeext
3929 # Check that the compiler produces executables we can run. If not, either
3930 # the compiler is broken, or we cross compile.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3932 $as_echo_n "checking whether the C compiler works... " >&6; }
3933 # If not cross compiling, check that we can run a simple program.
3934 if test "$cross_compiling" != yes; then
3935 if { ac_try='./$ac_file'
3936 { { case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_try") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; }; then
3946 cross_compiling=no
3947 else
3948 if test "$cross_compiling" = maybe; then
3949 cross_compiling=yes
3950 else
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error "cannot run C compiled programs.
3954 If you meant to cross compile, use \`--host'.
3955 See \`config.log' for more details." "$LINENO" 5; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3963 ac_clean_files=$ac_clean_files_save
3964 # Check that the compiler produces executables we can run. If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3969 $as_echo "$cross_compiling" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3985 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3987 # `rm'.
3988 for ac_file in conftest.exe conftest conftest.*; do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 break;;
3994 * ) break;;
3995 esac
3996 done
3997 else
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error "cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details." "$LINENO" 5; }
4003 rm -f conftest$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4007 rm -f conftest.$ac_ext
4008 EXEEXT=$ac_cv_exeext
4009 ac_exeext=$EXEEXT
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4011 $as_echo_n "checking for suffix of object files... " >&6; }
4012 if test "${ac_cv_objext+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4019 main ()
4023 return 0;
4025 _ACEOF
4026 rm -f conftest.o conftest.obj
4027 if { { ac_try="$ac_compile"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_compile") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 for ac_file in conftest.o conftest.obj conftest.*; do
4039 test -f "$ac_file" || continue;
4040 case $ac_file in
4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4043 break;;
4044 esac
4045 done
4046 else
4047 $as_echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error "cannot compute suffix of object files: cannot compile
4053 See \`config.log' for more details." "$LINENO" 5; }
4055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4058 $as_echo "$ac_cv_objext" >&6; }
4059 OBJEXT=$ac_cv_objext
4060 ac_objext=$OBJEXT
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4063 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4070 main ()
4072 #ifndef __GNUC__
4073 choke me
4074 #endif
4077 return 0;
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_compiler_gnu=yes
4082 else
4083 ac_compiler_gnu=no
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091 if test $ac_compiler_gnu = yes; then
4092 GCC=yes
4093 else
4094 GCC=
4096 ac_test_CFLAGS=${CFLAGS+set}
4097 ac_save_CFLAGS=$CFLAGS
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4100 if test "${ac_cv_prog_cc_g+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4105 ac_cv_prog_cc_g=no
4106 CFLAGS="-g"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4111 main ()
4115 return 0;
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_g=yes
4120 else
4121 CFLAGS=""
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 main ()
4130 return 0;
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4135 else
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 CFLAGS="-g"
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4142 main ()
4146 return 0;
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_g=yes
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 $as_echo "$ac_cv_prog_cc_g" >&6; }
4161 if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4165 CFLAGS="-g -O2"
4166 else
4167 CFLAGS="-g"
4169 else
4170 if test "$GCC" = yes; then
4171 CFLAGS="-O2"
4172 else
4173 CFLAGS=
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4178 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 ac_cv_prog_cc_c89=no
4182 ac_save_CC=$CC
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <stdarg.h>
4186 #include <stdio.h>
4187 #include <sys/types.h>
4188 #include <sys/stat.h>
4189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4190 struct buf { int x; };
4191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4192 static char *e (p, i)
4193 char **p;
4194 int i;
4196 return p[i];
4198 static char *f (char * (*g) (char **, int), char **p, ...)
4200 char *s;
4201 va_list v;
4202 va_start (v,p);
4203 s = g (p, va_arg (v,int));
4204 va_end (v);
4205 return s;
4208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4209 function prototypes and stuff, but not '\xHH' hex character constants.
4210 These don't provoke an error unfortunately, instead are silently treated
4211 as 'x'. The following induces an error, until -std is added to get
4212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4213 array size at least. It's necessary to write '\x00'==0 to get something
4214 that's true only with -std. */
4215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4218 inside strings and character constants. */
4219 #define FOO(x) 'x'
4220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222 int test (int i, double x);
4223 struct s1 {int (*f) (int a);};
4224 struct s2 {int (*f) (double a);};
4225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4226 int argc;
4227 char **argv;
4229 main ()
4231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 return 0;
4235 _ACEOF
4236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_prog_cc_c89=$ac_arg
4243 rm -f core conftest.err conftest.$ac_objext
4244 test "x$ac_cv_prog_cc_c89" != "xno" && break
4245 done
4246 rm -f conftest.$ac_ext
4247 CC=$ac_save_CC
4250 # AC_CACHE_VAL
4251 case "x$ac_cv_prog_cc_c89" in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4254 $as_echo "none needed" >&6; } ;;
4255 xno)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 $as_echo "unsupported" >&6; } ;;
4259 CC="$CC $ac_cv_prog_cc_c89"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4262 esac
4263 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273 if test "x$CC" != xcc; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4275 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4278 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4280 set dummy $CC; ac_cc=`$as_echo "$2" |
4281 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4282 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4289 main ()
4293 return 0;
4295 _ACEOF
4296 # Make sure it works both with $CC and with simple cc.
4297 # We do the test twice because some compilers refuse to overwrite an
4298 # existing .o file with -o, though they will create one.
4299 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4300 rm -f conftest2.*
4301 if { { case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; } &&
4311 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; };
4321 then
4322 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4323 if test "x$CC" != xcc; then
4324 # Test first that cc exists at all.
4325 if { ac_try='cc -c conftest.$ac_ext >&5'
4326 { { case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }; }; then
4336 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4337 rm -f conftest2.*
4338 if { { case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
4358 then
4359 # cc works too.
4361 else
4362 # cc exists but doesn't like -o.
4363 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4367 else
4368 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4370 rm -f core conftest*
4373 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4380 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4384 # expand $ac_aux_dir to an absolute path
4385 am_aux_dir=`cd $ac_aux_dir && pwd`
4387 # FIXME: we rely on the cache variable name because
4388 # there is no other way.
4389 set dummy $CC
4390 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4391 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4392 if test "$am_t" != yes; then
4393 # Losing compiler, so override with the script.
4394 # FIXME: It is wrong to rewrite CC.
4395 # But if we don't then we get into trouble of one sort or another.
4396 # A longer-term fix would be to have automake use am__CC in this case,
4397 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4398 CC="$am_aux_dir/compile $CC"
4402 ac_ext=cpp
4403 ac_cpp='$CXXCPP $CPPFLAGS'
4404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4407 if test -z "$CXX"; then
4408 if test -n "$CCC"; then
4409 CXX=$CCC
4410 else
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_CXX+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$CXX"; then
4422 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 CXX=$ac_cv_prog_CXX
4442 if test -n "$CXX"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4444 $as_echo "$CXX" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CXX" && break
4452 done
4454 if test -z "$CXX"; then
4455 ac_ct_CXX=$CXX
4456 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_CXX"; then
4466 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CXX="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4486 if test -n "$ac_ct_CXX"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4488 $as_echo "$ac_ct_CXX" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CXX" && break
4496 done
4498 if test "x$ac_ct_CXX" = x; then
4499 CXX="g++"
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 CXX=$ac_ct_CXX
4513 # Provide some information about the compiler.
4514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4515 set X $ac_compile
4516 ac_compiler=$2
4517 for ac_option in --version -v -V -qversion; do
4518 { { ac_try="$ac_compiler $ac_option >&5"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4526 ac_status=$?
4527 if test -s conftest.err; then
4528 sed '10a\
4529 ... rest of stderr output deleted ...
4530 10q' conftest.err >conftest.er1
4531 cat conftest.er1 >&5
4532 rm -f conftest.er1 conftest.err
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }
4536 done
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4539 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4540 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4549 #ifndef __GNUC__
4550 choke me
4551 #endif
4554 return 0;
4556 _ACEOF
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 ac_compiler_gnu=yes
4559 else
4560 ac_compiler_gnu=no
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4567 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4568 if test $ac_compiler_gnu = yes; then
4569 GXX=yes
4570 else
4571 GXX=
4573 ac_test_CXXFLAGS=${CXXFLAGS+set}
4574 ac_save_CXXFLAGS=$CXXFLAGS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4576 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4577 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4581 ac_cxx_werror_flag=yes
4582 ac_cv_prog_cxx_g=no
4583 CXXFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4592 return 0;
4594 _ACEOF
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4597 else
4598 CXXFLAGS=""
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4603 main ()
4607 return 0;
4609 _ACEOF
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4612 else
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 CXXFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4619 main ()
4623 return 0;
4625 _ACEOF
4626 if ac_fn_cxx_try_compile "$LINENO"; then :
4627 ac_cv_prog_cxx_g=yes
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4637 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4638 if test "$ac_test_CXXFLAGS" = set; then
4639 CXXFLAGS=$ac_save_CXXFLAGS
4640 elif test $ac_cv_prog_cxx_g = yes; then
4641 if test "$GXX" = yes; then
4642 CXXFLAGS="-g -O2"
4643 else
4644 CXXFLAGS="-g"
4646 else
4647 if test "$GXX" = yes; then
4648 CXXFLAGS="-O2"
4649 else
4650 CXXFLAGS=
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$GNATBIND"; then
4671 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4690 GNATBIND=$ac_cv_prog_GNATBIND
4691 if test -n "$GNATBIND"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4693 $as_echo "$GNATBIND" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4701 if test -z "$ac_cv_prog_GNATBIND"; then
4702 ac_ct_GNATBIND=$GNATBIND
4703 # Extract the first word of "gnatbind", so it can be a program name with args.
4704 set dummy gnatbind; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if test -n "$ac_ct_GNATBIND"; then
4711 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4730 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4731 if test -n "$ac_ct_GNATBIND"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4733 $as_echo "$ac_ct_GNATBIND" >&6; }
4734 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4739 if test "x$ac_ct_GNATBIND" = x; then
4740 GNATBIND="no"
4741 else
4742 case $cross_compiling:$ac_tool_warned in
4743 yes:)
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746 ac_tool_warned=yes ;;
4747 esac
4748 GNATBIND=$ac_ct_GNATBIND
4750 else
4751 GNATBIND="$ac_cv_prog_GNATBIND"
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4756 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test -n "$GNATMAKE"; then
4763 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4776 done
4777 done
4778 IFS=$as_save_IFS
4782 GNATMAKE=$ac_cv_prog_GNATMAKE
4783 if test -n "$GNATMAKE"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4785 $as_echo "$GNATMAKE" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4793 if test -z "$ac_cv_prog_GNATMAKE"; then
4794 ac_ct_GNATMAKE=$GNATMAKE
4795 # Extract the first word of "gnatmake", so it can be a program name with args.
4796 set dummy gnatmake; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4822 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4823 if test -n "$ac_ct_GNATMAKE"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4825 $as_echo "$ac_ct_GNATMAKE" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4831 if test "x$ac_ct_GNATMAKE" = x; then
4832 GNATMAKE="no"
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4839 esac
4840 GNATMAKE=$ac_ct_GNATMAKE
4842 else
4843 GNATMAKE="$ac_cv_prog_GNATMAKE"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4847 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4848 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat >conftest.adb <<EOF
4852 procedure conftest is begin null; end conftest;
4854 acx_cv_cc_gcc_supports_ada=no
4855 # There is a bug in old released versions of GCC which causes the
4856 # driver to exit successfully when the appropriate language module
4857 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4858 # Therefore we must check for the error message as well as an
4859 # unsuccessful exit.
4860 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4861 # given a .adb file, but produce no object file. So we must check
4862 # if an object file was really produced to guard against this.
4863 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4864 if test x"$errors" = x && test -f conftest.$ac_objext; then
4865 acx_cv_cc_gcc_supports_ada=yes
4867 rm -f conftest.*
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4870 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4872 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4873 have_gnat=yes
4874 else
4875 have_gnat=no
4879 # autoconf is lame and doesn't give us any substitution variable for this.
4880 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4881 NO_MINUS_C_MINUS_O=yes
4882 else
4883 OUTPUT_OPTION='-o $@'
4888 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4889 # optimizations to be activated explicitly by the toplevel.
4890 case "$CC" in
4891 */prev-gcc/xgcc*) ;;
4892 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4893 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4894 esac
4898 # Determine PICFLAG for target gnatlib.
4903 case "${target}" in
4904 # PIC is the default on some targets or must not be used.
4905 *-*-darwin*)
4906 # PIC is the default on this platform
4907 # Common symbols not allowed in MH_DYLIB files
4908 PICFLAG_FOR_TARGET=-fno-common
4910 alpha*-dec-osf5*)
4911 # PIC is the default.
4913 hppa*64*-*-hpux*)
4914 # PIC is the default for 64-bit PA HP-UX.
4916 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4918 i[34567]86-*-interix[3-9]*)
4919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4920 # Instead, we relocate shared libraries at runtime.
4922 i[34567]86-*-nto-qnx*)
4923 # QNX uses GNU C++, but need to define -shared option too, otherwise
4924 # it will coredump.
4925 PICFLAG_FOR_TARGET='-fPIC -shared'
4927 i[34567]86-pc-msdosdjgpp*)
4928 # DJGPP does not support shared libraries at all.
4930 ia64*-*-hpux*)
4931 # On IA64 HP-UX, PIC is the default but the pic flag
4932 # sets the default TLS model and affects inlining.
4933 PICFLAG_FOR_TARGET=-fPIC
4935 mips-sgi-irix6*)
4936 # PIC is the default.
4938 rs6000-ibm-aix* | powerpc-ibm-aix*)
4939 # All AIX code is PIC.
4942 # Some targets support both -fPIC and -fpic, but prefer the latter.
4943 # FIXME: Why?
4944 i[34567]86-*-* | x86_64-*-*)
4945 PICFLAG_FOR_TARGET=-fpic
4947 m68k-*-*)
4948 PICFLAG_FOR_TARGET=-fpic
4950 # FIXME: Override -fPIC default in libgcc only?
4951 sh-*-linux* | sh[2346lbe]*-*-linux*)
4952 PICFLAG_FOR_TARGET=-fpic
4954 # FIXME: Simplify to sh*-*-netbsd*?
4955 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4956 sh64-*-netbsd* | sh64l*-*-netbsd*)
4957 PICFLAG_FOR_TARGET=-fpic
4959 # Default to -fPIC unless specified otherwise.
4961 PICFLAG_FOR_TARGET=-fPIC
4963 esac
4965 # If the user explicitly uses -fpic/-fPIC, keep that.
4966 case "${CFLAGS_FOR_TARGET}" in
4967 *-fpic*)
4968 PICFLAG_FOR_TARGET=-fpic
4970 *-fPIC*)
4971 PICFLAG_FOR_TARGET=-fPIC
4973 esac
4977 # -------------------------
4978 # Check C compiler features
4979 # -------------------------
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4991 CPP=
4993 if test -z "$CPP"; then
4994 if test "${ac_cv_prog_CPP+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5000 ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #ifdef __STDC__
5012 # include <limits.h>
5013 #else
5014 # include <assert.h>
5015 #endif
5016 Syntax error
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5020 else
5021 # Broken: fails on valid input.
5022 continue
5024 rm -f conftest.err conftest.$ac_ext
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5031 _ACEOF
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033 # Broken: success on invalid input.
5034 continue
5035 else
5036 # Passes both tests.
5037 ac_preproc_ok=:
5038 break
5040 rm -f conftest.err conftest.$ac_ext
5042 done
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.err conftest.$ac_ext
5045 if $ac_preproc_ok; then :
5046 break
5049 done
5050 ac_cv_prog_CPP=$CPP
5053 CPP=$ac_cv_prog_CPP
5054 else
5055 ac_cv_prog_CPP=$CPP
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #ifdef __STDC__
5071 # include <limits.h>
5072 #else
5073 # include <assert.h>
5074 #endif
5075 Syntax error
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5079 else
5080 # Broken: fails on valid input.
5081 continue
5083 rm -f conftest.err conftest.$ac_ext
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5090 _ACEOF
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092 # Broken: success on invalid input.
5093 continue
5094 else
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5099 rm -f conftest.err conftest.$ac_ext
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5106 else
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." "$LINENO" 5; }
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if test "${ac_cv_path_GREP+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -z "$GREP"; then
5126 ac_path_GREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in grep ggrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5140 *GNU*)
5141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5143 ac_count=0
5144 $as_echo_n 0123456789 >"conftest.in"
5145 while :
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP="$ac_path_GREP"
5157 ac_path_GREP_max=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5161 done
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5165 $ac_path_GREP_found && break 3
5166 done
5167 done
5168 done
5169 IFS=$as_save_IFS
5170 if test -z "$ac_cv_path_GREP"; then
5171 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173 else
5174 ac_cv_path_GREP=$GREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP="$ac_cv_path_GREP"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if test "${ac_cv_path_EGREP+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189 then ac_cv_path_EGREP="$GREP -E"
5190 else
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in egrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP="$ac_path_EGREP"
5223 ac_path_EGREP_max=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5231 $ac_path_EGREP_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_EGREP"; then
5237 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5239 else
5240 ac_cv_path_EGREP=$EGREP
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP="$ac_cv_path_EGREP"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if test "${ac_cv_header_stdc+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 #include <stdlib.h>
5258 #include <stdarg.h>
5259 #include <string.h>
5260 #include <float.h>
5263 main ()
5267 return 0;
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_header_stdc=yes
5272 else
5273 ac_cv_header_stdc=no
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 if test $ac_cv_header_stdc = yes; then
5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include <string.h>
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <stdlib.h>
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev/null 2>&1; then :
5304 else
5305 ac_cv_header_stdc=no
5307 rm -f conftest*
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then :
5315 else
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #include <ctype.h>
5319 #include <stdlib.h>
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5323 #else
5324 # define ISLOWER(c) \
5325 (('a' <= (c) && (c) <= 'i') \
5326 || ('j' <= (c) && (c) <= 'r') \
5327 || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5329 #endif
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5333 main ()
5335 int i;
5336 for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i))
5338 || toupper (i) != TOUPPER (i))
5339 return 2;
5340 return 0;
5342 _ACEOF
5343 if ac_fn_c_try_run "$LINENO"; then :
5345 else
5346 ac_cv_header_stdc=no
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349 conftest.$ac_objext conftest.beam conftest.$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5364 inttypes.h stdint.h unistd.h
5365 do :
5366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5369 eval as_val=\$$as_ac_Header
5370 if test "x$as_val" = x""yes; then :
5371 cat >>confdefs.h <<_ACEOF
5372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 _ACEOF
5377 done
5381 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5382 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5383 MINIX=yes
5384 else
5385 MINIX=
5389 if test "$MINIX" = yes; then
5391 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5394 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5397 $as_echo "#define _MINIX 1" >>confdefs.h
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5403 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5404 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 # define __EXTENSIONS__ 1
5411 $ac_includes_default
5413 main ()
5417 return 0;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 ac_cv_safe_to_define___extensions__=yes
5422 else
5423 ac_cv_safe_to_define___extensions__=no
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5428 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5429 test $ac_cv_safe_to_define___extensions__ = yes &&
5430 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5432 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5434 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5436 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5438 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5441 ac_ext=c
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5447 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5450 CPP=
5452 if test -z "$CPP"; then
5453 if test "${ac_cv_prog_CPP+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 # Double quotes because CPP needs to be expanded
5457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5459 ac_preproc_ok=false
5460 for ac_c_preproc_warn_flag in '' yes
5462 # Use a header file that comes with gcc, so configuring glibc
5463 # with a fresh cross-compiler works.
5464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465 # <limits.h> exists even on freestanding compilers.
5466 # On the NeXT, cc -E runs the code through the compiler's parser,
5467 # not just through cpp. "Syntax error" is here to catch this case.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #ifdef __STDC__
5471 # include <limits.h>
5472 #else
5473 # include <assert.h>
5474 #endif
5475 Syntax error
5476 _ACEOF
5477 if ac_fn_c_try_cpp "$LINENO"; then :
5479 else
5480 # Broken: fails on valid input.
5481 continue
5483 rm -f conftest.err conftest.$ac_ext
5485 # OK, works on sane cases. Now check whether nonexistent headers
5486 # can be detected and how.
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 #include <ac_nonexistent.h>
5490 _ACEOF
5491 if ac_fn_c_try_cpp "$LINENO"; then :
5492 # Broken: success on invalid input.
5493 continue
5494 else
5495 # Passes both tests.
5496 ac_preproc_ok=:
5497 break
5499 rm -f conftest.err conftest.$ac_ext
5501 done
5502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5503 rm -f conftest.err conftest.$ac_ext
5504 if $ac_preproc_ok; then :
5505 break
5508 done
5509 ac_cv_prog_CPP=$CPP
5512 CPP=$ac_cv_prog_CPP
5513 else
5514 ac_cv_prog_CPP=$CPP
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5517 $as_echo "$CPP" >&6; }
5518 ac_preproc_ok=false
5519 for ac_c_preproc_warn_flag in '' yes
5521 # Use a header file that comes with gcc, so configuring glibc
5522 # with a fresh cross-compiler works.
5523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524 # <limits.h> exists even on freestanding compilers.
5525 # On the NeXT, cc -E runs the code through the compiler's parser,
5526 # not just through cpp. "Syntax error" is here to catch this case.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #ifdef __STDC__
5530 # include <limits.h>
5531 #else
5532 # include <assert.h>
5533 #endif
5534 Syntax error
5535 _ACEOF
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5538 else
5539 # Broken: fails on valid input.
5540 continue
5542 rm -f conftest.err conftest.$ac_ext
5544 # OK, works on sane cases. Now check whether nonexistent headers
5545 # can be detected and how.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <ac_nonexistent.h>
5549 _ACEOF
5550 if ac_fn_c_try_cpp "$LINENO"; then :
5551 # Broken: success on invalid input.
5552 continue
5553 else
5554 # Passes both tests.
5555 ac_preproc_ok=:
5556 break
5558 rm -f conftest.err conftest.$ac_ext
5560 done
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then :
5565 else
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5569 See \`config.log' for more details." "$LINENO" 5; }
5572 ac_ext=c
5573 ac_cpp='$CPP $CPPFLAGS'
5574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5579 $as_echo_n "checking for inline... " >&6; }
5580 if test "${ac_cv_c_inline+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 ac_cv_c_inline=no
5584 for ac_kw in inline __inline__ __inline; do
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #ifndef __cplusplus
5588 typedef int foo_t;
5589 static $ac_kw foo_t static_foo () {return 0; }
5590 $ac_kw foo_t foo () {return 0; }
5591 #endif
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595 ac_cv_c_inline=$ac_kw
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 test "$ac_cv_c_inline" != no && break
5599 done
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5603 $as_echo "$ac_cv_c_inline" >&6; }
5605 case $ac_cv_c_inline in
5606 inline | yes) ;;
5608 case $ac_cv_c_inline in
5609 no) ac_val=;;
5610 *) ac_val=$ac_cv_c_inline;;
5611 esac
5612 cat >>confdefs.h <<_ACEOF
5613 #ifndef __cplusplus
5614 #define inline $ac_val
5615 #endif
5616 _ACEOF
5618 esac
5621 # Check whether --enable-largefile was given.
5622 if test "${enable_largefile+set}" = set; then :
5623 enableval=$enable_largefile;
5626 if test "$enable_largefile" != no; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5629 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5630 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 ac_cv_sys_largefile_CC=no
5634 if test "$GCC" != yes; then
5635 ac_save_CC=$CC
5636 while :; do
5637 # IRIX 6.2 and later do not support large files by default,
5638 # so use the C compiler's -n32 option if that helps.
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include <sys/types.h>
5642 /* Check that off_t can represent 2**63 - 1 correctly.
5643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5644 since some C++ compilers masquerading as C compilers
5645 incorrectly reject 9223372036854775807. */
5646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5648 && LARGE_OFF_T % 2147483647 == 1)
5649 ? 1 : -1];
5651 main ()
5655 return 0;
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 break
5661 rm -f core conftest.err conftest.$ac_objext
5662 CC="$CC -n32"
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 ac_cv_sys_largefile_CC=' -n32'; break
5666 rm -f core conftest.err conftest.$ac_objext
5667 break
5668 done
5669 CC=$ac_save_CC
5670 rm -f conftest.$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5674 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5675 if test "$ac_cv_sys_largefile_CC" != no; then
5676 CC=$CC$ac_cv_sys_largefile_CC
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5680 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5681 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 while :; do
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5695 ? 1 : -1];
5697 main ()
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 ac_cv_sys_file_offset_bits=no; break
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #define _FILE_OFFSET_BITS 64
5711 #include <sys/types.h>
5712 /* Check that off_t can represent 2**63 - 1 correctly.
5713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5714 since some C++ compilers masquerading as C compilers
5715 incorrectly reject 9223372036854775807. */
5716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5718 && LARGE_OFF_T % 2147483647 == 1)
5719 ? 1 : -1];
5721 main ()
5725 return 0;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 ac_cv_sys_file_offset_bits=64; break
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_cv_sys_file_offset_bits=unknown
5733 break
5734 done
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5737 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5738 case $ac_cv_sys_file_offset_bits in #(
5739 no | unknown) ;;
5741 cat >>confdefs.h <<_ACEOF
5742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5743 _ACEOF
5745 esac
5746 rm -rf conftest*
5747 if test $ac_cv_sys_file_offset_bits = unknown; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5749 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5750 if test "${ac_cv_sys_large_files+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 while :; do
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5759 since some C++ compilers masquerading as C compilers
5760 incorrectly reject 9223372036854775807. */
5761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5763 && LARGE_OFF_T % 2147483647 == 1)
5764 ? 1 : -1];
5766 main ()
5770 return 0;
5772 _ACEOF
5773 if ac_fn_c_try_compile "$LINENO"; then :
5774 ac_cv_sys_large_files=no; break
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #define _LARGE_FILES 1
5780 #include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5788 ? 1 : -1];
5790 main ()
5794 return 0;
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_sys_large_files=1; break
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 ac_cv_sys_large_files=unknown
5802 break
5803 done
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5806 $as_echo "$ac_cv_sys_large_files" >&6; }
5807 case $ac_cv_sys_large_files in #(
5808 no | unknown) ;;
5810 cat >>confdefs.h <<_ACEOF
5811 #define _LARGE_FILES $ac_cv_sys_large_files
5812 _ACEOF
5814 esac
5815 rm -rf conftest*
5820 # sizeof(char) is 1 by definition.
5821 # The cast to long int works around a bug in the HP C Compiler
5822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5824 # This bug is HP SR number 8606223364.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5826 $as_echo_n "checking size of void *... " >&6; }
5827 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5832 else
5833 if test "$ac_cv_type_void_p" = yes; then
5834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836 { as_fn_set_status 77
5837 as_fn_error "cannot compute sizeof (void *)
5838 See \`config.log' for more details." "$LINENO" 5; }; }
5839 else
5840 ac_cv_sizeof_void_p=0
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5846 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5850 cat >>confdefs.h <<_ACEOF
5851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5852 _ACEOF
5855 # The cast to long int works around a bug in the HP C Compiler
5856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5858 # This bug is HP SR number 8606223364.
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5860 $as_echo_n "checking size of short... " >&6; }
5861 if test "${ac_cv_sizeof_short+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5866 else
5867 if test "$ac_cv_type_short" = yes; then
5868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5870 { as_fn_set_status 77
5871 as_fn_error "cannot compute sizeof (short)
5872 See \`config.log' for more details." "$LINENO" 5; }; }
5873 else
5874 ac_cv_sizeof_short=0
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5880 $as_echo "$ac_cv_sizeof_short" >&6; }
5884 cat >>confdefs.h <<_ACEOF
5885 #define SIZEOF_SHORT $ac_cv_sizeof_short
5886 _ACEOF
5889 # The cast to long int works around a bug in the HP C Compiler
5890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5892 # This bug is HP SR number 8606223364.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5894 $as_echo_n "checking size of int... " >&6; }
5895 if test "${ac_cv_sizeof_int+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5900 else
5901 if test "$ac_cv_type_int" = yes; then
5902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5904 { as_fn_set_status 77
5905 as_fn_error "cannot compute sizeof (int)
5906 See \`config.log' for more details." "$LINENO" 5; }; }
5907 else
5908 ac_cv_sizeof_int=0
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5914 $as_echo "$ac_cv_sizeof_int" >&6; }
5918 cat >>confdefs.h <<_ACEOF
5919 #define SIZEOF_INT $ac_cv_sizeof_int
5920 _ACEOF
5923 # The cast to long int works around a bug in the HP C Compiler
5924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926 # This bug is HP SR number 8606223364.
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5928 $as_echo_n "checking size of long... " >&6; }
5929 if test "${ac_cv_sizeof_long+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5934 else
5935 if test "$ac_cv_type_long" = yes; then
5936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5938 { as_fn_set_status 77
5939 as_fn_error "cannot compute sizeof (long)
5940 See \`config.log' for more details." "$LINENO" 5; }; }
5941 else
5942 ac_cv_sizeof_long=0
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5948 $as_echo "$ac_cv_sizeof_long" >&6; }
5952 cat >>confdefs.h <<_ACEOF
5953 #define SIZEOF_LONG $ac_cv_sizeof_long
5954 _ACEOF
5957 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5958 if test "x$ac_cv_type_long_long" = x""yes; then :
5960 cat >>confdefs.h <<_ACEOF
5961 #define HAVE_LONG_LONG 1
5962 _ACEOF
5964 # The cast to long int works around a bug in the HP C Compiler
5965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5967 # This bug is HP SR number 8606223364.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5969 $as_echo_n "checking size of long long... " >&6; }
5970 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5975 else
5976 if test "$ac_cv_type_long_long" = yes; then
5977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5979 { as_fn_set_status 77
5980 as_fn_error "cannot compute sizeof (long long)
5981 See \`config.log' for more details." "$LINENO" 5; }; }
5982 else
5983 ac_cv_sizeof_long_long=0
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5989 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5993 cat >>confdefs.h <<_ACEOF
5994 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5995 _ACEOF
6000 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
6001 if test "x$ac_cv_type___int64" = x""yes; then :
6003 cat >>confdefs.h <<_ACEOF
6004 #define HAVE___INT64 1
6005 _ACEOF
6007 # The cast to long int works around a bug in the HP C Compiler
6008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6010 # This bug is HP SR number 8606223364.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6012 $as_echo_n "checking size of __int64... " >&6; }
6013 if test "${ac_cv_sizeof___int64+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6018 else
6019 if test "$ac_cv_type___int64" = yes; then
6020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6022 { as_fn_set_status 77
6023 as_fn_error "cannot compute sizeof (__int64)
6024 See \`config.log' for more details." "$LINENO" 5; }; }
6025 else
6026 ac_cv_sizeof___int64=0
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6032 $as_echo "$ac_cv_sizeof___int64" >&6; }
6036 cat >>confdefs.h <<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6038 _ACEOF
6043 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6044 case $ac_cv_c_int8_t in #(
6045 no|yes) ;; #(
6048 cat >>confdefs.h <<_ACEOF
6049 #define int8_t $ac_cv_c_int8_t
6050 _ACEOF
6052 esac
6054 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6055 case $ac_cv_c_int16_t in #(
6056 no|yes) ;; #(
6059 cat >>confdefs.h <<_ACEOF
6060 #define int16_t $ac_cv_c_int16_t
6061 _ACEOF
6063 esac
6065 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6066 case $ac_cv_c_int32_t in #(
6067 no|yes) ;; #(
6070 cat >>confdefs.h <<_ACEOF
6071 #define int32_t $ac_cv_c_int32_t
6072 _ACEOF
6074 esac
6076 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6077 case $ac_cv_c_int64_t in #(
6078 no|yes) ;; #(
6081 cat >>confdefs.h <<_ACEOF
6082 #define int64_t $ac_cv_c_int64_t
6083 _ACEOF
6085 esac
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6089 $as_echo_n "checking for long long int... " >&6; }
6090 if test "${ac_cv_type_long_long_int+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6096 /* For now, do not test the preprocessor; as of 2007 there are too many
6097 implementations with broken preprocessors. Perhaps this can
6098 be revisited in 2012. In the meantime, code should not expect
6099 #if to work with literals wider than 32 bits. */
6100 /* Test literals. */
6101 long long int ll = 9223372036854775807ll;
6102 long long int nll = -9223372036854775807LL;
6103 unsigned long long int ull = 18446744073709551615ULL;
6104 /* Test constant expressions. */
6105 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6106 ? 1 : -1)];
6107 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6108 ? 1 : -1)];
6109 int i = 63;
6111 main ()
6113 /* Test availability of runtime routines for shift and division. */
6114 long long int llmax = 9223372036854775807ll;
6115 unsigned long long int ullmax = 18446744073709551615ull;
6116 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6117 | (llmax / ll) | (llmax % ll)
6118 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6119 | (ullmax / ull) | (ullmax % ull));
6121 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 if test "$cross_compiling" = yes; then :
6127 ac_cv_type_long_long_int=yes
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 #include <limits.h>
6132 #ifndef LLONG_MAX
6133 # define HALF \
6134 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6135 # define LLONG_MAX (HALF - 1 + HALF)
6136 #endif
6138 main ()
6140 long long int n = 1;
6141 int i;
6142 for (i = 0; ; i++)
6144 long long int m = n << i;
6145 if (m >> i != n)
6146 return 1;
6147 if (LLONG_MAX / 2 < m)
6148 break;
6150 return 0;
6152 return 0;
6154 _ACEOF
6155 if ac_fn_c_try_run "$LINENO"; then :
6156 ac_cv_type_long_long_int=yes
6157 else
6158 ac_cv_type_long_long_int=no
6160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6161 conftest.$ac_objext conftest.beam conftest.$ac_ext
6164 else
6165 ac_cv_type_long_long_int=no
6167 rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6171 $as_echo "$ac_cv_type_long_long_int" >&6; }
6172 if test $ac_cv_type_long_long_int = yes; then
6174 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6180 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6183 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6185 else
6186 test $ac_cv_type_long_long_int = yes \
6187 && ac_type='long long int' \
6188 || ac_type='long int'
6190 cat >>confdefs.h <<_ACEOF
6191 #define intmax_t $ac_type
6192 _ACEOF
6198 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6199 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6201 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6203 else
6204 for ac_type in 'int' 'long int' 'long long int'; do
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 $ac_includes_default
6209 main ()
6211 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6212 test_array [0] = 0
6215 return 0;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define intptr_t $ac_type
6222 _ACEOF
6224 ac_type=
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 test -z "$ac_type" && break
6228 done
6232 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6233 case $ac_cv_c_uint8_t in #(
6234 no|yes) ;; #(
6237 $as_echo "#define _UINT8_T 1" >>confdefs.h
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint8_t $ac_cv_c_uint8_t
6242 _ACEOF
6244 esac
6246 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6247 case $ac_cv_c_uint16_t in #(
6248 no|yes) ;; #(
6252 cat >>confdefs.h <<_ACEOF
6253 #define uint16_t $ac_cv_c_uint16_t
6254 _ACEOF
6256 esac
6258 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6259 case $ac_cv_c_uint32_t in #(
6260 no|yes) ;; #(
6263 $as_echo "#define _UINT32_T 1" >>confdefs.h
6266 cat >>confdefs.h <<_ACEOF
6267 #define uint32_t $ac_cv_c_uint32_t
6268 _ACEOF
6270 esac
6272 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6273 case $ac_cv_c_uint64_t in #(
6274 no|yes) ;; #(
6277 $as_echo "#define _UINT64_T 1" >>confdefs.h
6280 cat >>confdefs.h <<_ACEOF
6281 #define uint64_t $ac_cv_c_uint64_t
6282 _ACEOF
6284 esac
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6288 $as_echo_n "checking for unsigned long long int... " >&6; }
6289 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* For now, do not test the preprocessor; as of 2007 there are too many
6296 implementations with broken preprocessors. Perhaps this can
6297 be revisited in 2012. In the meantime, code should not expect
6298 #if to work with literals wider than 32 bits. */
6299 /* Test literals. */
6300 long long int ll = 9223372036854775807ll;
6301 long long int nll = -9223372036854775807LL;
6302 unsigned long long int ull = 18446744073709551615ULL;
6303 /* Test constant expressions. */
6304 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6305 ? 1 : -1)];
6306 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6307 ? 1 : -1)];
6308 int i = 63;
6310 main ()
6312 /* Test availability of runtime routines for shift and division. */
6313 long long int llmax = 9223372036854775807ll;
6314 unsigned long long int ullmax = 18446744073709551615ull;
6315 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6316 | (llmax / ll) | (llmax % ll)
6317 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6318 | (ullmax / ull) | (ullmax % ull));
6320 return 0;
6323 _ACEOF
6324 if ac_fn_c_try_link "$LINENO"; then :
6325 ac_cv_type_unsigned_long_long_int=yes
6326 else
6327 ac_cv_type_unsigned_long_long_int=no
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6333 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6334 if test $ac_cv_type_unsigned_long_long_int = yes; then
6336 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6342 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6345 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6347 else
6348 test $ac_cv_type_unsigned_long_long_int = yes \
6349 && ac_type='unsigned long long int' \
6350 || ac_type='unsigned long int'
6352 cat >>confdefs.h <<_ACEOF
6353 #define uintmax_t $ac_type
6354 _ACEOF
6360 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6361 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6363 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6365 else
6366 for ac_type in 'unsigned int' 'unsigned long int' \
6367 'unsigned long long int'; do
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 $ac_includes_default
6372 main ()
6374 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6375 test_array [0] = 0
6378 return 0;
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6383 cat >>confdefs.h <<_ACEOF
6384 #define uintptr_t $ac_type
6385 _ACEOF
6387 ac_type=
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 test -z "$ac_type" && break
6391 done
6408 # ---------------------
6409 # Warnings and checking
6410 # ---------------------
6412 # Check $CC warning features (if it's GCC).
6413 # We want to use -pedantic, but we don't want warnings about
6414 # * 'long long'
6415 # * variadic macros
6416 # * overlong strings
6417 # * C++11 narrowing conversions in { }
6418 # So, we only use -pedantic if we can disable those warnings.
6420 loose_warn=
6421 save_CFLAGS="$CFLAGS"
6422 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6423 # Do the check with the no- prefix removed since gcc silently
6424 # accepts any -Wno-* option on purpose
6425 case $real_option in
6426 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6427 *) option=$real_option ;;
6428 esac
6429 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6432 $as_echo_n "checking whether $CC supports $option... " >&6; }
6433 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 CFLAGS="$option"
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6441 main ()
6445 return 0;
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"; then :
6449 eval "$as_acx_Woption=yes"
6450 else
6451 eval "$as_acx_Woption=no"
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 eval ac_res=\$$as_acx_Woption
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6458 $as_echo "$ac_res" >&6; }
6459 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6460 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6462 done
6463 CFLAGS="$save_CFLAGS"
6465 c_loose_warn=
6466 save_CFLAGS="$CFLAGS"
6467 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6468 # Do the check with the no- prefix removed since gcc silently
6469 # accepts any -Wno-* option on purpose
6470 case $real_option in
6471 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6472 *) option=$real_option ;;
6473 esac
6474 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6477 $as_echo_n "checking whether $CC supports $option... " >&6; }
6478 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 CFLAGS="$option"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6486 main ()
6490 return 0;
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 eval "$as_acx_Woption=yes"
6495 else
6496 eval "$as_acx_Woption=no"
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 eval ac_res=\$$as_acx_Woption
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6503 $as_echo "$ac_res" >&6; }
6504 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6505 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6507 done
6508 CFLAGS="$save_CFLAGS"
6510 strict_warn=
6511 save_CFLAGS="$CFLAGS"
6512 for real_option in -Wmissing-format-attribute; do
6513 # Do the check with the no- prefix removed since gcc silently
6514 # accepts any -Wno-* option on purpose
6515 case $real_option in
6516 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6517 *) option=$real_option ;;
6518 esac
6519 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6522 $as_echo_n "checking whether $CC supports $option... " >&6; }
6523 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 CFLAGS="$option"
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6531 main ()
6535 return 0;
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 eval "$as_acx_Woption=yes"
6540 else
6541 eval "$as_acx_Woption=no"
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 eval ac_res=\$$as_acx_Woption
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548 $as_echo "$ac_res" >&6; }
6549 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6550 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6552 done
6553 CFLAGS="$save_CFLAGS"
6555 c_strict_warn=
6556 save_CFLAGS="$CFLAGS"
6557 for real_option in -Wold-style-definition -Wc++-compat; do
6558 # Do the check with the no- prefix removed since gcc silently
6559 # accepts any -Wno-* option on purpose
6560 case $real_option in
6561 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6562 *) option=$real_option ;;
6563 esac
6564 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6567 $as_echo_n "checking whether $CC supports $option... " >&6; }
6568 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 CFLAGS="$option"
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6576 main ()
6580 return 0;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 eval "$as_acx_Woption=yes"
6585 else
6586 eval "$as_acx_Woption=no"
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 eval ac_res=\$$as_acx_Woption
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6593 $as_echo "$ac_res" >&6; }
6594 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6595 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6597 done
6598 CFLAGS="$save_CFLAGS"
6600 # Do the check with the no- prefix removed from the warning options
6601 # since gcc silently accepts any -Wno-* option on purpose
6602 if test "$GCC" = yes; then :
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6604 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6605 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 save_CFLAGS="$CFLAGS"
6609 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6614 main ()
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"; then :
6622 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6623 else
6624 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 CFLAGS="$save_CFLAGS"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6630 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6631 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6632 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6637 # Check whether --enable-werror-always was given.
6638 if test "${enable_werror_always+set}" = set; then :
6639 enableval=$enable_werror_always;
6640 else
6641 enable_werror_always=no
6644 if test $enable_werror_always = yes; then :
6645 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6650 # The above macros do nothing if the compiler is not GCC. However, the
6651 # Makefile has more goo to add other flags, so these variables are used
6652 # to enable warnings only for GCC.
6653 warn_cflags=
6654 warn_cxxflags=
6655 if test "x$GCC" = "xyes"; then
6656 warn_cflags='$(GCC_WARN_CFLAGS)'
6657 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6662 # Disable exceptions and RTTI if building with g++
6663 noexception_flags=
6664 save_CFLAGS="$CFLAGS"
6665 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6666 # Do the check with the no- prefix removed since gcc silently
6667 # accepts any -Wno-* option on purpose
6668 case $real_option in
6669 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6670 *) option=$real_option ;;
6671 esac
6672 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6675 $as_echo_n "checking whether $CC supports $option... " >&6; }
6676 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 CFLAGS="$option"
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6684 main ()
6688 return 0;
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692 eval "$as_acx_Woption=yes"
6693 else
6694 eval "$as_acx_Woption=no"
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 eval ac_res=\$$as_acx_Woption
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6701 $as_echo "$ac_res" >&6; }
6702 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6703 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6705 done
6706 CFLAGS="$save_CFLAGS"
6709 # Enable expensive internal checks
6710 is_release=
6711 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6712 is_release=yes
6715 # Check whether --enable-checking was given.
6716 if test "${enable_checking+set}" = set; then :
6717 enableval=$enable_checking; ac_checking_flags="${enableval}"
6718 else
6720 # Determine the default checks.
6721 if test x$is_release = x ; then
6722 ac_checking_flags=yes
6723 else
6724 ac_checking_flags=release
6728 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6729 for check in release $ac_checking_flags
6731 case $check in
6732 # these set all the flags to specific states
6733 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6734 ac_fold_checking= ; ac_gc_checking=1 ;
6735 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6736 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6737 ac_tree_checking=1 ; ac_valgrind_checking= ;
6738 ac_types_checking=1 ;;
6739 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6740 ac_fold_checking= ; ac_gc_checking= ;
6741 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6742 ac_rtlflag_checking= ; ac_runtime_checking= ;
6743 ac_tree_checking= ; ac_valgrind_checking= ;
6744 ac_types_checking= ;;
6745 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6746 ac_fold_checking=1 ; ac_gc_checking=1 ;
6747 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6748 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6749 ac_tree_checking=1 ; ac_valgrind_checking= ;
6750 ac_types_checking=1 ;;
6751 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6752 ac_fold_checking= ; ac_gc_checking= ;
6753 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6754 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6755 ac_tree_checking= ; ac_valgrind_checking= ;
6756 ac_types_checking= ;;
6757 # these enable particular checks
6758 assert) ac_assert_checking=1 ;;
6759 df) ac_df_checking=1 ;;
6760 fold) ac_fold_checking=1 ;;
6761 gc) ac_gc_checking=1 ;;
6762 gcac) ac_gc_always_collect=1 ;;
6763 gimple) ac_gimple_checking=1 ;;
6764 misc) ac_checking=1 ;;
6765 rtl) ac_rtl_checking=1 ;;
6766 rtlflag) ac_rtlflag_checking=1 ;;
6767 runtime) ac_runtime_checking=1 ;;
6768 tree) ac_tree_checking=1 ;;
6769 types) ac_types_checking=1 ;;
6770 valgrind) ac_valgrind_checking=1 ;;
6771 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6772 esac
6773 done
6774 IFS="$ac_save_IFS"
6776 nocommon_flag=""
6777 if test x$ac_checking != x ; then
6779 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6781 nocommon_flag=-fno-common
6784 if test x$ac_df_checking != x ; then
6786 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6789 if test x$ac_assert_checking != x ; then
6791 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6794 if test x$ac_gimple_checking != x ; then
6796 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6800 if test x$ac_runtime_checking != x ; then
6802 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6805 if test x$ac_tree_checking != x ; then
6807 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6809 TREEBROWSER=tree-browser.o
6810 TREECHECKING=yes
6812 if test x$ac_types_checking != x ; then
6814 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6819 if test x$ac_rtl_checking != x ; then
6821 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6824 if test x$ac_rtlflag_checking != x ; then
6826 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6829 if test x$ac_gc_checking != x ; then
6831 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6834 if test x$ac_gc_always_collect != x ; then
6836 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6839 if test x$ac_fold_checking != x ; then
6841 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6844 valgrind_path_defines=
6845 valgrind_command=
6847 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6848 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6849 have_valgrind_h=yes
6850 else
6851 have_valgrind_h=no
6856 if test x$ac_valgrind_checking != x ; then
6857 # It is certainly possible that there's valgrind but no valgrind.h.
6858 # GCC relies on making annotations so we must have both.
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6860 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <valgrind/memcheck.h>
6864 #ifndef VALGRIND_DISCARD
6865 #error VALGRIND_DISCARD not defined
6866 #endif
6867 _ACEOF
6868 if ac_fn_c_try_cpp "$LINENO"; then :
6869 gcc_cv_header_valgrind_memcheck_h=yes
6870 else
6871 gcc_cv_header_valgrind_memcheck_h=no
6873 rm -f conftest.err conftest.$ac_ext
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6875 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6877 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #include <memcheck.h>
6881 #ifndef VALGRIND_DISCARD
6882 #error VALGRIND_DISCARD not defined
6883 #endif
6884 _ACEOF
6885 if ac_fn_c_try_cpp "$LINENO"; then :
6886 gcc_cv_header_memcheck_h=yes
6887 else
6888 gcc_cv_header_memcheck_h=no
6890 rm -f conftest.err conftest.$ac_ext
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6892 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6894 # Prepare PATH_SEPARATOR.
6895 # The user is always right.
6896 if test "${PATH_SEPARATOR+set}" != set; then
6897 echo "#! /bin/sh" >conf$$.sh
6898 echo "exit 0" >>conf$$.sh
6899 chmod +x conf$$.sh
6900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6901 PATH_SEPARATOR=';'
6902 else
6903 PATH_SEPARATOR=:
6905 rm -f conf$$.sh
6908 # Find out how to test for executable files. Don't use a zero-byte file,
6909 # as systems may use methods other than mode bits to determine executability.
6910 cat >conf$$.file <<_ASEOF
6911 #! /bin/sh
6912 exit 0
6913 _ASEOF
6914 chmod +x conf$$.file
6915 if test -x conf$$.file >/dev/null 2>&1; then
6916 ac_executable_p="test -x"
6917 else
6918 ac_executable_p="test -f"
6920 rm -f conf$$.file
6922 # Extract the first word of "valgrind", so it can be a program name with args.
6923 set dummy valgrind; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 case "$valgrind_path" in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6934 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6935 for ac_dir in $PATH; do
6936 IFS="$ac_save_IFS"
6937 test -z "$ac_dir" && ac_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6940 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6941 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6942 break 2
6945 done
6946 done
6947 IFS="$ac_save_IFS"
6949 esac
6951 valgrind_path="$ac_cv_path_valgrind_path"
6952 if test -n "$valgrind_path"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6954 $as_echo "$valgrind_path" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$valgrind_path" = "x" \
6961 || (test $have_valgrind_h = no \
6962 && test $gcc_cv_header_memcheck_h = no \
6963 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6964 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6966 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6967 valgrind_command="$valgrind_path -q"
6969 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6971 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6973 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6976 if test $gcc_cv_header_memcheck_h = yes; then
6978 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6985 # Enable code coverage collection
6986 # Check whether --enable-coverage was given.
6987 if test "${enable_coverage+set}" = set; then :
6988 enableval=$enable_coverage; case "${enableval}" in
6989 yes|noopt)
6990 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6992 opt)
6993 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6996 # a.k.a. --disable-coverage
6997 coverage_flags=""
7000 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7002 esac
7003 else
7004 coverage_flags=""
7009 # Check whether --enable-gather-detailed-mem-stats was given.
7010 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7011 enableval=$enable_gather_detailed_mem_stats;
7012 else
7013 enable_gather_detailed_mem_stats=no
7016 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7018 cat >>confdefs.h <<_ACEOF
7019 #define GATHER_STATISTICS $gather_stats
7020 _ACEOF
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7027 # With stabs
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval=$with_stabs; stabs="$with_stabs"
7032 else
7033 stabs=no
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval=$enable_multilib;
7041 else
7042 enable_multilib=yes
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto) enable_multiarch=$enableval;;
7052 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7053 esac
7054 else
7055 enable_multiarch=auto
7058 if test x${enable_multiarch} = xauto; then
7059 if test x${with_native_system_header_dir} != x; then
7060 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7061 enable_multiarch=no
7063 if test x$host != x$target && test "x$with_sysroot" = x; then
7064 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7065 enable_multiarch=no
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7092 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7094 esac
7096 else
7098 case $target in
7099 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7100 i?86*-*-gnu* | \
7101 i?86*-*-mingw* | x86_64*-*-mingw* | \
7102 i?86*-*-cygwin*)
7103 enable_decimal_float=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float=no
7110 esac
7115 # x86's use BID format instead of DPD
7116 case x$enable_decimal_float in
7117 xyes)
7118 case $target in
7119 i?86*-*-* | x86_64*-*-*)
7120 enable_decimal_float=bid
7123 enable_decimal_float=dpd
7125 esac
7126 default_decimal_float=$enable_decimal_float
7128 xno)
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float=dpd
7133 esac
7138 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h <<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7142 _ACEOF
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float=$default_decimal_float
7148 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h <<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7152 _ACEOF
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval=$enable_fixed_point;
7159 else
7161 case $target in
7162 arm*)
7163 enable_fixed_point=yes
7166 mips*-*-*)
7167 enable_fixed_point=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point=no
7174 esac
7180 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h <<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7184 _ACEOF
7187 # Enable threads
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval=$enable_threads;
7193 else
7194 enable_threads=''
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval=$enable_tls;
7201 case $enable_tls in
7202 yes | no) ;;
7203 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7205 esac
7207 else
7208 enable_tls=''
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7215 objc_boehm_gc=''
7216 else
7217 objc_boehm_gc=1
7219 else
7220 objc_boehm_gc=''
7224 case ,${enable_languages}, in
7225 *,upc,) lang_upc_enabled="yes" ;;
7226 *) ;;
7227 esac
7230 # Check whether --with-upc-pts was given.
7231 if test "${with_upc_pts+set}" = set; then :
7232 withval=$with_upc_pts;
7233 if test x"$lang_upc_enabled" = x"yes" ; then
7234 case "$withval" in
7235 packed|struct) upc_pts_rep="$withval" ;;
7236 *) as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7238 esac
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7241 support has been enabled" >&5
7242 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7243 support has been enabled" >&2;}
7246 else
7248 if test x"$lang_upc_enabled" = x"yes" ; then
7249 upc_pts_rep="packed"
7256 # Perl is required for checking pts representation
7257 # Extract the first word of "perl", so it can be a program name with args.
7258 set dummy perl; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_PERL+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 if test -n "$PERL"; then
7265 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_PERL="perl"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7278 done
7279 done
7280 IFS=$as_save_IFS
7284 PERL=$ac_cv_prog_PERL
7285 if test -n "$PERL"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7287 $as_echo "$PERL" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7296 # Check whether --with-upc-pts-vaddr-order was given.
7297 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7298 withval=$with_upc_pts_vaddr_order;
7299 if test x"$lang_upc_enabled" = x"yes" ; then
7300 upc_vaddr_order="$withval"
7301 case "$upc_vaddr_order" in
7302 first|last) ;;
7303 *) as_fn_error "$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7304 esac
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7307 support has been enabled" >&5
7308 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7309 support has been enabled" >&2;}
7312 else
7314 if test x"$lang_upc_enabled" = x"yes" ; then
7315 # Default UPC PTS vaddr order to "first"
7316 upc_vaddr_order="first"
7323 # Check whether --with-upc-packed-bits was given.
7324 if test "${with_upc_packed_bits+set}" = set; then :
7325 withval=$with_upc_packed_bits;
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7327 Use --with-upc-pts-packed-bits instead." >&5
7328 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7329 Use --with-upc-pts-packed-bits instead." >&2;}
7330 with_upc_pts_packed_bits="$withval";
7336 # Check whether --with-upc-pts-packed-bits was given.
7337 if test "${with_upc_pts_packed_bits+set}" = set; then :
7338 withval=$with_upc_pts_packed_bits;
7339 if test x"$lang_upc_enabled" = x"yes" ; then
7340 if test x"$upc_pts_rep" = x"packed"; then
7341 UPC_PTS_PHASE_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7342 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7343 UPC_PTS_THREAD_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7344 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7345 UPC_PTS_VADDR_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7346 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7347 if test -z "$UPC_PTS_PHASE_SIZE" \
7348 || test -z "$UPC_PTS_THREAD_SIZE" \
7349 || test -z "$UPC_PTS_VADDR_SIZE" ; then
7350 as_fn_error "--with-upc-pts-packed-bits=phase,thread,vaddr requires
7351 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7353 else
7354 as_fn_error "--with-upc-pts-packed-bits is only supported for
7355 the packed UPC pointer-to-shared representation" "$LINENO" 5
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7359 support has been enabled" >&5
7360 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7361 support has been enabled" >&2;}
7364 else
7366 if test x"$lang_upc_enabled" = x"yes" ; then
7367 # GNU UPC packed pointer representation defaults.
7368 case "$target" in
7369 i35686* )
7370 UPC_PTS_PHASE_SIZE=20
7371 UPC_PTS_THREAD_SIZE=12
7372 UPC_PTS_VADDR_SIZE=32
7375 UPC_PTS_PHASE_SIZE=20
7376 UPC_PTS_THREAD_SIZE=10
7377 UPC_PTS_VADDR_SIZE=34
7378 esac
7384 # Check whether --enable-upc-link-script was given.
7385 if test "${enable_upc_link_script+set}" = set; then :
7386 enableval=$enable_upc_link_script;
7387 if test x"$lang_upc_enabled" = x"yes" ; then
7388 case $enableval in
7389 yes | no) ;;
7391 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7392 esac
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7395 support has been enabled" >&5
7396 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7397 support has been enabled" >&2;}
7400 else
7402 if test x"$lang_upc_enabled" = x"yes" ; then
7403 enable_upc_link_script=no
7409 if test x"$lang_upc_enabled" = x"yes" ; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7411 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7413 $as_echo "$upc_pts_rep" >&6; }
7414 case "$upc_pts_rep" in
7415 packed)
7417 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7420 struct)
7422 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7425 esac
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7427 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7429 $as_echo "$upc_vaddr_order" >&6; }
7430 if test x"$upc_vaddr_order" = x"first"; then
7432 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7435 if test x"$upc_pts_rep" = x"packed"; then
7437 cat >>confdefs.h <<_ACEOF
7438 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7439 _ACEOF
7442 cat >>confdefs.h <<_ACEOF
7443 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7444 _ACEOF
7447 cat >>confdefs.h <<_ACEOF
7448 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7449 _ACEOF
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7452 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7454 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7455 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7456 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7459 $as_echo_n "checking for UPC link script support... " >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7461 $as_echo "$enable_upc_link_script" >&6; }
7462 if test "$enable_upc_link_script" = yes; then
7464 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7470 # Check whether --with-dwarf2 was given.
7471 if test "${with_dwarf2+set}" = set; then :
7472 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7473 else
7474 dwarf2=no
7478 # Check whether --enable-shared was given.
7479 if test "${enable_shared+set}" = set; then :
7480 enableval=$enable_shared;
7481 case $enable_shared in
7482 yes | no) ;;
7484 enable_shared=no
7485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7486 for pkg in $enableval; do
7487 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7488 enable_shared=yes
7490 done
7491 IFS="$ac_save_ifs"
7493 esac
7495 else
7496 enable_shared=yes
7502 # Check whether --with-native-system-header-dir was given.
7503 if test "${with_native_system_header_dir+set}" = set; then :
7504 withval=$with_native_system_header_dir;
7505 case ${with_native_system_header_dir} in
7506 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7507 /* | [A-Za-z]:[\\/]*) ;;
7508 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7509 esac
7510 configured_native_system_header_dir="${withval}"
7512 else
7513 configured_native_system_header_dir=
7518 # Check whether --with-build-sysroot was given.
7519 if test "${with_build_sysroot+set}" = set; then :
7520 withval=$with_build_sysroot; if test x"$withval" != x ; then
7521 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7523 else
7524 SYSROOT_CFLAGS_FOR_TARGET=
7529 if test "x$prefix" = xNONE; then
7530 test_prefix=/usr/local
7531 else
7532 test_prefix=$prefix
7534 if test "x$exec_prefix" = xNONE; then
7535 test_exec_prefix=$test_prefix
7536 else
7537 test_exec_prefix=$exec_prefix
7541 # Check whether --with-sysroot was given.
7542 if test "${with_sysroot+set}" = set; then :
7543 withval=$with_sysroot;
7544 case ${with_sysroot} in
7545 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7546 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7547 esac
7549 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7550 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7552 case ${TARGET_SYSTEM_ROOT} in
7553 "${test_prefix}"|"${test_prefix}/"*|\
7554 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7555 '${prefix}'|'${prefix}/'*|\
7556 '${exec_prefix}'|'${exec_prefix}/'*)
7557 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7558 TARGET_SYSTEM_ROOT_DEFINE="$t"
7560 esac
7562 else
7564 TARGET_SYSTEM_ROOT=
7565 TARGET_SYSTEM_ROOT_DEFINE=
7566 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7575 # Check whether --with-specs was given.
7576 if test "${with_specs+set}" = set; then :
7577 withval=$with_specs; CONFIGURE_SPECS=$withval
7578 else
7579 CONFIGURE_SPECS=
7587 # Check whether --with-pkgversion was given.
7588 if test "${with_pkgversion+set}" = set; then :
7589 withval=$with_pkgversion; case "$withval" in
7590 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7591 no) PKGVERSION= ;;
7592 *) PKGVERSION="($withval) " ;;
7593 esac
7594 else
7595 PKGVERSION="(GCC) "
7603 # Check whether --with-bugurl was given.
7604 if test "${with_bugurl+set}" = set; then :
7605 withval=$with_bugurl; case "$withval" in
7606 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7607 no) BUGURL=
7609 *) BUGURL="$withval"
7611 esac
7612 else
7613 BUGURL="http://gccupc.org/bugs"
7617 case ${BUGURL} in
7619 REPORT_BUGS_TO=
7620 REPORT_BUGS_TEXI=
7623 REPORT_BUGS_TO="<$BUGURL>"
7624 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7626 esac;
7631 # Sanity check enable_languages in case someone does not run the toplevel
7632 # configure # script.
7633 # Check whether --enable-languages was given.
7634 if test "${enable_languages+set}" = set; then :
7635 enableval=$enable_languages; case ,${enable_languages}, in
7636 ,,|,yes,)
7637 # go safe -- we cannot be much sure without the toplevel
7638 # configure's
7639 # analysis of which target libs are present and usable
7640 enable_languages=c
7642 *,all,*)
7643 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7645 *,c,*)
7648 enable_languages=c,${enable_languages}
7650 esac
7651 else
7652 enable_languages=c
7657 # Check whether --with-multilib-list was given.
7658 if test "${with_multilib_list+set}" = set; then :
7659 withval=$with_multilib_list; :
7660 else
7661 with_multilib_list=default
7665 # -------------------------
7666 # Checks for other programs
7667 # -------------------------
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7671 set x ${MAKE-make}
7672 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7673 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 cat >conftest.make <<\_ACEOF
7677 SHELL = /bin/sh
7678 all:
7679 @echo '@@@%%%=$(MAKE)=@@@%%%'
7680 _ACEOF
7681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7683 *@@@%%%=?*=@@@%%%*)
7684 eval ac_cv_prog_make_${ac_make}_set=yes;;
7686 eval ac_cv_prog_make_${ac_make}_set=no;;
7687 esac
7688 rm -f conftest.make
7690 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7693 SET_MAKE=
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 SET_MAKE="MAKE=${MAKE-make}"
7701 # Find some useful tools
7702 for ac_prog in gawk mawk nawk awk
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_AWK+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$AWK"; then
7712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_AWK="$ac_prog"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7731 AWK=$ac_cv_prog_AWK
7732 if test -n "$AWK"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7734 $as_echo "$AWK" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7741 test -n "$AWK" && break
7742 done
7744 # We need awk to create options.c and options.h.
7745 # Bail out if it's missing.
7746 case ${AWK} in
7747 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7748 esac
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7751 $as_echo_n "checking whether ln -s works... " >&6; }
7752 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 rm -f conftestdata_t
7756 echo >conftestdata_f
7757 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7758 then
7759 gcc_cv_prog_LN_S="ln -s"
7760 else
7761 if ln conftestdata_f conftestdata_t 2>/dev/null
7762 then
7763 gcc_cv_prog_LN_S=ln
7764 else
7765 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7766 then
7767 gcc_cv_prog_LN_S="cp -p"
7768 else
7769 gcc_cv_prog_LN_S=cp
7773 rm -f conftestdata_f conftestdata_t
7776 LN_S="$gcc_cv_prog_LN_S"
7777 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779 $as_echo "yes" >&6; }
7780 else
7781 if test "$gcc_cv_prog_LN_S" = "ln"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7783 $as_echo "no, using ln" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7786 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7791 $as_echo_n "checking whether ln works... " >&6; }
7792 if test "${acx_cv_prog_LN+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 rm -f conftestdata_t
7796 echo >conftestdata_f
7797 if ln conftestdata_f conftestdata_t 2>/dev/null
7798 then
7799 acx_cv_prog_LN=ln
7800 else
7801 acx_cv_prog_LN=no
7803 rm -f conftestdata_f conftestdata_t
7806 if test $acx_cv_prog_LN = no; then
7807 LN="$LN_S"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7809 $as_echo "no, using $LN" >&6; }
7810 else
7811 LN="$acx_cv_prog_LN"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813 $as_echo "yes" >&6; }
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$RANLIB"; then
7825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 RANLIB=$ac_cv_prog_RANLIB
7845 if test -n "$RANLIB"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7847 $as_echo "$RANLIB" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7855 if test -z "$ac_cv_prog_RANLIB"; then
7856 ac_ct_RANLIB=$RANLIB
7857 # Extract the first word of "ranlib", so it can be a program name with args.
7858 set dummy ranlib; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$ac_ct_RANLIB"; then
7865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_ac_ct_RANLIB="ranlib"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7878 done
7879 done
7880 IFS=$as_save_IFS
7884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7885 if test -n "$ac_ct_RANLIB"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7887 $as_echo "$ac_ct_RANLIB" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7893 if test "x$ac_ct_RANLIB" = x; then
7894 RANLIB=":"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902 RANLIB=$ac_ct_RANLIB
7904 else
7905 RANLIB="$ac_cv_prog_RANLIB"
7908 ranlib_flags=""
7911 # Find a good install program. We prefer a C program (faster),
7912 # so one script is as good as another. But avoid the broken or
7913 # incompatible versions:
7914 # SysV /etc/install, /usr/sbin/install
7915 # SunOS /usr/etc/install
7916 # IRIX /sbin/install
7917 # AIX /bin/install
7918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7920 # ./install, which can be erroneously created by make from ./install.sh.
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7922 $as_echo_n "checking for a BSD compatible install... " >&6; }
7923 if test -z "$INSTALL"; then
7924 if test "${ac_cv_path_install+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7928 for ac_dir in $PATH; do
7929 # Account for people who put trailing slashes in PATH elements.
7930 case "$ac_dir/" in
7931 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7933 # OSF1 and SCO ODT 3.0 have their own names for install.
7934 for ac_prog in ginstall scoinst install; do
7935 if test -f $ac_dir/$ac_prog; then
7936 if test $ac_prog = install &&
7937 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7938 # AIX install. It has an incompatible calling convention.
7939 # OSF/1 installbsd also uses dspmsg, but is usable.
7941 else
7942 ac_cv_path_install="$ac_dir/$ac_prog -c"
7943 break 2
7946 done
7948 esac
7949 done
7950 IFS="$ac_save_IFS"
7953 if test "${ac_cv_path_install+set}" = set; then
7954 INSTALL="$ac_cv_path_install"
7955 else
7956 # As a last resort, use the slow shell script. We don't cache a
7957 # path for INSTALL within a source directory, because that will
7958 # break other packages using the cache if that directory is
7959 # removed, or if the path is relative.
7960 INSTALL="$ac_install_sh"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7964 $as_echo "$INSTALL" >&6; }
7966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7967 # It thinks the first close brace ends the variable substitution.
7968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7973 # See if cmp has --ignore-initial.
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7975 $as_echo_n "checking for cmp's capabilities... " >&6; }
7976 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 echo abfoo >t1
7980 echo cdfoo >t2
7981 gcc_cv_prog_cmp_skip=slowcompare
7982 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7983 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7985 else
7986 gcc_cv_prog_cmp_skip=gnucompare
7989 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7990 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7991 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7993 else
7994 gcc_cv_prog_cmp_skip=fastcompare
7998 rm t1 t2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8002 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8003 make_compare_target=$gcc_cv_prog_cmp_skip
8007 # See if we have the mktemp command.
8008 # Extract the first word of "mktemp", so it can be a program name with args.
8009 set dummy mktemp; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$have_mktemp_command"; then
8016 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_have_mktemp_command="yes"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8031 IFS=$as_save_IFS
8033 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8036 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8037 if test -n "$have_mktemp_command"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8039 $as_echo "$have_mktemp_command" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8047 # See if makeinfo has been installed and is modern enough
8048 # that we can use it.
8050 # Extract the first word of "makeinfo", so it can be a program name with args.
8051 set dummy makeinfo; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 if test -n "$MAKEINFO"; then
8058 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8059 else
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_prog_MAKEINFO="makeinfo"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8077 MAKEINFO=$ac_cv_prog_MAKEINFO
8078 if test -n "$MAKEINFO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8080 $as_echo "$MAKEINFO" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 if test -n "$MAKEINFO"; then
8088 # Found it, now check the version.
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8090 $as_echo_n "checking for modern makeinfo... " >&6; }
8091 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8095 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8097 case $ac_prog_version in
8098 '') gcc_cv_prog_makeinfo_modern=no;;
8099 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8100 *) gcc_cv_prog_makeinfo_modern=no;;
8101 esac
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8105 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8106 else
8107 gcc_cv_prog_makeinfo_modern=no
8109 if test $gcc_cv_prog_makeinfo_modern = no; then
8110 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8113 if test $gcc_cv_prog_makeinfo_modern = no; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8115 *** Makeinfo is missing or too old.
8116 *** Info documentation will not be built." >&5
8117 $as_echo "$as_me: WARNING:
8118 *** Makeinfo is missing or too old.
8119 *** Info documentation will not be built." >&2;}
8120 BUILD_INFO=
8121 else
8122 BUILD_INFO=info
8126 # Is pod2man recent enough to regenerate manpages?
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8128 $as_echo_n "checking for recent Pod::Man... " >&6; }
8129 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 GENERATED_MANPAGES=generated-manpages
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 GENERATED_MANPAGES=
8140 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8142 # How about lex?
8143 for ac_prog in flex
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy $ac_prog; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_FLEX+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$FLEX"; then
8153 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_FLEX="$ac_prog"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8172 FLEX=$ac_cv_prog_FLEX
8173 if test -n "$FLEX"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8175 $as_echo "$FLEX" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8182 test -n "$FLEX" && break
8183 done
8184 test -n "$FLEX" || FLEX="$MISSING flex"
8187 # Bison?
8188 for ac_prog in bison
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy $ac_prog; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_prog_BISON+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 if test -n "$BISON"; then
8198 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_BISON="$ac_prog"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8211 done
8212 done
8213 IFS=$as_save_IFS
8217 BISON=$ac_cv_prog_BISON
8218 if test -n "$BISON"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8220 $as_echo "$BISON" >&6; }
8221 else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8227 test -n "$BISON" && break
8228 done
8229 test -n "$BISON" || BISON="$MISSING bison"
8232 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8233 # check for build == host before using them.
8235 # NM
8236 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8237 && test -d ../binutils ; then
8238 NM='${objdir}/../binutils/nm-new'
8239 else
8240 # Extract the first word of "nm", so it can be a program name with args.
8241 set dummy nm; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_NM+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 if test -n "$NM"; then
8248 ac_cv_prog_NM="$NM" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_NM="nm"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8261 done
8262 done
8263 IFS=$as_save_IFS
8265 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8268 NM=$ac_cv_prog_NM
8269 if test -n "$NM"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8271 $as_echo "$NM" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8280 # AR
8281 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8282 && test -d ../binutils ; then
8283 AR='${objdir}/../binutils/ar'
8284 else
8285 # Extract the first word of "ar", so it can be a program name with args.
8286 set dummy ar; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_AR+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$AR"; then
8293 ac_cv_prog_AR="$AR" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_prog_AR="ar"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8310 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8313 AR=$ac_cv_prog_AR
8314 if test -n "$AR"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8316 $as_echo "$AR" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8326 # --------------------
8327 # Checks for C headers
8328 # --------------------
8330 # Need to reject headers which give warnings, so that the -Werror bootstrap
8331 # works later. *sigh* This needs to come before all header checks.
8333 ac_c_preproc_warn_flag=yes
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8336 $as_echo_n "checking for ANSI C header files... " >&6; }
8337 if test "${ac_cv_header_stdc+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 #include <stdlib.h>
8343 #include <stdarg.h>
8344 #include <string.h>
8345 #include <float.h>
8348 main ()
8352 return 0;
8354 _ACEOF
8355 if ac_fn_c_try_compile "$LINENO"; then :
8356 ac_cv_header_stdc=yes
8357 else
8358 ac_cv_header_stdc=no
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 if test $ac_cv_header_stdc = yes; then
8363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 #include <string.h>
8368 _ACEOF
8369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 $EGREP "memchr" >/dev/null 2>&1; then :
8372 else
8373 ac_cv_header_stdc=no
8375 rm -f conftest*
8379 if test $ac_cv_header_stdc = yes; then
8380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <stdlib.h>
8385 _ACEOF
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 $EGREP "free" >/dev/null 2>&1; then :
8389 else
8390 ac_cv_header_stdc=no
8392 rm -f conftest*
8396 if test $ac_cv_header_stdc = yes; then
8397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8398 if test "$cross_compiling" = yes; then :
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <ctype.h>
8404 #include <stdlib.h>
8405 #if ((' ' & 0x0FF) == 0x020)
8406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8408 #else
8409 # define ISLOWER(c) \
8410 (('a' <= (c) && (c) <= 'i') \
8411 || ('j' <= (c) && (c) <= 'r') \
8412 || ('s' <= (c) && (c) <= 'z'))
8413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8414 #endif
8416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8418 main ()
8420 int i;
8421 for (i = 0; i < 256; i++)
8422 if (XOR (islower (i), ISLOWER (i))
8423 || toupper (i) != TOUPPER (i))
8424 return 2;
8425 return 0;
8427 _ACEOF
8428 if ac_fn_c_try_run "$LINENO"; then :
8430 else
8431 ac_cv_header_stdc=no
8433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8434 conftest.$ac_objext conftest.beam conftest.$ac_ext
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8440 $as_echo "$ac_cv_header_stdc" >&6; }
8441 if test $ac_cv_header_stdc = yes; then
8443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8448 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8449 if test "${ac_cv_header_time+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <sys/types.h>
8455 #include <sys/time.h>
8456 #include <time.h>
8459 main ()
8461 if ((struct tm *) 0)
8462 return 0;
8464 return 0;
8466 _ACEOF
8467 if ac_fn_c_try_compile "$LINENO"; then :
8468 ac_cv_header_time=yes
8469 else
8470 ac_cv_header_time=no
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8475 $as_echo "$ac_cv_header_time" >&6; }
8476 if test $ac_cv_header_time = yes; then
8478 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8483 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8484 if test "${gcc_cv_header_string+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <string.h>
8490 #include <strings.h>
8492 main ()
8496 return 0;
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"; then :
8500 gcc_cv_header_string=yes
8501 else
8502 gcc_cv_header_string=no
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8507 $as_echo "$gcc_cv_header_string" >&6; }
8508 if test $gcc_cv_header_string = yes; then
8510 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8515 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8516 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 #include <sys/wait.h>
8523 #ifndef WEXITSTATUS
8524 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8525 #endif
8526 #ifndef WIFEXITED
8527 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8528 #endif
8531 main ()
8533 int s;
8534 wait (&s);
8535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8537 return 0;
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541 ac_cv_header_sys_wait_h=yes
8542 else
8543 ac_cv_header_sys_wait_h=no
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8548 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8549 if test $ac_cv_header_sys_wait_h = yes; then
8551 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8555 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8556 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8557 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8558 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8559 do :
8560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8561 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8562 eval as_val=\$$as_ac_Header
8563 if test "x$as_val" = x""yes; then :
8564 cat >>confdefs.h <<_ACEOF
8565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8566 _ACEOF
8569 done
8572 # Check for thread headers.
8573 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8574 if test "x$ac_cv_header_thread_h" = x""yes; then :
8575 have_thread_h=yes
8576 else
8577 have_thread_h=
8580 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8581 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8582 have_pthread_h=yes
8583 else
8584 have_pthread_h=
8588 # These tests can't be done till we know if we have limits.h.
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8590 $as_echo_n "checking for CHAR_BIT... " >&6; }
8591 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #ifdef HAVE_LIMITS_H
8597 #include <limits.h>
8598 #endif
8599 #ifdef CHAR_BIT
8600 found
8601 #endif
8602 _ACEOF
8603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 $EGREP "found" >/dev/null 2>&1; then :
8605 gcc_cv_decl_char_bit=yes
8606 else
8607 gcc_cv_decl_char_bit=no
8609 rm -f conftest*
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8614 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8615 if test $gcc_cv_decl_char_bit = no; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8617 $as_echo_n "checking number of bits in a byte... " >&6; }
8618 if test "${gcc_cv_c_nbby+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8622 gcc_cv_c_nbby=
8623 while test $i -lt 65; do
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8628 main ()
8630 switch(0) {
8631 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8632 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8635 return 0;
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 gcc_cv_c_nbby=$i; break
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 i=`expr $i + 1`
8643 done
8644 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8648 $as_echo "$gcc_cv_c_nbby" >&6; }
8649 if test $gcc_cv_c_nbby = failed; then
8650 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8651 else
8653 cat >>confdefs.h <<_ACEOF
8654 #define CHAR_BIT $gcc_cv_c_nbby
8655 _ACEOF
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8660 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8661 if test "${ac_cv_c_bigendian+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 ac_cv_c_bigendian=unknown
8665 # See if we're dealing with a universal compiler.
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #ifndef __APPLE_CC__
8669 not a universal capable compiler
8670 #endif
8671 typedef int dummy;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"; then :
8676 # Check for potential -arch flags. It is not universal unless
8677 # there are at least two -arch flags with different values.
8678 ac_arch=
8679 ac_prev=
8680 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8681 if test -n "$ac_prev"; then
8682 case $ac_word in
8683 i?86 | x86_64 | ppc | ppc64)
8684 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8685 ac_arch=$ac_word
8686 else
8687 ac_cv_c_bigendian=universal
8688 break
8691 esac
8692 ac_prev=
8693 elif test "x$ac_word" = "x-arch"; then
8694 ac_prev=arch
8696 done
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 if test $ac_cv_c_bigendian = unknown; then
8700 # See if sys/param.h defines the BYTE_ORDER macro.
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/param.h>
8707 main ()
8709 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8710 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8711 && LITTLE_ENDIAN)
8712 bogus endian macros
8713 #endif
8716 return 0;
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"; then :
8720 # It does; now see whether it defined to BIG_ENDIAN or not.
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <sys/types.h>
8724 #include <sys/param.h>
8727 main ()
8729 #if BYTE_ORDER != BIG_ENDIAN
8730 not big endian
8731 #endif
8734 return 0;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 ac_cv_c_bigendian=yes
8739 else
8740 ac_cv_c_bigendian=no
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 if test $ac_cv_c_bigendian = unknown; then
8747 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 #include <limits.h>
8753 main ()
8755 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8756 bogus endian macros
8757 #endif
8760 return 0;
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 # It does; now see whether it defined to _BIG_ENDIAN or not.
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 #include <limits.h>
8770 main ()
8772 #ifndef _BIG_ENDIAN
8773 not big endian
8774 #endif
8777 return 0;
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"; then :
8781 ac_cv_c_bigendian=yes
8782 else
8783 ac_cv_c_bigendian=no
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 if test $ac_cv_c_bigendian = unknown; then
8790 # Compile a test program.
8791 if test "$cross_compiling" = yes; then :
8792 # Try to guess by grepping values from an object file.
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 short int ascii_mm[] =
8796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8797 short int ascii_ii[] =
8798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8799 int use_ascii (int i) {
8800 return ascii_mm[i] + ascii_ii[i];
8802 short int ebcdic_ii[] =
8803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8804 short int ebcdic_mm[] =
8805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8806 int use_ebcdic (int i) {
8807 return ebcdic_mm[i] + ebcdic_ii[i];
8809 extern int foo;
8812 main ()
8814 return use_ascii (foo) == use_ebcdic (foo);
8816 return 0;
8818 _ACEOF
8819 if ac_fn_c_try_compile "$LINENO"; then :
8820 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8821 ac_cv_c_bigendian=yes
8823 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8824 if test "$ac_cv_c_bigendian" = unknown; then
8825 ac_cv_c_bigendian=no
8826 else
8827 # finding both strings is unlikely to happen, but who knows?
8828 ac_cv_c_bigendian=unknown
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 else
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 $ac_includes_default
8838 main ()
8841 /* Are we little or big endian? From Harbison&Steele. */
8842 union
8844 long int l;
8845 char c[sizeof (long int)];
8846 } u;
8847 u.l = 1;
8848 return u.c[sizeof (long int) - 1] == 1;
8851 return 0;
8853 _ACEOF
8854 if ac_fn_c_try_run "$LINENO"; then :
8855 ac_cv_c_bigendian=no
8856 else
8857 ac_cv_c_bigendian=yes
8859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8860 conftest.$ac_objext conftest.beam conftest.$ac_ext
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8866 $as_echo "$ac_cv_c_bigendian" >&6; }
8867 case $ac_cv_c_bigendian in #(
8868 yes)
8869 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8870 ;; #(
8872 ;; #(
8873 universal)
8875 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8877 ;; #(
8879 as_fn_error "unknown endianness
8880 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8881 esac
8884 # ----------------------
8885 # Checks for C++ headers
8886 # ----------------------
8888 ac_ext=cpp
8889 ac_cpp='$CXXCPP $CPPFLAGS'
8890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8894 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8895 if test -z "$CXXCPP"; then
8896 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 # Double quotes because CXXCPP needs to be expanded
8900 for CXXCPP in "$CXX -E" "/lib/cpp"
8902 ac_preproc_ok=false
8903 for ac_cxx_preproc_warn_flag in '' yes
8905 # Use a header file that comes with gcc, so configuring glibc
8906 # with a fresh cross-compiler works.
8907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 # <limits.h> exists even on freestanding compilers.
8909 # On the NeXT, cc -E runs the code through the compiler's parser,
8910 # not just through cpp. "Syntax error" is here to catch this case.
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913 #ifdef __STDC__
8914 # include <limits.h>
8915 #else
8916 # include <assert.h>
8917 #endif
8918 Syntax error
8919 _ACEOF
8920 if ac_fn_cxx_try_cpp "$LINENO"; then :
8922 else
8923 # Broken: fails on valid input.
8924 continue
8926 rm -f conftest.err conftest.$ac_ext
8928 # OK, works on sane cases. Now check whether nonexistent headers
8929 # can be detected and how.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <ac_nonexistent.h>
8933 _ACEOF
8934 if ac_fn_cxx_try_cpp "$LINENO"; then :
8935 # Broken: success on invalid input.
8936 continue
8937 else
8938 # Passes both tests.
8939 ac_preproc_ok=:
8940 break
8942 rm -f conftest.err conftest.$ac_ext
8944 done
8945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8946 rm -f conftest.err conftest.$ac_ext
8947 if $ac_preproc_ok; then :
8948 break
8951 done
8952 ac_cv_prog_CXXCPP=$CXXCPP
8955 CXXCPP=$ac_cv_prog_CXXCPP
8956 else
8957 ac_cv_prog_CXXCPP=$CXXCPP
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8960 $as_echo "$CXXCPP" >&6; }
8961 ac_preproc_ok=false
8962 for ac_cxx_preproc_warn_flag in '' yes
8964 # Use a header file that comes with gcc, so configuring glibc
8965 # with a fresh cross-compiler works.
8966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 # <limits.h> exists even on freestanding compilers.
8968 # On the NeXT, cc -E runs the code through the compiler's parser,
8969 # not just through cpp. "Syntax error" is here to catch this case.
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #ifdef __STDC__
8973 # include <limits.h>
8974 #else
8975 # include <assert.h>
8976 #endif
8977 Syntax error
8978 _ACEOF
8979 if ac_fn_cxx_try_cpp "$LINENO"; then :
8981 else
8982 # Broken: fails on valid input.
8983 continue
8985 rm -f conftest.err conftest.$ac_ext
8987 # OK, works on sane cases. Now check whether nonexistent headers
8988 # can be detected and how.
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 #include <ac_nonexistent.h>
8992 _ACEOF
8993 if ac_fn_cxx_try_cpp "$LINENO"; then :
8994 # Broken: success on invalid input.
8995 continue
8996 else
8997 # Passes both tests.
8998 ac_preproc_ok=:
8999 break
9001 rm -f conftest.err conftest.$ac_ext
9003 done
9004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9005 rm -f conftest.err conftest.$ac_ext
9006 if $ac_preproc_ok; then :
9008 else
9009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9012 See \`config.log' for more details." >&5
9013 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9014 See \`config.log' for more details." >&2;}; }
9017 ac_ext=c
9018 ac_cpp='$CPP $CPPFLAGS'
9019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9024 ac_ext=cpp
9025 ac_cpp='$CXXCPP $CPPFLAGS'
9026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9033 for ac_header in unordered_map
9034 do :
9035 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9036 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9037 cat >>confdefs.h <<_ACEOF
9038 #define HAVE_UNORDERED_MAP 1
9039 _ACEOF
9042 done
9044 for ac_header in tr1/unordered_map
9045 do :
9046 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9047 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_TR1_UNORDERED_MAP 1
9050 _ACEOF
9053 done
9055 for ac_header in ext/hash_map
9056 do :
9057 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9058 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_EXT_HASH_MAP 1
9061 _ACEOF
9064 done
9067 ac_ext=c
9068 ac_cpp='$CPP $CPPFLAGS'
9069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074 # --------
9075 # UNSORTED
9076 # --------
9079 # These libraries may be used by collect2.
9080 # We may need a special search path to get them linked.
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9082 $as_echo_n "checking for collect2 libraries... " >&6; }
9083 if test "${gcc_cv_collect2_libs+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 save_LIBS="$LIBS"
9087 for libs in '' -lld -lmld \
9088 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9089 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9091 LIBS="$libs"
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9098 #ifdef __cplusplus
9099 extern "C"
9100 #endif
9101 char ldopen ();
9103 main ()
9105 return ldopen ();
9107 return 0;
9109 _ACEOF
9110 if ac_fn_c_try_link "$LINENO"; then :
9111 gcc_cv_collect2_libs="$libs"; break
9113 rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115 done
9116 LIBS="$save_LIBS"
9117 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9120 $as_echo "$gcc_cv_collect2_libs" >&6; }
9121 case $gcc_cv_collect2_libs in
9122 "none required") ;;
9123 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9124 esac
9127 # When building Ada code on Alpha, we need exc_resume which is usually in
9128 # -lexc. So test for it.
9129 save_LIBS="$LIBS"
9130 LIBS=
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9132 $as_echo_n "checking for library containing exc_resume... " >&6; }
9133 if test "${ac_cv_search_exc_resume+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 ac_func_search_save_LIBS=$LIBS
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char exc_resume ();
9148 main ()
9150 return exc_resume ();
9152 return 0;
9154 _ACEOF
9155 for ac_lib in '' exc; do
9156 if test -z "$ac_lib"; then
9157 ac_res="none required"
9158 else
9159 ac_res=-l$ac_lib
9160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 ac_cv_search_exc_resume=$ac_res
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext
9167 if test "${ac_cv_search_exc_resume+set}" = set; then :
9168 break
9170 done
9171 if test "${ac_cv_search_exc_resume+set}" = set; then :
9173 else
9174 ac_cv_search_exc_resume=no
9176 rm conftest.$ac_ext
9177 LIBS=$ac_func_search_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9180 $as_echo "$ac_cv_search_exc_resume" >&6; }
9181 ac_res=$ac_cv_search_exc_resume
9182 if test "$ac_res" != no; then :
9183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9187 GNAT_LIBEXC="$LIBS"
9188 LIBS="$save_LIBS"
9191 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9192 save_LIBS="$LIBS"
9193 LIBS=
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9195 $as_echo_n "checking for library containing kstat_open... " >&6; }
9196 if test "${ac_cv_search_kstat_open+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 ac_func_search_save_LIBS=$LIBS
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char kstat_open ();
9211 main ()
9213 return kstat_open ();
9215 return 0;
9217 _ACEOF
9218 for ac_lib in '' kstat; do
9219 if test -z "$ac_lib"; then
9220 ac_res="none required"
9221 else
9222 ac_res=-l$ac_lib
9223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 ac_cv_search_kstat_open=$ac_res
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext
9230 if test "${ac_cv_search_kstat_open+set}" = set; then :
9231 break
9233 done
9234 if test "${ac_cv_search_kstat_open+set}" = set; then :
9236 else
9237 ac_cv_search_kstat_open=no
9239 rm conftest.$ac_ext
9240 LIBS=$ac_func_search_save_LIBS
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9243 $as_echo "$ac_cv_search_kstat_open" >&6; }
9244 ac_res=$ac_cv_search_kstat_open
9245 if test "$ac_res" != no; then :
9246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9250 EXTRA_GCC_LIBS="$LIBS"
9251 LIBS="$save_LIBS"
9254 # Some systems put ldexp and frexp in libm instead of libc; assume
9255 # they're both in the same place. jcf-dump needs them.
9256 save_LIBS="$LIBS"
9257 LIBS=
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9259 $as_echo_n "checking for library containing ldexp... " >&6; }
9260 if test "${ac_cv_search_ldexp+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 ac_func_search_save_LIBS=$LIBS
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9267 /* Override any GCC internal prototype to avoid an error.
9268 Use char because int might match the return type of a GCC
9269 builtin and then its argument prototype would still apply. */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 char ldexp ();
9275 main ()
9277 return ldexp ();
9279 return 0;
9281 _ACEOF
9282 for ac_lib in '' m; do
9283 if test -z "$ac_lib"; then
9284 ac_res="none required"
9285 else
9286 ac_res=-l$ac_lib
9287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 ac_cv_search_ldexp=$ac_res
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext
9294 if test "${ac_cv_search_ldexp+set}" = set; then :
9295 break
9297 done
9298 if test "${ac_cv_search_ldexp+set}" = set; then :
9300 else
9301 ac_cv_search_ldexp=no
9303 rm conftest.$ac_ext
9304 LIBS=$ac_func_search_save_LIBS
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9307 $as_echo "$ac_cv_search_ldexp" >&6; }
9308 ac_res=$ac_cv_search_ldexp
9309 if test "$ac_res" != no; then :
9310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9314 LDEXP_LIB="$LIBS"
9315 LIBS="$save_LIBS"
9318 # Use <inttypes.h> only if it exists,
9319 # doesn't clash with <sys/types.h>, and declares intmax_t.
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9321 $as_echo_n "checking for inttypes.h... " >&6; }
9322 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 #include <sys/types.h>
9328 #include <inttypes.h>
9330 main ()
9332 intmax_t i = -1;
9334 return 0;
9336 _ACEOF
9337 if ac_fn_c_try_compile "$LINENO"; then :
9338 gcc_cv_header_inttypes_h=yes
9339 else
9340 gcc_cv_header_inttypes_h=no
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9346 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9347 if test $gcc_cv_header_inttypes_h = yes; then
9349 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9355 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9356 sysconf strsignal getrusage nl_langinfo \
9357 gettimeofday mbstowcs wcswidth mmap setlocale \
9358 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9359 do :
9360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9362 eval as_val=\$$as_ac_var
9363 if test "x$as_val" = x""yes; then :
9364 cat >>confdefs.h <<_ACEOF
9365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9366 _ACEOF
9369 done
9372 if test x$ac_cv_func_mbstowcs = xyes; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9374 $as_echo_n "checking whether mbstowcs works... " >&6; }
9375 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 if test "$cross_compiling" = yes; then :
9379 gcc_cv_func_mbstowcs_works=yes
9380 else
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383 #include <stdlib.h>
9384 int main()
9386 mbstowcs(0, "", 0);
9387 return 0;
9389 _ACEOF
9390 if ac_fn_c_try_run "$LINENO"; then :
9391 gcc_cv_func_mbstowcs_works=yes
9392 else
9393 gcc_cv_func_mbstowcs_works=no
9395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9396 conftest.$ac_objext conftest.beam conftest.$ac_ext
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9401 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9402 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9404 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9409 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9410 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9412 else
9414 cat >>confdefs.h <<_ACEOF
9415 #define ssize_t int
9416 _ACEOF
9420 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9421 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9423 else
9425 cat >>confdefs.h <<_ACEOF
9426 #define caddr_t char *
9427 _ACEOF
9433 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9434 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9435 gcc_header_sys_mman_h=yes
9436 else
9437 gcc_header_sys_mman_h=no
9440 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9441 if test "x$ac_cv_func_mmap" = x""yes; then :
9442 gcc_func_mmap=yes
9443 else
9444 gcc_func_mmap=no
9447 if test "$gcc_header_sys_mman_h" != yes \
9448 || test "$gcc_func_mmap" != yes; then
9449 gcc_cv_func_mmap_file=no
9450 gcc_cv_func_mmap_dev_zero=no
9451 gcc_cv_func_mmap_anon=no
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9454 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9455 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 # Add a system to this blacklist if
9459 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9460 # memory area containing the same data that you'd get if you applied
9461 # read() to the same fd. The only system known to have a problem here
9462 # is VMS, where text files have record structure.
9463 case "$host_os" in
9464 *vms* | ultrix*)
9465 gcc_cv_func_mmap_file=no ;;
9467 gcc_cv_func_mmap_file=yes;;
9468 esac
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9471 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9473 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9474 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 # Add a system to this blacklist if it has mmap() but /dev/zero
9478 # does not exist, or if mmapping /dev/zero does not give anonymous
9479 # zeroed pages with both the following properties:
9480 # 1. If you map N consecutive pages in with one call, and then
9481 # unmap any subset of those pages, the pages that were not
9482 # explicitly unmapped remain accessible.
9483 # 2. If you map two adjacent blocks of memory and then unmap them
9484 # both at once, they must both go away.
9485 # Systems known to be in this category are Windows (all variants),
9486 # VMS, and Darwin.
9487 case "$host_os" in
9488 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9489 gcc_cv_func_mmap_dev_zero=no ;;
9491 gcc_cv_func_mmap_dev_zero=yes;;
9492 esac
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9495 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9497 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9499 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9500 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 #include <sys/types.h>
9506 #include <sys/mman.h>
9507 #include <unistd.h>
9509 #ifndef MAP_ANONYMOUS
9510 #define MAP_ANONYMOUS MAP_ANON
9511 #endif
9514 main ()
9516 int n = MAP_ANONYMOUS;
9518 return 0;
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522 gcc_cv_decl_map_anon=yes
9523 else
9524 gcc_cv_decl_map_anon=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9529 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9531 if test $gcc_cv_decl_map_anon = no; then
9532 gcc_cv_func_mmap_anon=no
9533 else
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9535 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9536 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9540 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9541 # doesn't give anonymous zeroed pages with the same properties listed
9542 # above for use of /dev/zero.
9543 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9544 case "$host_os" in
9545 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9546 gcc_cv_func_mmap_anon=no ;;
9548 gcc_cv_func_mmap_anon=yes;;
9549 esac
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9552 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9556 if test $gcc_cv_func_mmap_file = yes; then
9558 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9561 if test $gcc_cv_func_mmap_dev_zero = yes; then
9563 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9566 if test $gcc_cv_func_mmap_anon = yes; then
9568 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9573 case "${host}" in
9574 *-*-*vms*)
9575 # Under VMS, vfork works very differently than on Unix. The standard test
9576 # won't work, and it isn't easily adaptable. It makes more sense to
9577 # just force it.
9578 ac_cv_func_vfork_works=yes
9580 esac
9581 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9582 if test "x$ac_cv_type_pid_t" = x""yes; then :
9584 else
9586 cat >>confdefs.h <<_ACEOF
9587 #define pid_t int
9588 _ACEOF
9592 for ac_header in vfork.h
9593 do :
9594 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9595 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_VFORK_H 1
9598 _ACEOF
9601 done
9603 for ac_func in fork vfork
9604 do :
9605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9607 eval as_val=\$$as_ac_var
9608 if test "x$as_val" = x""yes; then :
9609 cat >>confdefs.h <<_ACEOF
9610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9611 _ACEOF
9614 done
9616 if test "x$ac_cv_func_fork" = xyes; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9618 $as_echo_n "checking for working fork... " >&6; }
9619 if test "${ac_cv_func_fork_works+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 if test "$cross_compiling" = yes; then :
9623 ac_cv_func_fork_works=cross
9624 else
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 $ac_includes_default
9629 main ()
9632 /* By Ruediger Kuhlmann. */
9633 return fork () < 0;
9636 return 0;
9638 _ACEOF
9639 if ac_fn_c_try_run "$LINENO"; then :
9640 ac_cv_func_fork_works=yes
9641 else
9642 ac_cv_func_fork_works=no
9644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9645 conftest.$ac_objext conftest.beam conftest.$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9650 $as_echo "$ac_cv_func_fork_works" >&6; }
9652 else
9653 ac_cv_func_fork_works=$ac_cv_func_fork
9655 if test "x$ac_cv_func_fork_works" = xcross; then
9656 case $host in
9657 *-*-amigaos* | *-*-msdosdjgpp*)
9658 # Override, as these systems have only a dummy fork() stub
9659 ac_cv_func_fork_works=no
9662 ac_cv_func_fork_works=yes
9664 esac
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9666 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9668 ac_cv_func_vfork_works=$ac_cv_func_vfork
9669 if test "x$ac_cv_func_vfork" = xyes; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9671 $as_echo_n "checking for working vfork... " >&6; }
9672 if test "${ac_cv_func_vfork_works+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test "$cross_compiling" = yes; then :
9676 ac_cv_func_vfork_works=cross
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 /* Thanks to Paul Eggert for this test. */
9681 $ac_includes_default
9682 #include <sys/wait.h>
9683 #ifdef HAVE_VFORK_H
9684 # include <vfork.h>
9685 #endif
9686 /* On some sparc systems, changes by the child to local and incoming
9687 argument registers are propagated back to the parent. The compiler
9688 is told about this with #include <vfork.h>, but some compilers
9689 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9690 static variable whose address is put into a register that is
9691 clobbered by the vfork. */
9692 static void
9693 #ifdef __cplusplus
9694 sparc_address_test (int arg)
9695 # else
9696 sparc_address_test (arg) int arg;
9697 #endif
9699 static pid_t child;
9700 if (!child) {
9701 child = vfork ();
9702 if (child < 0) {
9703 perror ("vfork");
9704 _exit(2);
9706 if (!child) {
9707 arg = getpid();
9708 write(-1, "", 0);
9709 _exit (arg);
9715 main ()
9717 pid_t parent = getpid ();
9718 pid_t child;
9720 sparc_address_test (0);
9722 child = vfork ();
9724 if (child == 0) {
9725 /* Here is another test for sparc vfork register problems. This
9726 test uses lots of local variables, at least as many local
9727 variables as main has allocated so far including compiler
9728 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9729 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9730 reuse the register of parent for one of the local variables,
9731 since it will think that parent can't possibly be used any more
9732 in this routine. Assigning to the local variable will thus
9733 munge parent in the parent process. */
9734 pid_t
9735 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9736 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9737 /* Convince the compiler that p..p7 are live; otherwise, it might
9738 use the same hardware register for all 8 local variables. */
9739 if (p != p1 || p != p2 || p != p3 || p != p4
9740 || p != p5 || p != p6 || p != p7)
9741 _exit(1);
9743 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9744 from child file descriptors. If the child closes a descriptor
9745 before it execs or exits, this munges the parent's descriptor
9746 as well. Test for this by closing stdout in the child. */
9747 _exit(close(fileno(stdout)) != 0);
9748 } else {
9749 int status;
9750 struct stat st;
9752 while (wait(&status) != child)
9754 return (
9755 /* Was there some problem with vforking? */
9756 child < 0
9758 /* Did the child fail? (This shouldn't happen.) */
9759 || status
9761 /* Did the vfork/compiler bug occur? */
9762 || parent != getpid()
9764 /* Did the file descriptor bug occur? */
9765 || fstat(fileno(stdout), &st) != 0
9769 _ACEOF
9770 if ac_fn_c_try_run "$LINENO"; then :
9771 ac_cv_func_vfork_works=yes
9772 else
9773 ac_cv_func_vfork_works=no
9775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9776 conftest.$ac_objext conftest.beam conftest.$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9781 $as_echo "$ac_cv_func_vfork_works" >&6; }
9784 if test "x$ac_cv_func_fork_works" = xcross; then
9785 ac_cv_func_vfork_works=$ac_cv_func_vfork
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9787 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9790 if test "x$ac_cv_func_vfork_works" = xyes; then
9792 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9794 else
9796 $as_echo "#define vfork fork" >>confdefs.h
9799 if test "x$ac_cv_func_fork_works" = xyes; then
9801 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9806 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9807 # iconv() prototype.
9808 ac_ext=cpp
9809 ac_cpp='$CXXCPP $CPPFLAGS'
9810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9815 if test "X$prefix" = "XNONE"; then
9816 acl_final_prefix="$ac_default_prefix"
9817 else
9818 acl_final_prefix="$prefix"
9820 if test "X$exec_prefix" = "XNONE"; then
9821 acl_final_exec_prefix='${prefix}'
9822 else
9823 acl_final_exec_prefix="$exec_prefix"
9825 acl_save_prefix="$prefix"
9826 prefix="$acl_final_prefix"
9827 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9828 prefix="$acl_save_prefix"
9831 # Check whether --with-gnu-ld was given.
9832 if test "${with_gnu_ld+set}" = set; then :
9833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9834 else
9835 with_gnu_ld=no
9838 # Prepare PATH_SEPARATOR.
9839 # The user is always right.
9840 if test "${PATH_SEPARATOR+set}" != set; then
9841 echo "#! /bin/sh" >conf$$.sh
9842 echo "exit 0" >>conf$$.sh
9843 chmod +x conf$$.sh
9844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9845 PATH_SEPARATOR=';'
9846 else
9847 PATH_SEPARATOR=:
9849 rm -f conf$$.sh
9851 ac_prog=ld
9852 if test "$GCC" = yes; then
9853 # Check if gcc -print-prog-name=ld gives a path.
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9855 $as_echo_n "checking for ld used by GCC... " >&6; }
9856 case $host in
9857 *-*-mingw*)
9858 # gcc leaves a trailing carriage return which upsets mingw
9859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9862 esac
9863 case $ac_prog in
9864 # Accept absolute paths.
9865 [\\/]* | [A-Za-z]:[\\/]*)
9866 re_direlt='/[^/][^/]*/\.\./'
9867 # Canonicalize the path of ld
9868 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9870 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9871 done
9872 test -z "$LD" && LD="$ac_prog"
9875 # If it fails, then pretend we aren't using GCC.
9876 ac_prog=ld
9879 # If it is relative, then search for the first ld in PATH.
9880 with_gnu_ld=unknown
9882 esac
9883 elif test "$with_gnu_ld" = yes; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9885 $as_echo_n "checking for GNU ld... " >&6; }
9886 else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9888 $as_echo_n "checking for non-GNU ld... " >&6; }
9890 if test "${acl_cv_path_LD+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 if test -z "$LD"; then
9894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9895 for ac_dir in $PATH; do
9896 test -z "$ac_dir" && ac_dir=.
9897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9898 acl_cv_path_LD="$ac_dir/$ac_prog"
9899 # Check to see if the program is GNU ld. I'd rather use --version,
9900 # but apparently some GNU ld's only accept -v.
9901 # Break only if it was the GNU/non-GNU ld that we prefer.
9902 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9903 test "$with_gnu_ld" != no && break
9904 else
9905 test "$with_gnu_ld" != yes && break
9908 done
9909 IFS="$ac_save_ifs"
9910 else
9911 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9915 LD="$acl_cv_path_LD"
9916 if test -n "$LD"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9918 $as_echo "$LD" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9923 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9926 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9930 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9931 acl_cv_prog_gnu_ld=yes
9932 else
9933 acl_cv_prog_gnu_ld=no
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9937 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9938 with_gnu_ld=$acl_cv_prog_gnu_ld
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9943 $as_echo_n "checking for shared library run path origin... " >&6; }
9944 if test "${acl_cv_rpath+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9948 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9949 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9950 . ./conftest.sh
9951 rm -f ./conftest.sh
9952 acl_cv_rpath=done
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9956 $as_echo "$acl_cv_rpath" >&6; }
9957 wl="$acl_cv_wl"
9958 libext="$acl_cv_libext"
9959 shlibext="$acl_cv_shlibext"
9960 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9961 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9962 hardcode_direct="$acl_cv_hardcode_direct"
9963 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9964 # Check whether --enable-rpath was given.
9965 if test "${enable_rpath+set}" = set; then :
9966 enableval=$enable_rpath; :
9967 else
9968 enable_rpath=yes
9978 use_additional=yes
9980 acl_save_prefix="$prefix"
9981 prefix="$acl_final_prefix"
9982 acl_save_exec_prefix="$exec_prefix"
9983 exec_prefix="$acl_final_exec_prefix"
9985 eval additional_includedir=\"$includedir\"
9986 eval additional_libdir=\"$libdir\"
9988 exec_prefix="$acl_save_exec_prefix"
9989 prefix="$acl_save_prefix"
9992 # Check whether --with-libiconv-prefix was given.
9993 if test "${with_libiconv_prefix+set}" = set; then :
9994 withval=$with_libiconv_prefix;
9995 if test "X$withval" = "Xno"; then
9996 use_additional=no
9997 else
9998 if test "X$withval" = "X"; then
10000 acl_save_prefix="$prefix"
10001 prefix="$acl_final_prefix"
10002 acl_save_exec_prefix="$exec_prefix"
10003 exec_prefix="$acl_final_exec_prefix"
10005 eval additional_includedir=\"$includedir\"
10006 eval additional_libdir=\"$libdir\"
10008 exec_prefix="$acl_save_exec_prefix"
10009 prefix="$acl_save_prefix"
10011 else
10012 additional_includedir="$withval/include"
10013 additional_libdir="$withval/lib"
10019 LIBICONV=
10020 LTLIBICONV=
10021 INCICONV=
10022 rpathdirs=
10023 ltrpathdirs=
10024 names_already_handled=
10025 names_next_round='iconv '
10026 while test -n "$names_next_round"; do
10027 names_this_round="$names_next_round"
10028 names_next_round=
10029 for name in $names_this_round; do
10030 already_handled=
10031 for n in $names_already_handled; do
10032 if test "$n" = "$name"; then
10033 already_handled=yes
10034 break
10036 done
10037 if test -z "$already_handled"; then
10038 names_already_handled="$names_already_handled $name"
10039 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10040 eval value=\"\$HAVE_LIB$uppername\"
10041 if test -n "$value"; then
10042 if test "$value" = yes; then
10043 eval value=\"\$LIB$uppername\"
10044 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10045 eval value=\"\$LTLIB$uppername\"
10046 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10047 else
10050 else
10051 found_dir=
10052 found_la=
10053 found_so=
10054 found_a=
10055 if test $use_additional = yes; then
10056 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10057 found_dir="$additional_libdir"
10058 found_so="$additional_libdir/lib$name.$shlibext"
10059 if test -f "$additional_libdir/lib$name.la"; then
10060 found_la="$additional_libdir/lib$name.la"
10062 else
10063 if test -f "$additional_libdir/lib$name.$libext"; then
10064 found_dir="$additional_libdir"
10065 found_a="$additional_libdir/lib$name.$libext"
10066 if test -f "$additional_libdir/lib$name.la"; then
10067 found_la="$additional_libdir/lib$name.la"
10072 if test "X$found_dir" = "X"; then
10073 for x in $LDFLAGS $LTLIBICONV; do
10075 acl_save_prefix="$prefix"
10076 prefix="$acl_final_prefix"
10077 acl_save_exec_prefix="$exec_prefix"
10078 exec_prefix="$acl_final_exec_prefix"
10079 eval x=\"$x\"
10080 exec_prefix="$acl_save_exec_prefix"
10081 prefix="$acl_save_prefix"
10083 case "$x" in
10084 -L*)
10085 dir=`echo "X$x" | sed -e 's/^X-L//'`
10086 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10087 found_dir="$dir"
10088 found_so="$dir/lib$name.$shlibext"
10089 if test -f "$dir/lib$name.la"; then
10090 found_la="$dir/lib$name.la"
10092 else
10093 if test -f "$dir/lib$name.$libext"; then
10094 found_dir="$dir"
10095 found_a="$dir/lib$name.$libext"
10096 if test -f "$dir/lib$name.la"; then
10097 found_la="$dir/lib$name.la"
10102 esac
10103 if test "X$found_dir" != "X"; then
10104 break
10106 done
10108 if test "X$found_dir" != "X"; then
10109 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10110 if test "X$found_so" != "X"; then
10111 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10112 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10113 else
10114 haveit=
10115 for x in $ltrpathdirs; do
10116 if test "X$x" = "X$found_dir"; then
10117 haveit=yes
10118 break
10120 done
10121 if test -z "$haveit"; then
10122 ltrpathdirs="$ltrpathdirs $found_dir"
10124 if test "$hardcode_direct" = yes; then
10125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10126 else
10127 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10129 haveit=
10130 for x in $rpathdirs; do
10131 if test "X$x" = "X$found_dir"; then
10132 haveit=yes
10133 break
10135 done
10136 if test -z "$haveit"; then
10137 rpathdirs="$rpathdirs $found_dir"
10139 else
10140 haveit=
10141 for x in $LDFLAGS $LIBICONV; do
10143 acl_save_prefix="$prefix"
10144 prefix="$acl_final_prefix"
10145 acl_save_exec_prefix="$exec_prefix"
10146 exec_prefix="$acl_final_exec_prefix"
10147 eval x=\"$x\"
10148 exec_prefix="$acl_save_exec_prefix"
10149 prefix="$acl_save_prefix"
10151 if test "X$x" = "X-L$found_dir"; then
10152 haveit=yes
10153 break
10155 done
10156 if test -z "$haveit"; then
10157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10159 if test "$hardcode_minus_L" != no; then
10160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10161 else
10162 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10167 else
10168 if test "X$found_a" != "X"; then
10169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10170 else
10171 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10174 additional_includedir=
10175 case "$found_dir" in
10176 */lib | */lib/)
10177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10178 additional_includedir="$basedir/include"
10180 esac
10181 if test "X$additional_includedir" != "X"; then
10182 if test "X$additional_includedir" != "X/usr/include"; then
10183 haveit=
10184 if test "X$additional_includedir" = "X/usr/local/include"; then
10185 if test -n "$GCC"; then
10186 case $host_os in
10187 linux*) haveit=yes;;
10188 esac
10191 if test -z "$haveit"; then
10192 for x in $CPPFLAGS $INCICONV; do
10194 acl_save_prefix="$prefix"
10195 prefix="$acl_final_prefix"
10196 acl_save_exec_prefix="$exec_prefix"
10197 exec_prefix="$acl_final_exec_prefix"
10198 eval x=\"$x\"
10199 exec_prefix="$acl_save_exec_prefix"
10200 prefix="$acl_save_prefix"
10202 if test "X$x" = "X-I$additional_includedir"; then
10203 haveit=yes
10204 break
10206 done
10207 if test -z "$haveit"; then
10208 if test -d "$additional_includedir"; then
10209 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10215 if test -n "$found_la"; then
10216 save_libdir="$libdir"
10217 case "$found_la" in
10218 */* | *\\*) . "$found_la" ;;
10219 *) . "./$found_la" ;;
10220 esac
10221 libdir="$save_libdir"
10222 for dep in $dependency_libs; do
10223 case "$dep" in
10224 -L*)
10225 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10226 if test "X$additional_libdir" != "X/usr/lib"; then
10227 haveit=
10228 if test "X$additional_libdir" = "X/usr/local/lib"; then
10229 if test -n "$GCC"; then
10230 case $host_os in
10231 linux*) haveit=yes;;
10232 esac
10235 if test -z "$haveit"; then
10236 haveit=
10237 for x in $LDFLAGS $LIBICONV; do
10239 acl_save_prefix="$prefix"
10240 prefix="$acl_final_prefix"
10241 acl_save_exec_prefix="$exec_prefix"
10242 exec_prefix="$acl_final_exec_prefix"
10243 eval x=\"$x\"
10244 exec_prefix="$acl_save_exec_prefix"
10245 prefix="$acl_save_prefix"
10247 if test "X$x" = "X-L$additional_libdir"; then
10248 haveit=yes
10249 break
10251 done
10252 if test -z "$haveit"; then
10253 if test -d "$additional_libdir"; then
10254 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10257 haveit=
10258 for x in $LDFLAGS $LTLIBICONV; do
10260 acl_save_prefix="$prefix"
10261 prefix="$acl_final_prefix"
10262 acl_save_exec_prefix="$exec_prefix"
10263 exec_prefix="$acl_final_exec_prefix"
10264 eval x=\"$x\"
10265 exec_prefix="$acl_save_exec_prefix"
10266 prefix="$acl_save_prefix"
10268 if test "X$x" = "X-L$additional_libdir"; then
10269 haveit=yes
10270 break
10272 done
10273 if test -z "$haveit"; then
10274 if test -d "$additional_libdir"; then
10275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10281 -R*)
10282 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10283 if test "$enable_rpath" != no; then
10284 haveit=
10285 for x in $rpathdirs; do
10286 if test "X$x" = "X$dir"; then
10287 haveit=yes
10288 break
10290 done
10291 if test -z "$haveit"; then
10292 rpathdirs="$rpathdirs $dir"
10294 haveit=
10295 for x in $ltrpathdirs; do
10296 if test "X$x" = "X$dir"; then
10297 haveit=yes
10298 break
10300 done
10301 if test -z "$haveit"; then
10302 ltrpathdirs="$ltrpathdirs $dir"
10306 -l*)
10307 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10309 *.la)
10310 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10313 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10316 esac
10317 done
10319 else
10320 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10321 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10325 done
10326 done
10327 if test "X$rpathdirs" != "X"; then
10328 if test -n "$hardcode_libdir_separator"; then
10329 alldirs=
10330 for found_dir in $rpathdirs; do
10331 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10332 done
10333 acl_save_libdir="$libdir"
10334 libdir="$alldirs"
10335 eval flag=\"$hardcode_libdir_flag_spec\"
10336 libdir="$acl_save_libdir"
10337 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10338 else
10339 for found_dir in $rpathdirs; do
10340 acl_save_libdir="$libdir"
10341 libdir="$found_dir"
10342 eval flag=\"$hardcode_libdir_flag_spec\"
10343 libdir="$acl_save_libdir"
10344 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10345 done
10348 if test "X$ltrpathdirs" != "X"; then
10349 for found_dir in $ltrpathdirs; do
10350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10351 done
10360 am_save_CPPFLAGS="$CPPFLAGS"
10362 for element in $INCICONV; do
10363 haveit=
10364 for x in $CPPFLAGS; do
10366 acl_save_prefix="$prefix"
10367 prefix="$acl_final_prefix"
10368 acl_save_exec_prefix="$exec_prefix"
10369 exec_prefix="$acl_final_exec_prefix"
10370 eval x=\"$x\"
10371 exec_prefix="$acl_save_exec_prefix"
10372 prefix="$acl_save_prefix"
10374 if test "X$x" = "X$element"; then
10375 haveit=yes
10376 break
10378 done
10379 if test -z "$haveit"; then
10380 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10382 done
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10386 $as_echo_n "checking for iconv... " >&6; }
10387 if test "${am_cv_func_iconv+set}" = set; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10391 am_cv_func_iconv="no, consider installing GNU libiconv"
10392 am_cv_lib_iconv=no
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <stdlib.h>
10396 #include <iconv.h>
10398 main ()
10400 iconv_t cd = iconv_open("","");
10401 iconv(cd,NULL,NULL,NULL,NULL);
10402 iconv_close(cd);
10404 return 0;
10406 _ACEOF
10407 if ac_fn_cxx_try_link "$LINENO"; then :
10408 am_cv_func_iconv=yes
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 if test "$am_cv_func_iconv" != yes; then
10413 am_save_LIBS="$LIBS"
10414 LIBS="$LIBS $LIBICONV"
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <stdlib.h>
10418 #include <iconv.h>
10420 main ()
10422 iconv_t cd = iconv_open("","");
10423 iconv(cd,NULL,NULL,NULL,NULL);
10424 iconv_close(cd);
10426 return 0;
10428 _ACEOF
10429 if ac_fn_cxx_try_link "$LINENO"; then :
10430 am_cv_lib_iconv=yes
10431 am_cv_func_iconv=yes
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS="$am_save_LIBS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10440 $as_echo "$am_cv_func_iconv" >&6; }
10441 if test "$am_cv_func_iconv" = yes; then
10443 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10446 if test "$am_cv_lib_iconv" = yes; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10448 $as_echo_n "checking how to link with libiconv... " >&6; }
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10450 $as_echo "$LIBICONV" >&6; }
10451 else
10452 CPPFLAGS="$am_save_CPPFLAGS"
10453 LIBICONV=
10454 LTLIBICONV=
10459 if test "$am_cv_func_iconv" = yes; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10461 $as_echo_n "checking for iconv declaration... " >&6; }
10462 if test "${am_cv_proto_iconv+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10469 #include <stdlib.h>
10470 #include <iconv.h>
10471 extern
10472 #ifdef __cplusplus
10474 #endif
10475 #if defined(__STDC__) || defined(__cplusplus)
10476 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10477 #else
10478 size_t iconv();
10479 #endif
10482 main ()
10486 return 0;
10488 _ACEOF
10489 if ac_fn_cxx_try_compile "$LINENO"; then :
10490 am_cv_proto_iconv_arg1=""
10491 else
10492 am_cv_proto_iconv_arg1="const"
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495 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);"
10498 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10500 }$am_cv_proto_iconv" >&5
10501 $as_echo "${ac_t:-
10502 }$am_cv_proto_iconv" >&6; }
10504 cat >>confdefs.h <<_ACEOF
10505 #define ICONV_CONST $am_cv_proto_iconv_arg1
10506 _ACEOF
10510 ac_ext=c
10511 ac_cpp='$CPP $CPPFLAGS'
10512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10517 # Until we have in-tree GNU iconv:
10518 LIBICONV_DEP=
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10523 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10524 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 #include <locale.h>
10531 main ()
10533 return LC_MESSAGES
10535 return 0;
10537 _ACEOF
10538 if ac_fn_c_try_link "$LINENO"; then :
10539 am_cv_val_LC_MESSAGES=yes
10540 else
10541 am_cv_val_LC_MESSAGES=no
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10547 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10548 if test $am_cv_val_LC_MESSAGES = yes; then
10550 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10557 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10558 if test "${am_cv_langinfo_codeset+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <langinfo.h>
10565 main ()
10567 char* cs = nl_langinfo(CODESET);
10569 return 0;
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"; then :
10573 am_cv_langinfo_codeset=yes
10574 else
10575 am_cv_langinfo_codeset=no
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10582 $as_echo "$am_cv_langinfo_codeset" >&6; }
10583 if test $am_cv_langinfo_codeset = yes; then
10585 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10590 # We will need to find libiberty.h and ansidecl.h
10591 saved_CFLAGS="$CFLAGS"
10592 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10593 saved_CXXFLAGS="$CXXFLAGS"
10594 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10595 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10596 strsignal strstr stpcpy strverscmp \
10597 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10598 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10600 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10603 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #undef $ac_tr_decl
10609 #define $ac_tr_decl 1
10611 #include "ansidecl.h"
10612 #include "system.h"
10615 main ()
10617 #ifndef $ac_func
10618 char *(*pfn) = (char *(*)) $ac_func ;
10619 #endif
10621 return 0;
10623 _ACEOF
10624 if ac_fn_c_try_compile "$LINENO"; then :
10625 eval "gcc_cv_have_decl_$ac_func=yes"
10626 else
10627 eval "gcc_cv_have_decl_$ac_func=no"
10629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10634 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10635 #define $ac_tr_decl 1
10636 _ACEOF
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10641 #define $ac_tr_decl 0
10642 _ACEOF
10646 done
10649 for ac_func in getrlimit setrlimit getrusage
10651 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10653 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10654 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659 #undef $ac_tr_decl
10660 #define $ac_tr_decl 1
10662 #include "ansidecl.h"
10663 #include "system.h"
10664 #ifdef HAVE_SYS_RESOURCE_H
10665 #include <sys/resource.h>
10666 #endif
10670 main ()
10672 #ifndef $ac_func
10673 char *(*pfn) = (char *(*)) $ac_func ;
10674 #endif
10676 return 0;
10678 _ACEOF
10679 if ac_fn_c_try_compile "$LINENO"; then :
10680 eval "gcc_cv_have_decl_$ac_func=yes"
10681 else
10682 eval "gcc_cv_have_decl_$ac_func=no"
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10687 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10690 #define $ac_tr_decl 1
10691 _ACEOF
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10696 #define $ac_tr_decl 0
10697 _ACEOF
10701 done
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_RESOURCE_H
10710 #include <sys/resource.h>
10711 #endif
10714 main ()
10716 rlim_t l = 0;
10718 return 0;
10720 _ACEOF
10721 if ac_fn_c_try_compile "$LINENO"; then :
10723 else
10725 $as_echo "#define rlim_t long" >>confdefs.h
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10731 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10732 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10733 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10734 for ac_func in ldgetname
10736 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10738 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10739 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #undef $ac_tr_decl
10745 #define $ac_tr_decl 1
10747 #include "ansidecl.h"
10748 #include "system.h"
10749 #ifdef HAVE_LDFCN_H
10750 #undef FREAD
10751 #undef FWRITE
10752 #include <ldfcn.h>
10753 #endif
10757 main ()
10759 #ifndef $ac_func
10760 char *(*pfn) = (char *(*)) $ac_func ;
10761 #endif
10763 return 0;
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767 eval "gcc_cv_have_decl_$ac_func=yes"
10768 else
10769 eval "gcc_cv_have_decl_$ac_func=no"
10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10777 #define $ac_tr_decl 1
10778 _ACEOF
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10783 #define $ac_tr_decl 0
10784 _ACEOF
10788 done
10791 for ac_func in times
10793 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10795 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10796 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #undef $ac_tr_decl
10802 #define $ac_tr_decl 1
10804 #include "ansidecl.h"
10805 #include "system.h"
10806 #ifdef HAVE_SYS_TIMES_H
10807 #include <sys/times.h>
10808 #endif
10812 main ()
10814 #ifndef $ac_func
10815 char *(*pfn) = (char *(*)) $ac_func ;
10816 #endif
10818 return 0;
10820 _ACEOF
10821 if ac_fn_c_try_compile "$LINENO"; then :
10822 eval "gcc_cv_have_decl_$ac_func=yes"
10823 else
10824 eval "gcc_cv_have_decl_$ac_func=no"
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10832 #define $ac_tr_decl 1
10833 _ACEOF
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10838 #define $ac_tr_decl 0
10839 _ACEOF
10843 done
10846 for ac_func in sigaltstack
10848 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10850 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10851 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 #undef $ac_tr_decl
10857 #define $ac_tr_decl 1
10859 #include "ansidecl.h"
10860 #include "system.h"
10861 #include <signal.h>
10865 main ()
10867 #ifndef $ac_func
10868 char *(*pfn) = (char *(*)) $ac_func ;
10869 #endif
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_compile "$LINENO"; then :
10875 eval "gcc_cv_have_decl_$ac_func=yes"
10876 else
10877 eval "gcc_cv_have_decl_$ac_func=no"
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10885 #define $ac_tr_decl 1
10886 _ACEOF
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10891 #define $ac_tr_decl 0
10892 _ACEOF
10896 done
10899 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10900 # prototype.
10901 ac_ext=cpp
10902 ac_cpp='$CXXCPP $CPPFLAGS'
10903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10907 for ac_func in madvise
10909 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10911 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10912 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917 #undef $ac_tr_decl
10918 #define $ac_tr_decl 1
10920 #include "ansidecl.h"
10921 #include "system.h"
10925 main ()
10927 #ifndef $ac_func
10928 char *(*pfn) = (char *(*)) $ac_func ;
10929 #endif
10931 return 0;
10933 _ACEOF
10934 if ac_fn_cxx_try_compile "$LINENO"; then :
10935 eval "gcc_cv_have_decl_$ac_func=yes"
10936 else
10937 eval "gcc_cv_have_decl_$ac_func=no"
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10944 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10945 #define $ac_tr_decl 1
10946 _ACEOF
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10951 #define $ac_tr_decl 0
10952 _ACEOF
10956 done
10958 ac_ext=c
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965 # More time-related stuff.
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10967 $as_echo_n "checking for struct tms... " >&6; }
10968 if test "${ac_cv_struct_tms+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 #include "ansidecl.h"
10976 #include "system.h"
10977 #ifdef HAVE_SYS_TIMES_H
10978 #include <sys/times.h>
10979 #endif
10982 main ()
10984 struct tms tms;
10986 return 0;
10988 _ACEOF
10989 if ac_fn_c_try_compile "$LINENO"; then :
10990 ac_cv_struct_tms=yes
10991 else
10992 ac_cv_struct_tms=no
10994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10997 $as_echo "$ac_cv_struct_tms" >&6; }
10998 if test $ac_cv_struct_tms = yes; then
11000 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11004 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11005 # revisit after autoconf 2.50.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11007 $as_echo_n "checking for clock_t... " >&6; }
11008 if test "${gcc_cv_type_clock_t+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11015 #include "ansidecl.h"
11016 #include "system.h"
11019 main ()
11021 clock_t x;
11023 return 0;
11025 _ACEOF
11026 if ac_fn_c_try_compile "$LINENO"; then :
11027 gcc_cv_type_clock_t=yes
11028 else
11029 gcc_cv_type_clock_t=no
11031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11034 $as_echo "$gcc_cv_type_clock_t" >&6; }
11035 if test $gcc_cv_type_clock_t = yes; then
11037 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11041 # Check if F_SETLKW is supported by fcntl.
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11043 $as_echo_n "checking for F_SETLKW... " >&6; }
11044 if test "${ac_cv_f_setlkw+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 #include <fcntl.h>
11053 main ()
11056 struct flock fl;
11057 fl.l_whence = 0;
11058 fl.l_start = 0;
11059 fl.l_len = 0;
11060 fl.l_pid = 0;
11061 return fcntl (1, F_SETLKW, &fl);
11063 return 0;
11065 _ACEOF
11066 if ac_fn_c_try_compile "$LINENO"; then :
11067 ac_cv_f_setlkw=yes
11068 else
11069 ac_cv_f_setlkw=no
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11074 $as_echo "$ac_cv_f_setlkw" >&6; }
11075 if test $ac_cv_f_setlkw = yes; then
11077 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11081 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11082 CFLAGS="$saved_CFLAGS"
11083 CXXFLAGS="$saved_CXXFLAGS"
11085 # mkdir takes a single argument on some systems.
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11087 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11088 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include <sys/types.h>
11095 #ifdef HAVE_SYS_STAT_H
11096 # include <sys/stat.h>
11097 #endif
11098 #ifdef HAVE_UNISTD_H
11099 # include <unistd.h>
11100 #endif
11101 #ifdef HAVE_DIRECT_H
11102 # include <direct.h>
11103 #endif
11105 main ()
11107 mkdir ("foo", 0);
11109 return 0;
11111 _ACEOF
11112 if ac_fn_c_try_compile "$LINENO"; then :
11113 gcc_cv_mkdir_takes_one_arg=no
11114 else
11115 gcc_cv_mkdir_takes_one_arg=yes
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11120 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11121 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11123 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11128 # File extensions
11129 manext='.1'
11130 objext='.o'
11134 # With Setjmp/Longjmp based exception handling.
11135 # Check whether --enable-sjlj-exceptions was given.
11136 if test "${enable_sjlj_exceptions+set}" = set; then :
11137 enableval=$enable_sjlj_exceptions; case $target in
11138 *-*-hpux10*)
11139 if test $enableval != yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11141 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11142 enableval=yes
11145 esac
11146 force_sjlj_exceptions=yes
11147 else
11148 case $target in
11149 *-*-hpux10*)
11150 force_sjlj_exceptions=yes
11151 enableval=yes
11154 force_sjlj_exceptions=no
11156 esac
11159 if test $force_sjlj_exceptions = yes; then
11160 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11162 cat >>confdefs.h <<_ACEOF
11163 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11164 _ACEOF
11168 # --------------------------------------------------------
11169 # Build, host, and target specific configuration fragments
11170 # --------------------------------------------------------
11172 # Collect build-machine-specific information.
11173 . ${srcdir}/config.build
11175 # Collect host-machine-specific information.
11176 . ${srcdir}/config.host
11178 target_gtfiles=
11180 # Collect target-machine-specific information.
11181 . ${srcdir}/config.gcc
11183 extra_objs="${host_extra_objs} ${extra_objs}"
11184 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11186 # Default the target-machine variables that were not explicitly set.
11187 if test x"$tm_file" = x
11188 then tm_file=$cpu_type/$cpu_type.h; fi
11190 if test x"$extra_headers" = x
11191 then extra_headers=; fi
11193 if test x$md_file = x
11194 then md_file=$cpu_type/$cpu_type.md; fi
11196 if test x$out_file = x
11197 then out_file=$cpu_type/$cpu_type.c; fi
11199 if test x"$tmake_file" = x
11200 then tmake_file=$cpu_type/t-$cpu_type
11203 # Support --enable-initfini-array.
11204 if test x$enable_initfini_array != xno; then
11205 tm_file="${tm_file} initfini-array.h"
11208 if test x"$dwarf2" = xyes
11209 then tm_file="$tm_file tm-dwarf2.h"
11212 # Say what files are being used for the output code and MD file.
11213 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11214 echo "Using \`$srcdir/config/$md_file' as machine description file."
11216 # If any of the xm_file variables contain nonexistent files, warn
11217 # about them and drop them.
11220 for x in $build_xm_file; do
11221 if test -f $srcdir/config/$x
11222 then bx="$bx $x"
11223 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11224 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11226 done
11227 build_xm_file="$bx"
11230 for x in $host_xm_file; do
11231 if test -f $srcdir/config/$x
11232 then hx="$hx $x"
11233 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11234 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11236 done
11237 host_xm_file="$hx"
11240 for x in $xm_file; do
11241 if test -f $srcdir/config/$x
11242 then tx="$tx $x"
11243 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11244 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11246 done
11247 xm_file="$tx"
11249 count=a
11250 for f in $tm_file; do
11251 count=${count}x
11252 done
11253 if test $count = ax; then
11254 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11255 else
11256 echo "Using the following target machine macro files:"
11257 for f in $tm_file; do
11258 echo " $srcdir/config/$f"
11259 done
11262 if test x$need_64bit_hwint = xyes; then
11264 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11268 if test x$use_long_long_for_widest_fast_int = xyes; then
11270 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11274 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11276 cat >>confdefs.h <<_ACEOF
11277 #define HAVE_GNU_LD $gnu_ld_bool
11278 _ACEOF
11281 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11283 cat >>confdefs.h <<_ACEOF
11284 #define HAVE_GNU_AS $gnu_as_bool
11285 _ACEOF
11288 count=a
11289 for f in $host_xm_file; do
11290 count=${count}x
11291 done
11292 if test $count = a; then
11294 elif test $count = ax; then
11295 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11296 else
11297 echo "Using the following host machine macro files:"
11298 for f in $host_xm_file; do
11299 echo " $srcdir/config/$f"
11300 done
11302 echo "Using ${out_host_hook_obj} for host machine hooks."
11304 if test "$host_xm_file" != "$build_xm_file"; then
11305 count=a
11306 for f in $build_xm_file; do
11307 count=${count}x
11308 done
11309 if test $count = a; then
11311 elif test $count = ax; then
11312 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11313 else
11314 echo "Using the following build machine macro files:"
11315 for f in $build_xm_file; do
11316 echo " $srcdir/config/$f"
11317 done
11321 if test -n "$configured_native_system_header_dir"; then
11322 native_system_header_dir=$configured_native_system_header_dir
11324 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11327 case ${host} in
11328 powerpc*-*-darwin*)
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11330 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11331 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 #include <sys/cdefs.h>
11338 #include <sys/signal.h>
11339 #include <ucontext.h>
11340 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11342 _ACEOF
11343 if ac_fn_c_try_compile "$LINENO"; then :
11344 gcc_cv_mcontext_underscores=no
11345 else
11346 gcc_cv_mcontext_underscores=yes
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11351 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11352 if test $gcc_cv_mcontext_underscores = yes; then
11354 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11358 esac
11360 # ---------
11361 # Threading
11362 # ---------
11364 # Check if a valid thread package
11365 case ${enable_threads} in
11366 "" | no)
11367 # No threads
11368 target_thread_file='single'
11370 yes)
11371 # default
11372 target_thread_file='single'
11374 aix | dce | lynx | mipssde | posix | rtems | \
11375 single | tpf | vxworks | win32)
11376 target_thread_file=${enable_threads}
11379 echo "${enable_threads} is an unknown thread package" 1>&2
11380 exit 1
11382 esac
11384 if test x${thread_file} = x; then
11385 # No thread file set by target-specific clauses in config.gcc,
11386 # so use file chosen by default logic above
11387 thread_file=${target_thread_file}
11390 # --------
11391 # UNSORTED
11392 # --------
11394 use_cxa_atexit=no
11395 if test x$enable___cxa_atexit = xyes || \
11396 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11397 if test x$host = x$target; then
11398 case $host in
11399 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11400 # keyed to flag_use_cxa_atexit
11401 *-*-mingw32*)
11402 use_cxa_atexit=yes
11404 powerpc-ibm-aix*)
11405 use_cxa_atexit=yes
11408 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11409 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11410 use_cxa_atexit=yes
11411 else
11412 echo "__cxa_atexit can't be enabled on this target"
11416 esac
11417 else
11418 # We can't check for __cxa_atexit when building a cross, so assume
11419 # it is available
11420 use_cxa_atexit=yes
11422 if test x$use_cxa_atexit = xyes; then
11424 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11429 # Look for a file containing extra machine modes.
11430 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11431 extra_modes_file='$(srcdir)'/config/${extra_modes}
11434 cat >>confdefs.h <<_ACEOF
11435 #define EXTRA_MODES_FILE "config/$extra_modes"
11436 _ACEOF
11440 # Convert extra_options into a form suitable for Makefile use.
11441 extra_opt_files=
11442 all_opt_files=
11443 for f in $extra_options; do
11444 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11445 all_opt_files="$all_opt_files $srcdir/config/$f"
11446 done
11449 # auto-host.h is the file containing items generated by autoconf and is
11450 # the first file included by config.h.
11451 # If host=build, it is correct to have bconfig include auto-host.h
11452 # as well. If host!=build, we are in error and need to do more
11453 # work to find out the build config parameters.
11454 if test x$host = x$build
11455 then
11456 build_auto=auto-host.h
11457 else
11458 # We create a subdir, then run autoconf in the subdir.
11459 # To prevent recursion we set host and build for the new
11460 # invocation of configure to the build for this invocation
11461 # of configure.
11462 tempdir=build.$$
11463 rm -rf $tempdir
11464 mkdir $tempdir
11465 cd $tempdir
11466 case ${srcdir} in
11467 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11468 *) realsrcdir=../${srcdir};;
11469 esac
11470 saved_CFLAGS="${CFLAGS}"
11471 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11472 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11473 ${realsrcdir}/configure \
11474 --enable-languages=${enable_languages-all} \
11475 --target=$target_alias --host=$build_alias --build=$build_alias
11476 CFLAGS="${saved_CFLAGS}"
11478 # We just finished tests for the build machine, so rename
11479 # the file auto-build.h in the gcc directory.
11480 mv auto-host.h ../auto-build.h
11481 cd ..
11482 rm -rf $tempdir
11483 build_auto=auto-build.h
11487 tm_file="${tm_file} defaults.h"
11488 tm_p_file="${tm_p_file} tm-preds.h"
11489 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11490 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11491 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11492 # put this back in temporarily.
11493 xm_file="auto-host.h ansidecl.h ${xm_file}"
11495 # --------
11496 # UNSORTED
11497 # --------
11499 # Compile in configure arguments.
11500 if test -f configargs.h ; then
11501 # Being re-configured.
11502 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11503 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11504 else
11505 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11508 # Double all backslashes and backslash all quotes to turn
11509 # gcc_config_arguments into a C string.
11510 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11511 $gcc_config_arguments
11513 gcc_config_arguments_str=`cat conftest.out`
11514 rm -f conftest.out
11516 cat > configargs.h <<EOF
11517 /* Generated automatically. */
11518 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11519 static const char thread_model[] = "$thread_file";
11521 static const struct {
11522 const char *name, *value;
11523 } configure_default_options[] = $configure_default_options;
11526 gcc_BASEVER=`cat $srcdir/BASE-VER`
11527 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11528 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11529 if test -f $srcdir/REVISION ; then
11530 gcc_REVISION=`cat $srcdir/REVISION`
11531 else
11532 gcc_REVISION=""
11534 cat > plugin-version.h <<EOF
11535 #include "configargs.h"
11537 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11538 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11539 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11540 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11542 static char basever[] = "$gcc_BASEVER";
11543 static char datestamp[] = "$gcc_DATESTAMP";
11544 static char devphase[] = "$gcc_DEVPHASE";
11545 static char revision[] = "$gcc_REVISION";
11547 /* FIXME plugins: We should make the version information more precise.
11548 One way to do is to add a checksum. */
11550 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11551 devphase, revision,
11552 configuration_arguments};
11555 # Internationalization
11556 # If we haven't got the data from the intl directory,
11557 # assume NLS is disabled.
11558 USE_NLS=no
11559 LIBINTL=
11560 LIBINTL_DEP=
11561 INCINTL=
11562 XGETTEXT=
11563 GMSGFMT=
11564 POSUB=
11566 if test -f ../intl/config.intl; then
11567 . ../intl/config.intl
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11570 $as_echo_n "checking whether NLS is requested... " >&6; }
11571 if test x"$USE_NLS" != xyes; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 $as_echo "yes" >&6; }
11578 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11582 $as_echo_n "checking for catalogs to be installed... " >&6; }
11583 # Look for .po and .gmo files in the source directory.
11584 CATALOGS=
11585 XLINGUAS=
11586 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11587 # If there aren't any .gmo files the shell will give us the
11588 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11589 # weeded out.
11590 case "$cat" in *\**)
11591 continue;;
11592 esac
11593 # The quadruple backslash is collapsed to a double backslash
11594 # by the backticks, then collapsed again by the double quotes,
11595 # leaving us with one backslash in the sed expression (right
11596 # before the dot that mustn't act as a wildcard).
11597 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11598 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11599 # The user is allowed to set LINGUAS to a list of languages to
11600 # install catalogs for. If it's empty that means "all of them."
11601 if test "x$LINGUAS" = x; then
11602 CATALOGS="$CATALOGS $cat"
11603 XLINGUAS="$XLINGUAS $lang"
11604 else
11605 case "$LINGUAS" in *$lang*)
11606 CATALOGS="$CATALOGS $cat"
11607 XLINGUAS="$XLINGUAS $lang"
11609 esac
11611 done
11612 LINGUAS="$XLINGUAS"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11614 $as_echo "$LINGUAS" >&6; }
11617 DATADIRNAME=share
11619 INSTOBJEXT=.mo
11621 GENCAT=gencat
11623 CATOBJEXT=.gmo
11627 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11628 # -liconv on the link line twice.
11629 case "$LIBINTL" in *$LIBICONV*)
11630 LIBICONV= ;;
11631 esac
11633 # Check whether --enable-secureplt was given.
11634 if test "${enable_secureplt+set}" = set; then :
11635 enableval=$enable_secureplt;
11639 # Check whether --enable-leading-mingw64-underscores was given.
11640 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11641 enableval=$enable_leading_mingw64_underscores;
11644 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11646 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11650 # Check whether --enable-cld was given.
11651 if test "${enable_cld+set}" = set; then :
11652 enableval=$enable_cld;
11653 else
11654 enable_cld=no
11658 # Check whether --enable-frame-pointer was given.
11659 if test "${enable_frame_pointer+set}" = set; then :
11660 enableval=$enable_frame_pointer;
11661 else
11663 case $target_os in
11664 linux* | darwin[8912]*)
11665 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11666 # DWARF2.
11667 enable_frame_pointer=no
11670 enable_frame_pointer=yes
11672 esac
11677 # Windows32 Registry support for specifying GCC installation paths.
11678 # Check whether --enable-win32-registry was given.
11679 if test "${enable_win32_registry+set}" = set; then :
11680 enableval=$enable_win32_registry;
11684 case $host_os in
11685 win32 | pe | cygwin* | mingw32* | uwin*)
11686 if test "x$enable_win32_registry" != xno; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11688 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11689 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 ac_func_search_save_LIBS=$LIBS
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 /* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11699 #ifdef __cplusplus
11700 extern "C"
11701 #endif
11702 char RegOpenKeyExA ();
11704 main ()
11706 return RegOpenKeyExA ();
11708 return 0;
11710 _ACEOF
11711 for ac_lib in '' advapi32; do
11712 if test -z "$ac_lib"; then
11713 ac_res="none required"
11714 else
11715 ac_res=-l$ac_lib
11716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 ac_cv_search_RegOpenKeyExA=$ac_res
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext
11723 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11724 break
11726 done
11727 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11729 else
11730 ac_cv_search_RegOpenKeyExA=no
11732 rm conftest.$ac_ext
11733 LIBS=$ac_func_search_save_LIBS
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11736 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11737 ac_res=$ac_cv_search_RegOpenKeyExA
11738 if test "$ac_res" != no; then :
11739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11741 else
11742 enable_win32_registry=no
11747 if test "x$enable_win32_registry" != xno; then
11749 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11752 if test "x$enable_win32_registry" != xyes \
11753 && test "x$enable_win32_registry" != x; then
11755 cat >>confdefs.h <<_ACEOF
11756 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11757 _ACEOF
11762 esac
11764 # Get an absolute path to the GCC top-level source directory
11765 holddir=`${PWDCMD-pwd}`
11766 cd $srcdir
11767 topdir=`${PWDCMD-pwd}`
11768 cd $holddir
11770 # Conditionalize the makefile for this host machine.
11771 xmake_file=
11772 for f in ${host_xmake_file}
11774 if test -f ${srcdir}/config/$f
11775 then
11776 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11778 done
11780 # Conditionalize the makefile for this target machine.
11781 tmake_file_=
11782 for f in ${tmake_file}
11784 if test -f ${srcdir}/config/$f
11785 then
11786 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11788 done
11789 tmake_file="${tmake_file_}"
11791 out_object_file=`basename $out_file .c`.o
11792 common_out_object_file=`basename $common_out_file .c`.o
11794 tm_file_list="options.h"
11795 tm_include_list="options.h insn-constants.h"
11796 for f in $tm_file; do
11797 case $f in
11798 ./* )
11799 f=`echo $f | sed 's/^..//'`
11800 tm_file_list="${tm_file_list} $f"
11801 tm_include_list="${tm_include_list} $f"
11803 defaults.h )
11804 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11805 tm_include_list="${tm_include_list} $f"
11808 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11809 tm_include_list="${tm_include_list} config/$f"
11811 esac
11812 done
11814 tm_p_file_list=
11815 tm_p_include_list=
11816 for f in $tm_p_file; do
11817 case $f in
11818 tm-preds.h )
11819 tm_p_file_list="${tm_p_file_list} $f"
11820 tm_p_include_list="${tm_p_include_list} $f"
11823 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11824 tm_p_include_list="${tm_p_include_list} config/$f"
11825 esac
11826 done
11828 xm_file_list=
11829 xm_include_list=
11830 for f in $xm_file; do
11831 case $f in
11832 ansidecl.h )
11833 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11834 xm_include_list="${xm_include_list} $f"
11836 auto-host.h )
11837 xm_file_list="${xm_file_list} $f"
11838 xm_include_list="${xm_include_list} $f"
11841 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11842 xm_include_list="${xm_include_list} config/$f"
11844 esac
11845 done
11847 host_xm_file_list=
11848 host_xm_include_list=
11849 for f in $host_xm_file; do
11850 case $f in
11851 ansidecl.h )
11852 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11853 host_xm_include_list="${host_xm_include_list} $f"
11855 auto-host.h )
11856 host_xm_file_list="${host_xm_file_list} $f"
11857 host_xm_include_list="${host_xm_include_list} $f"
11860 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11861 host_xm_include_list="${host_xm_include_list} config/$f"
11863 esac
11864 done
11866 build_xm_file_list=
11867 for f in $build_xm_file; do
11868 case $f in
11869 ansidecl.h )
11870 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11871 build_xm_include_list="${build_xm_include_list} $f"
11873 auto-build.h | auto-host.h )
11874 build_xm_file_list="${build_xm_file_list} $f"
11875 build_xm_include_list="${build_xm_include_list} $f"
11878 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11879 build_xm_include_list="${build_xm_include_list} config/$f"
11881 esac
11882 done
11884 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11885 # cross-compiler which does not use the native headers and libraries.
11886 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11887 CROSS=
11888 ALL=all.internal
11889 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11891 if test "x$with_build_sysroot" != x; then
11892 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11893 else
11894 # This value is used, even on a native system, because
11895 # CROSS_SYSTEM_HEADER_DIR is just
11896 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11897 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11900 if test x$host != x$target
11901 then
11902 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11903 ALL=all.cross
11904 SYSTEM_HEADER_DIR=$build_system_header_dir
11905 case "$host","$target" in
11906 # Darwin crosses can use the host system's libraries and headers,
11907 # because of the fat library support. Of course, it must be the
11908 # same version of Darwin on both sides. Allow the user to
11909 # just say --target=foo-darwin without a version number to mean
11910 # "the version on this system".
11911 *-*-darwin*,*-*-darwin*)
11912 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11913 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11914 if test $hostos = $targetos -o $targetos = darwin ; then
11915 CROSS=
11916 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11917 with_headers=yes
11921 i?86-*-*,x86_64-*-* \
11922 | powerpc*-*-*,powerpc64*-*-*)
11923 CROSS="$CROSS -DNATIVE_CROSS" ;;
11924 esac
11926 case $target in
11927 *-*-mingw*)
11928 if test "x$with_headers" = x; then
11929 with_headers=yes
11934 esac
11935 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11936 SYSTEM_HEADER_DIR=$build_system_header_dir
11939 # If this is a cross-compiler that does not
11940 # have its own set of headers then define
11941 # inhibit_libc
11943 # If this is using newlib, without having the headers available now,
11944 # then define inhibit_libc in LIBGCC2_CFLAGS.
11945 # This prevents libgcc2 from containing any code which requires libc
11946 # support.
11947 : ${inhibit_libc=false}
11948 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11949 test x$with_newlib = xyes ; } &&
11950 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11951 inhibit_libc=true
11955 # When building gcc with a cross-compiler, we need to adjust things so
11956 # that the generator programs are still built with the native compiler.
11957 # Also, we cannot run fixincludes.
11959 # These are the normal (build=host) settings:
11960 CC_FOR_BUILD='$(CC)'
11961 CXX_FOR_BUILD='$(CXX)'
11962 BUILD_CFLAGS='$(ALL_CFLAGS)'
11963 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11964 BUILD_LDFLAGS='$(LDFLAGS)'
11965 STMP_FIXINC=stmp-fixinc
11967 # And these apply if build != host, or we are generating coverage data
11968 if test x$build != x$host || test "x$coverage_flags" != x
11969 then
11970 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11971 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11974 # Expand extra_headers to include complete path.
11975 # This substitutes for lots of t-* files.
11976 extra_headers_list=
11977 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11978 for file in ${extra_headers} ; do
11979 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11980 done
11982 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11983 if test x"$use_gcc_tgmath" = xyes
11984 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11987 # Define collect2 in Makefile.
11988 case $host_can_use_collect2 in
11989 no) collect2= ;;
11990 *) collect2='collect2$(exeext)' ;;
11991 esac
11994 # Add a definition of USE_COLLECT2 if system wants one.
11995 case $use_collect2 in
11996 no) use_collect2= ;;
11997 "") ;;
11999 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12000 xm_defines="${xm_defines} USE_COLLECT2"
12001 case $host_can_use_collect2 in
12003 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12005 esac
12007 esac
12010 cat >>confdefs.h <<_ACEOF
12011 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12012 _ACEOF
12015 # ---------------------------
12016 # Assembler & linker features
12017 # ---------------------------
12019 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12020 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12021 # However when ld-new is first executed from the build tree, libtool will
12022 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12023 # to the build tree. While doing this we need to use the previous-stage
12024 # linker, or we have an infinite loop. The presence of a shell script as
12025 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12026 # the gcc/collect-ld script. So we need to know how libtool works, or
12027 # exec-tool will fail.
12030 case `pwd` in
12031 *\ * | *\ *)
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12034 esac
12038 macro_version='2.2.7a'
12039 macro_revision='1.3134'
12053 ltmain="$ac_aux_dir/ltmain.sh"
12055 # Backslashify metacharacters that are still active within
12056 # double-quoted strings.
12057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12059 # Same as above, but do not quote variable references.
12060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12062 # Sed substitution to delay expansion of an escaped shell variable in a
12063 # double_quote_subst'ed string.
12064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12066 # Sed substitution to delay expansion of an escaped single quote.
12067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12069 # Sed substitution to avoid accidental globbing in evaled expressions
12070 no_glob_subst='s/\*/\\\*/g'
12072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12077 $as_echo_n "checking how to print strings... " >&6; }
12078 # Test print first, because it will be a builtin if present.
12079 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12081 ECHO='print -r --'
12082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12083 ECHO='printf %s\n'
12084 else
12085 # Use this function as a fallback that always works.
12086 func_fallback_echo ()
12088 eval 'cat <<_LTECHO_EOF
12090 _LTECHO_EOF'
12092 ECHO='func_fallback_echo'
12095 # func_echo_all arg...
12096 # Invoke $ECHO with all args, space-separated.
12097 func_echo_all ()
12099 $ECHO ""
12102 case "$ECHO" in
12103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12104 $as_echo "printf" >&6; } ;;
12105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12106 $as_echo "print -r" >&6; } ;;
12107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12108 $as_echo "cat" >&6; } ;;
12109 esac
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12126 if test "${ac_cv_path_SED+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12130 for ac_i in 1 2 3 4 5 6 7; do
12131 ac_script="$ac_script$as_nl$ac_script"
12132 done
12133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12134 { ac_script=; unset ac_script;}
12135 if test -z "$SED"; then
12136 ac_path_SED_found=false
12137 # Loop through the user's path and test for each of PROGNAME-LIST
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 for ac_prog in sed gsed; do
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12147 # Check for GNU ac_path_SED and select it if it is found.
12148 # Check for GNU $ac_path_SED
12149 case `"$ac_path_SED" --version 2>&1` in
12150 *GNU*)
12151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12153 ac_count=0
12154 $as_echo_n 0123456789 >"conftest.in"
12155 while :
12157 cat "conftest.in" "conftest.in" >"conftest.tmp"
12158 mv "conftest.tmp" "conftest.in"
12159 cp "conftest.in" "conftest.nl"
12160 $as_echo '' >> "conftest.nl"
12161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12163 as_fn_arith $ac_count + 1 && ac_count=$as_val
12164 if test $ac_count -gt ${ac_path_SED_max-0}; then
12165 # Best one so far, save it but keep looking for a better one
12166 ac_cv_path_SED="$ac_path_SED"
12167 ac_path_SED_max=$ac_count
12169 # 10*(2^10) chars as input seems more than enough
12170 test $ac_count -gt 10 && break
12171 done
12172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12173 esac
12175 $ac_path_SED_found && break 3
12176 done
12177 done
12178 done
12179 IFS=$as_save_IFS
12180 if test -z "$ac_cv_path_SED"; then
12181 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12183 else
12184 ac_cv_path_SED=$SED
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12189 $as_echo "$ac_cv_path_SED" >&6; }
12190 SED="$ac_cv_path_SED"
12191 rm -f conftest.sed
12193 test -z "$SED" && SED=sed
12194 Xsed="$SED -e 1s/^X//"
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12207 $as_echo_n "checking for fgrep... " >&6; }
12208 if test "${ac_cv_path_FGREP+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12212 then ac_cv_path_FGREP="$GREP -F"
12213 else
12214 if test -z "$FGREP"; then
12215 ac_path_FGREP_found=false
12216 # Loop through the user's path and test for each of PROGNAME-LIST
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_prog in fgrep; do
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12226 # Check for GNU ac_path_FGREP and select it if it is found.
12227 # Check for GNU $ac_path_FGREP
12228 case `"$ac_path_FGREP" --version 2>&1` in
12229 *GNU*)
12230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12232 ac_count=0
12233 $as_echo_n 0123456789 >"conftest.in"
12234 while :
12236 cat "conftest.in" "conftest.in" >"conftest.tmp"
12237 mv "conftest.tmp" "conftest.in"
12238 cp "conftest.in" "conftest.nl"
12239 $as_echo 'FGREP' >> "conftest.nl"
12240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12242 as_fn_arith $ac_count + 1 && ac_count=$as_val
12243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12244 # Best one so far, save it but keep looking for a better one
12245 ac_cv_path_FGREP="$ac_path_FGREP"
12246 ac_path_FGREP_max=$ac_count
12248 # 10*(2^10) chars as input seems more than enough
12249 test $ac_count -gt 10 && break
12250 done
12251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12252 esac
12254 $ac_path_FGREP_found && break 3
12255 done
12256 done
12257 done
12258 IFS=$as_save_IFS
12259 if test -z "$ac_cv_path_FGREP"; then
12260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12262 else
12263 ac_cv_path_FGREP=$FGREP
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12269 $as_echo "$ac_cv_path_FGREP" >&6; }
12270 FGREP="$ac_cv_path_FGREP"
12273 test -z "$GREP" && GREP=grep
12293 # Check whether --with-gnu-ld was given.
12294 if test "${with_gnu_ld+set}" = set; then :
12295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12296 else
12297 with_gnu_ld=no
12300 ac_prog=ld
12301 if test "$GCC" = yes; then
12302 # Check if gcc -print-prog-name=ld gives a path.
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12304 $as_echo_n "checking for ld used by $CC... " >&6; }
12305 case $host in
12306 *-*-mingw*)
12307 # gcc leaves a trailing carriage return which upsets mingw
12308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12311 esac
12312 case $ac_prog in
12313 # Accept absolute paths.
12314 [\\/]* | ?:[\\/]*)
12315 re_direlt='/[^/][^/]*/\.\./'
12316 # Canonicalize the pathname of ld
12317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12320 done
12321 test -z "$LD" && LD="$ac_prog"
12324 # If it fails, then pretend we aren't using GCC.
12325 ac_prog=ld
12328 # If it is relative, then search for the first ld in PATH.
12329 with_gnu_ld=unknown
12331 esac
12332 elif test "$with_gnu_ld" = yes; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12334 $as_echo_n "checking for GNU ld... " >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12337 $as_echo_n "checking for non-GNU ld... " >&6; }
12339 if test "${lt_cv_path_LD+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 if test -z "$LD"; then
12343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12344 for ac_dir in $PATH; do
12345 IFS="$lt_save_ifs"
12346 test -z "$ac_dir" && ac_dir=.
12347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12348 lt_cv_path_LD="$ac_dir/$ac_prog"
12349 # Check to see if the program is GNU ld. I'd rather use --version,
12350 # but apparently some variants of GNU ld only accept -v.
12351 # Break only if it was the GNU/non-GNU ld that we prefer.
12352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12353 *GNU* | *'with BFD'*)
12354 test "$with_gnu_ld" != no && break
12357 test "$with_gnu_ld" != yes && break
12359 esac
12361 done
12362 IFS="$lt_save_ifs"
12363 else
12364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12368 LD="$lt_cv_path_LD"
12369 if test -n "$LD"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12371 $as_echo "$LD" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385 lt_cv_prog_gnu_ld=yes
12388 lt_cv_prog_gnu_ld=no
12390 esac
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld=$lt_cv_prog_gnu_ld
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12406 if test "${lt_cv_path_NM+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 if test -n "$NM"; then
12410 # Let the user override the test.
12411 lt_cv_path_NM="$NM"
12412 else
12413 lt_nm_to_check="${ac_tool_prefix}nm"
12414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12415 lt_nm_to_check="$lt_nm_to_check nm"
12417 for lt_tmp_nm in $lt_nm_to_check; do
12418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12420 IFS="$lt_save_ifs"
12421 test -z "$ac_dir" && ac_dir=.
12422 tmp_nm="$ac_dir/$lt_tmp_nm"
12423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12424 # Check to see if the nm accepts a BSD-compat flag.
12425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12426 # nm: unknown option "B" ignored
12427 # Tru64's nm complains that /dev/null is an invalid object file
12428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12429 */dev/null* | *'Invalid file or object type'*)
12430 lt_cv_path_NM="$tmp_nm -B"
12431 break
12434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12435 */dev/null*)
12436 lt_cv_path_NM="$tmp_nm -p"
12437 break
12440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12441 continue # so that we can try to find one that supports BSD flags
12443 esac
12445 esac
12447 done
12448 IFS="$lt_save_ifs"
12449 done
12450 : ${lt_cv_path_NM=no}
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12454 $as_echo "$lt_cv_path_NM" >&6; }
12455 if test "$lt_cv_path_NM" != "no"; then
12456 NM="$lt_cv_path_NM"
12457 else
12458 # Didn't find any BSD compatible name lister, look for dumpbin.
12459 if test -n "$DUMPBIN"; then :
12460 # Let the user override the test.
12461 else
12462 if test -n "$ac_tool_prefix"; then
12463 for ac_prog in dumpbin "link -dump"
12465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$DUMPBIN"; then
12473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12474 else
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12486 done
12487 done
12488 IFS=$as_save_IFS
12492 DUMPBIN=$ac_cv_prog_DUMPBIN
12493 if test -n "$DUMPBIN"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12495 $as_echo "$DUMPBIN" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12502 test -n "$DUMPBIN" && break
12503 done
12505 if test -z "$DUMPBIN"; then
12506 ac_ct_DUMPBIN=$DUMPBIN
12507 for ac_prog in dumpbin "link -dump"
12509 # Extract the first word of "$ac_prog", so it can be a program name with args.
12510 set dummy $ac_prog; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 if test -n "$ac_ct_DUMPBIN"; then
12517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12530 done
12531 done
12532 IFS=$as_save_IFS
12536 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12537 if test -n "$ac_ct_DUMPBIN"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12539 $as_echo "$ac_ct_DUMPBIN" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12546 test -n "$ac_ct_DUMPBIN" && break
12547 done
12549 if test "x$ac_ct_DUMPBIN" = x; then
12550 DUMPBIN=":"
12551 else
12552 case $cross_compiling:$ac_tool_warned in
12553 yes:)
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12556 ac_tool_warned=yes ;;
12557 esac
12558 DUMPBIN=$ac_ct_DUMPBIN
12562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12563 *COFF*)
12564 DUMPBIN="$DUMPBIN -symbols"
12567 DUMPBIN=:
12569 esac
12572 if test "$DUMPBIN" != ":"; then
12573 NM="$DUMPBIN"
12576 test -z "$NM" && NM=nm
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12585 if test "${lt_cv_nm_interface+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 lt_cv_nm_interface="BSD nm"
12589 echo "int some_variable = 0;" > conftest.$ac_ext
12590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12591 (eval "$ac_compile" 2>conftest.err)
12592 cat conftest.err >&5
12593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12595 cat conftest.err >&5
12596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12597 cat conftest.out >&5
12598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12599 lt_cv_nm_interface="MS dumpbin"
12601 rm -f conftest*
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12604 $as_echo "$lt_cv_nm_interface" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12607 $as_echo_n "checking whether ln -s works... " >&6; }
12608 LN_S=$as_ln_s
12609 if test "$LN_S" = "ln -s"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12614 $as_echo "no, using $LN_S" >&6; }
12617 # find the maximum length of command line arguments
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12624 teststring="ABCD"
12626 case $build_os in
12627 msdosdjgpp*)
12628 # On DJGPP, this test can blow up pretty badly due to problems in libc
12629 # (any single argument exceeding 2000 bytes causes a buffer overrun
12630 # during glob expansion). Even if it were fixed, the result of this
12631 # check would be larger than it should be.
12632 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12635 gnu*)
12636 # Under GNU Hurd, this test is not required because there is
12637 # no limit to the length of command line arguments.
12638 # Libtool will interpret -1 as no limit whatsoever
12639 lt_cv_sys_max_cmd_len=-1;
12642 cygwin* | mingw* | cegcc*)
12643 # On Win9x/ME, this test blows up -- it succeeds, but takes
12644 # about 5 minutes as the teststring grows exponentially.
12645 # Worse, since 9x/ME are not pre-emptively multitasking,
12646 # you end up with a "frozen" computer, even though with patience
12647 # the test eventually succeeds (with a max line length of 256k).
12648 # Instead, let's just punt: use the minimum linelength reported by
12649 # all of the supported platforms: 8192 (on NT/2K/XP).
12650 lt_cv_sys_max_cmd_len=8192;
12653 mint*)
12654 # On MiNT this can take a long time and run out of memory.
12655 lt_cv_sys_max_cmd_len=8192;
12658 amigaos*)
12659 # On AmigaOS with pdksh, this test takes hours, literally.
12660 # So we just punt and use a minimum line length of 8192.
12661 lt_cv_sys_max_cmd_len=8192;
12664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12665 # This has been around since 386BSD, at least. Likely further.
12666 if test -x /sbin/sysctl; then
12667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12668 elif test -x /usr/sbin/sysctl; then
12669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12670 else
12671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12673 # And add a safety zone
12674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12678 interix*)
12679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12680 lt_cv_sys_max_cmd_len=196608
12683 osf*)
12684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12686 # nice to cause kernel panics so lets avoid the loop below.
12687 # First set a reasonable default.
12688 lt_cv_sys_max_cmd_len=16384
12690 if test -x /sbin/sysconfig; then
12691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12693 esac
12696 sco3.2v5*)
12697 lt_cv_sys_max_cmd_len=102400
12699 sysv5* | sco5v6* | sysv4.2uw2*)
12700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12701 if test -n "$kargmax"; then
12702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12703 else
12704 lt_cv_sys_max_cmd_len=32768
12708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12709 if test -n "$lt_cv_sys_max_cmd_len"; then
12710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12712 else
12713 # Make teststring a little bigger before we do anything with it.
12714 # a 1K string should be a reasonable start.
12715 for i in 1 2 3 4 5 6 7 8 ; do
12716 teststring=$teststring$teststring
12717 done
12718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12719 # If test is not a shell built-in, we'll probably end up computing a
12720 # maximum length that is only half of the actual maximum length, but
12721 # we can't tell.
12722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12724 test $i != 17 # 1/2 MB should be enough
12726 i=`expr $i + 1`
12727 teststring=$teststring$teststring
12728 done
12729 # Only check the string length outside the loop.
12730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12731 teststring=
12732 # Add a significant safety factor because C++ compilers can tack on
12733 # massive amounts of additional arguments before passing them to the
12734 # linker. It appears as though 1/2 is a usable value.
12735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12738 esac
12742 if test -n $lt_cv_sys_max_cmd_len ; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12747 $as_echo "none" >&6; }
12749 max_cmd_len=$lt_cv_sys_max_cmd_len
12756 : ${CP="cp -f"}
12757 : ${MV="mv -f"}
12758 : ${RM="rm -f"}
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12762 # Try some XSI features
12763 xsi_shell=no
12764 ( _lt_dummy="a/b/c"
12765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12766 = c,a/b,, \
12767 && eval 'test $(( 1 + 1 )) -eq 2 \
12768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12769 && xsi_shell=yes
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12771 $as_echo "$xsi_shell" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12776 lt_shell_append=no
12777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12778 >/dev/null 2>&1 \
12779 && lt_shell_append=yes
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12781 $as_echo "$lt_shell_append" >&6; }
12784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12785 lt_unset=unset
12786 else
12787 lt_unset=false
12794 # test EBCDIC or ASCII
12795 case `echo X|tr X '\101'` in
12796 A) # ASCII based system
12797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12798 lt_SP2NL='tr \040 \012'
12799 lt_NL2SP='tr \015\012 \040\040'
12801 *) # EBCDIC based system
12802 lt_SP2NL='tr \100 \n'
12803 lt_NL2SP='tr \r\n \100\100'
12805 esac
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12816 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 lt_cv_ld_reload_flag='-r'
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12824 reload_flag=$lt_cv_ld_reload_flag
12825 case $reload_flag in
12826 "" | " "*) ;;
12827 *) reload_flag=" $reload_flag" ;;
12828 esac
12829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12830 case $host_os in
12831 darwin*)
12832 if test "$GCC" = yes; then
12833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12834 else
12835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12838 esac
12848 if test -n "$ac_tool_prefix"; then
12849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$OBJDUMP"; then
12857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12876 OBJDUMP=$ac_cv_prog_OBJDUMP
12877 if test -n "$OBJDUMP"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12879 $as_echo "$OBJDUMP" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12887 if test -z "$ac_cv_prog_OBJDUMP"; then
12888 ac_ct_OBJDUMP=$OBJDUMP
12889 # Extract the first word of "objdump", so it can be a program name with args.
12890 set dummy objdump; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 if test -n "$ac_ct_OBJDUMP"; then
12897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12898 else
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12917 if test -n "$ac_ct_OBJDUMP"; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12919 $as_echo "$ac_ct_OBJDUMP" >&6; }
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12925 if test "x$ac_ct_OBJDUMP" = x; then
12926 OBJDUMP="false"
12927 else
12928 case $cross_compiling:$ac_tool_warned in
12929 yes:)
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12932 ac_tool_warned=yes ;;
12933 esac
12934 OBJDUMP=$ac_ct_OBJDUMP
12936 else
12937 OBJDUMP="$ac_cv_prog_OBJDUMP"
12940 test -z "$OBJDUMP" && OBJDUMP=objdump
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 lt_cv_file_magic_cmd='$MAGIC_CMD'
12956 lt_cv_file_magic_test_file=
12957 lt_cv_deplibs_check_method='unknown'
12958 # Need to set the preceding variable on all platforms that support
12959 # interlibrary dependencies.
12960 # 'none' -- dependencies not supported.
12961 # `unknown' -- same as none, but documents that we really don't know.
12962 # 'pass_all' -- all dependencies passed with no checks.
12963 # 'test_compile' -- check by making test program.
12964 # 'file_magic [[regex]]' -- check by looking for files in library path
12965 # which responds to the $file_magic_cmd with a given extended regex.
12966 # If you have `file' or equivalent on your system and you're not sure
12967 # whether `pass_all' will *always* work, you probably want this one.
12969 case $host_os in
12970 aix[4-9]*)
12971 lt_cv_deplibs_check_method=pass_all
12974 beos*)
12975 lt_cv_deplibs_check_method=pass_all
12978 bsdi[45]*)
12979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12980 lt_cv_file_magic_cmd='/usr/bin/file -L'
12981 lt_cv_file_magic_test_file=/shlib/libc.so
12984 cygwin*)
12985 # func_win32_libid is a shell function defined in ltmain.sh
12986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12987 lt_cv_file_magic_cmd='func_win32_libid'
12990 mingw* | pw32*)
12991 # Base MSYS/MinGW do not provide the 'file' command needed by
12992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12993 # unless we find 'file', for example because we are cross-compiling.
12994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12997 lt_cv_file_magic_cmd='func_win32_libid'
12998 else
12999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13000 lt_cv_file_magic_cmd='$OBJDUMP -f'
13004 cegcc*)
13005 # use the weaker test based on 'objdump'. See mingw*.
13006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13007 lt_cv_file_magic_cmd='$OBJDUMP -f'
13010 darwin* | rhapsody*)
13011 lt_cv_deplibs_check_method=pass_all
13014 freebsd* | dragonfly*)
13015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13016 case $host_cpu in
13017 i*86 )
13018 # Not sure whether the presence of OpenBSD here was a mistake.
13019 # Let's accept both of them until this is cleared up.
13020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13021 lt_cv_file_magic_cmd=/usr/bin/file
13022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13024 esac
13025 else
13026 lt_cv_deplibs_check_method=pass_all
13030 gnu*)
13031 lt_cv_deplibs_check_method=pass_all
13034 haiku*)
13035 lt_cv_deplibs_check_method=pass_all
13038 hpux10.20* | hpux11*)
13039 lt_cv_file_magic_cmd=/usr/bin/file
13040 case $host_cpu in
13041 ia64*)
13042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13045 hppa*64*)
13046 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]'
13047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13053 esac
13056 interix[3-9]*)
13057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13061 irix5* | irix6* | nonstopux*)
13062 case $LD in
13063 *-32|*"-32 ") libmagic=32-bit;;
13064 *-n32|*"-n32 ") libmagic=N32;;
13065 *-64|*"-64 ") libmagic=64-bit;;
13066 *) libmagic=never-match;;
13067 esac
13068 lt_cv_deplibs_check_method=pass_all
13071 # This must be Linux ELF.
13072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13073 lt_cv_deplibs_check_method=pass_all
13076 netbsd*)
13077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13079 else
13080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13084 newos6*)
13085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13086 lt_cv_file_magic_cmd=/usr/bin/file
13087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13090 *nto* | *qnx*)
13091 lt_cv_deplibs_check_method=pass_all
13094 openbsd*)
13095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13097 else
13098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13102 osf3* | osf4* | osf5*)
13103 lt_cv_deplibs_check_method=pass_all
13106 rdos*)
13107 lt_cv_deplibs_check_method=pass_all
13110 solaris*)
13111 lt_cv_deplibs_check_method=pass_all
13114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13115 lt_cv_deplibs_check_method=pass_all
13118 sysv4 | sysv4.3*)
13119 case $host_vendor in
13120 motorola)
13121 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]'
13122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13124 ncr)
13125 lt_cv_deplibs_check_method=pass_all
13127 sequent)
13128 lt_cv_file_magic_cmd='/bin/file'
13129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13131 sni)
13132 lt_cv_file_magic_cmd='/bin/file'
13133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13134 lt_cv_file_magic_test_file=/lib/libc.so
13136 siemens)
13137 lt_cv_deplibs_check_method=pass_all
13140 lt_cv_deplibs_check_method=pass_all
13142 esac
13145 tpf*)
13146 lt_cv_deplibs_check_method=pass_all
13148 esac
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13153 file_magic_cmd=$lt_cv_file_magic_cmd
13154 deplibs_check_method=$lt_cv_deplibs_check_method
13155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13170 set dummy ${ac_tool_prefix}ar; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_AR+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$AR"; then
13177 ac_cv_prog_AR="$AR" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_AR="${ac_tool_prefix}ar"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13190 done
13191 done
13192 IFS=$as_save_IFS
13196 AR=$ac_cv_prog_AR
13197 if test -n "$AR"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13199 $as_echo "$AR" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13207 if test -z "$ac_cv_prog_AR"; then
13208 ac_ct_AR=$AR
13209 # Extract the first word of "ar", so it can be a program name with args.
13210 set dummy ar; 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_ac_ct_AR+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$ac_ct_AR"; then
13217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13237 if test -n "$ac_ct_AR"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13239 $as_echo "$ac_ct_AR" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13245 if test "x$ac_ct_AR" = x; then
13246 AR="false"
13247 else
13248 case $cross_compiling:$ac_tool_warned in
13249 yes:)
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252 ac_tool_warned=yes ;;
13253 esac
13254 AR=$ac_ct_AR
13256 else
13257 AR="$ac_cv_prog_AR"
13260 test -z "$AR" && AR=ar
13261 test -z "$AR_FLAGS" && AR_FLAGS=cru
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13275 set dummy ${ac_tool_prefix}strip; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if test "${ac_cv_prog_STRIP+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13283 else
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13295 done
13296 done
13297 IFS=$as_save_IFS
13301 STRIP=$ac_cv_prog_STRIP
13302 if test -n "$STRIP"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13304 $as_echo "$STRIP" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13312 if test -z "$ac_cv_prog_STRIP"; then
13313 ac_ct_STRIP=$STRIP
13314 # Extract the first word of "strip", so it can be a program name with args.
13315 set dummy strip; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$ac_ct_STRIP"; then
13322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_ac_ct_STRIP="strip"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13342 if test -n "$ac_ct_STRIP"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13344 $as_echo "$ac_ct_STRIP" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13350 if test "x$ac_ct_STRIP" = x; then
13351 STRIP=":"
13352 else
13353 case $cross_compiling:$ac_tool_warned in
13354 yes:)
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13357 ac_tool_warned=yes ;;
13358 esac
13359 STRIP=$ac_ct_STRIP
13361 else
13362 STRIP="$ac_cv_prog_STRIP"
13365 test -z "$STRIP" && STRIP=:
13372 if test -n "$ac_tool_prefix"; then
13373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$RANLIB"; then
13381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13400 RANLIB=$ac_cv_prog_RANLIB
13401 if test -n "$RANLIB"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13403 $as_echo "$RANLIB" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13411 if test -z "$ac_cv_prog_RANLIB"; then
13412 ac_ct_RANLIB=$RANLIB
13413 # Extract the first word of "ranlib", so it can be a program name with args.
13414 set dummy ranlib; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 if test -n "$ac_ct_RANLIB"; then
13421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13422 else
13423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424 for as_dir in $PATH
13426 IFS=$as_save_IFS
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
13429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13430 ac_cv_prog_ac_ct_RANLIB="ranlib"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 break 2
13434 done
13435 done
13436 IFS=$as_save_IFS
13440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13441 if test -n "$ac_ct_RANLIB"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13443 $as_echo "$ac_ct_RANLIB" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13449 if test "x$ac_ct_RANLIB" = x; then
13450 RANLIB=":"
13451 else
13452 case $cross_compiling:$ac_tool_warned in
13453 yes:)
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13456 ac_tool_warned=yes ;;
13457 esac
13458 RANLIB=$ac_ct_RANLIB
13460 else
13461 RANLIB="$ac_cv_prog_RANLIB"
13464 test -z "$RANLIB" && RANLIB=:
13471 # Determine commands to create old-style static archives.
13472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13473 old_postinstall_cmds='chmod 644 $oldlib'
13474 old_postuninstall_cmds=
13476 if test -n "$RANLIB"; then
13477 case $host_os in
13478 openbsd*)
13479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13484 esac
13485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13488 case $host_os in
13489 darwin*)
13490 lock_old_archive_extraction=yes ;;
13492 lock_old_archive_extraction=no ;;
13493 esac
13533 # If no C compiler was specified, use CC.
13534 LTCC=${LTCC-"$CC"}
13536 # If no C compiler flags were specified, use CFLAGS.
13537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13539 # Allow CC to be a program name with arguments.
13540 compiler=$CC
13543 # Check for command to grab the raw symbol name followed by C symbol from nm.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13550 # These are sane defaults that work on at least a few old systems.
13551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13553 # Character class describing NM global symbol codes.
13554 symcode='[BCDEGRST]'
13556 # Regexp to match symbols that can be accessed directly from C.
13557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13559 # Define system-specific variables.
13560 case $host_os in
13561 aix*)
13562 symcode='[BCDT]'
13564 cygwin* | mingw* | pw32* | cegcc*)
13565 symcode='[ABCDGISTW]'
13567 hpux*)
13568 if test "$host_cpu" = ia64; then
13569 symcode='[ABCDEGRST]'
13572 irix* | nonstopux*)
13573 symcode='[BCDEGRST]'
13575 osf*)
13576 symcode='[BCDEGQRST]'
13578 solaris*)
13579 symcode='[BDRT]'
13581 sco3.2v5*)
13582 symcode='[DT]'
13584 sysv4.2uw2*)
13585 symcode='[DT]'
13587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13588 symcode='[ABDT]'
13590 sysv4)
13591 symcode='[DFNSTU]'
13593 esac
13595 # If we're using GNU nm, then use its standard symbol codes.
13596 case `$NM -V 2>&1` in
13597 *GNU* | *'with BFD'*)
13598 symcode='[ABCDGIRSTW]' ;;
13599 esac
13601 # Transform an extracted symbol line into a proper C declaration.
13602 # Some systems (esp. on ia64) link data and code symbols differently,
13603 # so use this general approach.
13604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13606 # Transform an extracted symbol line into symbol name and symbol address
13607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13608 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'"
13610 # Handle CRLF in mingw tool chain
13611 opt_cr=
13612 case $build_os in
13613 mingw*)
13614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13616 esac
13618 # Try without a prefix underscore, then with it.
13619 for ac_symprfx in "" "_"; do
13621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13622 symxfrm="\\1 $ac_symprfx\\2 \\2"
13624 # Write the raw and C identifiers.
13625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13626 # Fake it for dumpbin and say T for any non-static function
13627 # and D for any global variable.
13628 # Also find C++ and __fastcall symbols from MSVC++,
13629 # which start with @ or ?.
13630 lt_cv_sys_global_symbol_pipe="$AWK '"\
13631 " {last_section=section; section=\$ 3};"\
13632 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13633 " \$ 0!~/External *\|/{next};"\
13634 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13635 " {if(hide[section]) next};"\
13636 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13637 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13638 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13639 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13640 " ' prfx=^$ac_symprfx"
13641 else
13642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13645 # Check to see that the pipe works correctly.
13646 pipe_works=no
13648 rm -f conftest*
13649 cat > conftest.$ac_ext <<_LT_EOF
13650 #ifdef __cplusplus
13651 extern "C" {
13652 #endif
13653 char nm_test_var;
13654 void nm_test_func(void);
13655 void nm_test_func(void){}
13656 #ifdef __cplusplus
13658 #endif
13659 int main(){nm_test_var='a';nm_test_func();return(0);}
13660 _LT_EOF
13662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13663 (eval $ac_compile) 2>&5
13664 ac_status=$?
13665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13666 test $ac_status = 0; }; then
13667 # Now try to grab the symbols.
13668 nlist=conftest.nm
13669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13671 ac_status=$?
13672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673 test $ac_status = 0; } && test -s "$nlist"; then
13674 # Try sorting and uniquifying the output.
13675 if sort "$nlist" | uniq > "$nlist"T; then
13676 mv -f "$nlist"T "$nlist"
13677 else
13678 rm -f "$nlist"T
13681 # Make sure that we snagged all the symbols we need.
13682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13684 cat <<_LT_EOF > conftest.$ac_ext
13685 #ifdef __cplusplus
13686 extern "C" {
13687 #endif
13689 _LT_EOF
13690 # Now generate the symbol file.
13691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13693 cat <<_LT_EOF >> conftest.$ac_ext
13695 /* The mapping between symbol names and symbols. */
13696 const struct {
13697 const char *name;
13698 void *address;
13700 lt__PROGRAM__LTX_preloaded_symbols[] =
13702 { "@PROGRAM@", (void *) 0 },
13703 _LT_EOF
13704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13705 cat <<\_LT_EOF >> conftest.$ac_ext
13706 {0, (void *) 0}
13709 /* This works around a problem in FreeBSD linker */
13710 #ifdef FREEBSD_WORKAROUND
13711 static const void *lt_preloaded_setup() {
13712 return lt__PROGRAM__LTX_preloaded_symbols;
13714 #endif
13716 #ifdef __cplusplus
13718 #endif
13719 _LT_EOF
13720 # Now try linking the two files.
13721 mv conftest.$ac_objext conftstm.$ac_objext
13722 lt_save_LIBS="$LIBS"
13723 lt_save_CFLAGS="$CFLAGS"
13724 LIBS="conftstm.$ac_objext"
13725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13727 (eval $ac_link) 2>&5
13728 ac_status=$?
13729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13731 pipe_works=yes
13733 LIBS="$lt_save_LIBS"
13734 CFLAGS="$lt_save_CFLAGS"
13735 else
13736 echo "cannot find nm_test_func in $nlist" >&5
13738 else
13739 echo "cannot find nm_test_var in $nlist" >&5
13741 else
13742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13744 else
13745 echo "$progname: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13748 rm -rf conftest* conftst*
13750 # Do not use the global_symbol_pipe unless it works.
13751 if test "$pipe_works" = yes; then
13752 break
13753 else
13754 lt_cv_sys_global_symbol_pipe=
13756 done
13760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13761 lt_cv_sys_global_symbol_to_cdecl=
13763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13765 $as_echo "failed" >&6; }
13766 else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13768 $as_echo "ok" >&6; }
13792 # Check whether --enable-libtool-lock was given.
13793 if test "${enable_libtool_lock+set}" = set; then :
13794 enableval=$enable_libtool_lock;
13797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13799 # Some flags need to be propagated to the compiler or linker for good
13800 # libtool support.
13801 case $host in
13802 ia64-*-hpux*)
13803 # Find out which ABI we are using.
13804 echo 'int i;' > conftest.$ac_ext
13805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13806 (eval $ac_compile) 2>&5
13807 ac_status=$?
13808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13809 test $ac_status = 0; }; then
13810 case `/usr/bin/file conftest.$ac_objext` in
13811 *ELF-32*)
13812 HPUX_IA64_MODE="32"
13814 *ELF-64*)
13815 HPUX_IA64_MODE="64"
13817 esac
13819 rm -rf conftest*
13821 *-*-irix6*)
13822 # Find out which ABI we are using.
13823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825 (eval $ac_compile) 2>&5
13826 ac_status=$?
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; }; then
13829 if test "$lt_cv_prog_gnu_ld" = yes; then
13830 case `/usr/bin/file conftest.$ac_objext` in
13831 *32-bit*)
13832 LD="${LD-ld} -melf32bsmip"
13834 *N32*)
13835 LD="${LD-ld} -melf32bmipn32"
13837 *64-bit*)
13838 LD="${LD-ld} -melf64bmip"
13840 esac
13841 else
13842 case `/usr/bin/file conftest.$ac_objext` in
13843 *32-bit*)
13844 LD="${LD-ld} -32"
13846 *N32*)
13847 LD="${LD-ld} -n32"
13849 *64-bit*)
13850 LD="${LD-ld} -64"
13852 esac
13855 rm -rf conftest*
13858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13860 # Find out which ABI we are using.
13861 echo 'int i;' > conftest.$ac_ext
13862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13863 (eval $ac_compile) 2>&5
13864 ac_status=$?
13865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866 test $ac_status = 0; }; then
13867 case `/usr/bin/file conftest.o` in
13868 *32-bit*)
13869 case $host in
13870 x86_64-*kfreebsd*-gnu)
13871 LD="${LD-ld} -m elf_i386_fbsd"
13873 x86_64-*linux*)
13874 case `/usr/bin/file conftest.o` in
13875 *x86-64*)
13876 LD="${LD-ld} -m elf32_x86_64"
13879 LD="${LD-ld} -m elf_i386"
13881 esac
13883 ppc64-*linux*|powerpc64-*linux*)
13884 LD="${LD-ld} -m elf32ppclinux"
13886 s390x-*linux*)
13887 LD="${LD-ld} -m elf_s390"
13889 sparc64-*linux*)
13890 LD="${LD-ld} -m elf32_sparc"
13892 esac
13894 *64-bit*)
13895 case $host in
13896 x86_64-*kfreebsd*-gnu)
13897 LD="${LD-ld} -m elf_x86_64_fbsd"
13899 x86_64-*linux*)
13900 LD="${LD-ld} -m elf_x86_64"
13902 ppc*-*linux*|powerpc*-*linux*)
13903 LD="${LD-ld} -m elf64ppc"
13905 s390*-*linux*|s390*-*tpf*)
13906 LD="${LD-ld} -m elf64_s390"
13908 sparc*-*linux*)
13909 LD="${LD-ld} -m elf64_sparc"
13911 esac
13913 esac
13915 rm -rf conftest*
13918 *-*-sco3.2v5*)
13919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13920 SAVE_CFLAGS="$CFLAGS"
13921 CFLAGS="$CFLAGS -belf"
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13923 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13924 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 ac_ext=c
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13937 main ()
13941 return 0;
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 lt_cv_cc_needs_belf=yes
13946 else
13947 lt_cv_cc_needs_belf=no
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 ac_ext=c
13952 ac_cpp='$CPP $CPPFLAGS'
13953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13960 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13962 CFLAGS="$SAVE_CFLAGS"
13965 sparc*-*solaris*)
13966 # Find out which ABI we are using.
13967 echo 'int i;' > conftest.$ac_ext
13968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13969 (eval $ac_compile) 2>&5
13970 ac_status=$?
13971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13972 test $ac_status = 0; }; then
13973 case `/usr/bin/file conftest.o` in
13974 *64-bit*)
13975 case $lt_cv_prog_gnu_ld in
13976 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13979 LD="${LD-ld} -64"
13982 esac
13984 esac
13986 rm -rf conftest*
13988 esac
13990 need_locks="$enable_libtool_lock"
13993 case $host_os in
13994 rhapsody* | darwin*)
13995 if test -n "$ac_tool_prefix"; then
13996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13999 $as_echo_n "checking for $ac_word... " >&6; }
14000 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 if test -n "$DSYMUTIL"; then
14004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14005 else
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14017 done
14018 done
14019 IFS=$as_save_IFS
14023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14024 if test -n "$DSYMUTIL"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14026 $as_echo "$DSYMUTIL" >&6; }
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14034 if test -z "$ac_cv_prog_DSYMUTIL"; then
14035 ac_ct_DSYMUTIL=$DSYMUTIL
14036 # Extract the first word of "dsymutil", so it can be a program name with args.
14037 set dummy dsymutil; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039 $as_echo_n "checking for $ac_word... " >&6; }
14040 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 if test -n "$ac_ct_DSYMUTIL"; then
14044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14045 else
14046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047 for as_dir in $PATH
14049 IFS=$as_save_IFS
14050 test -z "$as_dir" && as_dir=.
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 break 2
14057 done
14058 done
14059 IFS=$as_save_IFS
14063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14064 if test -n "$ac_ct_DSYMUTIL"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14067 else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14072 if test "x$ac_ct_DSYMUTIL" = x; then
14073 DSYMUTIL=":"
14074 else
14075 case $cross_compiling:$ac_tool_warned in
14076 yes:)
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14079 ac_tool_warned=yes ;;
14080 esac
14081 DSYMUTIL=$ac_ct_DSYMUTIL
14083 else
14084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14087 if test -n "$ac_tool_prefix"; then
14088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 if test -n "$NMEDIT"; then
14096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14109 done
14110 done
14111 IFS=$as_save_IFS
14115 NMEDIT=$ac_cv_prog_NMEDIT
14116 if test -n "$NMEDIT"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14118 $as_echo "$NMEDIT" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14126 if test -z "$ac_cv_prog_NMEDIT"; then
14127 ac_ct_NMEDIT=$NMEDIT
14128 # Extract the first word of "nmedit", so it can be a program name with args.
14129 set dummy nmedit; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 if test -n "$ac_ct_NMEDIT"; then
14136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14137 else
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14145 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14149 done
14150 done
14151 IFS=$as_save_IFS
14155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14156 if test -n "$ac_ct_NMEDIT"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14158 $as_echo "$ac_ct_NMEDIT" >&6; }
14159 else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14164 if test "x$ac_ct_NMEDIT" = x; then
14165 NMEDIT=":"
14166 else
14167 case $cross_compiling:$ac_tool_warned in
14168 yes:)
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14171 ac_tool_warned=yes ;;
14172 esac
14173 NMEDIT=$ac_ct_NMEDIT
14175 else
14176 NMEDIT="$ac_cv_prog_NMEDIT"
14179 if test -n "$ac_tool_prefix"; then
14180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if test "${ac_cv_prog_LIPO+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$LIPO"; then
14188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14201 done
14202 done
14203 IFS=$as_save_IFS
14207 LIPO=$ac_cv_prog_LIPO
14208 if test -n "$LIPO"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14210 $as_echo "$LIPO" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14218 if test -z "$ac_cv_prog_LIPO"; then
14219 ac_ct_LIPO=$LIPO
14220 # Extract the first word of "lipo", so it can be a program name with args.
14221 set dummy lipo; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 if test -n "$ac_ct_LIPO"; then
14228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14229 else
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14237 ac_cv_prog_ac_ct_LIPO="lipo"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14241 done
14242 done
14243 IFS=$as_save_IFS
14247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14248 if test -n "$ac_ct_LIPO"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14250 $as_echo "$ac_ct_LIPO" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14256 if test "x$ac_ct_LIPO" = x; then
14257 LIPO=":"
14258 else
14259 case $cross_compiling:$ac_tool_warned in
14260 yes:)
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14263 ac_tool_warned=yes ;;
14264 esac
14265 LIPO=$ac_ct_LIPO
14267 else
14268 LIPO="$ac_cv_prog_LIPO"
14271 if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14273 set dummy ${ac_tool_prefix}otool; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275 $as_echo_n "checking for $ac_word... " >&6; }
14276 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 if test -n "$OTOOL"; then
14280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14293 done
14294 done
14295 IFS=$as_save_IFS
14299 OTOOL=$ac_cv_prog_OTOOL
14300 if test -n "$OTOOL"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14302 $as_echo "$OTOOL" >&6; }
14303 else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 $as_echo "no" >&6; }
14310 if test -z "$ac_cv_prog_OTOOL"; then
14311 ac_ct_OTOOL=$OTOOL
14312 # Extract the first word of "otool", so it can be a program name with args.
14313 set dummy otool; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 if test -n "$ac_ct_OTOOL"; then
14320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14321 else
14322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323 for as_dir in $PATH
14325 IFS=$as_save_IFS
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
14328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14329 ac_cv_prog_ac_ct_OTOOL="otool"
14330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14331 break 2
14333 done
14334 done
14335 IFS=$as_save_IFS
14339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14340 if test -n "$ac_ct_OTOOL"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14342 $as_echo "$ac_ct_OTOOL" >&6; }
14343 else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14348 if test "x$ac_ct_OTOOL" = x; then
14349 OTOOL=":"
14350 else
14351 case $cross_compiling:$ac_tool_warned in
14352 yes:)
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14355 ac_tool_warned=yes ;;
14356 esac
14357 OTOOL=$ac_ct_OTOOL
14359 else
14360 OTOOL="$ac_cv_prog_OTOOL"
14363 if test -n "$ac_tool_prefix"; then
14364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14367 $as_echo_n "checking for $ac_word... " >&6; }
14368 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 if test -n "$OTOOL64"; then
14372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14373 else
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14385 done
14386 done
14387 IFS=$as_save_IFS
14391 OTOOL64=$ac_cv_prog_OTOOL64
14392 if test -n "$OTOOL64"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14394 $as_echo "$OTOOL64" >&6; }
14395 else
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 $as_echo "no" >&6; }
14402 if test -z "$ac_cv_prog_OTOOL64"; then
14403 ac_ct_OTOOL64=$OTOOL64
14404 # Extract the first word of "otool64", so it can be a program name with args.
14405 set dummy otool64; ac_word=$2
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407 $as_echo_n "checking for $ac_word... " >&6; }
14408 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 if test -n "$ac_ct_OTOOL64"; then
14412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14413 else
14414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415 for as_dir in $PATH
14417 IFS=$as_save_IFS
14418 test -z "$as_dir" && as_dir=.
14419 for ac_exec_ext in '' $ac_executable_extensions; do
14420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14421 ac_cv_prog_ac_ct_OTOOL64="otool64"
14422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14423 break 2
14425 done
14426 done
14427 IFS=$as_save_IFS
14431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14432 if test -n "$ac_ct_OTOOL64"; then
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14434 $as_echo "$ac_ct_OTOOL64" >&6; }
14435 else
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 $as_echo "no" >&6; }
14440 if test "x$ac_ct_OTOOL64" = x; then
14441 OTOOL64=":"
14442 else
14443 case $cross_compiling:$ac_tool_warned in
14444 yes:)
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14447 ac_tool_warned=yes ;;
14448 esac
14449 OTOOL64=$ac_ct_OTOOL64
14451 else
14452 OTOOL64="$ac_cv_prog_OTOOL64"
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14482 $as_echo_n "checking for -single_module linker flag... " >&6; }
14483 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 lt_cv_apple_cc_single_mod=no
14487 if test -z "${LT_MULTI_MODULE}"; then
14488 # By default we will add the -single_module flag. You can override
14489 # by either setting the environment variable LT_MULTI_MODULE
14490 # non-empty at configure time, or by adding -multi_module to the
14491 # link flags.
14492 rm -rf libconftest.dylib*
14493 echo "int foo(void){return 1;}" > conftest.c
14494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14495 -dynamiclib -Wl,-single_module conftest.c" >&5
14496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14498 _lt_result=$?
14499 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14500 lt_cv_apple_cc_single_mod=yes
14501 else
14502 cat conftest.err >&5
14504 rm -rf libconftest.dylib*
14505 rm -f conftest.*
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14509 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14511 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14512 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 lt_cv_ld_exported_symbols_list=no
14516 save_LDFLAGS=$LDFLAGS
14517 echo "_main" > conftest.sym
14518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14523 main ()
14527 return 0;
14529 _ACEOF
14530 if ac_fn_c_try_link "$LINENO"; then :
14531 lt_cv_ld_exported_symbols_list=yes
14532 else
14533 lt_cv_ld_exported_symbols_list=no
14535 rm -f core conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537 LDFLAGS="$save_LDFLAGS"
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14543 $as_echo_n "checking for -force_load linker flag... " >&6; }
14544 if test "${lt_cv_ld_force_load+set}" = set; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 lt_cv_ld_force_load=no
14548 cat > conftest.c << _LT_EOF
14549 int forced_loaded() { return 2;}
14550 _LT_EOF
14551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14553 echo "$AR cru libconftest.a conftest.o" >&5
14554 $AR cru libconftest.a conftest.o 2>&5
14555 cat > conftest.c << _LT_EOF
14556 int main() { return 0;}
14557 _LT_EOF
14558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14560 _lt_result=$?
14561 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14562 lt_cv_ld_force_load=yes
14563 else
14564 cat conftest.err >&5
14566 rm -f conftest.err libconftest.a conftest conftest.c
14567 rm -rf conftest.dSYM
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14571 $as_echo "$lt_cv_ld_force_load" >&6; }
14572 case $host_os in
14573 rhapsody* | darwin1.[012])
14574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14575 darwin1.*)
14576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14577 darwin*) # darwin 5.x on
14578 # if running on 10.5 or later, the deployment target defaults
14579 # to the OS version, if on x86, and 10.4, the deployment
14580 # target defaults to 10.4. Don't you love it?
14581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14584 10.[012]*)
14585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14586 10.*)
14587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14588 esac
14590 esac
14591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14592 _lt_dar_single_mod='$single_module'
14594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14596 else
14597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14599 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14600 _lt_dsymutil='~$DSYMUTIL $lib || :'
14601 else
14602 _lt_dsymutil=
14605 esac
14607 for ac_header in dlfcn.h
14608 do :
14609 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14610 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_DLFCN_H 1
14613 _ACEOF
14616 done
14622 # Set options
14626 enable_dlopen=no
14629 enable_win32_dll=no
14632 # Check whether --enable-shared was given.
14633 if test "${enable_shared+set}" = set; then :
14634 enableval=$enable_shared; p=${PACKAGE-default}
14635 case $enableval in
14636 yes) enable_shared=yes ;;
14637 no) enable_shared=no ;;
14639 enable_shared=no
14640 # Look at the argument we got. We use all the common list separators.
14641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14642 for pkg in $enableval; do
14643 IFS="$lt_save_ifs"
14644 if test "X$pkg" = "X$p"; then
14645 enable_shared=yes
14647 done
14648 IFS="$lt_save_ifs"
14650 esac
14651 else
14652 enable_shared=yes
14663 # Check whether --enable-static was given.
14664 if test "${enable_static+set}" = set; then :
14665 enableval=$enable_static; p=${PACKAGE-default}
14666 case $enableval in
14667 yes) enable_static=yes ;;
14668 no) enable_static=no ;;
14670 enable_static=no
14671 # Look at the argument we got. We use all the common list separators.
14672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14673 for pkg in $enableval; do
14674 IFS="$lt_save_ifs"
14675 if test "X$pkg" = "X$p"; then
14676 enable_static=yes
14678 done
14679 IFS="$lt_save_ifs"
14681 esac
14682 else
14683 enable_static=yes
14695 # Check whether --with-pic was given.
14696 if test "${with_pic+set}" = set; then :
14697 withval=$with_pic; pic_mode="$withval"
14698 else
14699 pic_mode=default
14703 test -z "$pic_mode" && pic_mode=default
14711 # Check whether --enable-fast-install was given.
14712 if test "${enable_fast_install+set}" = set; then :
14713 enableval=$enable_fast_install; p=${PACKAGE-default}
14714 case $enableval in
14715 yes) enable_fast_install=yes ;;
14716 no) enable_fast_install=no ;;
14718 enable_fast_install=no
14719 # Look at the argument we got. We use all the common list separators.
14720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14721 for pkg in $enableval; do
14722 IFS="$lt_save_ifs"
14723 if test "X$pkg" = "X$p"; then
14724 enable_fast_install=yes
14726 done
14727 IFS="$lt_save_ifs"
14729 esac
14730 else
14731 enable_fast_install=yes
14744 # This can be used to rebuild libtool when needed
14745 LIBTOOL_DEPS="$ltmain"
14747 # Always use our own libtool.
14748 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14775 test -z "$LN_S" && LN_S="ln -s"
14790 if test -n "${ZSH_VERSION+set}" ; then
14791 setopt NO_GLOB_SUBST
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14795 $as_echo_n "checking for objdir... " >&6; }
14796 if test "${lt_cv_objdir+set}" = set; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799 rm -f .libs 2>/dev/null
14800 mkdir .libs 2>/dev/null
14801 if test -d .libs; then
14802 lt_cv_objdir=.libs
14803 else
14804 # MS-DOS does not allow filenames that begin with a dot.
14805 lt_cv_objdir=_libs
14807 rmdir .libs 2>/dev/null
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14810 $as_echo "$lt_cv_objdir" >&6; }
14811 objdir=$lt_cv_objdir
14817 cat >>confdefs.h <<_ACEOF
14818 #define LT_OBJDIR "$lt_cv_objdir/"
14819 _ACEOF
14824 case $host_os in
14825 aix3*)
14826 # AIX sometimes has problems with the GCC collect2 program. For some
14827 # reason, if we set the COLLECT_NAMES environment variable, the problems
14828 # vanish in a puff of smoke.
14829 if test "X${COLLECT_NAMES+set}" != Xset; then
14830 COLLECT_NAMES=
14831 export COLLECT_NAMES
14834 esac
14836 # Global variables:
14837 ofile=libtool
14838 can_build_shared=yes
14840 # All known linkers require a `.a' archive for static linking (except MSVC,
14841 # which needs '.lib').
14842 libext=a
14844 with_gnu_ld="$lt_cv_prog_gnu_ld"
14846 old_CC="$CC"
14847 old_CFLAGS="$CFLAGS"
14849 # Set sane defaults for various variables
14850 test -z "$CC" && CC=cc
14851 test -z "$LTCC" && LTCC=$CC
14852 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14853 test -z "$LD" && LD=ld
14854 test -z "$ac_objext" && ac_objext=o
14856 for cc_temp in $compiler""; do
14857 case $cc_temp in
14858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14860 \-*) ;;
14861 *) break;;
14862 esac
14863 done
14864 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14867 # Only perform the check for file, if the check method requires it
14868 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14869 case $deplibs_check_method in
14870 file_magic*)
14871 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14873 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14874 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 case $MAGIC_CMD in
14878 [\\/*] | ?:[\\/]*)
14879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14882 lt_save_MAGIC_CMD="$MAGIC_CMD"
14883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14885 for ac_dir in $ac_dummy; do
14886 IFS="$lt_save_ifs"
14887 test -z "$ac_dir" && ac_dir=.
14888 if test -f $ac_dir/${ac_tool_prefix}file; then
14889 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14890 if test -n "$file_magic_test_file"; then
14891 case $deplibs_check_method in
14892 "file_magic "*)
14893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14896 $EGREP "$file_magic_regex" > /dev/null; then
14898 else
14899 cat <<_LT_EOF 1>&2
14901 *** Warning: the command libtool uses to detect shared libraries,
14902 *** $file_magic_cmd, produces output that libtool cannot recognize.
14903 *** The result is that libtool may fail to recognize shared libraries
14904 *** as such. This will affect the creation of libtool libraries that
14905 *** depend on shared libraries, but programs linked with such libtool
14906 *** libraries will work regardless of this problem. Nevertheless, you
14907 *** may want to report the problem to your system manager and/or to
14908 *** bug-libtool@gnu.org
14910 _LT_EOF
14911 fi ;;
14912 esac
14914 break
14916 done
14917 IFS="$lt_save_ifs"
14918 MAGIC_CMD="$lt_save_MAGIC_CMD"
14920 esac
14923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14924 if test -n "$MAGIC_CMD"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14926 $as_echo "$MAGIC_CMD" >&6; }
14927 else
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14929 $as_echo "no" >&6; }
14936 if test -z "$lt_cv_path_MAGIC_CMD"; then
14937 if test -n "$ac_tool_prefix"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14939 $as_echo_n "checking for file... " >&6; }
14940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 case $MAGIC_CMD in
14944 [\\/*] | ?:[\\/]*)
14945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14948 lt_save_MAGIC_CMD="$MAGIC_CMD"
14949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14950 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14951 for ac_dir in $ac_dummy; do
14952 IFS="$lt_save_ifs"
14953 test -z "$ac_dir" && ac_dir=.
14954 if test -f $ac_dir/file; then
14955 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14956 if test -n "$file_magic_test_file"; then
14957 case $deplibs_check_method in
14958 "file_magic "*)
14959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14962 $EGREP "$file_magic_regex" > /dev/null; then
14964 else
14965 cat <<_LT_EOF 1>&2
14967 *** Warning: the command libtool uses to detect shared libraries,
14968 *** $file_magic_cmd, produces output that libtool cannot recognize.
14969 *** The result is that libtool may fail to recognize shared libraries
14970 *** as such. This will affect the creation of libtool libraries that
14971 *** depend on shared libraries, but programs linked with such libtool
14972 *** libraries will work regardless of this problem. Nevertheless, you
14973 *** may want to report the problem to your system manager and/or to
14974 *** bug-libtool@gnu.org
14976 _LT_EOF
14977 fi ;;
14978 esac
14980 break
14982 done
14983 IFS="$lt_save_ifs"
14984 MAGIC_CMD="$lt_save_MAGIC_CMD"
14986 esac
14989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14990 if test -n "$MAGIC_CMD"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14992 $as_echo "$MAGIC_CMD" >&6; }
14993 else
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 $as_echo "no" >&6; }
14999 else
15000 MAGIC_CMD=:
15006 esac
15008 # Use C for the default configuration in the libtool script
15010 lt_save_CC="$CC"
15011 ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15018 # Source file extension for C test sources.
15019 ac_ext=c
15021 # Object file extension for compiled C test sources.
15022 objext=o
15023 objext=$objext
15025 # Code to be used in simple compile tests
15026 lt_simple_compile_test_code="int some_variable = 0;"
15028 # Code to be used in simple link tests
15029 lt_simple_link_test_code='int main(){return(0);}'
15037 # If no C compiler was specified, use CC.
15038 LTCC=${LTCC-"$CC"}
15040 # If no C compiler flags were specified, use CFLAGS.
15041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15043 # Allow CC to be a program name with arguments.
15044 compiler=$CC
15046 # Save the default compiler, since it gets overwritten when the other
15047 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15048 compiler_DEFAULT=$CC
15050 # save warnings/boilerplate of simple test code
15051 ac_outfile=conftest.$ac_objext
15052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15054 _lt_compiler_boilerplate=`cat conftest.err`
15055 $RM conftest*
15057 ac_outfile=conftest.$ac_objext
15058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15060 _lt_linker_boilerplate=`cat conftest.err`
15061 $RM -r conftest*
15064 ## CAVEAT EMPTOR:
15065 ## There is no encapsulation within the following macros, do not change
15066 ## the running order or otherwise move them around unless you know exactly
15067 ## what you are doing...
15068 if test -n "$compiler"; then
15070 lt_prog_compiler_no_builtin_flag=
15072 if test "$GCC" = yes; then
15073 case $cc_basename in
15074 nvcc*)
15075 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15077 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15078 esac
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15081 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15082 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 lt_cv_prog_compiler_rtti_exceptions=no
15086 ac_outfile=conftest.$ac_objext
15087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15088 lt_compiler_flag="-fno-rtti -fno-exceptions"
15089 # Insert the option either (1) after the last *FLAGS variable, or
15090 # (2) before a word containing "conftest.", or (3) at the end.
15091 # Note that $ac_compile itself does not contain backslashes and begins
15092 # with a dollar sign (not a hyphen), so the echo should work correctly.
15093 # The option is referenced via a variable to avoid confusing sed.
15094 lt_compile=`echo "$ac_compile" | $SED \
15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
15098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15099 (eval "$lt_compile" 2>conftest.err)
15100 ac_status=$?
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 if (exit $ac_status) && test -s "$ac_outfile"; then
15104 # The compiler can only warn and ignore the option if not recognized
15105 # So say no if there are warnings other than the usual output.
15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15109 lt_cv_prog_compiler_rtti_exceptions=yes
15112 $RM conftest*
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15116 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15118 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15119 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15120 else
15131 lt_prog_compiler_wl=
15132 lt_prog_compiler_pic=
15133 lt_prog_compiler_static=
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15138 if test "$GCC" = yes; then
15139 lt_prog_compiler_wl='-Wl,'
15140 lt_prog_compiler_static='-static'
15142 case $host_os in
15143 aix*)
15144 # All AIX code is PIC.
15145 if test "$host_cpu" = ia64; then
15146 # AIX 5 now supports IA64 processor
15147 lt_prog_compiler_static='-Bstatic'
15149 lt_prog_compiler_pic='-fPIC'
15152 amigaos*)
15153 case $host_cpu in
15154 powerpc)
15155 # see comment about AmigaOS4 .so support
15156 lt_prog_compiler_pic='-fPIC'
15158 m68k)
15159 # FIXME: we need at least 68020 code to build shared libraries, but
15160 # adding the `-m68020' flag to GCC prevents building anything better,
15161 # like `-m68040'.
15162 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15164 esac
15167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15168 # PIC is the default for these OSes.
15171 mingw* | cygwin* | pw32* | os2* | cegcc*)
15172 # This hack is so that the source file can tell whether it is being
15173 # built for inclusion in a dll (and should export symbols for example).
15174 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15175 # (--disable-auto-import) libraries
15176 lt_prog_compiler_pic='-DDLL_EXPORT'
15179 darwin* | rhapsody*)
15180 # PIC is the default on this platform
15181 # Common symbols not allowed in MH_DYLIB files
15182 lt_prog_compiler_pic='-fno-common'
15185 haiku*)
15186 # PIC is the default for Haiku.
15187 # The "-static" flag exists, but is broken.
15188 lt_prog_compiler_static=
15191 hpux*)
15192 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15193 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15194 # sets the default TLS model and affects inlining.
15195 case $host_cpu in
15196 hppa*64*)
15197 # +Z the default
15200 lt_prog_compiler_pic='-fPIC'
15202 esac
15205 interix[3-9]*)
15206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15207 # Instead, we relocate shared libraries at runtime.
15210 msdosdjgpp*)
15211 # Just because we use GCC doesn't mean we suddenly get shared libraries
15212 # on systems that don't support them.
15213 lt_prog_compiler_can_build_shared=no
15214 enable_shared=no
15217 *nto* | *qnx*)
15218 # QNX uses GNU C++, but need to define -shared option too, otherwise
15219 # it will coredump.
15220 lt_prog_compiler_pic='-fPIC -shared'
15223 sysv4*MP*)
15224 if test -d /usr/nec; then
15225 lt_prog_compiler_pic=-Kconform_pic
15230 lt_prog_compiler_pic='-fPIC'
15232 esac
15234 case $cc_basename in
15235 nvcc*) # Cuda Compiler Driver 2.2
15236 lt_prog_compiler_wl='-Xlinker '
15237 lt_prog_compiler_pic='-Xcompiler -fPIC'
15239 esac
15240 else
15241 # PORTME Check for flag to pass linker flags through the system compiler.
15242 case $host_os in
15243 aix*)
15244 lt_prog_compiler_wl='-Wl,'
15245 if test "$host_cpu" = ia64; then
15246 # AIX 5 now supports IA64 processor
15247 lt_prog_compiler_static='-Bstatic'
15248 else
15249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15253 mingw* | cygwin* | pw32* | os2* | cegcc*)
15254 # This hack is so that the source file can tell whether it is being
15255 # built for inclusion in a dll (and should export symbols for example).
15256 lt_prog_compiler_pic='-DDLL_EXPORT'
15259 hpux9* | hpux10* | hpux11*)
15260 lt_prog_compiler_wl='-Wl,'
15261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15262 # not for PA HP-UX.
15263 case $host_cpu in
15264 hppa*64*|ia64*)
15265 # +Z the default
15268 lt_prog_compiler_pic='+Z'
15270 esac
15271 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15272 lt_prog_compiler_static='${wl}-a ${wl}archive'
15275 irix5* | irix6* | nonstopux*)
15276 lt_prog_compiler_wl='-Wl,'
15277 # PIC (with -KPIC) is the default.
15278 lt_prog_compiler_static='-non_shared'
15281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15282 case $cc_basename in
15283 # old Intel for x86_64 which still supported -KPIC.
15284 ecc*)
15285 lt_prog_compiler_wl='-Wl,'
15286 lt_prog_compiler_pic='-KPIC'
15287 lt_prog_compiler_static='-static'
15289 # icc used to be incompatible with GCC.
15290 # ICC 10 doesn't accept -KPIC any more.
15291 icc* | ifort*)
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='-fPIC'
15294 lt_prog_compiler_static='-static'
15296 # Lahey Fortran 8.1.
15297 lf95*)
15298 lt_prog_compiler_wl='-Wl,'
15299 lt_prog_compiler_pic='--shared'
15300 lt_prog_compiler_static='--static'
15302 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15303 # Portland Group compilers (*not* the Pentium gcc compiler,
15304 # which looks to be a dead project)
15305 lt_prog_compiler_wl='-Wl,'
15306 lt_prog_compiler_pic='-fpic'
15307 lt_prog_compiler_static='-Bstatic'
15309 ccc*)
15310 lt_prog_compiler_wl='-Wl,'
15311 # All Alpha code is PIC.
15312 lt_prog_compiler_static='-non_shared'
15314 xl* | bgxl* | bgf* | mpixl*)
15315 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15316 lt_prog_compiler_wl='-Wl,'
15317 lt_prog_compiler_pic='-qpic'
15318 lt_prog_compiler_static='-qstaticlink'
15321 case `$CC -V 2>&1 | sed 5q` in
15322 *Sun\ F* | *Sun*Fortran*)
15323 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15324 lt_prog_compiler_pic='-KPIC'
15325 lt_prog_compiler_static='-Bstatic'
15326 lt_prog_compiler_wl=''
15328 *Sun\ C*)
15329 # Sun C 5.9
15330 lt_prog_compiler_pic='-KPIC'
15331 lt_prog_compiler_static='-Bstatic'
15332 lt_prog_compiler_wl='-Wl,'
15334 esac
15336 esac
15339 newsos6)
15340 lt_prog_compiler_pic='-KPIC'
15341 lt_prog_compiler_static='-Bstatic'
15344 *nto* | *qnx*)
15345 # QNX uses GNU C++, but need to define -shared option too, otherwise
15346 # it will coredump.
15347 lt_prog_compiler_pic='-fPIC -shared'
15350 osf3* | osf4* | osf5*)
15351 lt_prog_compiler_wl='-Wl,'
15352 # All OSF/1 code is PIC.
15353 lt_prog_compiler_static='-non_shared'
15356 rdos*)
15357 lt_prog_compiler_static='-non_shared'
15360 solaris*)
15361 lt_prog_compiler_pic='-KPIC'
15362 lt_prog_compiler_static='-Bstatic'
15363 case $cc_basename in
15364 f77* | f90* | f95*)
15365 lt_prog_compiler_wl='-Qoption ld ';;
15367 lt_prog_compiler_wl='-Wl,';;
15368 esac
15371 sunos4*)
15372 lt_prog_compiler_wl='-Qoption ld '
15373 lt_prog_compiler_pic='-PIC'
15374 lt_prog_compiler_static='-Bstatic'
15377 sysv4 | sysv4.2uw2* | sysv4.3*)
15378 lt_prog_compiler_wl='-Wl,'
15379 lt_prog_compiler_pic='-KPIC'
15380 lt_prog_compiler_static='-Bstatic'
15383 sysv4*MP*)
15384 if test -d /usr/nec ;then
15385 lt_prog_compiler_pic='-Kconform_pic'
15386 lt_prog_compiler_static='-Bstatic'
15390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15391 lt_prog_compiler_wl='-Wl,'
15392 lt_prog_compiler_pic='-KPIC'
15393 lt_prog_compiler_static='-Bstatic'
15396 unicos*)
15397 lt_prog_compiler_wl='-Wl,'
15398 lt_prog_compiler_can_build_shared=no
15401 uts4*)
15402 lt_prog_compiler_pic='-pic'
15403 lt_prog_compiler_static='-Bstatic'
15407 lt_prog_compiler_can_build_shared=no
15409 esac
15412 case $host_os in
15413 # For platforms which do not support PIC, -DPIC is meaningless:
15414 *djgpp*)
15415 lt_prog_compiler_pic=
15418 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15420 esac
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15422 $as_echo "$lt_prog_compiler_pic" >&6; }
15430 # Check to make sure the PIC flag actually works.
15432 if test -n "$lt_prog_compiler_pic"; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15434 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15435 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 lt_cv_prog_compiler_pic_works=no
15439 ac_outfile=conftest.$ac_objext
15440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15441 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15442 # Insert the option either (1) after the last *FLAGS variable, or
15443 # (2) before a word containing "conftest.", or (3) at the end.
15444 # Note that $ac_compile itself does not contain backslashes and begins
15445 # with a dollar sign (not a hyphen), so the echo should work correctly.
15446 # The option is referenced via a variable to avoid confusing sed.
15447 lt_compile=`echo "$ac_compile" | $SED \
15448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450 -e 's:$: $lt_compiler_flag:'`
15451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15452 (eval "$lt_compile" 2>conftest.err)
15453 ac_status=$?
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 if (exit $ac_status) && test -s "$ac_outfile"; then
15457 # The compiler can only warn and ignore the option if not recognized
15458 # So say no if there are warnings other than the usual output.
15459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15462 lt_cv_prog_compiler_pic_works=yes
15465 $RM conftest*
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15469 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15471 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15472 case $lt_prog_compiler_pic in
15473 "" | " "*) ;;
15474 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15475 esac
15476 else
15477 lt_prog_compiler_pic=
15478 lt_prog_compiler_can_build_shared=no
15489 # Check to make sure the static flag actually works.
15491 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15493 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15494 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15495 $as_echo_n "(cached) " >&6
15496 else
15497 lt_cv_prog_compiler_static_works=no
15498 save_LDFLAGS="$LDFLAGS"
15499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15500 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15502 # The linker can only warn and ignore the option if not recognized
15503 # So say no if there are warnings
15504 if test -s conftest.err; then
15505 # Append any errors to the config.log.
15506 cat conftest.err 1>&5
15507 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15509 if diff conftest.exp conftest.er2 >/dev/null; then
15510 lt_cv_prog_compiler_static_works=yes
15512 else
15513 lt_cv_prog_compiler_static_works=yes
15516 $RM -r conftest*
15517 LDFLAGS="$save_LDFLAGS"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15521 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15523 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15525 else
15526 lt_prog_compiler_static=
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15537 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15538 $as_echo_n "(cached) " >&6
15539 else
15540 lt_cv_prog_compiler_c_o=no
15541 $RM -r conftest 2>/dev/null
15542 mkdir conftest
15543 cd conftest
15544 mkdir out
15545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547 lt_compiler_flag="-o out/conftest2.$ac_objext"
15548 # Insert the option either (1) after the last *FLAGS variable, or
15549 # (2) before a word containing "conftest.", or (3) at the end.
15550 # Note that $ac_compile itself does not contain backslashes and begins
15551 # with a dollar sign (not a hyphen), so the echo should work correctly.
15552 lt_compile=`echo "$ac_compile" | $SED \
15553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15555 -e 's:$: $lt_compiler_flag:'`
15556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15557 (eval "$lt_compile" 2>out/conftest.err)
15558 ac_status=$?
15559 cat out/conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15562 then
15563 # The compiler can only warn and ignore the option if not recognized
15564 # So say no if there are warnings
15565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15568 lt_cv_prog_compiler_c_o=yes
15571 chmod u+w . 2>&5
15572 $RM conftest*
15573 # SGI C++ compiler will create directory out/ii_files/ for
15574 # template instantiation
15575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15576 $RM out/* && rmdir out
15577 cd ..
15578 $RM -r conftest
15579 $RM conftest*
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15583 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15591 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 lt_cv_prog_compiler_c_o=no
15596 $RM -r conftest 2>/dev/null
15597 mkdir conftest
15598 cd conftest
15599 mkdir out
15600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15602 lt_compiler_flag="-o out/conftest2.$ac_objext"
15603 # Insert the option either (1) after the last *FLAGS variable, or
15604 # (2) before a word containing "conftest.", or (3) at the end.
15605 # Note that $ac_compile itself does not contain backslashes and begins
15606 # with a dollar sign (not a hyphen), so the echo should work correctly.
15607 lt_compile=`echo "$ac_compile" | $SED \
15608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15610 -e 's:$: $lt_compiler_flag:'`
15611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15612 (eval "$lt_compile" 2>out/conftest.err)
15613 ac_status=$?
15614 cat out/conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15617 then
15618 # The compiler can only warn and ignore the option if not recognized
15619 # So say no if there are warnings
15620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15623 lt_cv_prog_compiler_c_o=yes
15626 chmod u+w . 2>&5
15627 $RM conftest*
15628 # SGI C++ compiler will create directory out/ii_files/ for
15629 # template instantiation
15630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15631 $RM out/* && rmdir out
15632 cd ..
15633 $RM -r conftest
15634 $RM conftest*
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15643 hard_links="nottested"
15644 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15645 # do not overwrite the value of need_locks provided by the user
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15647 $as_echo_n "checking if we can lock with hard links... " >&6; }
15648 hard_links=yes
15649 $RM conftest*
15650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15651 touch conftest.a
15652 ln conftest.a conftest.b 2>&5 || hard_links=no
15653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15655 $as_echo "$hard_links" >&6; }
15656 if test "$hard_links" = no; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15658 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15659 need_locks=warn
15661 else
15662 need_locks=no
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15671 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15673 runpath_var=
15674 allow_undefined_flag=
15675 always_export_symbols=no
15676 archive_cmds=
15677 archive_expsym_cmds=
15678 compiler_needs_object=no
15679 enable_shared_with_static_runtimes=no
15680 export_dynamic_flag_spec=
15681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15682 hardcode_automatic=no
15683 hardcode_direct=no
15684 hardcode_direct_absolute=no
15685 hardcode_libdir_flag_spec=
15686 hardcode_libdir_flag_spec_ld=
15687 hardcode_libdir_separator=
15688 hardcode_minus_L=no
15689 hardcode_shlibpath_var=unsupported
15690 inherit_rpath=no
15691 link_all_deplibs=unknown
15692 module_cmds=
15693 module_expsym_cmds=
15694 old_archive_from_new_cmds=
15695 old_archive_from_expsyms_cmds=
15696 thread_safe_flag_spec=
15697 whole_archive_flag_spec=
15698 # include_expsyms should be a list of space-separated symbols to be *always*
15699 # included in the symbol list
15700 include_expsyms=
15701 # exclude_expsyms can be an extended regexp of symbols to exclude
15702 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15704 # as well as any symbol that contains `d'.
15705 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15707 # platforms (ab)use it in PIC code, but their linkers get confused if
15708 # the symbol is explicitly referenced. Since portable code cannot
15709 # rely on this symbol name, it's probably fine to never include it in
15710 # preloaded symbol tables.
15711 # Exclude shared library initialization/finalization symbols.
15712 extract_expsyms_cmds=
15714 case $host_os in
15715 cygwin* | mingw* | pw32* | cegcc*)
15716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15717 # When not using gcc, we currently assume that we are using
15718 # Microsoft Visual C++.
15719 if test "$GCC" != yes; then
15720 with_gnu_ld=no
15723 interix*)
15724 # we just hope/assume this is gcc and not c89 (= MSVC++)
15725 with_gnu_ld=yes
15727 openbsd*)
15728 with_gnu_ld=no
15730 esac
15732 ld_shlibs=yes
15734 # On some targets, GNU ld is compatible enough with the native linker
15735 # that we're better off using the native interface for both.
15736 lt_use_gnu_ld_interface=no
15737 if test "$with_gnu_ld" = yes; then
15738 case $host_os in
15739 aix*)
15740 # The AIX port of GNU ld has always aspired to compatibility
15741 # with the native linker. However, as the warning in the GNU ld
15742 # block says, versions before 2.19.5* couldn't really create working
15743 # shared libraries, regardless of the interface used.
15744 case `$LD -v 2>&1` in
15745 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15746 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15747 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15749 lt_use_gnu_ld_interface=yes
15751 esac
15754 lt_use_gnu_ld_interface=yes
15756 esac
15759 if test "$lt_use_gnu_ld_interface" = yes; then
15760 # If archive_cmds runs LD, not CC, wlarc should be empty
15761 wlarc='${wl}'
15763 # Set some defaults for GNU ld with shared library support. These
15764 # are reset later if shared libraries are not supported. Putting them
15765 # here allows them to be overridden if necessary.
15766 runpath_var=LD_RUN_PATH
15767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15768 export_dynamic_flag_spec='${wl}--export-dynamic'
15769 # ancient GNU ld didn't support --whole-archive et. al.
15770 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15771 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15772 else
15773 whole_archive_flag_spec=
15775 supports_anon_versioning=no
15776 case `$LD -v 2>&1` in
15777 *GNU\ gold*) supports_anon_versioning=yes ;;
15778 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15779 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15780 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15781 *\ 2.11.*) ;; # other 2.11 versions
15782 *) supports_anon_versioning=yes ;;
15783 esac
15785 # See if GNU ld supports shared libraries.
15786 case $host_os in
15787 aix[3-9]*)
15788 # On AIX/PPC, the GNU linker is very broken
15789 if test "$host_cpu" != ia64; then
15790 ld_shlibs=no
15791 cat <<_LT_EOF 1>&2
15793 *** Warning: the GNU linker, at least up to release 2.19, is reported
15794 *** to be unable to reliably create shared libraries on AIX.
15795 *** Therefore, libtool is disabling shared libraries support. If you
15796 *** really care for shared libraries, you may want to install binutils
15797 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15798 *** You will then need to restart the configuration process.
15800 _LT_EOF
15804 amigaos*)
15805 case $host_cpu in
15806 powerpc)
15807 # see comment about AmigaOS4 .so support
15808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds=''
15811 m68k)
15812 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)'
15813 hardcode_libdir_flag_spec='-L$libdir'
15814 hardcode_minus_L=yes
15816 esac
15819 beos*)
15820 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15821 allow_undefined_flag=unsupported
15822 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15823 # support --undefined. This deserves some investigation. FIXME
15824 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15825 else
15826 ld_shlibs=no
15830 cygwin* | mingw* | pw32* | cegcc*)
15831 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15832 # as there is no search path for DLLs.
15833 hardcode_libdir_flag_spec='-L$libdir'
15834 export_dynamic_flag_spec='${wl}--export-all-symbols'
15835 allow_undefined_flag=unsupported
15836 always_export_symbols=no
15837 enable_shared_with_static_runtimes=yes
15838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15840 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15842 # If the export-symbols file already is a .def file (1st line
15843 # is EXPORTS), use it as is; otherwise, prepend...
15844 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15845 cp $export_symbols $output_objdir/$soname.def;
15846 else
15847 echo EXPORTS > $output_objdir/$soname.def;
15848 cat $export_symbols >> $output_objdir/$soname.def;
15850 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15851 else
15852 ld_shlibs=no
15856 haiku*)
15857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15858 link_all_deplibs=yes
15861 interix[3-9]*)
15862 hardcode_direct=no
15863 hardcode_shlibpath_var=no
15864 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15865 export_dynamic_flag_spec='${wl}-E'
15866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15867 # Instead, shared libraries are loaded at an image base (0x10000000 by
15868 # default) and relocated if they conflict, which is a slow very memory
15869 # consuming and fragmenting process. To avoid this, we pick a random,
15870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15873 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'
15876 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15877 tmp_diet=no
15878 if test "$host_os" = linux-dietlibc; then
15879 case $cc_basename in
15880 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15881 esac
15883 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15884 && test "$tmp_diet" = no
15885 then
15886 tmp_addflag=
15887 tmp_sharedflag='-shared'
15888 case $cc_basename,$host_cpu in
15889 pgcc*) # Portland Group C compiler
15890 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'
15891 tmp_addflag=' $pic_flag'
15893 pgf77* | pgf90* | pgf95* | pgfortran*)
15894 # Portland Group f77 and f90 compilers
15895 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'
15896 tmp_addflag=' $pic_flag -Mnomain' ;;
15897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15898 tmp_addflag=' -i_dynamic' ;;
15899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15900 tmp_addflag=' -i_dynamic -nofor_main' ;;
15901 ifc* | ifort*) # Intel Fortran compiler
15902 tmp_addflag=' -nofor_main' ;;
15903 lf95*) # Lahey Fortran 8.1
15904 whole_archive_flag_spec=
15905 tmp_sharedflag='--shared' ;;
15906 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15907 tmp_sharedflag='-qmkshrobj'
15908 tmp_addflag= ;;
15909 nvcc*) # Cuda Compiler Driver 2.2
15910 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'
15911 compiler_needs_object=yes
15913 esac
15914 case `$CC -V 2>&1 | sed 5q` in
15915 *Sun\ C*) # Sun C 5.9
15916 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'
15917 compiler_needs_object=yes
15918 tmp_sharedflag='-G' ;;
15919 *Sun\ F*) # Sun Fortran 8.3
15920 tmp_sharedflag='-G' ;;
15921 esac
15922 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 if test "x$supports_anon_versioning" = xyes; then
15925 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15927 echo "local: *; };" >> $output_objdir/$libname.ver~
15928 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15931 case $cc_basename in
15932 xlf* | bgf* | bgxlf* | mpixlf*)
15933 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15934 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15935 hardcode_libdir_flag_spec=
15936 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15937 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15938 if test "x$supports_anon_versioning" = xyes; then
15939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15941 echo "local: *; };" >> $output_objdir/$libname.ver~
15942 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15945 esac
15946 else
15947 ld_shlibs=no
15951 netbsd*)
15952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15953 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15954 wlarc=
15955 else
15956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15961 solaris*)
15962 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15963 ld_shlibs=no
15964 cat <<_LT_EOF 1>&2
15966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15967 *** create shared libraries on Solaris systems. Therefore, libtool
15968 *** is disabling shared libraries support. We urge you to upgrade GNU
15969 *** binutils to release 2.9.1 or newer. Another option is to modify
15970 *** your PATH or compiler configuration so that the native linker is
15971 *** used, and then restart.
15973 _LT_EOF
15974 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15977 else
15978 ld_shlibs=no
15982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15983 case `$LD -v 2>&1` in
15984 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15985 ld_shlibs=no
15986 cat <<_LT_EOF 1>&2
15988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15989 *** reliably create shared libraries on SCO systems. Therefore, libtool
15990 *** is disabling shared libraries support. We urge you to upgrade GNU
15991 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15992 *** your PATH or compiler configuration so that the native linker is
15993 *** used, and then restart.
15995 _LT_EOF
15998 # For security reasons, it is highly recommended that you always
15999 # use absolute paths for naming shared libraries, and exclude the
16000 # DT_RUNPATH tag from executables and libraries. But doing so
16001 # requires that you compile everything twice, which is a pain.
16002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16006 else
16007 ld_shlibs=no
16010 esac
16013 sunos4*)
16014 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16015 wlarc=
16016 hardcode_direct=yes
16017 hardcode_shlibpath_var=no
16021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16024 else
16025 ld_shlibs=no
16028 esac
16030 if test "$ld_shlibs" = no; then
16031 runpath_var=
16032 hardcode_libdir_flag_spec=
16033 export_dynamic_flag_spec=
16034 whole_archive_flag_spec=
16036 else
16037 # PORTME fill in a description of your system's linker (not GNU ld)
16038 case $host_os in
16039 aix3*)
16040 allow_undefined_flag=unsupported
16041 always_export_symbols=yes
16042 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'
16043 # Note: this linker hardcodes the directories in LIBPATH if there
16044 # are no directories specified by -L.
16045 hardcode_minus_L=yes
16046 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16047 # Neither direct hardcoding nor static linking is supported with a
16048 # broken collect2.
16049 hardcode_direct=unsupported
16053 aix[4-9]*)
16054 if test "$host_cpu" = ia64; then
16055 # On IA64, the linker does run time linking by default, so we don't
16056 # have to do anything special.
16057 aix_use_runtimelinking=no
16058 exp_sym_flag='-Bexport'
16059 no_entry_flag=""
16060 else
16061 # If we're using GNU nm, then we don't want the "-C" option.
16062 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16063 # Also, AIX nm treats weak defined symbols like other global
16064 # defined symbols, whereas GNU nm marks them as "W".
16065 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16066 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'
16067 else
16068 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'
16070 aix_use_runtimelinking=no
16072 # Test if we are trying to use run time linking or normal
16073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16074 # need to do runtime linking.
16075 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16076 for ld_flag in $LDFLAGS; do
16077 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16078 aix_use_runtimelinking=yes
16079 break
16081 done
16083 esac
16085 exp_sym_flag='-bexport'
16086 no_entry_flag='-bnoentry'
16089 # When large executables or shared objects are built, AIX ld can
16090 # have problems creating the table of contents. If linking a library
16091 # or program results in "error TOC overflow" add -mminimal-toc to
16092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16095 archive_cmds=''
16096 hardcode_direct=yes
16097 hardcode_direct_absolute=yes
16098 hardcode_libdir_separator=':'
16099 link_all_deplibs=yes
16100 file_list_spec='${wl}-f,'
16102 if test "$GCC" = yes; then
16103 case $host_os in aix4.[012]|aix4.[012].*)
16104 # We only want to do this on AIX 4.2 and lower, the check
16105 # below for broken collect2 doesn't work under 4.3+
16106 collect2name=`${CC} -print-prog-name=collect2`
16107 if test -f "$collect2name" &&
16108 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16109 then
16110 # We have reworked collect2
16112 else
16113 # We have old collect2
16114 hardcode_direct=unsupported
16115 # It fails to find uninstalled libraries when the uninstalled
16116 # path is not listed in the libpath. Setting hardcode_minus_L
16117 # to unsupported forces relinking
16118 hardcode_minus_L=yes
16119 hardcode_libdir_flag_spec='-L$libdir'
16120 hardcode_libdir_separator=
16123 esac
16124 shared_flag='-shared'
16125 if test "$aix_use_runtimelinking" = yes; then
16126 shared_flag="$shared_flag "'${wl}-G'
16128 else
16129 # not using gcc
16130 if test "$host_cpu" = ia64; then
16131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16132 # chokes on -Wl,-G. The following line is correct:
16133 shared_flag='-G'
16134 else
16135 if test "$aix_use_runtimelinking" = yes; then
16136 shared_flag='${wl}-G'
16137 else
16138 shared_flag='${wl}-bM:SRE'
16143 export_dynamic_flag_spec='${wl}-bexpall'
16144 # It seems that -bexpall does not export symbols beginning with
16145 # underscore (_), so it is better to generate a list of symbols to export.
16146 always_export_symbols=yes
16147 if test "$aix_use_runtimelinking" = yes; then
16148 # Warning - without using the other runtime loading flags (-brtl),
16149 # -berok will link without error, but may produce a broken library.
16150 allow_undefined_flag='-berok'
16151 # Determine the default libpath from the value encoded in an
16152 # empty executable.
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16157 main ()
16161 return 0;
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"; then :
16166 lt_aix_libpath_sed='
16167 /Import File Strings/,/^$/ {
16168 /^0/ {
16169 s/^0 *\(.*\)$/\1/
16173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16174 # Check for a 64-bit object if we didn't find anything.
16175 if test -z "$aix_libpath"; then
16176 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16179 rm -f core conftest.err conftest.$ac_objext \
16180 conftest$ac_exeext conftest.$ac_ext
16181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16183 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16184 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"
16185 else
16186 if test "$host_cpu" = ia64; then
16187 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16188 allow_undefined_flag="-z nodefs"
16189 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"
16190 else
16191 # Determine the default libpath from the value encoded in an
16192 # empty executable.
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16197 main ()
16201 return 0;
16203 _ACEOF
16204 if ac_fn_c_try_link "$LINENO"; then :
16206 lt_aix_libpath_sed='
16207 /Import File Strings/,/^$/ {
16208 /^0/ {
16209 s/^0 *\(.*\)$/\1/
16213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16214 # Check for a 64-bit object if we didn't find anything.
16215 if test -z "$aix_libpath"; then
16216 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16223 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16224 # Warning - without using the other run time loading flags,
16225 # -berok will link without error, but may produce a broken library.
16226 no_undefined_flag=' ${wl}-bernotok'
16227 allow_undefined_flag=' ${wl}-berok'
16228 if test "$with_gnu_ld" = yes; then
16229 # We only use this code for GNU lds that support --whole-archive.
16230 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16231 else
16232 # Exported symbols can be pulled into shared objects from archives
16233 whole_archive_flag_spec='$convenience'
16235 archive_cmds_need_lc=yes
16236 # This is similar to how AIX traditionally builds its shared libraries.
16237 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'
16242 amigaos*)
16243 case $host_cpu in
16244 powerpc)
16245 # see comment about AmigaOS4 .so support
16246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247 archive_expsym_cmds=''
16249 m68k)
16250 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)'
16251 hardcode_libdir_flag_spec='-L$libdir'
16252 hardcode_minus_L=yes
16254 esac
16257 bsdi[45]*)
16258 export_dynamic_flag_spec=-rdynamic
16261 cygwin* | mingw* | pw32* | cegcc*)
16262 # When not using gcc, we currently assume that we are using
16263 # Microsoft Visual C++.
16264 # hardcode_libdir_flag_spec is actually meaningless, as there is
16265 # no search path for DLLs.
16266 hardcode_libdir_flag_spec=' '
16267 allow_undefined_flag=unsupported
16268 # Tell ltmain to make .lib files, not .a files.
16269 libext=lib
16270 # Tell ltmain to make .dll files, not .so files.
16271 shrext_cmds=".dll"
16272 # FIXME: Setting linknames here is a bad hack.
16273 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16274 # The linker will automatically build a .lib file if we build a DLL.
16275 old_archive_from_new_cmds='true'
16276 # FIXME: Should let the user specify the lib program.
16277 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16278 fix_srcfile_path='`cygpath -w "$srcfile"`'
16279 enable_shared_with_static_runtimes=yes
16282 darwin* | rhapsody*)
16285 archive_cmds_need_lc=no
16286 hardcode_direct=no
16287 hardcode_automatic=yes
16288 hardcode_shlibpath_var=unsupported
16289 if test "$lt_cv_ld_force_load" = "yes"; then
16290 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\"`'
16291 else
16292 whole_archive_flag_spec=''
16294 link_all_deplibs=yes
16295 allow_undefined_flag="$_lt_dar_allow_undefined"
16296 case $cc_basename in
16297 ifort*) _lt_dar_can_shared=yes ;;
16298 *) _lt_dar_can_shared=$GCC ;;
16299 esac
16300 if test "$_lt_dar_can_shared" = "yes"; then
16301 output_verbose_link_cmd=func_echo_all
16302 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16303 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16304 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}"
16305 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}"
16307 else
16308 ld_shlibs=no
16313 dgux*)
16314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_libdir_flag_spec='-L$libdir'
16316 hardcode_shlibpath_var=no
16319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16320 # support. Future versions do this automatically, but an explicit c++rt0.o
16321 # does not break anything, and helps significantly (at the cost of a little
16322 # extra space).
16323 freebsd2.2*)
16324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16325 hardcode_libdir_flag_spec='-R$libdir'
16326 hardcode_direct=yes
16327 hardcode_shlibpath_var=no
16330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16331 freebsd2.*)
16332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_direct=yes
16334 hardcode_minus_L=yes
16335 hardcode_shlibpath_var=no
16338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16339 freebsd* | dragonfly*)
16340 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16341 hardcode_libdir_flag_spec='-R$libdir'
16342 hardcode_direct=yes
16343 hardcode_shlibpath_var=no
16346 hpux9*)
16347 if test "$GCC" = yes; then
16348 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'
16349 else
16350 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'
16352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16353 hardcode_libdir_separator=:
16354 hardcode_direct=yes
16356 # hardcode_minus_L: Not really in the search PATH,
16357 # but as the default location of the library.
16358 hardcode_minus_L=yes
16359 export_dynamic_flag_spec='${wl}-E'
16362 hpux10*)
16363 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16365 else
16366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16368 if test "$with_gnu_ld" = no; then
16369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16370 hardcode_libdir_flag_spec_ld='+b $libdir'
16371 hardcode_libdir_separator=:
16372 hardcode_direct=yes
16373 hardcode_direct_absolute=yes
16374 export_dynamic_flag_spec='${wl}-E'
16375 # hardcode_minus_L: Not really in the search PATH,
16376 # but as the default location of the library.
16377 hardcode_minus_L=yes
16381 hpux11*)
16382 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16383 case $host_cpu in
16384 hppa*64*)
16385 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16387 ia64*)
16388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16393 esac
16394 else
16395 case $host_cpu in
16396 hppa*64*)
16397 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16399 ia64*)
16400 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16404 # Older versions of the 11.00 compiler do not understand -b yet
16405 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16407 $as_echo_n "checking if $CC understands -b... " >&6; }
16408 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 lt_cv_prog_compiler__b=no
16412 save_LDFLAGS="$LDFLAGS"
16413 LDFLAGS="$LDFLAGS -b"
16414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16416 # The linker can only warn and ignore the option if not recognized
16417 # So say no if there are warnings
16418 if test -s conftest.err; then
16419 # Append any errors to the config.log.
16420 cat conftest.err 1>&5
16421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16423 if diff conftest.exp conftest.er2 >/dev/null; then
16424 lt_cv_prog_compiler__b=yes
16426 else
16427 lt_cv_prog_compiler__b=yes
16430 $RM -r conftest*
16431 LDFLAGS="$save_LDFLAGS"
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16435 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16437 if test x"$lt_cv_prog_compiler__b" = xyes; then
16438 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16439 else
16440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16444 esac
16446 if test "$with_gnu_ld" = no; then
16447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16448 hardcode_libdir_separator=:
16450 case $host_cpu in
16451 hppa*64*|ia64*)
16452 hardcode_direct=no
16453 hardcode_shlibpath_var=no
16456 hardcode_direct=yes
16457 hardcode_direct_absolute=yes
16458 export_dynamic_flag_spec='${wl}-E'
16460 # hardcode_minus_L: Not really in the search PATH,
16461 # but as the default location of the library.
16462 hardcode_minus_L=yes
16464 esac
16468 irix5* | irix6* | nonstopux*)
16469 if test "$GCC" = yes; then
16470 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'
16471 # Try to use the -exported_symbol ld option, if it does not
16472 # work, assume that -exports_file does not work either and
16473 # implicitly export all symbols.
16474 save_LDFLAGS="$LDFLAGS"
16475 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478 int foo(void) {}
16479 _ACEOF
16480 if ac_fn_c_try_link "$LINENO"; then :
16481 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'
16484 rm -f core conftest.err conftest.$ac_objext \
16485 conftest$ac_exeext conftest.$ac_ext
16486 LDFLAGS="$save_LDFLAGS"
16487 else
16488 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'
16489 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'
16491 archive_cmds_need_lc='no'
16492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16493 hardcode_libdir_separator=:
16494 inherit_rpath=yes
16495 link_all_deplibs=yes
16498 netbsd*)
16499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16501 else
16502 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16504 hardcode_libdir_flag_spec='-R$libdir'
16505 hardcode_direct=yes
16506 hardcode_shlibpath_var=no
16509 newsos6)
16510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16511 hardcode_direct=yes
16512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16513 hardcode_libdir_separator=:
16514 hardcode_shlibpath_var=no
16517 *nto* | *qnx*)
16520 openbsd*)
16521 if test -f /usr/libexec/ld.so; then
16522 hardcode_direct=yes
16523 hardcode_shlibpath_var=no
16524 hardcode_direct_absolute=yes
16525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16527 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16529 export_dynamic_flag_spec='${wl}-E'
16530 else
16531 case $host_os in
16532 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16534 hardcode_libdir_flag_spec='-R$libdir'
16537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16540 esac
16542 else
16543 ld_shlibs=no
16547 os2*)
16548 hardcode_libdir_flag_spec='-L$libdir'
16549 hardcode_minus_L=yes
16550 allow_undefined_flag=unsupported
16551 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'
16552 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16555 osf3*)
16556 if test "$GCC" = yes; then
16557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16558 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'
16559 else
16560 allow_undefined_flag=' -expect_unresolved \*'
16561 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'
16563 archive_cmds_need_lc='no'
16564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16565 hardcode_libdir_separator=:
16568 osf4* | osf5*) # as osf3* with the addition of -msym flag
16569 if test "$GCC" = yes; then
16570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16571 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'
16572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16573 else
16574 allow_undefined_flag=' -expect_unresolved \*'
16575 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'
16576 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~
16577 $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'
16579 # Both c and cxx compiler support -rpath directly
16580 hardcode_libdir_flag_spec='-rpath $libdir'
16582 archive_cmds_need_lc='no'
16583 hardcode_libdir_separator=:
16586 solaris*)
16587 no_undefined_flag=' -z defs'
16588 if test "$GCC" = yes; then
16589 wlarc='${wl}'
16590 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16592 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16593 else
16594 case `$CC -V 2>&1` in
16595 *"Compilers 5.0"*)
16596 wlarc=''
16597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16602 wlarc='${wl}'
16603 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16605 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16607 esac
16609 hardcode_libdir_flag_spec='-R$libdir'
16610 hardcode_shlibpath_var=no
16611 case $host_os in
16612 solaris2.[0-5] | solaris2.[0-5].*) ;;
16614 # The compiler driver will combine and reorder linker options,
16615 # but understands `-z linker_flag'. GCC discards it without `$wl',
16616 # but is careful enough not to reorder.
16617 # Supported since Solaris 2.6 (maybe 2.5.1?)
16618 if test "$GCC" = yes; then
16619 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16620 else
16621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16624 esac
16625 link_all_deplibs=yes
16628 sunos4*)
16629 if test "x$host_vendor" = xsequent; then
16630 # Use $CC to link under sequent, because it throws in some extra .o
16631 # files that make .init and .fini sections work.
16632 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16633 else
16634 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_libdir_flag_spec='-L$libdir'
16637 hardcode_direct=yes
16638 hardcode_minus_L=yes
16639 hardcode_shlibpath_var=no
16642 sysv4)
16643 case $host_vendor in
16644 sni)
16645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_direct=yes # is this really true???
16648 siemens)
16649 ## LD is ld it makes a PLAMLIB
16650 ## CC just makes a GrossModule.
16651 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16652 reload_cmds='$CC -r -o $output$reload_objs'
16653 hardcode_direct=no
16655 motorola)
16656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16659 esac
16660 runpath_var='LD_RUN_PATH'
16661 hardcode_shlibpath_var=no
16664 sysv4.3*)
16665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16666 hardcode_shlibpath_var=no
16667 export_dynamic_flag_spec='-Bexport'
16670 sysv4*MP*)
16671 if test -d /usr/nec; then
16672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_shlibpath_var=no
16674 runpath_var=LD_RUN_PATH
16675 hardcode_runpath_var=yes
16676 ld_shlibs=yes
16680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16681 no_undefined_flag='${wl}-z,text'
16682 archive_cmds_need_lc=no
16683 hardcode_shlibpath_var=no
16684 runpath_var='LD_RUN_PATH'
16686 if test "$GCC" = yes; then
16687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 else
16690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 sysv5* | sco3.2v5* | sco5v6*)
16696 # Note: We can NOT use -z defs as we might desire, because we do not
16697 # link with -lc, and that would cause any symbols used from libc to
16698 # always be unresolved, which means just about no library would
16699 # ever link correctly. If we're not using GNU ld we use -z text
16700 # though, which does catch some bad symbols but isn't as heavy-handed
16701 # as -z defs.
16702 no_undefined_flag='${wl}-z,text'
16703 allow_undefined_flag='${wl}-z,nodefs'
16704 archive_cmds_need_lc=no
16705 hardcode_shlibpath_var=no
16706 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16707 hardcode_libdir_separator=':'
16708 link_all_deplibs=yes
16709 export_dynamic_flag_spec='${wl}-Bexport'
16710 runpath_var='LD_RUN_PATH'
16712 if test "$GCC" = yes; then
16713 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16715 else
16716 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 uts4*)
16722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723 hardcode_libdir_flag_spec='-L$libdir'
16724 hardcode_shlibpath_var=no
16728 ld_shlibs=no
16730 esac
16732 if test x$host_vendor = xsni; then
16733 case $host in
16734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16735 export_dynamic_flag_spec='${wl}-Blargedynsym'
16737 esac
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16742 $as_echo "$ld_shlibs" >&6; }
16743 test "$ld_shlibs" = no && can_build_shared=no
16745 with_gnu_ld=$with_gnu_ld
16762 # Do we need to explicitly link libc?
16764 case "x$archive_cmds_need_lc" in
16765 x|xyes)
16766 # Assume -lc should be added
16767 archive_cmds_need_lc=yes
16769 if test "$enable_shared" = yes && test "$GCC" = yes; then
16770 case $archive_cmds in
16771 *'~'*)
16772 # FIXME: we may have to deal with multi-command sequences.
16774 '$CC '*)
16775 # Test whether the compiler implicitly links with -lc since on some
16776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16777 # to ld, don't add -lc before -lgcc.
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16780 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 $RM conftest*
16784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16787 (eval $ac_compile) 2>&5
16788 ac_status=$?
16789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16790 test $ac_status = 0; } 2>conftest.err; then
16791 soname=conftest
16792 lib=conftest
16793 libobjs=conftest.$ac_objext
16794 deplibs=
16795 wl=$lt_prog_compiler_wl
16796 pic_flag=$lt_prog_compiler_pic
16797 compiler_flags=-v
16798 linker_flags=-v
16799 verstring=
16800 output_objdir=.
16801 libname=conftest
16802 lt_save_allow_undefined_flag=$allow_undefined_flag
16803 allow_undefined_flag=
16804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16805 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16806 ac_status=$?
16807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16808 test $ac_status = 0; }
16809 then
16810 lt_cv_archive_cmds_need_lc=no
16811 else
16812 lt_cv_archive_cmds_need_lc=yes
16814 allow_undefined_flag=$lt_save_allow_undefined_flag
16815 else
16816 cat conftest.err 1>&5
16818 $RM conftest*
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16823 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16825 esac
16828 esac
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16987 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16989 if test "$GCC" = yes; then
16990 case $host_os in
16991 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16992 *) lt_awk_arg="/^libraries:/" ;;
16993 esac
16994 case $host_os in
16995 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16996 *) lt_sed_strip_eq="s,=/,/,g" ;;
16997 esac
16998 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16999 case $lt_search_path_spec in
17000 *\;*)
17001 # if the path contains ";" then we assume it to be the separator
17002 # otherwise default to the standard path separator (i.e. ":") - it is
17003 # assumed that no part of a normal pathname contains ";" but that should
17004 # okay in the real world where ";" in dirpaths is itself problematic.
17005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17010 esac
17011 # Ok, now we have the path, separated by spaces, we can step through it
17012 # and add multilib dir if necessary.
17013 lt_tmp_lt_search_path_spec=
17014 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17015 for lt_sys_path in $lt_search_path_spec; do
17016 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17018 else
17019 test -d "$lt_sys_path" && \
17020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17022 done
17023 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17024 BEGIN {RS=" "; FS="/|\n";} {
17025 lt_foo="";
17026 lt_count=0;
17027 for (lt_i = NF; lt_i > 0; lt_i--) {
17028 if ($lt_i != "" && $lt_i != ".") {
17029 if ($lt_i == "..") {
17030 lt_count++;
17031 } else {
17032 if (lt_count == 0) {
17033 lt_foo="/" $lt_i lt_foo;
17034 } else {
17035 lt_count--;
17040 if (lt_foo != "") { lt_freq[lt_foo]++; }
17041 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17043 # AWK program above erroneously prepends '/' to C:/dos/paths
17044 # for these hosts.
17045 case $host_os in
17046 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17047 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17048 esac
17049 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17050 else
17051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17053 library_names_spec=
17054 libname_spec='lib$name'
17055 soname_spec=
17056 shrext_cmds=".so"
17057 postinstall_cmds=
17058 postuninstall_cmds=
17059 finish_cmds=
17060 finish_eval=
17061 shlibpath_var=
17062 shlibpath_overrides_runpath=unknown
17063 version_type=none
17064 dynamic_linker="$host_os ld.so"
17065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17066 need_lib_prefix=unknown
17067 hardcode_into_libs=no
17069 # when you set need_version to no, make sure it does not cause -set_version
17070 # flags to be left without arguments
17071 need_version=unknown
17073 case $host_os in
17074 aix3*)
17075 version_type=linux
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17077 shlibpath_var=LIBPATH
17079 # AIX 3 has no versioning support, so we append a major version to the name.
17080 soname_spec='${libname}${release}${shared_ext}$major'
17083 aix[4-9]*)
17084 version_type=linux
17085 need_lib_prefix=no
17086 need_version=no
17087 hardcode_into_libs=yes
17088 if test "$host_cpu" = ia64; then
17089 # AIX 5 supports IA64
17090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 else
17093 # With GCC up to 2.95.x, collect2 would create an import file
17094 # for dependence libraries. The import file would start with
17095 # the line `#! .'. This would cause the generated library to
17096 # depend on `.', always an invalid library. This was fixed in
17097 # development snapshots of GCC prior to 3.0.
17098 case $host_os in
17099 aix4 | aix4.[01] | aix4.[01].*)
17100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17101 echo ' yes '
17102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17104 else
17105 can_build_shared=no
17108 esac
17109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17110 # soname into executable. Probably we can add versioning support to
17111 # collect2, so additional links can be useful in future.
17112 if test "$aix_use_runtimelinking" = yes; then
17113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17114 # instead of lib<name>.a to let people know that these are not
17115 # typical AIX shared libraries.
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 else
17118 # We preserve .a as extension for shared libraries through AIX4.2
17119 # and later when we are not doing run time linking.
17120 library_names_spec='${libname}${release}.a $libname.a'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17123 shlibpath_var=LIBPATH
17127 amigaos*)
17128 case $host_cpu in
17129 powerpc)
17130 # Since July 2007 AmigaOS4 officially supports .so libraries.
17131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 m68k)
17135 library_names_spec='$libname.ixlibrary $libname.a'
17136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17137 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'
17139 esac
17142 beos*)
17143 library_names_spec='${libname}${shared_ext}'
17144 dynamic_linker="$host_os ld.so"
17145 shlibpath_var=LIBRARY_PATH
17148 bsdi[45]*)
17149 version_type=linux
17150 need_version=no
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17157 # the default ld.so.conf also contains /usr/contrib/lib and
17158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17159 # libtool to hard-code these into programs
17162 cygwin* | mingw* | pw32* | cegcc*)
17163 version_type=windows
17164 shrext_cmds=".dll"
17165 need_version=no
17166 need_lib_prefix=no
17168 case $GCC,$host_os in
17169 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17170 library_names_spec='$libname.dll.a'
17171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17172 postinstall_cmds='base_file=`basename \${file}`~
17173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17174 dldir=$destdir/`dirname \$dlpath`~
17175 test -d \$dldir || mkdir -p \$dldir~
17176 $install_prog $dir/$dlname \$dldir/$dlname~
17177 chmod a+x \$dldir/$dlname~
17178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17182 dlpath=$dir/\$dldll~
17183 $RM \$dlpath'
17184 shlibpath_overrides_runpath=yes
17186 case $host_os in
17187 cygwin*)
17188 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17189 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17193 mingw* | cegcc*)
17194 # MinGW DLLs use traditional 'lib' prefix
17195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17197 pw32*)
17198 # pw32 DLLs use 'pw' prefix rather than 'lib'
17199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17201 esac
17205 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17207 esac
17208 dynamic_linker='Win32 ld.exe'
17209 # FIXME: first we should search . and the directory the executable is in
17210 shlibpath_var=PATH
17213 darwin* | rhapsody*)
17214 dynamic_linker="$host_os dyld"
17215 version_type=darwin
17216 need_lib_prefix=no
17217 need_version=no
17218 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17219 soname_spec='${libname}${release}${major}$shared_ext'
17220 shlibpath_overrides_runpath=yes
17221 shlibpath_var=DYLD_LIBRARY_PATH
17222 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17224 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17228 dgux*)
17229 version_type=linux
17230 need_lib_prefix=no
17231 need_version=no
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 shlibpath_var=LD_LIBRARY_PATH
17237 freebsd* | dragonfly*)
17238 # DragonFly does not have aout. When/if they implement a new
17239 # versioning mechanism, adjust this.
17240 if test -x /usr/bin/objformat; then
17241 objformat=`/usr/bin/objformat`
17242 else
17243 case $host_os in
17244 freebsd[23].*) objformat=aout ;;
17245 *) objformat=elf ;;
17246 esac
17248 version_type=freebsd-$objformat
17249 case $version_type in
17250 freebsd-elf*)
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17252 need_version=no
17253 need_lib_prefix=no
17255 freebsd-*)
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17257 need_version=yes
17259 esac
17260 shlibpath_var=LD_LIBRARY_PATH
17261 case $host_os in
17262 freebsd2.*)
17263 shlibpath_overrides_runpath=yes
17265 freebsd3.[01]* | freebsdelf3.[01]*)
17266 shlibpath_overrides_runpath=yes
17267 hardcode_into_libs=yes
17269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17271 shlibpath_overrides_runpath=no
17272 hardcode_into_libs=yes
17274 *) # from 4.6 on, and DragonFly
17275 shlibpath_overrides_runpath=yes
17276 hardcode_into_libs=yes
17278 esac
17281 gnu*)
17282 version_type=linux
17283 need_lib_prefix=no
17284 need_version=no
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 hardcode_into_libs=yes
17291 haiku*)
17292 version_type=linux
17293 need_lib_prefix=no
17294 need_version=no
17295 dynamic_linker="$host_os runtime_loader"
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 shlibpath_var=LIBRARY_PATH
17299 shlibpath_overrides_runpath=yes
17300 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17301 hardcode_into_libs=yes
17304 hpux9* | hpux10* | hpux11*)
17305 # Give a soname corresponding to the major version so that dld.sl refuses to
17306 # link against other versions.
17307 version_type=sunos
17308 need_lib_prefix=no
17309 need_version=no
17310 case $host_cpu in
17311 ia64*)
17312 shrext_cmds='.so'
17313 hardcode_into_libs=yes
17314 dynamic_linker="$host_os dld.so"
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 if test "X$HPUX_IA64_MODE" = X32; then
17320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17321 else
17322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17326 hppa*64*)
17327 shrext_cmds='.sl'
17328 hardcode_into_libs=yes
17329 dynamic_linker="$host_os dld.sl"
17330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17338 shrext_cmds='.sl'
17339 dynamic_linker="$host_os dld.sl"
17340 shlibpath_var=SHLIB_PATH
17341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17345 esac
17346 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17347 postinstall_cmds='chmod 555 $lib'
17348 # or fails outright, so override atomically:
17349 install_override_mode=555
17352 interix[3-9]*)
17353 version_type=linux
17354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=no
17361 hardcode_into_libs=yes
17364 irix5* | irix6* | nonstopux*)
17365 case $host_os in
17366 nonstopux*) version_type=nonstopux ;;
17368 if test "$lt_cv_prog_gnu_ld" = yes; then
17369 version_type=linux
17370 else
17371 version_type=irix
17372 fi ;;
17373 esac
17374 need_lib_prefix=no
17375 need_version=no
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17378 case $host_os in
17379 irix5* | nonstopux*)
17380 libsuff= shlibsuff=
17383 case $LD in # libtool.m4 will add one of these switches to LD
17384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17385 libsuff= shlibsuff= libmagic=32-bit;;
17386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17387 libsuff=32 shlibsuff=N32 libmagic=N32;;
17388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17390 *) libsuff= shlibsuff= libmagic=never-match;;
17391 esac
17393 esac
17394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17395 shlibpath_overrides_runpath=no
17396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17398 hardcode_into_libs=yes
17401 # No shared lib support for Linux oldld, aout, or coff.
17402 linux*oldld* | linux*aout* | linux*coff*)
17403 dynamic_linker=no
17406 # This must be Linux ELF.
17407 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17408 version_type=linux
17409 need_lib_prefix=no
17410 need_version=no
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=no
17417 # Some binutils ld are patched to set DT_RUNPATH
17418 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 lt_cv_shlibpath_overrides_runpath=no
17422 save_LDFLAGS=$LDFLAGS
17423 save_libdir=$libdir
17424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17430 main ()
17434 return 0;
17436 _ACEOF
17437 if ac_fn_c_try_link "$LINENO"; then :
17438 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17439 lt_cv_shlibpath_overrides_runpath=yes
17442 rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LDFLAGS=$save_LDFLAGS
17445 libdir=$save_libdir
17449 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17451 # This implies no fast_install, which is unacceptable.
17452 # Some rework will be needed to allow for fast_install
17453 # before this can be enabled.
17454 hardcode_into_libs=yes
17456 # Append ld.so.conf contents to the search path
17457 if test -f /etc/ld.so.conf; then
17458 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' ' '`
17459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17462 # We used to test for /lib/ld.so.1 and disable shared libraries on
17463 # powerpc, because MkLinux only supported shared libraries with the
17464 # GNU dynamic linker. Since this was broken with cross compilers,
17465 # most powerpc-linux boxes support dynamic linking these days and
17466 # people can always --disable-shared, the test was removed, and we
17467 # assume the GNU/Linux dynamic linker is in use.
17468 dynamic_linker='GNU/Linux ld.so'
17471 netbsd*)
17472 version_type=sunos
17473 need_lib_prefix=no
17474 need_version=no
17475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17478 dynamic_linker='NetBSD (a.out) ld.so'
17479 else
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 dynamic_linker='NetBSD ld.elf_so'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=yes
17486 hardcode_into_libs=yes
17489 newsos6)
17490 version_type=linux
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 shlibpath_var=LD_LIBRARY_PATH
17493 shlibpath_overrides_runpath=yes
17496 *nto* | *qnx*)
17497 version_type=qnx
17498 need_lib_prefix=no
17499 need_version=no
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath=no
17504 hardcode_into_libs=yes
17505 dynamic_linker='ldqnx.so'
17508 openbsd*)
17509 version_type=sunos
17510 sys_lib_dlsearch_path_spec="/usr/lib"
17511 need_lib_prefix=no
17512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17513 case $host_os in
17514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17515 *) need_version=no ;;
17516 esac
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17521 case $host_os in
17522 openbsd2.[89] | openbsd2.[89].*)
17523 shlibpath_overrides_runpath=no
17526 shlibpath_overrides_runpath=yes
17528 esac
17529 else
17530 shlibpath_overrides_runpath=yes
17534 os2*)
17535 libname_spec='$name'
17536 shrext_cmds=".dll"
17537 need_lib_prefix=no
17538 library_names_spec='$libname${shared_ext} $libname.a'
17539 dynamic_linker='OS/2 ld.exe'
17540 shlibpath_var=LIBPATH
17543 osf3* | osf4* | osf5*)
17544 version_type=osf
17545 need_lib_prefix=no
17546 need_version=no
17547 soname_spec='${libname}${release}${shared_ext}$major'
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549 shlibpath_var=LD_LIBRARY_PATH
17550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17554 rdos*)
17555 dynamic_linker=no
17558 solaris*)
17559 version_type=linux
17560 need_lib_prefix=no
17561 need_version=no
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563 soname_spec='${libname}${release}${shared_ext}$major'
17564 shlibpath_var=LD_LIBRARY_PATH
17565 shlibpath_overrides_runpath=yes
17566 hardcode_into_libs=yes
17567 # ldd complains unless libraries are executable
17568 postinstall_cmds='chmod +x $lib'
17571 sunos4*)
17572 version_type=sunos
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17575 shlibpath_var=LD_LIBRARY_PATH
17576 shlibpath_overrides_runpath=yes
17577 if test "$with_gnu_ld" = yes; then
17578 need_lib_prefix=no
17580 need_version=yes
17583 sysv4 | sysv4.3*)
17584 version_type=linux
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 case $host_vendor in
17589 sni)
17590 shlibpath_overrides_runpath=no
17591 need_lib_prefix=no
17592 runpath_var=LD_RUN_PATH
17594 siemens)
17595 need_lib_prefix=no
17597 motorola)
17598 need_lib_prefix=no
17599 need_version=no
17600 shlibpath_overrides_runpath=no
17601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17603 esac
17606 sysv4*MP*)
17607 if test -d /usr/nec ;then
17608 version_type=linux
17609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17610 soname_spec='$libname${shared_ext}.$major'
17611 shlibpath_var=LD_LIBRARY_PATH
17615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17616 version_type=freebsd-elf
17617 need_lib_prefix=no
17618 need_version=no
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 shlibpath_overrides_runpath=yes
17623 hardcode_into_libs=yes
17624 if test "$with_gnu_ld" = yes; then
17625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17626 else
17627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17628 case $host_os in
17629 sco3.2v5*)
17630 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17632 esac
17634 sys_lib_dlsearch_path_spec='/usr/lib'
17637 tpf*)
17638 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17639 version_type=linux
17640 need_lib_prefix=no
17641 need_version=no
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 shlibpath_overrides_runpath=no
17645 hardcode_into_libs=yes
17648 uts4*)
17649 version_type=linux
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 shlibpath_var=LD_LIBRARY_PATH
17656 dynamic_linker=no
17658 esac
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17660 $as_echo "$dynamic_linker" >&6; }
17661 test "$dynamic_linker" = no && can_build_shared=no
17663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17664 if test "$GCC" = yes; then
17665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17668 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17669 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17671 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17672 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17767 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17768 hardcode_action=
17769 if test -n "$hardcode_libdir_flag_spec" ||
17770 test -n "$runpath_var" ||
17771 test "X$hardcode_automatic" = "Xyes" ; then
17773 # We can hardcode non-existent directories.
17774 if test "$hardcode_direct" != no &&
17775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17776 # have to relink, otherwise we might link with an installed library
17777 # when we should be linking with a yet-to-be-installed one
17778 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17779 test "$hardcode_minus_L" != no; then
17780 # Linking always hardcodes the temporary library directory.
17781 hardcode_action=relink
17782 else
17783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17784 hardcode_action=immediate
17786 else
17787 # We cannot hardcode anything, or else we can only hardcode existing
17788 # directories.
17789 hardcode_action=unsupported
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17792 $as_echo "$hardcode_action" >&6; }
17794 if test "$hardcode_action" = relink ||
17795 test "$inherit_rpath" = yes; then
17796 # Fast installation is not supported
17797 enable_fast_install=no
17798 elif test "$shlibpath_overrides_runpath" = yes ||
17799 test "$enable_shared" = no; then
17800 # Fast installation is not necessary
17801 enable_fast_install=needless
17809 if test "x$enable_dlopen" != xyes; then
17810 enable_dlopen=unknown
17811 enable_dlopen_self=unknown
17812 enable_dlopen_self_static=unknown
17813 else
17814 lt_cv_dlopen=no
17815 lt_cv_dlopen_libs=
17817 case $host_os in
17818 beos*)
17819 lt_cv_dlopen="load_add_on"
17820 lt_cv_dlopen_libs=
17821 lt_cv_dlopen_self=yes
17824 mingw* | pw32* | cegcc*)
17825 lt_cv_dlopen="LoadLibrary"
17826 lt_cv_dlopen_libs=
17829 cygwin*)
17830 lt_cv_dlopen="dlopen"
17831 lt_cv_dlopen_libs=
17834 darwin*)
17835 # if libdl is installed we need to link against it
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17837 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841 ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-ldl $LIBS"
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char dlopen ();
17854 main ()
17856 return dlopen ();
17858 return 0;
17860 _ACEOF
17861 if ac_fn_c_try_link "$LINENO"; then :
17862 ac_cv_lib_dl_dlopen=yes
17863 else
17864 ac_cv_lib_dl_dlopen=no
17866 rm -f core conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17871 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17872 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17874 else
17876 lt_cv_dlopen="dyld"
17877 lt_cv_dlopen_libs=
17878 lt_cv_dlopen_self=yes
17885 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17886 if test "x$ac_cv_func_shl_load" = x""yes; then :
17887 lt_cv_dlopen="shl_load"
17888 else
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17890 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17891 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17893 else
17894 ac_check_lib_save_LIBS=$LIBS
17895 LIBS="-ldld $LIBS"
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17899 /* Override any GCC internal prototype to avoid an error.
17900 Use char because int might match the return type of a GCC
17901 builtin and then its argument prototype would still apply. */
17902 #ifdef __cplusplus
17903 extern "C"
17904 #endif
17905 char shl_load ();
17907 main ()
17909 return shl_load ();
17911 return 0;
17913 _ACEOF
17914 if ac_fn_c_try_link "$LINENO"; then :
17915 ac_cv_lib_dld_shl_load=yes
17916 else
17917 ac_cv_lib_dld_shl_load=no
17919 rm -f core conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17924 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17925 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17926 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17927 else
17928 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17929 if test "x$ac_cv_func_dlopen" = x""yes; then :
17930 lt_cv_dlopen="dlopen"
17931 else
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17933 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17934 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17936 else
17937 ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-ldl $LIBS"
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17945 #ifdef __cplusplus
17946 extern "C"
17947 #endif
17948 char dlopen ();
17950 main ()
17952 return dlopen ();
17954 return 0;
17956 _ACEOF
17957 if ac_fn_c_try_link "$LINENO"; then :
17958 ac_cv_lib_dl_dlopen=yes
17959 else
17960 ac_cv_lib_dl_dlopen=no
17962 rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17967 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17968 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17970 else
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17972 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17974 $as_echo_n "(cached) " >&6
17975 else
17976 ac_check_lib_save_LIBS=$LIBS
17977 LIBS="-lsvld $LIBS"
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char dlopen ();
17989 main ()
17991 return dlopen ();
17993 return 0;
17995 _ACEOF
17996 if ac_fn_c_try_link "$LINENO"; then :
17997 ac_cv_lib_svld_dlopen=yes
17998 else
17999 ac_cv_lib_svld_dlopen=no
18001 rm -f core conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
18003 LIBS=$ac_check_lib_save_LIBS
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18006 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18007 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18009 else
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18011 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 ac_check_lib_save_LIBS=$LIBS
18016 LIBS="-ldld $LIBS"
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18020 /* Override any GCC internal prototype to avoid an error.
18021 Use char because int might match the return type of a GCC
18022 builtin and then its argument prototype would still apply. */
18023 #ifdef __cplusplus
18024 extern "C"
18025 #endif
18026 char dld_link ();
18028 main ()
18030 return dld_link ();
18032 return 0;
18034 _ACEOF
18035 if ac_fn_c_try_link "$LINENO"; then :
18036 ac_cv_lib_dld_dld_link=yes
18037 else
18038 ac_cv_lib_dld_dld_link=no
18040 rm -f core conftest.err conftest.$ac_objext \
18041 conftest$ac_exeext conftest.$ac_ext
18042 LIBS=$ac_check_lib_save_LIBS
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18045 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18046 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18047 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18066 esac
18068 if test "x$lt_cv_dlopen" != xno; then
18069 enable_dlopen=yes
18070 else
18071 enable_dlopen=no
18074 case $lt_cv_dlopen in
18075 dlopen)
18076 save_CPPFLAGS="$CPPFLAGS"
18077 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18079 save_LDFLAGS="$LDFLAGS"
18080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18082 save_LIBS="$LIBS"
18083 LIBS="$lt_cv_dlopen_libs $LIBS"
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18086 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18087 if test "${lt_cv_dlopen_self+set}" = set; then :
18088 $as_echo_n "(cached) " >&6
18089 else
18090 if test "$cross_compiling" = yes; then :
18091 lt_cv_dlopen_self=cross
18092 else
18093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18094 lt_status=$lt_dlunknown
18095 cat > conftest.$ac_ext <<_LT_EOF
18096 #line 18096 "configure"
18097 #include "confdefs.h"
18099 #if HAVE_DLFCN_H
18100 #include <dlfcn.h>
18101 #endif
18103 #include <stdio.h>
18105 #ifdef RTLD_GLOBAL
18106 # define LT_DLGLOBAL RTLD_GLOBAL
18107 #else
18108 # ifdef DL_GLOBAL
18109 # define LT_DLGLOBAL DL_GLOBAL
18110 # else
18111 # define LT_DLGLOBAL 0
18112 # endif
18113 #endif
18115 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18116 find out it does not work in some platform. */
18117 #ifndef LT_DLLAZY_OR_NOW
18118 # ifdef RTLD_LAZY
18119 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18120 # else
18121 # ifdef DL_LAZY
18122 # define LT_DLLAZY_OR_NOW DL_LAZY
18123 # else
18124 # ifdef RTLD_NOW
18125 # define LT_DLLAZY_OR_NOW RTLD_NOW
18126 # else
18127 # ifdef DL_NOW
18128 # define LT_DLLAZY_OR_NOW DL_NOW
18129 # else
18130 # define LT_DLLAZY_OR_NOW 0
18131 # endif
18132 # endif
18133 # endif
18134 # endif
18135 #endif
18137 /* When -fvisbility=hidden is used, assume the code has been annotated
18138 correspondingly for the symbols needed. */
18139 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18140 void fnord () __attribute__((visibility("default")));
18141 #endif
18143 void fnord () { int i=42; }
18144 int main ()
18146 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18147 int status = $lt_dlunknown;
18149 if (self)
18151 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18152 else
18154 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18155 else puts (dlerror ());
18157 /* dlclose (self); */
18159 else
18160 puts (dlerror ());
18162 return status;
18164 _LT_EOF
18165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18166 (eval $ac_link) 2>&5
18167 ac_status=$?
18168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18169 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18170 (./conftest; exit; ) >&5 2>/dev/null
18171 lt_status=$?
18172 case x$lt_status in
18173 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18174 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18175 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18176 esac
18177 else :
18178 # compilation failed
18179 lt_cv_dlopen_self=no
18182 rm -fr conftest*
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18187 $as_echo "$lt_cv_dlopen_self" >&6; }
18189 if test "x$lt_cv_dlopen_self" = xyes; then
18190 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18192 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18193 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 if test "$cross_compiling" = yes; then :
18197 lt_cv_dlopen_self_static=cross
18198 else
18199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18200 lt_status=$lt_dlunknown
18201 cat > conftest.$ac_ext <<_LT_EOF
18202 #line 18202 "configure"
18203 #include "confdefs.h"
18205 #if HAVE_DLFCN_H
18206 #include <dlfcn.h>
18207 #endif
18209 #include <stdio.h>
18211 #ifdef RTLD_GLOBAL
18212 # define LT_DLGLOBAL RTLD_GLOBAL
18213 #else
18214 # ifdef DL_GLOBAL
18215 # define LT_DLGLOBAL DL_GLOBAL
18216 # else
18217 # define LT_DLGLOBAL 0
18218 # endif
18219 #endif
18221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18222 find out it does not work in some platform. */
18223 #ifndef LT_DLLAZY_OR_NOW
18224 # ifdef RTLD_LAZY
18225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18226 # else
18227 # ifdef DL_LAZY
18228 # define LT_DLLAZY_OR_NOW DL_LAZY
18229 # else
18230 # ifdef RTLD_NOW
18231 # define LT_DLLAZY_OR_NOW RTLD_NOW
18232 # else
18233 # ifdef DL_NOW
18234 # define LT_DLLAZY_OR_NOW DL_NOW
18235 # else
18236 # define LT_DLLAZY_OR_NOW 0
18237 # endif
18238 # endif
18239 # endif
18240 # endif
18241 #endif
18243 /* When -fvisbility=hidden is used, assume the code has been annotated
18244 correspondingly for the symbols needed. */
18245 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18246 void fnord () __attribute__((visibility("default")));
18247 #endif
18249 void fnord () { int i=42; }
18250 int main ()
18252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18253 int status = $lt_dlunknown;
18255 if (self)
18257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18258 else
18260 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18261 else puts (dlerror ());
18263 /* dlclose (self); */
18265 else
18266 puts (dlerror ());
18268 return status;
18270 _LT_EOF
18271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18272 (eval $ac_link) 2>&5
18273 ac_status=$?
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18276 (./conftest; exit; ) >&5 2>/dev/null
18277 lt_status=$?
18278 case x$lt_status in
18279 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18280 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18281 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18282 esac
18283 else :
18284 # compilation failed
18285 lt_cv_dlopen_self_static=no
18288 rm -fr conftest*
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18293 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18296 CPPFLAGS="$save_CPPFLAGS"
18297 LDFLAGS="$save_LDFLAGS"
18298 LIBS="$save_LIBS"
18300 esac
18302 case $lt_cv_dlopen_self in
18303 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18304 *) enable_dlopen_self=unknown ;;
18305 esac
18307 case $lt_cv_dlopen_self_static in
18308 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18309 *) enable_dlopen_self_static=unknown ;;
18310 esac
18329 striplib=
18330 old_striplib=
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18332 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18333 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18334 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18335 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18337 $as_echo "yes" >&6; }
18338 else
18339 # FIXME - insert some real tests, host_os isn't really good enough
18340 case $host_os in
18341 darwin*)
18342 if test -n "$STRIP" ; then
18343 striplib="$STRIP -x"
18344 old_striplib="$STRIP -S"
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18346 $as_echo "yes" >&6; }
18347 else
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18349 $as_echo "no" >&6; }
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18354 $as_echo "no" >&6; }
18356 esac
18370 # Report which library types will actually be built
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18372 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18374 $as_echo "$can_build_shared" >&6; }
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18377 $as_echo_n "checking whether to build shared libraries... " >&6; }
18378 test "$can_build_shared" = "no" && enable_shared=no
18380 # On AIX, shared libraries and static libraries use the same namespace, and
18381 # are all built from PIC.
18382 case $host_os in
18383 aix3*)
18384 test "$enable_shared" = yes && enable_static=no
18385 if test -n "$RANLIB"; then
18386 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18387 postinstall_cmds='$RANLIB $lib'
18391 aix[4-9]*)
18392 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18393 test "$enable_shared" = yes && enable_static=no
18396 esac
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18398 $as_echo "$enable_shared" >&6; }
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18401 $as_echo_n "checking whether to build static libraries... " >&6; }
18402 # Make sure either enable_shared or enable_static is yes.
18403 test "$enable_shared" = yes || enable_static=yes
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18405 $as_echo "$enable_static" >&6; }
18411 ac_ext=c
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18417 CC="$lt_save_CC"
18419 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18420 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18421 (test "X$CXX" != "Xg++"))) ; then
18422 ac_ext=cpp
18423 ac_cpp='$CXXCPP $CPPFLAGS'
18424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18428 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18429 if test -z "$CXXCPP"; then
18430 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18431 $as_echo_n "(cached) " >&6
18432 else
18433 # Double quotes because CXXCPP needs to be expanded
18434 for CXXCPP in "$CXX -E" "/lib/cpp"
18436 ac_preproc_ok=false
18437 for ac_cxx_preproc_warn_flag in '' yes
18439 # Use a header file that comes with gcc, so configuring glibc
18440 # with a fresh cross-compiler works.
18441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 # <limits.h> exists even on freestanding compilers.
18443 # On the NeXT, cc -E runs the code through the compiler's parser,
18444 # not just through cpp. "Syntax error" is here to catch this case.
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447 #ifdef __STDC__
18448 # include <limits.h>
18449 #else
18450 # include <assert.h>
18451 #endif
18452 Syntax error
18453 _ACEOF
18454 if ac_fn_cxx_try_cpp "$LINENO"; then :
18456 else
18457 # Broken: fails on valid input.
18458 continue
18460 rm -f conftest.err conftest.$ac_ext
18462 # OK, works on sane cases. Now check whether nonexistent headers
18463 # can be detected and how.
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 #include <ac_nonexistent.h>
18467 _ACEOF
18468 if ac_fn_cxx_try_cpp "$LINENO"; then :
18469 # Broken: success on invalid input.
18470 continue
18471 else
18472 # Passes both tests.
18473 ac_preproc_ok=:
18474 break
18476 rm -f conftest.err conftest.$ac_ext
18478 done
18479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18480 rm -f conftest.err conftest.$ac_ext
18481 if $ac_preproc_ok; then :
18482 break
18485 done
18486 ac_cv_prog_CXXCPP=$CXXCPP
18489 CXXCPP=$ac_cv_prog_CXXCPP
18490 else
18491 ac_cv_prog_CXXCPP=$CXXCPP
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18494 $as_echo "$CXXCPP" >&6; }
18495 ac_preproc_ok=false
18496 for ac_cxx_preproc_warn_flag in '' yes
18498 # Use a header file that comes with gcc, so configuring glibc
18499 # with a fresh cross-compiler works.
18500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501 # <limits.h> exists even on freestanding compilers.
18502 # On the NeXT, cc -E runs the code through the compiler's parser,
18503 # not just through cpp. "Syntax error" is here to catch this case.
18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h. */
18506 #ifdef __STDC__
18507 # include <limits.h>
18508 #else
18509 # include <assert.h>
18510 #endif
18511 Syntax error
18512 _ACEOF
18513 if ac_fn_cxx_try_cpp "$LINENO"; then :
18515 else
18516 # Broken: fails on valid input.
18517 continue
18519 rm -f conftest.err conftest.$ac_ext
18521 # OK, works on sane cases. Now check whether nonexistent headers
18522 # can be detected and how.
18523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h. */
18525 #include <ac_nonexistent.h>
18526 _ACEOF
18527 if ac_fn_cxx_try_cpp "$LINENO"; then :
18528 # Broken: success on invalid input.
18529 continue
18530 else
18531 # Passes both tests.
18532 ac_preproc_ok=:
18533 break
18535 rm -f conftest.err conftest.$ac_ext
18537 done
18538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18539 rm -f conftest.err conftest.$ac_ext
18540 if $ac_preproc_ok; then :
18542 else
18543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18545 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18546 See \`config.log' for more details." "$LINENO" 5; }
18549 ac_ext=c
18550 ac_cpp='$CPP $CPPFLAGS'
18551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555 else
18556 _lt_caught_CXX_error=yes
18559 ac_ext=cpp
18560 ac_cpp='$CXXCPP $CPPFLAGS'
18561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18565 archive_cmds_need_lc_CXX=no
18566 allow_undefined_flag_CXX=
18567 always_export_symbols_CXX=no
18568 archive_expsym_cmds_CXX=
18569 compiler_needs_object_CXX=no
18570 export_dynamic_flag_spec_CXX=
18571 hardcode_direct_CXX=no
18572 hardcode_direct_absolute_CXX=no
18573 hardcode_libdir_flag_spec_CXX=
18574 hardcode_libdir_flag_spec_ld_CXX=
18575 hardcode_libdir_separator_CXX=
18576 hardcode_minus_L_CXX=no
18577 hardcode_shlibpath_var_CXX=unsupported
18578 hardcode_automatic_CXX=no
18579 inherit_rpath_CXX=no
18580 module_cmds_CXX=
18581 module_expsym_cmds_CXX=
18582 link_all_deplibs_CXX=unknown
18583 old_archive_cmds_CXX=$old_archive_cmds
18584 reload_flag_CXX=$reload_flag
18585 reload_cmds_CXX=$reload_cmds
18586 no_undefined_flag_CXX=
18587 whole_archive_flag_spec_CXX=
18588 enable_shared_with_static_runtimes_CXX=no
18590 # Source file extension for C++ test sources.
18591 ac_ext=cpp
18593 # Object file extension for compiled C++ test sources.
18594 objext=o
18595 objext_CXX=$objext
18597 # No sense in running all these tests if we already determined that
18598 # the CXX compiler isn't working. Some variables (like enable_shared)
18599 # are currently assumed to apply to all compilers on this platform,
18600 # and will be corrupted by setting them based on a non-working compiler.
18601 if test "$_lt_caught_CXX_error" != yes; then
18602 # Code to be used in simple compile tests
18603 lt_simple_compile_test_code="int some_variable = 0;"
18605 # Code to be used in simple link tests
18606 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18608 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615 # If no C compiler was specified, use CC.
18616 LTCC=${LTCC-"$CC"}
18618 # If no C compiler flags were specified, use CFLAGS.
18619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18621 # Allow CC to be a program name with arguments.
18622 compiler=$CC
18625 # save warnings/boilerplate of simple test code
18626 ac_outfile=conftest.$ac_objext
18627 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18629 _lt_compiler_boilerplate=`cat conftest.err`
18630 $RM conftest*
18632 ac_outfile=conftest.$ac_objext
18633 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18635 _lt_linker_boilerplate=`cat conftest.err`
18636 $RM -r conftest*
18639 # Allow CC to be a program name with arguments.
18640 lt_save_CC=$CC
18641 lt_save_LD=$LD
18642 lt_save_GCC=$GCC
18643 GCC=$GXX
18644 lt_save_with_gnu_ld=$with_gnu_ld
18645 lt_save_path_LD=$lt_cv_path_LD
18646 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18647 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18648 else
18649 $as_unset lt_cv_prog_gnu_ld
18651 if test -n "${lt_cv_path_LDCXX+set}"; then
18652 lt_cv_path_LD=$lt_cv_path_LDCXX
18653 else
18654 $as_unset lt_cv_path_LD
18656 test -z "${LDCXX+set}" || LD=$LDCXX
18657 CC=${CXX-"c++"}
18658 compiler=$CC
18659 compiler_CXX=$CC
18660 for cc_temp in $compiler""; do
18661 case $cc_temp in
18662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18664 \-*) ;;
18665 *) break;;
18666 esac
18667 done
18668 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18671 if test -n "$compiler"; then
18672 # We don't want -fno-exception when compiling C++ code, so set the
18673 # no_builtin_flag separately
18674 if test "$GXX" = yes; then
18675 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18676 else
18677 lt_prog_compiler_no_builtin_flag_CXX=
18680 if test "$GXX" = yes; then
18681 # Set up default GNU C++ configuration
18685 # Check whether --with-gnu-ld was given.
18686 if test "${with_gnu_ld+set}" = set; then :
18687 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18688 else
18689 with_gnu_ld=no
18692 ac_prog=ld
18693 if test "$GCC" = yes; then
18694 # Check if gcc -print-prog-name=ld gives a path.
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18696 $as_echo_n "checking for ld used by $CC... " >&6; }
18697 case $host in
18698 *-*-mingw*)
18699 # gcc leaves a trailing carriage return which upsets mingw
18700 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18702 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18703 esac
18704 case $ac_prog in
18705 # Accept absolute paths.
18706 [\\/]* | ?:[\\/]*)
18707 re_direlt='/[^/][^/]*/\.\./'
18708 # Canonicalize the pathname of ld
18709 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18710 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18711 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18712 done
18713 test -z "$LD" && LD="$ac_prog"
18716 # If it fails, then pretend we aren't using GCC.
18717 ac_prog=ld
18720 # If it is relative, then search for the first ld in PATH.
18721 with_gnu_ld=unknown
18723 esac
18724 elif test "$with_gnu_ld" = yes; then
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18726 $as_echo_n "checking for GNU ld... " >&6; }
18727 else
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18729 $as_echo_n "checking for non-GNU ld... " >&6; }
18731 if test "${lt_cv_path_LD+set}" = set; then :
18732 $as_echo_n "(cached) " >&6
18733 else
18734 if test -z "$LD"; then
18735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18736 for ac_dir in $PATH; do
18737 IFS="$lt_save_ifs"
18738 test -z "$ac_dir" && ac_dir=.
18739 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18740 lt_cv_path_LD="$ac_dir/$ac_prog"
18741 # Check to see if the program is GNU ld. I'd rather use --version,
18742 # but apparently some variants of GNU ld only accept -v.
18743 # Break only if it was the GNU/non-GNU ld that we prefer.
18744 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18745 *GNU* | *'with BFD'*)
18746 test "$with_gnu_ld" != no && break
18749 test "$with_gnu_ld" != yes && break
18751 esac
18753 done
18754 IFS="$lt_save_ifs"
18755 else
18756 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18760 LD="$lt_cv_path_LD"
18761 if test -n "$LD"; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18763 $as_echo "$LD" >&6; }
18764 else
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 $as_echo "no" >&6; }
18768 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18770 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18771 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18772 $as_echo_n "(cached) " >&6
18773 else
18774 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18775 case `$LD -v 2>&1 </dev/null` in
18776 *GNU* | *'with BFD'*)
18777 lt_cv_prog_gnu_ld=yes
18780 lt_cv_prog_gnu_ld=no
18782 esac
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18785 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18786 with_gnu_ld=$lt_cv_prog_gnu_ld
18794 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18795 # archiving commands below assume that GNU ld is being used.
18796 if test "$with_gnu_ld" = yes; then
18797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18798 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'
18800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18803 # If archive_cmds runs LD, not CC, wlarc should be empty
18804 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18805 # investigate it a little bit more. (MM)
18806 wlarc='${wl}'
18808 # ancient GNU ld didn't support --whole-archive et. al.
18809 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18810 $GREP 'no-whole-archive' > /dev/null; then
18811 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18812 else
18813 whole_archive_flag_spec_CXX=
18815 else
18816 with_gnu_ld=no
18817 wlarc=
18819 # A generic and very simple default shared library creation
18820 # command for GNU C++ for the case where it uses the native
18821 # linker, instead of GNU ld. If possible, this setting should
18822 # overridden to take advantage of the native linker features on
18823 # the platform it is being used on.
18824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18827 # Commands to make compiler produce verbose output that lists
18828 # what "hidden" libraries, object files and flags are used when
18829 # linking a shared library.
18830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18832 else
18833 GXX=no
18834 with_gnu_ld=no
18835 wlarc=
18838 # PORTME: fill in a description of your system's C++ link characteristics
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18840 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18841 ld_shlibs_CXX=yes
18842 case $host_os in
18843 aix3*)
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18847 aix[4-9]*)
18848 if test "$host_cpu" = ia64; then
18849 # On IA64, the linker does run time linking by default, so we don't
18850 # have to do anything special.
18851 aix_use_runtimelinking=no
18852 exp_sym_flag='-Bexport'
18853 no_entry_flag=""
18854 else
18855 aix_use_runtimelinking=no
18857 # Test if we are trying to use run time linking or normal
18858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18859 # need to do runtime linking.
18860 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18861 for ld_flag in $LDFLAGS; do
18862 case $ld_flag in
18863 *-brtl*)
18864 aix_use_runtimelinking=yes
18865 break
18867 esac
18868 done
18870 esac
18872 exp_sym_flag='-bexport'
18873 no_entry_flag='-bnoentry'
18876 # When large executables or shared objects are built, AIX ld can
18877 # have problems creating the table of contents. If linking a library
18878 # or program results in "error TOC overflow" add -mminimal-toc to
18879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18882 archive_cmds_CXX=''
18883 hardcode_direct_CXX=yes
18884 hardcode_direct_absolute_CXX=yes
18885 hardcode_libdir_separator_CXX=':'
18886 link_all_deplibs_CXX=yes
18887 file_list_spec_CXX='${wl}-f,'
18889 if test "$GXX" = yes; then
18890 case $host_os in aix4.[012]|aix4.[012].*)
18891 # We only want to do this on AIX 4.2 and lower, the check
18892 # below for broken collect2 doesn't work under 4.3+
18893 collect2name=`${CC} -print-prog-name=collect2`
18894 if test -f "$collect2name" &&
18895 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18896 then
18897 # We have reworked collect2
18899 else
18900 # We have old collect2
18901 hardcode_direct_CXX=unsupported
18902 # It fails to find uninstalled libraries when the uninstalled
18903 # path is not listed in the libpath. Setting hardcode_minus_L
18904 # to unsupported forces relinking
18905 hardcode_minus_L_CXX=yes
18906 hardcode_libdir_flag_spec_CXX='-L$libdir'
18907 hardcode_libdir_separator_CXX=
18909 esac
18910 shared_flag='-shared'
18911 if test "$aix_use_runtimelinking" = yes; then
18912 shared_flag="$shared_flag "'${wl}-G'
18914 else
18915 # not using gcc
18916 if test "$host_cpu" = ia64; then
18917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18918 # chokes on -Wl,-G. The following line is correct:
18919 shared_flag='-G'
18920 else
18921 if test "$aix_use_runtimelinking" = yes; then
18922 shared_flag='${wl}-G'
18923 else
18924 shared_flag='${wl}-bM:SRE'
18929 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18930 # It seems that -bexpall does not export symbols beginning with
18931 # underscore (_), so it is better to generate a list of symbols to
18932 # export.
18933 always_export_symbols_CXX=yes
18934 if test "$aix_use_runtimelinking" = yes; then
18935 # Warning - without using the other runtime loading flags (-brtl),
18936 # -berok will link without error, but may produce a broken library.
18937 allow_undefined_flag_CXX='-berok'
18938 # Determine the default libpath from the value encoded in an empty
18939 # executable.
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18944 main ()
18948 return 0;
18950 _ACEOF
18951 if ac_fn_cxx_try_link "$LINENO"; then :
18953 lt_aix_libpath_sed='
18954 /Import File Strings/,/^$/ {
18955 /^0/ {
18956 s/^0 *\(.*\)$/\1/
18960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18961 # Check for a 64-bit object if we didn't find anything.
18962 if test -z "$aix_libpath"; then
18963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18966 rm -f core conftest.err conftest.$ac_objext \
18967 conftest$ac_exeext conftest.$ac_ext
18968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18970 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18972 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"
18973 else
18974 if test "$host_cpu" = ia64; then
18975 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18976 allow_undefined_flag_CXX="-z nodefs"
18977 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"
18978 else
18979 # Determine the default libpath from the value encoded in an
18980 # empty executable.
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18985 main ()
18989 return 0;
18991 _ACEOF
18992 if ac_fn_cxx_try_link "$LINENO"; then :
18994 lt_aix_libpath_sed='
18995 /Import File Strings/,/^$/ {
18996 /^0/ {
18997 s/^0 *\(.*\)$/\1/
19001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19002 # Check for a 64-bit object if we didn't find anything.
19003 if test -z "$aix_libpath"; then
19004 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19007 rm -f core conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext conftest.$ac_ext
19009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19012 # Warning - without using the other run time loading flags,
19013 # -berok will link without error, but may produce a broken library.
19014 no_undefined_flag_CXX=' ${wl}-bernotok'
19015 allow_undefined_flag_CXX=' ${wl}-berok'
19016 if test "$with_gnu_ld" = yes; then
19017 # We only use this code for GNU lds that support --whole-archive.
19018 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19019 else
19020 # Exported symbols can be pulled into shared objects from archives
19021 whole_archive_flag_spec_CXX='$convenience'
19023 archive_cmds_need_lc_CXX=yes
19024 # This is similar to how AIX traditionally builds its shared
19025 # libraries.
19026 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'
19031 beos*)
19032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19033 allow_undefined_flag_CXX=unsupported
19034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19035 # support --undefined. This deserves some investigation. FIXME
19036 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19037 else
19038 ld_shlibs_CXX=no
19042 chorus*)
19043 case $cc_basename in
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19048 esac
19051 cygwin* | mingw* | pw32* | cegcc*)
19052 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19053 # as there is no search path for DLLs.
19054 hardcode_libdir_flag_spec_CXX='-L$libdir'
19055 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19056 allow_undefined_flag_CXX=unsupported
19057 always_export_symbols_CXX=no
19058 enable_shared_with_static_runtimes_CXX=yes
19060 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19061 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'
19062 # If the export-symbols file already is a .def file (1st line
19063 # is EXPORTS), use it as is; otherwise, prepend...
19064 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19065 cp $export_symbols $output_objdir/$soname.def;
19066 else
19067 echo EXPORTS > $output_objdir/$soname.def;
19068 cat $export_symbols >> $output_objdir/$soname.def;
19070 $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'
19071 else
19072 ld_shlibs_CXX=no
19075 darwin* | rhapsody*)
19078 archive_cmds_need_lc_CXX=no
19079 hardcode_direct_CXX=no
19080 hardcode_automatic_CXX=yes
19081 hardcode_shlibpath_var_CXX=unsupported
19082 if test "$lt_cv_ld_force_load" = "yes"; then
19083 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\"`'
19084 else
19085 whole_archive_flag_spec_CXX=''
19087 link_all_deplibs_CXX=yes
19088 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19089 case $cc_basename in
19090 ifort*) _lt_dar_can_shared=yes ;;
19091 *) _lt_dar_can_shared=$GCC ;;
19092 esac
19093 if test "$_lt_dar_can_shared" = "yes"; then
19094 output_verbose_link_cmd=func_echo_all
19095 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}"
19096 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19097 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}"
19098 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}"
19099 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19100 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}"
19101 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}"
19104 else
19105 ld_shlibs_CXX=no
19110 dgux*)
19111 case $cc_basename in
19112 ec++*)
19113 # FIXME: insert proper C++ library support
19114 ld_shlibs_CXX=no
19116 ghcx*)
19117 # Green Hills C++ Compiler
19118 # FIXME: insert proper C++ library support
19119 ld_shlibs_CXX=no
19122 # FIXME: insert proper C++ library support
19123 ld_shlibs_CXX=no
19125 esac
19128 freebsd2.*)
19129 # C++ shared libraries reported to be fairly broken before
19130 # switch to ELF
19131 ld_shlibs_CXX=no
19134 freebsd-elf*)
19135 archive_cmds_need_lc_CXX=no
19138 freebsd* | dragonfly*)
19139 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19140 # conventions
19141 ld_shlibs_CXX=yes
19144 gnu*)
19147 haiku*)
19148 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149 link_all_deplibs_CXX=yes
19152 hpux9*)
19153 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19154 hardcode_libdir_separator_CXX=:
19155 export_dynamic_flag_spec_CXX='${wl}-E'
19156 hardcode_direct_CXX=yes
19157 hardcode_minus_L_CXX=yes # Not in the search PATH,
19158 # but as the default
19159 # location of the library.
19161 case $cc_basename in
19162 CC*)
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19166 aCC*)
19167 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'
19168 # Commands to make compiler produce verbose output that lists
19169 # what "hidden" libraries, object files and flags are used when
19170 # linking a shared library.
19172 # There doesn't appear to be a way to prevent this compiler from
19173 # explicitly linking system object files so we need to strip them
19174 # from the output so that they don't get included in the library
19175 # dependencies.
19176 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"'
19179 if test "$GXX" = yes; then
19180 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'
19181 else
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19186 esac
19189 hpux10*|hpux11*)
19190 if test $with_gnu_ld = no; then
19191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19192 hardcode_libdir_separator_CXX=:
19194 case $host_cpu in
19195 hppa*64*|ia64*)
19198 export_dynamic_flag_spec_CXX='${wl}-E'
19200 esac
19202 case $host_cpu in
19203 hppa*64*|ia64*)
19204 hardcode_direct_CXX=no
19205 hardcode_shlibpath_var_CXX=no
19208 hardcode_direct_CXX=yes
19209 hardcode_direct_absolute_CXX=yes
19210 hardcode_minus_L_CXX=yes # Not in the search PATH,
19211 # but as the default
19212 # location of the library.
19214 esac
19216 case $cc_basename in
19217 CC*)
19218 # FIXME: insert proper C++ library support
19219 ld_shlibs_CXX=no
19221 aCC*)
19222 case $host_cpu in
19223 hppa*64*)
19224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19226 ia64*)
19227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19232 esac
19233 # Commands to make compiler produce verbose output that lists
19234 # what "hidden" libraries, object files and flags are used when
19235 # linking a shared library.
19237 # There doesn't appear to be a way to prevent this compiler from
19238 # explicitly linking system object files so we need to strip them
19239 # from the output so that they don't get included in the library
19240 # dependencies.
19241 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"'
19244 if test "$GXX" = yes; then
19245 if test $with_gnu_ld = no; then
19246 case $host_cpu in
19247 hppa*64*)
19248 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19250 ia64*)
19251 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19254 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'
19256 esac
19258 else
19259 # FIXME: insert proper C++ library support
19260 ld_shlibs_CXX=no
19263 esac
19266 interix[3-9]*)
19267 hardcode_direct_CXX=no
19268 hardcode_shlibpath_var_CXX=no
19269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19270 export_dynamic_flag_spec_CXX='${wl}-E'
19271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19272 # Instead, shared libraries are loaded at an image base (0x10000000 by
19273 # default) and relocated if they conflict, which is a slow very memory
19274 # consuming and fragmenting process. To avoid this, we pick a random,
19275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19277 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'
19278 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'
19280 irix5* | irix6*)
19281 case $cc_basename in
19282 CC*)
19283 # SGI C++
19284 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'
19286 # Archives containing C++ object files must be created using
19287 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19288 # necessary to make sure instantiated templates are included
19289 # in the archive.
19290 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19293 if test "$GXX" = yes; then
19294 if test "$with_gnu_ld" = no; then
19295 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'
19296 else
19297 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'
19300 link_all_deplibs_CXX=yes
19302 esac
19303 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19304 hardcode_libdir_separator_CXX=:
19305 inherit_rpath_CXX=yes
19308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19309 case $cc_basename in
19310 KCC*)
19311 # Kuck and Associates, Inc. (KAI) C++ Compiler
19313 # KCC will only create a shared library if the output file
19314 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19315 # to its proper name (with version) after linking.
19316 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'
19317 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'
19318 # Commands to make compiler produce verbose output that lists
19319 # what "hidden" libraries, object files and flags are used when
19320 # linking a shared library.
19322 # There doesn't appear to be a way to prevent this compiler from
19323 # explicitly linking system object files so we need to strip them
19324 # from the output so that they don't get included in the library
19325 # dependencies.
19326 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"'
19328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19331 # Archives containing C++ object files must be created using
19332 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19333 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19335 icpc* | ecpc* )
19336 # Intel C++
19337 with_gnu_ld=yes
19338 # version 8.0 and above of icpc choke on multiply defined symbols
19339 # if we add $predep_objects and $postdep_objects, however 7.1 and
19340 # earlier do not add the objects themselves.
19341 case `$CC -V 2>&1` in
19342 *"Version 7."*)
19343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19344 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'
19346 *) # Version 8.0 or newer
19347 tmp_idyn=
19348 case $host_cpu in
19349 ia64*) tmp_idyn=' -i_dynamic';;
19350 esac
19351 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19352 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'
19354 esac
19355 archive_cmds_need_lc_CXX=no
19356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19358 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19360 pgCC* | pgcpp*)
19361 # Portland Group C++ compiler
19362 case `$CC -V` in
19363 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19364 prelink_cmds_CXX='tpldir=Template.dir~
19365 rm -rf $tpldir~
19366 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19367 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19368 old_archive_cmds_CXX='tpldir=Template.dir~
19369 rm -rf $tpldir~
19370 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19371 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19372 $RANLIB $oldlib'
19373 archive_cmds_CXX='tpldir=Template.dir~
19374 rm -rf $tpldir~
19375 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19376 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19377 archive_expsym_cmds_CXX='tpldir=Template.dir~
19378 rm -rf $tpldir~
19379 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19380 $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'
19382 *) # Version 6 and above use weak symbols
19383 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19384 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'
19386 esac
19388 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19390 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'
19392 cxx*)
19393 # Compaq C++
19394 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395 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'
19397 runpath_var=LD_RUN_PATH
19398 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19399 hardcode_libdir_separator_CXX=:
19401 # Commands to make compiler produce verbose output that lists
19402 # what "hidden" libraries, object files and flags are used when
19403 # linking a shared library.
19405 # There doesn't appear to be a way to prevent this compiler from
19406 # explicitly linking system object files so we need to strip them
19407 # from the output so that they don't get included in the library
19408 # dependencies.
19409 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'
19411 xl* | mpixl* | bgxl*)
19412 # IBM XL 8.0 on PPC, with GNU ld
19413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19415 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19416 if test "x$supports_anon_versioning" = xyes; then
19417 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19419 echo "local: *; };" >> $output_objdir/$libname.ver~
19420 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19424 case `$CC -V 2>&1 | sed 5q` in
19425 *Sun\ C*)
19426 # Sun C++ 5.9
19427 no_undefined_flag_CXX=' -zdefs'
19428 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19429 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'
19430 hardcode_libdir_flag_spec_CXX='-R$libdir'
19431 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'
19432 compiler_needs_object_CXX=yes
19434 # Not sure whether something based on
19435 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19436 # would be better.
19437 output_verbose_link_cmd='func_echo_all'
19439 # Archives containing C++ object files must be created using
19440 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19441 # necessary to make sure instantiated templates are included
19442 # in the archive.
19443 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19445 esac
19447 esac
19450 lynxos*)
19451 # FIXME: insert proper C++ library support
19452 ld_shlibs_CXX=no
19455 m88k*)
19456 # FIXME: insert proper C++ library support
19457 ld_shlibs_CXX=no
19460 mvs*)
19461 case $cc_basename in
19462 cxx*)
19463 # FIXME: insert proper C++ library support
19464 ld_shlibs_CXX=no
19467 # FIXME: insert proper C++ library support
19468 ld_shlibs_CXX=no
19470 esac
19473 netbsd*)
19474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19475 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19476 wlarc=
19477 hardcode_libdir_flag_spec_CXX='-R$libdir'
19478 hardcode_direct_CXX=yes
19479 hardcode_shlibpath_var_CXX=no
19481 # Workaround some broken pre-1.5 toolchains
19482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19485 *nto* | *qnx*)
19486 ld_shlibs_CXX=yes
19489 openbsd2*)
19490 # C++ shared libraries are fairly broken
19491 ld_shlibs_CXX=no
19494 openbsd*)
19495 if test -f /usr/libexec/ld.so; then
19496 hardcode_direct_CXX=yes
19497 hardcode_shlibpath_var_CXX=no
19498 hardcode_direct_absolute_CXX=yes
19499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19503 export_dynamic_flag_spec_CXX='${wl}-E'
19504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19506 output_verbose_link_cmd=func_echo_all
19507 else
19508 ld_shlibs_CXX=no
19512 osf3* | osf4* | osf5*)
19513 case $cc_basename in
19514 KCC*)
19515 # Kuck and Associates, Inc. (KAI) C++ Compiler
19517 # KCC will only create a shared library if the output file
19518 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19519 # to its proper name (with version) after linking.
19520 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'
19522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19523 hardcode_libdir_separator_CXX=:
19525 # Archives containing C++ object files must be created using
19526 # the KAI C++ compiler.
19527 case $host in
19528 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19529 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19530 esac
19532 RCC*)
19533 # Rational C++ 2.4.1
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19537 cxx*)
19538 case $host in
19539 osf3*)
19540 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19541 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'
19542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19545 allow_undefined_flag_CXX=' -expect_unresolved \*'
19546 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'
19547 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19548 echo "-hidden">> $lib.exp~
19549 $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~
19550 $RM $lib.exp'
19551 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19553 esac
19555 hardcode_libdir_separator_CXX=:
19557 # Commands to make compiler produce verbose output that lists
19558 # what "hidden" libraries, object files and flags are used when
19559 # linking a shared library.
19561 # There doesn't appear to be a way to prevent this compiler from
19562 # explicitly linking system object files so we need to strip them
19563 # from the output so that they don't get included in the library
19564 # dependencies.
19565 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"'
19568 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19569 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19570 case $host in
19571 osf3*)
19572 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'
19575 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'
19577 esac
19579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19580 hardcode_libdir_separator_CXX=:
19582 # Commands to make compiler produce verbose output that lists
19583 # what "hidden" libraries, object files and flags are used when
19584 # linking a shared library.
19585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19587 else
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19592 esac
19595 psos*)
19596 # FIXME: insert proper C++ library support
19597 ld_shlibs_CXX=no
19600 sunos4*)
19601 case $cc_basename in
19602 CC*)
19603 # Sun C++ 4.x
19604 # FIXME: insert proper C++ library support
19605 ld_shlibs_CXX=no
19607 lcc*)
19608 # Lucid
19609 # FIXME: insert proper C++ library support
19610 ld_shlibs_CXX=no
19613 # FIXME: insert proper C++ library support
19614 ld_shlibs_CXX=no
19616 esac
19619 solaris*)
19620 case $cc_basename in
19621 CC*)
19622 # Sun C++ 4.2, 5.x and Centerline C++
19623 archive_cmds_need_lc_CXX=yes
19624 no_undefined_flag_CXX=' -zdefs'
19625 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19627 $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'
19629 hardcode_libdir_flag_spec_CXX='-R$libdir'
19630 hardcode_shlibpath_var_CXX=no
19631 case $host_os in
19632 solaris2.[0-5] | solaris2.[0-5].*) ;;
19634 # The compiler driver will combine and reorder linker options,
19635 # but understands `-z linker_flag'.
19636 # Supported since Solaris 2.6 (maybe 2.5.1?)
19637 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19639 esac
19640 link_all_deplibs_CXX=yes
19642 output_verbose_link_cmd='func_echo_all'
19644 # Archives containing C++ object files must be created using
19645 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19646 # necessary to make sure instantiated templates are included
19647 # in the archive.
19648 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19650 gcx*)
19651 # Green Hills C++ Compiler
19652 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19654 # The C++ compiler must be used to create the archive.
19655 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19658 # GNU C++ compiler with Solaris linker
19659 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19660 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19661 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19662 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19664 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19666 # Commands to make compiler produce verbose output that lists
19667 # what "hidden" libraries, object files and flags are used when
19668 # linking a shared library.
19669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19670 else
19671 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19672 # platform.
19673 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19674 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19675 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19677 # Commands to make compiler produce verbose output that lists
19678 # what "hidden" libraries, object files and flags are used when
19679 # linking a shared library.
19680 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19683 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19684 case $host_os in
19685 solaris2.[0-5] | solaris2.[0-5].*) ;;
19687 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19689 esac
19692 esac
19695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19696 no_undefined_flag_CXX='${wl}-z,text'
19697 archive_cmds_need_lc_CXX=no
19698 hardcode_shlibpath_var_CXX=no
19699 runpath_var='LD_RUN_PATH'
19701 case $cc_basename in
19702 CC*)
19703 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19704 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19710 esac
19713 sysv5* | sco3.2v5* | sco5v6*)
19714 # Note: We can NOT use -z defs as we might desire, because we do not
19715 # link with -lc, and that would cause any symbols used from libc to
19716 # always be unresolved, which means just about no library would
19717 # ever link correctly. If we're not using GNU ld we use -z text
19718 # though, which does catch some bad symbols but isn't as heavy-handed
19719 # as -z defs.
19720 no_undefined_flag_CXX='${wl}-z,text'
19721 allow_undefined_flag_CXX='${wl}-z,nodefs'
19722 archive_cmds_need_lc_CXX=no
19723 hardcode_shlibpath_var_CXX=no
19724 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19725 hardcode_libdir_separator_CXX=':'
19726 link_all_deplibs_CXX=yes
19727 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19728 runpath_var='LD_RUN_PATH'
19730 case $cc_basename in
19731 CC*)
19732 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19733 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19735 '"$old_archive_cmds_CXX"
19736 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19737 '"$reload_cmds_CXX"
19740 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19743 esac
19746 tandem*)
19747 case $cc_basename in
19748 NCC*)
19749 # NonStop-UX NCC 3.20
19750 # FIXME: insert proper C++ library support
19751 ld_shlibs_CXX=no
19754 # FIXME: insert proper C++ library support
19755 ld_shlibs_CXX=no
19757 esac
19760 vxworks*)
19761 # FIXME: insert proper C++ library support
19762 ld_shlibs_CXX=no
19766 # FIXME: insert proper C++ library support
19767 ld_shlibs_CXX=no
19769 esac
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19772 $as_echo "$ld_shlibs_CXX" >&6; }
19773 test "$ld_shlibs_CXX" = no && can_build_shared=no
19775 GCC_CXX="$GXX"
19776 LD_CXX="$LD"
19778 ## CAVEAT EMPTOR:
19779 ## There is no encapsulation within the following macros, do not change
19780 ## the running order or otherwise move them around unless you know exactly
19781 ## what you are doing...
19782 # Dependencies to place before and after the object being linked:
19783 predep_objects_CXX=
19784 postdep_objects_CXX=
19785 predeps_CXX=
19786 postdeps_CXX=
19787 compiler_lib_search_path_CXX=
19789 cat > conftest.$ac_ext <<_LT_EOF
19790 class Foo
19792 public:
19793 Foo (void) { a = 0; }
19794 private:
19795 int a;
19797 _LT_EOF
19799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19800 (eval $ac_compile) 2>&5
19801 ac_status=$?
19802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19803 test $ac_status = 0; }; then
19804 # Parse the compiler output and extract the necessary
19805 # objects, libraries and library flags.
19807 # Sentinel used to keep track of whether or not we are before
19808 # the conftest object file.
19809 pre_test_object_deps_done=no
19811 for p in `eval "$output_verbose_link_cmd"`; do
19812 case $p in
19814 -L* | -R* | -l*)
19815 # Some compilers place space between "-{L,R}" and the path.
19816 # Remove the space.
19817 if test $p = "-L" ||
19818 test $p = "-R"; then
19819 prev=$p
19820 continue
19821 else
19822 prev=
19825 if test "$pre_test_object_deps_done" = no; then
19826 case $p in
19827 -L* | -R*)
19828 # Internal compiler library paths should come after those
19829 # provided the user. The postdeps already come after the
19830 # user supplied libs so there is no need to process them.
19831 if test -z "$compiler_lib_search_path_CXX"; then
19832 compiler_lib_search_path_CXX="${prev}${p}"
19833 else
19834 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19837 # The "-l" case would never come before the object being
19838 # linked, so don't bother handling this case.
19839 esac
19840 else
19841 if test -z "$postdeps_CXX"; then
19842 postdeps_CXX="${prev}${p}"
19843 else
19844 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19849 *.$objext)
19850 # This assumes that the test object file only shows up
19851 # once in the compiler output.
19852 if test "$p" = "conftest.$objext"; then
19853 pre_test_object_deps_done=yes
19854 continue
19857 if test "$pre_test_object_deps_done" = no; then
19858 if test -z "$predep_objects_CXX"; then
19859 predep_objects_CXX="$p"
19860 else
19861 predep_objects_CXX="$predep_objects_CXX $p"
19863 else
19864 if test -z "$postdep_objects_CXX"; then
19865 postdep_objects_CXX="$p"
19866 else
19867 postdep_objects_CXX="$postdep_objects_CXX $p"
19872 *) ;; # Ignore the rest.
19874 esac
19875 done
19877 # Clean up.
19878 rm -f a.out a.exe
19879 else
19880 echo "libtool.m4: error: problem compiling CXX test program"
19883 $RM -f confest.$objext
19885 # PORTME: override above test on systems where it is broken
19886 case $host_os in
19887 interix[3-9]*)
19888 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19889 # hack all around it, let's just trust "g++" to DTRT.
19890 predep_objects_CXX=
19891 postdep_objects_CXX=
19892 postdeps_CXX=
19895 linux*)
19896 case `$CC -V 2>&1 | sed 5q` in
19897 *Sun\ C*)
19898 # Sun C++ 5.9
19900 # The more standards-conforming stlport4 library is
19901 # incompatible with the Cstd library. Avoid specifying
19902 # it if it's in CXXFLAGS. Ignore libCrun as
19903 # -library=stlport4 depends on it.
19904 case " $CXX $CXXFLAGS " in
19905 *" -library=stlport4 "*)
19906 solaris_use_stlport4=yes
19908 esac
19910 if test "$solaris_use_stlport4" != yes; then
19911 postdeps_CXX='-library=Cstd -library=Crun'
19914 esac
19917 solaris*)
19918 case $cc_basename in
19919 CC*)
19920 # The more standards-conforming stlport4 library is
19921 # incompatible with the Cstd library. Avoid specifying
19922 # it if it's in CXXFLAGS. Ignore libCrun as
19923 # -library=stlport4 depends on it.
19924 case " $CXX $CXXFLAGS " in
19925 *" -library=stlport4 "*)
19926 solaris_use_stlport4=yes
19928 esac
19930 # Adding this requires a known-good setup of shared libraries for
19931 # Sun compiler versions before 5.6, else PIC objects from an old
19932 # archive will be linked into the output, leading to subtle bugs.
19933 if test "$solaris_use_stlport4" != yes; then
19934 postdeps_CXX='-library=Cstd -library=Crun'
19937 esac
19939 esac
19942 case " $postdeps_CXX " in
19943 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19944 esac
19945 compiler_lib_search_dirs_CXX=
19946 if test -n "${compiler_lib_search_path_CXX}"; then
19947 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19980 lt_prog_compiler_wl_CXX=
19981 lt_prog_compiler_pic_CXX=
19982 lt_prog_compiler_static_CXX=
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19987 # C++ specific cases for pic, static, wl, etc.
19988 if test "$GXX" = yes; then
19989 lt_prog_compiler_wl_CXX='-Wl,'
19990 lt_prog_compiler_static_CXX='-static'
19992 case $host_os in
19993 aix*)
19994 # All AIX code is PIC.
19995 if test "$host_cpu" = ia64; then
19996 # AIX 5 now supports IA64 processor
19997 lt_prog_compiler_static_CXX='-Bstatic'
19999 lt_prog_compiler_pic_CXX='-fPIC'
20002 amigaos*)
20003 case $host_cpu in
20004 powerpc)
20005 # see comment about AmigaOS4 .so support
20006 lt_prog_compiler_pic_CXX='-fPIC'
20008 m68k)
20009 # FIXME: we need at least 68020 code to build shared libraries, but
20010 # adding the `-m68020' flag to GCC prevents building anything better,
20011 # like `-m68040'.
20012 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20014 esac
20017 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20018 # PIC is the default for these OSes.
20020 mingw* | cygwin* | os2* | pw32* | cegcc*)
20021 # This hack is so that the source file can tell whether it is being
20022 # built for inclusion in a dll (and should export symbols for example).
20023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20024 # (--disable-auto-import) libraries
20025 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20027 darwin* | rhapsody*)
20028 # PIC is the default on this platform
20029 # Common symbols not allowed in MH_DYLIB files
20030 lt_prog_compiler_pic_CXX='-fno-common'
20032 *djgpp*)
20033 # DJGPP does not support shared libraries at all
20034 lt_prog_compiler_pic_CXX=
20036 haiku*)
20037 # PIC is the default for Haiku.
20038 # The "-static" flag exists, but is broken.
20039 lt_prog_compiler_static_CXX=
20041 interix[3-9]*)
20042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20043 # Instead, we relocate shared libraries at runtime.
20045 sysv4*MP*)
20046 if test -d /usr/nec; then
20047 lt_prog_compiler_pic_CXX=-Kconform_pic
20050 hpux*)
20051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20053 # sets the default TLS model and affects inlining.
20054 case $host_cpu in
20055 hppa*64*)
20058 lt_prog_compiler_pic_CXX='-fPIC'
20060 esac
20062 *qnx* | *nto*)
20063 # QNX uses GNU C++, but need to define -shared option too, otherwise
20064 # it will coredump.
20065 lt_prog_compiler_pic_CXX='-fPIC -shared'
20068 lt_prog_compiler_pic_CXX='-fPIC'
20070 esac
20071 else
20072 case $host_os in
20073 aix[4-9]*)
20074 # All AIX code is PIC.
20075 if test "$host_cpu" = ia64; then
20076 # AIX 5 now supports IA64 processor
20077 lt_prog_compiler_static_CXX='-Bstatic'
20078 else
20079 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20082 chorus*)
20083 case $cc_basename in
20084 cxch68*)
20085 # Green Hills C++ Compiler
20086 # _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"
20088 esac
20090 dgux*)
20091 case $cc_basename in
20092 ec++*)
20093 lt_prog_compiler_pic_CXX='-KPIC'
20095 ghcx*)
20096 # Green Hills C++ Compiler
20097 lt_prog_compiler_pic_CXX='-pic'
20101 esac
20103 freebsd* | dragonfly*)
20104 # FreeBSD uses GNU C++
20106 hpux9* | hpux10* | hpux11*)
20107 case $cc_basename in
20108 CC*)
20109 lt_prog_compiler_wl_CXX='-Wl,'
20110 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20111 if test "$host_cpu" != ia64; then
20112 lt_prog_compiler_pic_CXX='+Z'
20115 aCC*)
20116 lt_prog_compiler_wl_CXX='-Wl,'
20117 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20118 case $host_cpu in
20119 hppa*64*|ia64*)
20120 # +Z the default
20123 lt_prog_compiler_pic_CXX='+Z'
20125 esac
20129 esac
20131 interix*)
20132 # This is c89, which is MS Visual C++ (no shared libs)
20133 # Anyone wants to do a port?
20135 irix5* | irix6* | nonstopux*)
20136 case $cc_basename in
20137 CC*)
20138 lt_prog_compiler_wl_CXX='-Wl,'
20139 lt_prog_compiler_static_CXX='-non_shared'
20140 # CC pic flag -KPIC is the default.
20144 esac
20146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20147 case $cc_basename in
20148 KCC*)
20149 # KAI C++ Compiler
20150 lt_prog_compiler_wl_CXX='--backend -Wl,'
20151 lt_prog_compiler_pic_CXX='-fPIC'
20153 ecpc* )
20154 # old Intel C++ for x86_64 which still supported -KPIC.
20155 lt_prog_compiler_wl_CXX='-Wl,'
20156 lt_prog_compiler_pic_CXX='-KPIC'
20157 lt_prog_compiler_static_CXX='-static'
20159 icpc* )
20160 # Intel C++, used to be incompatible with GCC.
20161 # ICC 10 doesn't accept -KPIC any more.
20162 lt_prog_compiler_wl_CXX='-Wl,'
20163 lt_prog_compiler_pic_CXX='-fPIC'
20164 lt_prog_compiler_static_CXX='-static'
20166 pgCC* | pgcpp*)
20167 # Portland Group C++ compiler
20168 lt_prog_compiler_wl_CXX='-Wl,'
20169 lt_prog_compiler_pic_CXX='-fpic'
20170 lt_prog_compiler_static_CXX='-Bstatic'
20172 cxx*)
20173 # Compaq C++
20174 # Make sure the PIC flag is empty. It appears that all Alpha
20175 # Linux and Compaq Tru64 Unix objects are PIC.
20176 lt_prog_compiler_pic_CXX=
20177 lt_prog_compiler_static_CXX='-non_shared'
20179 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20180 # IBM XL 8.0, 9.0 on PPC and BlueGene
20181 lt_prog_compiler_wl_CXX='-Wl,'
20182 lt_prog_compiler_pic_CXX='-qpic'
20183 lt_prog_compiler_static_CXX='-qstaticlink'
20186 case `$CC -V 2>&1 | sed 5q` in
20187 *Sun\ C*)
20188 # Sun C++ 5.9
20189 lt_prog_compiler_pic_CXX='-KPIC'
20190 lt_prog_compiler_static_CXX='-Bstatic'
20191 lt_prog_compiler_wl_CXX='-Qoption ld '
20193 esac
20195 esac
20197 lynxos*)
20199 m88k*)
20201 mvs*)
20202 case $cc_basename in
20203 cxx*)
20204 lt_prog_compiler_pic_CXX='-W c,exportall'
20208 esac
20210 netbsd*)
20212 *qnx* | *nto*)
20213 # QNX uses GNU C++, but need to define -shared option too, otherwise
20214 # it will coredump.
20215 lt_prog_compiler_pic_CXX='-fPIC -shared'
20217 osf3* | osf4* | osf5*)
20218 case $cc_basename in
20219 KCC*)
20220 lt_prog_compiler_wl_CXX='--backend -Wl,'
20222 RCC*)
20223 # Rational C++ 2.4.1
20224 lt_prog_compiler_pic_CXX='-pic'
20226 cxx*)
20227 # Digital/Compaq C++
20228 lt_prog_compiler_wl_CXX='-Wl,'
20229 # Make sure the PIC flag is empty. It appears that all Alpha
20230 # Linux and Compaq Tru64 Unix objects are PIC.
20231 lt_prog_compiler_pic_CXX=
20232 lt_prog_compiler_static_CXX='-non_shared'
20236 esac
20238 psos*)
20240 solaris*)
20241 case $cc_basename in
20242 CC*)
20243 # Sun C++ 4.2, 5.x and Centerline C++
20244 lt_prog_compiler_pic_CXX='-KPIC'
20245 lt_prog_compiler_static_CXX='-Bstatic'
20246 lt_prog_compiler_wl_CXX='-Qoption ld '
20248 gcx*)
20249 # Green Hills C++ Compiler
20250 lt_prog_compiler_pic_CXX='-PIC'
20254 esac
20256 sunos4*)
20257 case $cc_basename in
20258 CC*)
20259 # Sun C++ 4.x
20260 lt_prog_compiler_pic_CXX='-pic'
20261 lt_prog_compiler_static_CXX='-Bstatic'
20263 lcc*)
20264 # Lucid
20265 lt_prog_compiler_pic_CXX='-pic'
20269 esac
20271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20272 case $cc_basename in
20273 CC*)
20274 lt_prog_compiler_wl_CXX='-Wl,'
20275 lt_prog_compiler_pic_CXX='-KPIC'
20276 lt_prog_compiler_static_CXX='-Bstatic'
20278 esac
20280 tandem*)
20281 case $cc_basename in
20282 NCC*)
20283 # NonStop-UX NCC 3.20
20284 lt_prog_compiler_pic_CXX='-KPIC'
20288 esac
20290 vxworks*)
20293 lt_prog_compiler_can_build_shared_CXX=no
20295 esac
20298 case $host_os in
20299 # For platforms which do not support PIC, -DPIC is meaningless:
20300 *djgpp*)
20301 lt_prog_compiler_pic_CXX=
20304 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20306 esac
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20308 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20313 # Check to make sure the PIC flag actually works.
20315 if test -n "$lt_prog_compiler_pic_CXX"; then
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20318 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20319 $as_echo_n "(cached) " >&6
20320 else
20321 lt_cv_prog_compiler_pic_works_CXX=no
20322 ac_outfile=conftest.$ac_objext
20323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20324 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20325 # Insert the option either (1) after the last *FLAGS variable, or
20326 # (2) before a word containing "conftest.", or (3) at the end.
20327 # Note that $ac_compile itself does not contain backslashes and begins
20328 # with a dollar sign (not a hyphen), so the echo should work correctly.
20329 # The option is referenced via a variable to avoid confusing sed.
20330 lt_compile=`echo "$ac_compile" | $SED \
20331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20333 -e 's:$: $lt_compiler_flag:'`
20334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20335 (eval "$lt_compile" 2>conftest.err)
20336 ac_status=$?
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 if (exit $ac_status) && test -s "$ac_outfile"; then
20340 # The compiler can only warn and ignore the option if not recognized
20341 # So say no if there are warnings other than the usual output.
20342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20345 lt_cv_prog_compiler_pic_works_CXX=yes
20348 $RM conftest*
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20352 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20354 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20355 case $lt_prog_compiler_pic_CXX in
20356 "" | " "*) ;;
20357 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20358 esac
20359 else
20360 lt_prog_compiler_pic_CXX=
20361 lt_prog_compiler_can_build_shared_CXX=no
20369 # Check to make sure the static flag actually works.
20371 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20373 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20374 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20375 $as_echo_n "(cached) " >&6
20376 else
20377 lt_cv_prog_compiler_static_works_CXX=no
20378 save_LDFLAGS="$LDFLAGS"
20379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20380 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20382 # The linker can only warn and ignore the option if not recognized
20383 # So say no if there are warnings
20384 if test -s conftest.err; then
20385 # Append any errors to the config.log.
20386 cat conftest.err 1>&5
20387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20389 if diff conftest.exp conftest.er2 >/dev/null; then
20390 lt_cv_prog_compiler_static_works_CXX=yes
20392 else
20393 lt_cv_prog_compiler_static_works_CXX=yes
20396 $RM -r conftest*
20397 LDFLAGS="$save_LDFLAGS"
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20401 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20403 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20405 else
20406 lt_prog_compiler_static_CXX=
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20414 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20415 $as_echo_n "(cached) " >&6
20416 else
20417 lt_cv_prog_compiler_c_o_CXX=no
20418 $RM -r conftest 2>/dev/null
20419 mkdir conftest
20420 cd conftest
20421 mkdir out
20422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20424 lt_compiler_flag="-o out/conftest2.$ac_objext"
20425 # Insert the option either (1) after the last *FLAGS variable, or
20426 # (2) before a word containing "conftest.", or (3) at the end.
20427 # Note that $ac_compile itself does not contain backslashes and begins
20428 # with a dollar sign (not a hyphen), so the echo should work correctly.
20429 lt_compile=`echo "$ac_compile" | $SED \
20430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20432 -e 's:$: $lt_compiler_flag:'`
20433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20434 (eval "$lt_compile" 2>out/conftest.err)
20435 ac_status=$?
20436 cat out/conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20439 then
20440 # The compiler can only warn and ignore the option if not recognized
20441 # So say no if there are warnings
20442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20445 lt_cv_prog_compiler_c_o_CXX=yes
20448 chmod u+w . 2>&5
20449 $RM conftest*
20450 # SGI C++ compiler will create directory out/ii_files/ for
20451 # template instantiation
20452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20453 $RM out/* && rmdir out
20454 cd ..
20455 $RM -r conftest
20456 $RM conftest*
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20460 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20467 $as_echo_n "(cached) " >&6
20468 else
20469 lt_cv_prog_compiler_c_o_CXX=no
20470 $RM -r conftest 2>/dev/null
20471 mkdir conftest
20472 cd conftest
20473 mkdir out
20474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20476 lt_compiler_flag="-o out/conftest2.$ac_objext"
20477 # Insert the option either (1) after the last *FLAGS variable, or
20478 # (2) before a word containing "conftest.", or (3) at the end.
20479 # Note that $ac_compile itself does not contain backslashes and begins
20480 # with a dollar sign (not a hyphen), so the echo should work correctly.
20481 lt_compile=`echo "$ac_compile" | $SED \
20482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20484 -e 's:$: $lt_compiler_flag:'`
20485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20486 (eval "$lt_compile" 2>out/conftest.err)
20487 ac_status=$?
20488 cat out/conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20491 then
20492 # The compiler can only warn and ignore the option if not recognized
20493 # So say no if there are warnings
20494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20497 lt_cv_prog_compiler_c_o_CXX=yes
20500 chmod u+w . 2>&5
20501 $RM conftest*
20502 # SGI C++ compiler will create directory out/ii_files/ for
20503 # template instantiation
20504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20505 $RM out/* && rmdir out
20506 cd ..
20507 $RM -r conftest
20508 $RM conftest*
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20512 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20517 hard_links="nottested"
20518 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20519 # do not overwrite the value of need_locks provided by the user
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20521 $as_echo_n "checking if we can lock with hard links... " >&6; }
20522 hard_links=yes
20523 $RM conftest*
20524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20525 touch conftest.a
20526 ln conftest.a conftest.b 2>&5 || hard_links=no
20527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20529 $as_echo "$hard_links" >&6; }
20530 if test "$hard_links" = no; then
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20533 need_locks=warn
20535 else
20536 need_locks=no
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20542 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20544 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20545 case $host_os in
20546 aix[4-9]*)
20547 # If we're using GNU nm, then we don't want the "-C" option.
20548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20549 # Also, AIX nm treats weak defined symbols like other global defined
20550 # symbols, whereas GNU nm marks them as "W".
20551 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20552 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'
20553 else
20554 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'
20557 pw32*)
20558 export_symbols_cmds_CXX="$ltdll_cmds"
20560 cygwin* | mingw* | cegcc*)
20561 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'
20564 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20566 esac
20567 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20570 $as_echo "$ld_shlibs_CXX" >&6; }
20571 test "$ld_shlibs_CXX" = no && can_build_shared=no
20573 with_gnu_ld_CXX=$with_gnu_ld
20581 # Do we need to explicitly link libc?
20583 case "x$archive_cmds_need_lc_CXX" in
20584 x|xyes)
20585 # Assume -lc should be added
20586 archive_cmds_need_lc_CXX=yes
20588 if test "$enable_shared" = yes && test "$GCC" = yes; then
20589 case $archive_cmds_CXX in
20590 *'~'*)
20591 # FIXME: we may have to deal with multi-command sequences.
20593 '$CC '*)
20594 # Test whether the compiler implicitly links with -lc since on some
20595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20596 # to ld, don't add -lc before -lgcc.
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20599 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20600 $as_echo_n "(cached) " >&6
20601 else
20602 $RM conftest*
20603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20606 (eval $ac_compile) 2>&5
20607 ac_status=$?
20608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20609 test $ac_status = 0; } 2>conftest.err; then
20610 soname=conftest
20611 lib=conftest
20612 libobjs=conftest.$ac_objext
20613 deplibs=
20614 wl=$lt_prog_compiler_wl_CXX
20615 pic_flag=$lt_prog_compiler_pic_CXX
20616 compiler_flags=-v
20617 linker_flags=-v
20618 verstring=
20619 output_objdir=.
20620 libname=conftest
20621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20622 allow_undefined_flag_CXX=
20623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20624 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20625 ac_status=$?
20626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20627 test $ac_status = 0; }
20628 then
20629 lt_cv_archive_cmds_need_lc_CXX=no
20630 else
20631 lt_cv_archive_cmds_need_lc_CXX=yes
20633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20634 else
20635 cat conftest.err 1>&5
20637 $RM conftest*
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20641 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20642 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20644 esac
20647 esac
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20715 library_names_spec=
20716 libname_spec='lib$name'
20717 soname_spec=
20718 shrext_cmds=".so"
20719 postinstall_cmds=
20720 postuninstall_cmds=
20721 finish_cmds=
20722 finish_eval=
20723 shlibpath_var=
20724 shlibpath_overrides_runpath=unknown
20725 version_type=none
20726 dynamic_linker="$host_os ld.so"
20727 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20728 need_lib_prefix=unknown
20729 hardcode_into_libs=no
20731 # when you set need_version to no, make sure it does not cause -set_version
20732 # flags to be left without arguments
20733 need_version=unknown
20735 case $host_os in
20736 aix3*)
20737 version_type=linux
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20739 shlibpath_var=LIBPATH
20741 # AIX 3 has no versioning support, so we append a major version to the name.
20742 soname_spec='${libname}${release}${shared_ext}$major'
20745 aix[4-9]*)
20746 version_type=linux
20747 need_lib_prefix=no
20748 need_version=no
20749 hardcode_into_libs=yes
20750 if test "$host_cpu" = ia64; then
20751 # AIX 5 supports IA64
20752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20753 shlibpath_var=LD_LIBRARY_PATH
20754 else
20755 # With GCC up to 2.95.x, collect2 would create an import file
20756 # for dependence libraries. The import file would start with
20757 # the line `#! .'. This would cause the generated library to
20758 # depend on `.', always an invalid library. This was fixed in
20759 # development snapshots of GCC prior to 3.0.
20760 case $host_os in
20761 aix4 | aix4.[01] | aix4.[01].*)
20762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20763 echo ' yes '
20764 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20766 else
20767 can_build_shared=no
20770 esac
20771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20772 # soname into executable. Probably we can add versioning support to
20773 # collect2, so additional links can be useful in future.
20774 if test "$aix_use_runtimelinking" = yes; then
20775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20776 # instead of lib<name>.a to let people know that these are not
20777 # typical AIX shared libraries.
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 else
20780 # We preserve .a as extension for shared libraries through AIX4.2
20781 # and later when we are not doing run time linking.
20782 library_names_spec='${libname}${release}.a $libname.a'
20783 soname_spec='${libname}${release}${shared_ext}$major'
20785 shlibpath_var=LIBPATH
20789 amigaos*)
20790 case $host_cpu in
20791 powerpc)
20792 # Since July 2007 AmigaOS4 officially supports .so libraries.
20793 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20796 m68k)
20797 library_names_spec='$libname.ixlibrary $libname.a'
20798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20799 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'
20801 esac
20804 beos*)
20805 library_names_spec='${libname}${shared_ext}'
20806 dynamic_linker="$host_os ld.so"
20807 shlibpath_var=LIBRARY_PATH
20810 bsdi[45]*)
20811 version_type=linux
20812 need_version=no
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20816 shlibpath_var=LD_LIBRARY_PATH
20817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20819 # the default ld.so.conf also contains /usr/contrib/lib and
20820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20821 # libtool to hard-code these into programs
20824 cygwin* | mingw* | pw32* | cegcc*)
20825 version_type=windows
20826 shrext_cmds=".dll"
20827 need_version=no
20828 need_lib_prefix=no
20830 case $GCC,$host_os in
20831 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20832 library_names_spec='$libname.dll.a'
20833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20834 postinstall_cmds='base_file=`basename \${file}`~
20835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20836 dldir=$destdir/`dirname \$dlpath`~
20837 test -d \$dldir || mkdir -p \$dldir~
20838 $install_prog $dir/$dlname \$dldir/$dlname~
20839 chmod a+x \$dldir/$dlname~
20840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20844 dlpath=$dir/\$dldll~
20845 $RM \$dlpath'
20846 shlibpath_overrides_runpath=yes
20848 case $host_os in
20849 cygwin*)
20850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20854 mingw* | cegcc*)
20855 # MinGW DLLs use traditional 'lib' prefix
20856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20858 pw32*)
20859 # pw32 DLLs use 'pw' prefix rather than 'lib'
20860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20862 esac
20866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20868 esac
20869 dynamic_linker='Win32 ld.exe'
20870 # FIXME: first we should search . and the directory the executable is in
20871 shlibpath_var=PATH
20874 darwin* | rhapsody*)
20875 dynamic_linker="$host_os dyld"
20876 version_type=darwin
20877 need_lib_prefix=no
20878 need_version=no
20879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20880 soname_spec='${libname}${release}${major}$shared_ext'
20881 shlibpath_overrides_runpath=yes
20882 shlibpath_var=DYLD_LIBRARY_PATH
20883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20888 dgux*)
20889 version_type=linux
20890 need_lib_prefix=no
20891 need_version=no
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20893 soname_spec='${libname}${release}${shared_ext}$major'
20894 shlibpath_var=LD_LIBRARY_PATH
20897 freebsd* | dragonfly*)
20898 # DragonFly does not have aout. When/if they implement a new
20899 # versioning mechanism, adjust this.
20900 if test -x /usr/bin/objformat; then
20901 objformat=`/usr/bin/objformat`
20902 else
20903 case $host_os in
20904 freebsd[23].*) objformat=aout ;;
20905 *) objformat=elf ;;
20906 esac
20908 version_type=freebsd-$objformat
20909 case $version_type in
20910 freebsd-elf*)
20911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20912 need_version=no
20913 need_lib_prefix=no
20915 freebsd-*)
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20917 need_version=yes
20919 esac
20920 shlibpath_var=LD_LIBRARY_PATH
20921 case $host_os in
20922 freebsd2.*)
20923 shlibpath_overrides_runpath=yes
20925 freebsd3.[01]* | freebsdelf3.[01]*)
20926 shlibpath_overrides_runpath=yes
20927 hardcode_into_libs=yes
20929 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20930 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20931 shlibpath_overrides_runpath=no
20932 hardcode_into_libs=yes
20934 *) # from 4.6 on, and DragonFly
20935 shlibpath_overrides_runpath=yes
20936 hardcode_into_libs=yes
20938 esac
20941 gnu*)
20942 version_type=linux
20943 need_lib_prefix=no
20944 need_version=no
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20946 soname_spec='${libname}${release}${shared_ext}$major'
20947 shlibpath_var=LD_LIBRARY_PATH
20948 hardcode_into_libs=yes
20951 haiku*)
20952 version_type=linux
20953 need_lib_prefix=no
20954 need_version=no
20955 dynamic_linker="$host_os runtime_loader"
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20957 soname_spec='${libname}${release}${shared_ext}$major'
20958 shlibpath_var=LIBRARY_PATH
20959 shlibpath_overrides_runpath=yes
20960 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20961 hardcode_into_libs=yes
20964 hpux9* | hpux10* | hpux11*)
20965 # Give a soname corresponding to the major version so that dld.sl refuses to
20966 # link against other versions.
20967 version_type=sunos
20968 need_lib_prefix=no
20969 need_version=no
20970 case $host_cpu in
20971 ia64*)
20972 shrext_cmds='.so'
20973 hardcode_into_libs=yes
20974 dynamic_linker="$host_os dld.so"
20975 shlibpath_var=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20978 soname_spec='${libname}${release}${shared_ext}$major'
20979 if test "X$HPUX_IA64_MODE" = X32; then
20980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20981 else
20982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20986 hppa*64*)
20987 shrext_cmds='.sl'
20988 hardcode_into_libs=yes
20989 dynamic_linker="$host_os dld.sl"
20990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993 soname_spec='${libname}${release}${shared_ext}$major'
20994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20998 shrext_cmds='.sl'
20999 dynamic_linker="$host_os dld.sl"
21000 shlibpath_var=SHLIB_PATH
21001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21003 soname_spec='${libname}${release}${shared_ext}$major'
21005 esac
21006 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21007 postinstall_cmds='chmod 555 $lib'
21008 # or fails outright, so override atomically:
21009 install_override_mode=555
21012 interix[3-9]*)
21013 version_type=linux
21014 need_lib_prefix=no
21015 need_version=no
21016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21017 soname_spec='${libname}${release}${shared_ext}$major'
21018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21019 shlibpath_var=LD_LIBRARY_PATH
21020 shlibpath_overrides_runpath=no
21021 hardcode_into_libs=yes
21024 irix5* | irix6* | nonstopux*)
21025 case $host_os in
21026 nonstopux*) version_type=nonstopux ;;
21028 if test "$lt_cv_prog_gnu_ld" = yes; then
21029 version_type=linux
21030 else
21031 version_type=irix
21032 fi ;;
21033 esac
21034 need_lib_prefix=no
21035 need_version=no
21036 soname_spec='${libname}${release}${shared_ext}$major'
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21038 case $host_os in
21039 irix5* | nonstopux*)
21040 libsuff= shlibsuff=
21043 case $LD in # libtool.m4 will add one of these switches to LD
21044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21045 libsuff= shlibsuff= libmagic=32-bit;;
21046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21047 libsuff=32 shlibsuff=N32 libmagic=N32;;
21048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21050 *) libsuff= shlibsuff= libmagic=never-match;;
21051 esac
21053 esac
21054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21055 shlibpath_overrides_runpath=no
21056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21058 hardcode_into_libs=yes
21061 # No shared lib support for Linux oldld, aout, or coff.
21062 linux*oldld* | linux*aout* | linux*coff*)
21063 dynamic_linker=no
21066 # This must be Linux ELF.
21067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21068 version_type=linux
21069 need_lib_prefix=no
21070 need_version=no
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 soname_spec='${libname}${release}${shared_ext}$major'
21073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21074 shlibpath_var=LD_LIBRARY_PATH
21075 shlibpath_overrides_runpath=no
21077 # Some binutils ld are patched to set DT_RUNPATH
21078 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21079 $as_echo_n "(cached) " >&6
21080 else
21081 lt_cv_shlibpath_overrides_runpath=no
21082 save_LDFLAGS=$LDFLAGS
21083 save_libdir=$libdir
21084 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21085 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h. */
21090 main ()
21094 return 0;
21096 _ACEOF
21097 if ac_fn_cxx_try_link "$LINENO"; then :
21098 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21099 lt_cv_shlibpath_overrides_runpath=yes
21102 rm -f core conftest.err conftest.$ac_objext \
21103 conftest$ac_exeext conftest.$ac_ext
21104 LDFLAGS=$save_LDFLAGS
21105 libdir=$save_libdir
21109 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21111 # This implies no fast_install, which is unacceptable.
21112 # Some rework will be needed to allow for fast_install
21113 # before this can be enabled.
21114 hardcode_into_libs=yes
21116 # Append ld.so.conf contents to the search path
21117 if test -f /etc/ld.so.conf; then
21118 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' ' '`
21119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21122 # We used to test for /lib/ld.so.1 and disable shared libraries on
21123 # powerpc, because MkLinux only supported shared libraries with the
21124 # GNU dynamic linker. Since this was broken with cross compilers,
21125 # most powerpc-linux boxes support dynamic linking these days and
21126 # people can always --disable-shared, the test was removed, and we
21127 # assume the GNU/Linux dynamic linker is in use.
21128 dynamic_linker='GNU/Linux ld.so'
21131 netbsd*)
21132 version_type=sunos
21133 need_lib_prefix=no
21134 need_version=no
21135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21138 dynamic_linker='NetBSD (a.out) ld.so'
21139 else
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 dynamic_linker='NetBSD ld.elf_so'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 shlibpath_overrides_runpath=yes
21146 hardcode_into_libs=yes
21149 newsos6)
21150 version_type=linux
21151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21152 shlibpath_var=LD_LIBRARY_PATH
21153 shlibpath_overrides_runpath=yes
21156 *nto* | *qnx*)
21157 version_type=qnx
21158 need_lib_prefix=no
21159 need_version=no
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 soname_spec='${libname}${release}${shared_ext}$major'
21162 shlibpath_var=LD_LIBRARY_PATH
21163 shlibpath_overrides_runpath=no
21164 hardcode_into_libs=yes
21165 dynamic_linker='ldqnx.so'
21168 openbsd*)
21169 version_type=sunos
21170 sys_lib_dlsearch_path_spec="/usr/lib"
21171 need_lib_prefix=no
21172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21173 case $host_os in
21174 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21175 *) need_version=no ;;
21176 esac
21177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21179 shlibpath_var=LD_LIBRARY_PATH
21180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21181 case $host_os in
21182 openbsd2.[89] | openbsd2.[89].*)
21183 shlibpath_overrides_runpath=no
21186 shlibpath_overrides_runpath=yes
21188 esac
21189 else
21190 shlibpath_overrides_runpath=yes
21194 os2*)
21195 libname_spec='$name'
21196 shrext_cmds=".dll"
21197 need_lib_prefix=no
21198 library_names_spec='$libname${shared_ext} $libname.a'
21199 dynamic_linker='OS/2 ld.exe'
21200 shlibpath_var=LIBPATH
21203 osf3* | osf4* | osf5*)
21204 version_type=osf
21205 need_lib_prefix=no
21206 need_version=no
21207 soname_spec='${libname}${release}${shared_ext}$major'
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21209 shlibpath_var=LD_LIBRARY_PATH
21210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21214 rdos*)
21215 dynamic_linker=no
21218 solaris*)
21219 version_type=linux
21220 need_lib_prefix=no
21221 need_version=no
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21223 soname_spec='${libname}${release}${shared_ext}$major'
21224 shlibpath_var=LD_LIBRARY_PATH
21225 shlibpath_overrides_runpath=yes
21226 hardcode_into_libs=yes
21227 # ldd complains unless libraries are executable
21228 postinstall_cmds='chmod +x $lib'
21231 sunos4*)
21232 version_type=sunos
21233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21235 shlibpath_var=LD_LIBRARY_PATH
21236 shlibpath_overrides_runpath=yes
21237 if test "$with_gnu_ld" = yes; then
21238 need_lib_prefix=no
21240 need_version=yes
21243 sysv4 | sysv4.3*)
21244 version_type=linux
21245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21246 soname_spec='${libname}${release}${shared_ext}$major'
21247 shlibpath_var=LD_LIBRARY_PATH
21248 case $host_vendor in
21249 sni)
21250 shlibpath_overrides_runpath=no
21251 need_lib_prefix=no
21252 runpath_var=LD_RUN_PATH
21254 siemens)
21255 need_lib_prefix=no
21257 motorola)
21258 need_lib_prefix=no
21259 need_version=no
21260 shlibpath_overrides_runpath=no
21261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21263 esac
21266 sysv4*MP*)
21267 if test -d /usr/nec ;then
21268 version_type=linux
21269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21270 soname_spec='$libname${shared_ext}.$major'
21271 shlibpath_var=LD_LIBRARY_PATH
21275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21276 version_type=freebsd-elf
21277 need_lib_prefix=no
21278 need_version=no
21279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21280 soname_spec='${libname}${release}${shared_ext}$major'
21281 shlibpath_var=LD_LIBRARY_PATH
21282 shlibpath_overrides_runpath=yes
21283 hardcode_into_libs=yes
21284 if test "$with_gnu_ld" = yes; then
21285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21286 else
21287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21288 case $host_os in
21289 sco3.2v5*)
21290 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21292 esac
21294 sys_lib_dlsearch_path_spec='/usr/lib'
21297 tpf*)
21298 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21299 version_type=linux
21300 need_lib_prefix=no
21301 need_version=no
21302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21303 shlibpath_var=LD_LIBRARY_PATH
21304 shlibpath_overrides_runpath=no
21305 hardcode_into_libs=yes
21308 uts4*)
21309 version_type=linux
21310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21311 soname_spec='${libname}${release}${shared_ext}$major'
21312 shlibpath_var=LD_LIBRARY_PATH
21316 dynamic_linker=no
21318 esac
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21320 $as_echo "$dynamic_linker" >&6; }
21321 test "$dynamic_linker" = no && can_build_shared=no
21323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21324 if test "$GCC" = yes; then
21325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21328 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21329 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21331 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21332 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21374 hardcode_action_CXX=
21375 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21376 test -n "$runpath_var_CXX" ||
21377 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21379 # We can hardcode non-existent directories.
21380 if test "$hardcode_direct_CXX" != no &&
21381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21382 # have to relink, otherwise we might link with an installed library
21383 # when we should be linking with a yet-to-be-installed one
21384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21385 test "$hardcode_minus_L_CXX" != no; then
21386 # Linking always hardcodes the temporary library directory.
21387 hardcode_action_CXX=relink
21388 else
21389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21390 hardcode_action_CXX=immediate
21392 else
21393 # We cannot hardcode anything, or else we can only hardcode existing
21394 # directories.
21395 hardcode_action_CXX=unsupported
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21398 $as_echo "$hardcode_action_CXX" >&6; }
21400 if test "$hardcode_action_CXX" = relink ||
21401 test "$inherit_rpath_CXX" = yes; then
21402 # Fast installation is not supported
21403 enable_fast_install=no
21404 elif test "$shlibpath_overrides_runpath" = yes ||
21405 test "$enable_shared" = no; then
21406 # Fast installation is not necessary
21407 enable_fast_install=needless
21416 fi # test -n "$compiler"
21418 CC=$lt_save_CC
21419 LDCXX=$LD
21420 LD=$lt_save_LD
21421 GCC=$lt_save_GCC
21422 with_gnu_ld=$lt_save_with_gnu_ld
21423 lt_cv_path_LDCXX=$lt_cv_path_LD
21424 lt_cv_path_LD=$lt_save_path_LD
21425 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21426 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21427 fi # test "$_lt_caught_CXX_error" != yes
21429 ac_ext=c
21430 ac_cpp='$CPP $CPPFLAGS'
21431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450 # Only expand once:
21456 # Identify the assembler which will work hand-in-glove with the newly
21457 # built GCC, so that we can examine its features. This is the assembler
21458 # which will be driven by the driver program.
21460 # If build != host, and we aren't building gas in-tree, we identify a
21461 # build->target assembler and hope that it will have the same features
21462 # as the host->target assembler we'll be using.
21463 gcc_cv_gas_major_version=
21464 gcc_cv_gas_minor_version=
21465 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21467 if test "${gcc_cv_as+set}" = set; then :
21469 else
21471 if test -x "$DEFAULT_ASSEMBLER"; then
21472 gcc_cv_as="$DEFAULT_ASSEMBLER"
21473 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21474 && test -f ../gas/Makefile \
21475 && test x$build = x$host; then
21476 gcc_cv_as=../gas/as-new$build_exeext
21477 elif test -x as$build_exeext; then
21478 # Build using assembler in the current directory.
21479 gcc_cv_as=./as$build_exeext
21480 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21481 gcc_cv_as="$AS_FOR_TARGET"
21482 else
21483 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21484 set dummy $AS_FOR_TARGET; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 case $gcc_cv_as in
21491 [\\/]* | ?:[\\/]*)
21492 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 for as_dir in $PATH
21498 IFS=$as_save_IFS
21499 test -z "$as_dir" && as_dir=.
21500 for ac_exec_ext in '' $ac_executable_extensions; do
21501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21502 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21504 break 2
21506 done
21507 done
21508 IFS=$as_save_IFS
21511 esac
21513 gcc_cv_as=$ac_cv_path_gcc_cv_as
21514 if test -n "$gcc_cv_as"; then
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21516 $as_echo "$gcc_cv_as" >&6; }
21517 else
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21526 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21528 case "$ORIGINAL_AS_FOR_TARGET" in
21529 ./as | ./as$build_exeext) ;;
21530 *) ac_config_files="$ac_config_files as:exec-tool.in"
21532 esac
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21535 $as_echo_n "checking what assembler to use... " >&6; }
21536 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21537 # Single tree build which includes gas. We want to prefer it
21538 # over whatever linker top-level may have detected, since
21539 # we'll use what we're building after installation anyway.
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21541 $as_echo "newly built gas" >&6; }
21542 in_tree_gas=yes
21543 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21544 for f in $gcc_cv_as_bfd_srcdir/configure \
21545 $gcc_cv_as_gas_srcdir/configure \
21546 $gcc_cv_as_gas_srcdir/configure.in \
21547 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21548 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21549 if test x$gcc_cv_gas_version != x; then
21550 break
21552 done
21553 case $gcc_cv_gas_version in
21554 VERSION=[0-9]*) ;;
21555 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21556 esac
21557 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21558 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21559 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21560 case $gcc_cv_gas_patch_version in
21561 "") gcc_cv_gas_patch_version="0" ;;
21562 esac
21563 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21564 + $gcc_cv_gas_minor_version \) \* 1000 \
21565 + $gcc_cv_gas_patch_version`
21567 in_tree_gas_is_elf=no
21568 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21569 || (grep 'obj_format = multi' ../gas/Makefile \
21570 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21571 then
21572 in_tree_gas_is_elf=yes
21574 else
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21576 $as_echo "$gcc_cv_as" >&6; }
21577 in_tree_gas=no
21580 # Identify the linker which will work hand-in-glove with the newly
21581 # built GCC, so that we can examine its features. This is the linker
21582 # which will be driven by the driver program.
21584 # If build != host, and we aren't building gas in-tree, we identify a
21585 # build->target linker and hope that it will have the same features
21586 # as the host->target linker we'll be using.
21587 gcc_cv_gld_major_version=
21588 gcc_cv_gld_minor_version=
21589 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21590 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21592 if test "${gcc_cv_ld+set}" = set; then :
21594 else
21596 if test -x "$DEFAULT_LINKER"; then
21597 gcc_cv_ld="$DEFAULT_LINKER"
21598 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21599 && test -f ../ld/Makefile \
21600 && test x$build = x$host; then
21601 gcc_cv_ld=../ld/ld-new$build_exeext
21602 elif test -x collect-ld$build_exeext; then
21603 # Build using linker in the current directory.
21604 gcc_cv_ld=./collect-ld$build_exeext
21605 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21606 gcc_cv_ld="$LD_FOR_TARGET"
21607 else
21608 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21609 set dummy $LD_FOR_TARGET; ac_word=$2
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21611 $as_echo_n "checking for $ac_word... " >&6; }
21612 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21613 $as_echo_n "(cached) " >&6
21614 else
21615 case $gcc_cv_ld in
21616 [\\/]* | ?:[\\/]*)
21617 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21621 for as_dir in $PATH
21623 IFS=$as_save_IFS
21624 test -z "$as_dir" && as_dir=.
21625 for ac_exec_ext in '' $ac_executable_extensions; do
21626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21627 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21629 break 2
21631 done
21632 done
21633 IFS=$as_save_IFS
21636 esac
21638 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21639 if test -n "$gcc_cv_ld"; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21641 $as_echo "$gcc_cv_ld" >&6; }
21642 else
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21644 $as_echo "no" >&6; }
21651 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21652 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21653 # if the PLUGIN_LD is set ld-new, just have it as ld
21654 # as that is the installed named.
21655 if test x$PLUGIN_LD_SUFFIX = xld-new \
21656 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21657 PLUGIN_LD_SUFFIX=ld
21660 # Check whether --with-plugin-ld was given.
21661 if test "${with_plugin_ld+set}" = set; then :
21662 withval=$with_plugin_ld; if test x"$withval" != x; then
21663 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21664 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21670 cat >>confdefs.h <<_ACEOF
21671 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21672 _ACEOF
21675 # Check to see if we are using gold instead of ld
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21677 $as_echo_n "checking whether we are using gold... " >&6; }
21678 ld_is_gold=no
21679 if test x$gcc_cv_ld != x; then
21680 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21681 | grep "GNU gold" > /dev/null; then
21682 ld_is_gold=yes
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21686 $as_echo "$ld_is_gold" >&6; }
21688 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21690 case "$ORIGINAL_LD_FOR_TARGET" in
21691 ./collect-ld | ./collect-ld$build_exeext) ;;
21692 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21694 esac
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21697 $as_echo_n "checking what linker to use... " >&6; }
21698 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21699 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21700 # Single tree build which includes ld. We want to prefer it
21701 # over whatever linker top-level may have detected, since
21702 # we'll use what we're building after installation anyway.
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21704 $as_echo "newly built ld" >&6; }
21705 in_tree_ld=yes
21706 in_tree_ld_is_elf=no
21707 if (grep 'EMUL = .*elf' ../ld/Makefile \
21708 || grep 'EMUL = .*linux' ../ld/Makefile \
21709 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21710 in_tree_ld_is_elf=yes
21711 elif test "$ld_is_gold" = yes; then
21712 in_tree_ld_is_elf=yes
21714 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
21716 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21717 if test x$gcc_cv_gld_version != x; then
21718 break
21720 done
21721 case $gcc_cv_gld_version in
21722 VERSION=[0-9]*) ;;
21723 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21724 esac
21725 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21726 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21727 else
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21729 $as_echo "$gcc_cv_ld" >&6; }
21730 in_tree_ld=no
21733 # Figure out what nm we will be using.
21734 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21735 if test "${gcc_cv_nm+set}" = set; then :
21737 else
21739 if test -f $gcc_cv_binutils_srcdir/configure.in \
21740 && test -f ../binutils/Makefile \
21741 && test x$build = x$host; then
21742 gcc_cv_nm=../binutils/nm-new$build_exeext
21743 elif test -x nm$build_exeext; then
21744 gcc_cv_nm=./nm$build_exeext
21745 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21746 gcc_cv_nm="$NM_FOR_TARGET"
21747 else
21748 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21749 set dummy $NM_FOR_TARGET; ac_word=$2
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21751 $as_echo_n "checking for $ac_word... " >&6; }
21752 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21753 $as_echo_n "(cached) " >&6
21754 else
21755 case $gcc_cv_nm in
21756 [\\/]* | ?:[\\/]*)
21757 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21761 for as_dir in $PATH
21763 IFS=$as_save_IFS
21764 test -z "$as_dir" && as_dir=.
21765 for ac_exec_ext in '' $ac_executable_extensions; do
21766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21767 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21769 break 2
21771 done
21772 done
21773 IFS=$as_save_IFS
21776 esac
21778 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21779 if test -n "$gcc_cv_nm"; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21781 $as_echo "$gcc_cv_nm" >&6; }
21782 else
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21784 $as_echo "no" >&6; }
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21792 $as_echo_n "checking what nm to use... " >&6; }
21793 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21794 # Single tree build which includes binutils.
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21796 $as_echo "newly built nm" >&6; }
21797 in_tree_nm=yes
21798 else
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21800 $as_echo "$gcc_cv_nm" >&6; }
21801 in_tree_nm=no
21804 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21806 case "$ORIGINAL_NM_FOR_TARGET" in
21807 ./nm | ./nm$build_exeext) ;;
21808 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21810 esac
21813 # Figure out what objdump we will be using.
21814 if test "${gcc_cv_objdump+set}" = set; then :
21816 else
21818 if test -f $gcc_cv_binutils_srcdir/configure.in \
21819 && test -f ../binutils/Makefile \
21820 && test x$build = x$host; then
21821 # Single tree build which includes binutils.
21822 gcc_cv_objdump=../binutils/objdump$build_exeext
21823 elif test -x objdump$build_exeext; then
21824 gcc_cv_objdump=./objdump$build_exeext
21825 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21826 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21827 else
21828 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21829 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21834 else
21835 case $gcc_cv_objdump in
21836 [\\/]* | ?:[\\/]*)
21837 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21841 for as_dir in $PATH
21843 IFS=$as_save_IFS
21844 test -z "$as_dir" && as_dir=.
21845 for ac_exec_ext in '' $ac_executable_extensions; do
21846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21847 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21849 break 2
21851 done
21852 done
21853 IFS=$as_save_IFS
21856 esac
21858 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21859 if test -n "$gcc_cv_objdump"; then
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21861 $as_echo "$gcc_cv_objdump" >&6; }
21862 else
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21872 $as_echo_n "checking what objdump to use... " >&6; }
21873 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21874 # Single tree build which includes binutils.
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21876 $as_echo "newly built objdump" >&6; }
21877 elif test x$gcc_cv_objdump = x; then
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21879 $as_echo "not found" >&6; }
21880 else
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21882 $as_echo "$gcc_cv_objdump" >&6; }
21885 # Figure out what readelf we will be using.
21886 if test "${gcc_cv_readelf+set}" = set; then :
21888 else
21890 if test -f $gcc_cv_binutils_srcdir/configure.in \
21891 && test -f ../binutils/Makefile \
21892 && test x$build = x$host; then
21893 # Single tree build which includes binutils.
21894 gcc_cv_readelf=../binutils/readelf$build_exeext
21895 elif test -x readelf$build_exeext; then
21896 gcc_cv_readelf=./readelf$build_exeext
21897 else
21898 # Extract the first word of "readelf", so it can be a program name with args.
21899 set dummy readelf; ac_word=$2
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21901 $as_echo_n "checking for $ac_word... " >&6; }
21902 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21903 $as_echo_n "(cached) " >&6
21904 else
21905 case $gcc_cv_readelf in
21906 [\\/]* | ?:[\\/]*)
21907 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21911 for as_dir in $PATH
21913 IFS=$as_save_IFS
21914 test -z "$as_dir" && as_dir=.
21915 for ac_exec_ext in '' $ac_executable_extensions; do
21916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21917 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21919 break 2
21921 done
21922 done
21923 IFS=$as_save_IFS
21926 esac
21928 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21929 if test -n "$gcc_cv_readelf"; then
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21931 $as_echo "$gcc_cv_readelf" >&6; }
21932 else
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934 $as_echo "no" >&6; }
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21942 $as_echo_n "checking what readelf to use... " >&6; }
21943 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21944 # Single tree build which includes binutils.
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21946 $as_echo "newly built readelf" >&6; }
21947 elif test x$gcc_cv_readelf = x; then
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21949 $as_echo "not found" >&6; }
21950 else
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21952 $as_echo "$gcc_cv_readelf" >&6; }
21955 # Figure out what assembler alignment features are present.
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21957 $as_echo_n "checking assembler flags... " >&6; }
21958 if test "${gcc_cv_as_flags+set}" = set; then :
21959 $as_echo_n "(cached) " >&6
21960 else
21961 case "$target" in
21962 i[34567]86-*-linux*)
21963 gcc_cv_as_flags="--32"
21965 powerpc*-*-darwin*)
21966 gcc_cv_as_flags="-arch ppc"
21969 gcc_cv_as_flags=" "
21971 esac
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21974 $as_echo "$gcc_cv_as_flags" >&6; }
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21977 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21978 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 gcc_cv_as_balign_and_p2align=no
21982 if test $in_tree_gas = yes; then
21983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21984 then gcc_cv_as_balign_and_p2align=yes
21986 elif test x$gcc_cv_as != x; then
21987 $as_echo '.balign 4
21988 .p2align 2' > 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_balign_and_p2align=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_balign_and_p2align" >&5
22005 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22006 if test $gcc_cv_as_balign_and_p2align = yes; then
22008 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22013 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22014 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22016 else
22017 gcc_cv_as_max_skip_p2align=no
22018 if test $in_tree_gas = yes; then
22019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22020 then gcc_cv_as_max_skip_p2align=yes
22022 elif test x$gcc_cv_as != x; then
22023 $as_echo '.p2align 4,,7' > conftest.s
22024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22029 test $ac_status = 0; }; }
22030 then
22031 gcc_cv_as_max_skip_p2align=yes
22032 else
22033 echo "configure: failed program was" >&5
22034 cat conftest.s >&5
22036 rm -f conftest.o conftest.s
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22040 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22041 if test $gcc_cv_as_max_skip_p2align = yes; then
22043 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22048 $as_echo_n "checking assembler for .literal16... " >&6; }
22049 if test "${gcc_cv_as_literal16+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 gcc_cv_as_literal16=no
22053 if test $in_tree_gas = yes; then
22054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22055 then gcc_cv_as_literal16=yes
22057 elif test x$gcc_cv_as != x; then
22058 $as_echo '.literal16' > conftest.s
22059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22061 (eval $ac_try) 2>&5
22062 ac_status=$?
22063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22064 test $ac_status = 0; }; }
22065 then
22066 gcc_cv_as_literal16=yes
22067 else
22068 echo "configure: failed program was" >&5
22069 cat conftest.s >&5
22071 rm -f conftest.o conftest.s
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22075 $as_echo "$gcc_cv_as_literal16" >&6; }
22076 if test $gcc_cv_as_literal16 = yes; then
22078 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22083 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22084 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 gcc_cv_as_subsection_m1=no
22088 if test $in_tree_gas = yes; then
22089 if test $in_tree_gas_is_elf = yes \
22090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22091 then gcc_cv_as_subsection_m1=yes
22093 elif test x$gcc_cv_as != x; then
22094 $as_echo 'conftest_label1: .word 0
22095 .subsection -1
22096 conftest_label2: .word 0
22097 .previous' > conftest.s
22098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22103 test $ac_status = 0; }; }
22104 then
22105 if test x$gcc_cv_nm != x; then
22106 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22107 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22108 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22109 then :
22110 else gcc_cv_as_subsection_m1=yes
22112 rm -f conftest.nm1 conftest.nm2
22114 else
22115 echo "configure: failed program was" >&5
22116 cat conftest.s >&5
22118 rm -f conftest.o conftest.s
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22122 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22123 if test $gcc_cv_as_subsection_m1 = yes; then
22125 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22130 $as_echo_n "checking assembler for .weak... " >&6; }
22131 if test "${gcc_cv_as_weak+set}" = set; then :
22132 $as_echo_n "(cached) " >&6
22133 else
22134 gcc_cv_as_weak=no
22135 if test $in_tree_gas = yes; then
22136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22137 then gcc_cv_as_weak=yes
22139 elif test x$gcc_cv_as != x; then
22140 $as_echo ' .weak foobar' > conftest.s
22141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22146 test $ac_status = 0; }; }
22147 then
22148 gcc_cv_as_weak=yes
22149 else
22150 echo "configure: failed program was" >&5
22151 cat conftest.s >&5
22153 rm -f conftest.o conftest.s
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22157 $as_echo "$gcc_cv_as_weak" >&6; }
22158 if test $gcc_cv_as_weak = yes; then
22160 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22165 $as_echo_n "checking assembler for .weakref... " >&6; }
22166 if test "${gcc_cv_as_weakref+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22168 else
22169 gcc_cv_as_weakref=no
22170 if test $in_tree_gas = yes; then
22171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22172 then gcc_cv_as_weakref=yes
22174 elif test x$gcc_cv_as != x; then
22175 $as_echo ' .weakref foobar, barfnot' > conftest.s
22176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22178 (eval $ac_try) 2>&5
22179 ac_status=$?
22180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22181 test $ac_status = 0; }; }
22182 then
22183 gcc_cv_as_weakref=yes
22184 else
22185 echo "configure: failed program was" >&5
22186 cat conftest.s >&5
22188 rm -f conftest.o conftest.s
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22192 $as_echo "$gcc_cv_as_weakref" >&6; }
22193 if test $gcc_cv_as_weakref = yes; then
22195 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22200 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22201 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22202 $as_echo_n "(cached) " >&6
22203 else
22204 gcc_cv_as_nsubspa_comdat=no
22205 if test $in_tree_gas = yes; then
22206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22207 then gcc_cv_as_nsubspa_comdat=yes
22209 elif test x$gcc_cv_as != x; then
22210 $as_echo ' .SPACE $TEXT$
22211 .NSUBSPA $CODE$,COMDAT' > conftest.s
22212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22214 (eval $ac_try) 2>&5
22215 ac_status=$?
22216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22217 test $ac_status = 0; }; }
22218 then
22219 gcc_cv_as_nsubspa_comdat=yes
22220 else
22221 echo "configure: failed program was" >&5
22222 cat conftest.s >&5
22224 rm -f conftest.o conftest.s
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22228 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22229 if test $gcc_cv_as_nsubspa_comdat = yes; then
22231 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22235 # .hidden needs to be supported in both the assembler and the linker,
22236 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22237 # This is irritatingly difficult to feature test for; we have to check the
22238 # date string after the version number. If we've got an in-tree
22239 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22240 # to be safe.
22241 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22243 $as_echo_n "checking assembler for .hidden... " >&6; }
22244 if test "${gcc_cv_as_hidden+set}" = set; then :
22245 $as_echo_n "(cached) " >&6
22246 else
22247 gcc_cv_as_hidden=no
22248 if test $in_tree_gas = yes; then
22249 if test $in_tree_gas_is_elf = yes \
22250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22251 then gcc_cv_as_hidden=yes
22253 elif test x$gcc_cv_as != x; then
22254 $as_echo ' .hidden foobar
22255 foobar:' > conftest.s
22256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22261 test $ac_status = 0; }; }
22262 then
22264 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22265 # STV_HIDDEN, so disable .hidden support if so.
22266 case "${target}" in
22267 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22268 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22269 cat > conftest.s <<EOF
22270 .globl hidden
22271 .hidden hidden
22272 hidden:
22273 .globl default
22274 .set default,hidden
22276 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22277 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22278 grep '\.hidden default' > /dev/null; then
22279 gcc_cv_as_hidden=no
22280 else
22281 gcc_cv_as_hidden=yes
22283 else
22284 # Assume bug is present if objdump is missing.
22285 gcc_cv_as_hidden=no
22289 gcc_cv_as_hidden=yes
22291 esac
22292 else
22293 echo "configure: failed program was" >&5
22294 cat conftest.s >&5
22296 rm -f conftest.o conftest.s
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22300 $as_echo "$gcc_cv_as_hidden" >&6; }
22302 case "${target}" in
22303 *-*-darwin*)
22304 # Darwin as has some visibility support, though with a different syntax.
22305 gcc_cv_as_hidden=yes
22307 esac
22309 # gnu_indirect_function type is an extension proposed at
22310 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22311 # selection of function implementation
22312 # Check whether --enable-gnu-indirect-function was given.
22313 if test "${enable_gnu_indirect_function+set}" = set; then :
22314 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22315 yes | no) ;;
22316 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22317 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22318 esac
22319 else
22320 enable_gnu_indirect_function="$default_gnu_indirect_function"
22323 if test x$enable_gnu_indirect_function = xyes; then
22325 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22329 if test $in_tree_ld != yes ; then
22330 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22331 if echo "$ld_ver" | grep GNU > /dev/null; then
22332 if test x"$ld_is_gold" = xyes; then
22333 # GNU gold --version looks like this:
22335 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22337 # We extract the binutils version which is more familiar and specific
22338 # than the gold version.
22339 ld_vers=`echo $ld_ver | sed -n \
22340 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22341 else
22342 # GNU ld --version looks like this:
22344 # GNU ld (GNU Binutils) 2.21.51.20110225
22345 ld_vers=`echo $ld_ver | sed -n \
22346 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22348 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'`
22349 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22350 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22351 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22352 else
22353 case "${target}" in
22354 *-*-solaris2*)
22355 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22356 # format.
22358 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22359 # /usr/ccs/bin/ld has been configured.
22360 ld_ver=`$gcc_cv_ld -V 2>&1`
22361 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22362 ld_vers=`echo $ld_ver | sed -n \
22363 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22364 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22365 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22368 esac
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22373 $as_echo_n "checking linker for .hidden support... " >&6; }
22374 if test "${gcc_cv_ld_hidden+set}" = set; then :
22375 $as_echo_n "(cached) " >&6
22376 else
22377 if test $in_tree_ld = yes ; then
22378 gcc_cv_ld_hidden=no
22379 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 \
22380 && test $in_tree_ld_is_elf = yes; then
22381 gcc_cv_ld_hidden=yes
22383 else
22384 gcc_cv_ld_hidden=yes
22385 if test x"$ld_is_gold" = xyes; then
22387 elif echo "$ld_ver" | grep GNU > /dev/null; then
22388 case "${target}" in
22389 mmix-knuth-mmixware)
22390 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22391 gcc_cv_ld_hidden=no
22393 esac
22394 if test 0"$ld_date" -lt 20020404; then
22395 if test -n "$ld_date"; then
22396 # If there was date string, but was earlier than 2002-04-04, fail
22397 gcc_cv_ld_hidden=no
22398 elif test -z "$ld_vers"; then
22399 # If there was no date string nor ld version number, something is wrong
22400 gcc_cv_ld_hidden=no
22401 else
22402 test -z "$ld_vers_patch" && ld_vers_patch=0
22403 if test "$ld_vers_major" -lt 2; then
22404 gcc_cv_ld_hidden=no
22405 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22406 gcc_cv_ld_hidden="no"
22407 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22408 gcc_cv_ld_hidden=no
22412 else
22413 case "${target}" in
22414 *-*-darwin*)
22415 # Darwin ld has some visibility support.
22416 gcc_cv_ld_hidden=yes
22418 hppa64*-*-hpux* | ia64*-*-hpux*)
22419 gcc_cv_ld_hidden=yes
22421 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22422 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22423 # .symbolic was only added in Solaris 9 12/02.
22424 gcc_cv_ld_hidden=yes
22427 gcc_cv_ld_hidden=no
22429 esac
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22434 $as_echo "$gcc_cv_ld_hidden" >&6; }
22435 libgcc_visibility=no
22438 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22439 libgcc_visibility=yes
22441 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22446 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22447 gcc_cv_ld_ro_rw_mix=unknown
22448 if test $in_tree_ld = yes ; then
22449 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 \
22450 && test $in_tree_ld_is_elf = yes; then
22451 gcc_cv_ld_ro_rw_mix=read-write
22453 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22454 echo '.section myfoosect, "a"' > conftest1.s
22455 echo '.section myfoosect, "aw"' > conftest2.s
22456 echo '.byte 1' >> conftest2.s
22457 echo '.section myfoosect, "a"' > conftest3.s
22458 echo '.byte 0' >> conftest3.s
22459 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22460 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22461 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22462 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22463 conftest2.o conftest3.o > /dev/null 2>&1; then
22464 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22465 | sed -e '/myfoosect/!d' -e N`
22466 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22467 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22468 gcc_cv_ld_ro_rw_mix=read-only
22469 else
22470 gcc_cv_ld_ro_rw_mix=read-write
22474 rm -f conftest.* conftest[123].*
22476 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22478 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22482 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22484 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22485 case "${target}" in
22486 *-*-solaris2*)
22488 # Solaris 2 ld -V output looks like this for a regular version:
22490 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22492 # but test versions add stuff at the end:
22494 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22496 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22497 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22498 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22499 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22500 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22501 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22504 esac
22507 # Check whether --enable-initfini-array was given.
22508 if test "${enable_initfini_array+set}" = set; then :
22509 enableval=$enable_initfini_array;
22510 else
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22513 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22514 if test "${gcc_cv_initfini_array+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22518 case "${target}" in
22519 ia64-*)
22520 if test "$cross_compiling" = yes; then :
22521 gcc_cv_initfini_array=no
22522 else
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22526 #ifndef __ELF__
22527 #error Not an ELF OS
22528 #endif
22529 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22530 if it can be used. */
22531 static int x = -1;
22532 int main (void) { return x; }
22533 int foo (void) { x = 0; }
22534 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22536 _ACEOF
22537 if ac_fn_c_try_run "$LINENO"; then :
22538 gcc_cv_initfini_array=yes
22539 else
22540 gcc_cv_initfini_array=no
22542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22543 conftest.$ac_objext conftest.beam conftest.$ac_ext
22547 gcc_cv_initfini_array=no
22548 if test $in_tree_ld = yes ; then
22549 if test "$gcc_cv_gld_major_version" -eq 2 \
22550 -a "$gcc_cv_gld_minor_version" -ge 22 \
22551 -o "$gcc_cv_gld_major_version" -gt 2 \
22552 && test $in_tree_ld_is_elf = yes; then
22553 gcc_cv_initfini_array=yes
22555 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22556 cat > conftest.s <<\EOF
22557 .section .dtors,"a",%progbits
22558 .balign 4
22559 .byte 'A', 'A', 'A', 'A'
22560 .section .ctors,"a",%progbits
22561 .balign 4
22562 .byte 'B', 'B', 'B', 'B'
22563 .section .fini_array.65530,"a",%progbits
22564 .balign 4
22565 .byte 'C', 'C', 'C', 'C'
22566 .section .init_array.65530,"a",%progbits
22567 .balign 4
22568 .byte 'D', 'D', 'D', 'D'
22569 .section .dtors.64528,"a",%progbits
22570 .balign 4
22571 .byte 'E', 'E', 'E', 'E'
22572 .section .ctors.64528,"a",%progbits
22573 .balign 4
22574 .byte 'F', 'F', 'F', 'F'
22575 .section .fini_array.01005,"a",%progbits
22576 .balign 4
22577 .byte 'G', 'G', 'G', 'G'
22578 .section .init_array.01005,"a",%progbits
22579 .balign 4
22580 .byte 'H', 'H', 'H', 'H'
22581 .text
22582 .globl _start
22583 _start:
22585 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22586 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22587 && $gcc_cv_objdump -s -j .init_array conftest \
22588 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22589 && $gcc_cv_objdump -s -j .fini_array conftest \
22590 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22591 gcc_cv_initfini_array=yes
22593 rm -f conftest conftest.*
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22598 #ifndef __ELF__
22599 # error Not an ELF OS
22600 #endif
22601 #include <stdlib.h>
22602 #if defined __GLIBC_PREREQ
22603 # if __GLIBC_PREREQ (2, 4)
22604 # else
22605 # error GLIBC 2.4 required
22606 # endif
22607 #else
22608 # if defined __sun__ && defined __svr4__
22609 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22610 # else
22611 # error The C library not known to support .init_array/.fini_array
22612 # endif
22613 #endif
22615 _ACEOF
22616 if ac_fn_c_try_cpp "$LINENO"; then :
22618 else
22619 gcc_cv_initfini_array=no
22621 rm -f conftest.err conftest.$ac_ext;;
22622 esac
22623 else
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22625 $as_echo_n "checking cross compile... guessing... " >&6; }
22626 gcc_cv_initfini_array=no
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22630 $as_echo "$gcc_cv_initfini_array" >&6; }
22631 enable_initfini_array=$gcc_cv_initfini_array
22635 if test $enable_initfini_array = yes; then
22637 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22641 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22643 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22644 if test "${gcc_cv_as_leb128+set}" = set; then :
22645 $as_echo_n "(cached) " >&6
22646 else
22647 gcc_cv_as_leb128=no
22648 if test $in_tree_gas = yes; then
22649 if test $in_tree_gas_is_elf = yes \
22650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22651 then gcc_cv_as_leb128=yes
22653 elif test x$gcc_cv_as != x; then
22654 $as_echo ' .data
22655 .uleb128 L2 - L1
22657 .uleb128 1280
22658 .sleb128 -1010
22659 L2:' > conftest.s
22660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }
22666 then
22667 # GAS versions before 2.11 do not support uleb128,
22668 # despite appearing to.
22669 # ??? There exists an elf-specific test that will crash
22670 # the assembler. Perhaps it's better to figure out whether
22671 # arbitrary sections are supported and try the test.
22672 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22673 if echo "$as_ver" | grep GNU > /dev/null; then
22674 as_vers=`echo $as_ver | sed -n \
22675 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22676 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22677 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22678 if test $as_major -eq 2 && test $as_minor -lt 11
22679 then :
22680 else gcc_cv_as_leb128=yes
22683 else
22684 echo "configure: failed program was" >&5
22685 cat conftest.s >&5
22687 rm -f conftest.o conftest.s
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22691 $as_echo "$gcc_cv_as_leb128" >&6; }
22692 if test $gcc_cv_as_leb128 = yes; then
22694 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22698 # Check if we have assembler support for unwind directives.
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22700 $as_echo_n "checking assembler for cfi directives... " >&6; }
22701 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22703 else
22704 gcc_cv_as_cfi_directive=no
22705 if test x$gcc_cv_as != x; then
22706 $as_echo ' .text
22707 .cfi_startproc
22708 .cfi_offset 0, 0
22709 .cfi_same_value 1
22710 .cfi_def_cfa 1, 2
22711 .cfi_escape 1, 2, 3, 4, 5
22712 .cfi_endproc' > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22719 then
22720 case "$target" in
22721 *-*-solaris*)
22722 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22723 # read-only and read-write sections, we need to make sure that the
22724 # assembler used emits read-write .eh_frame sections.
22725 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22726 if test "x$gcc_cv_objdump" != x; then
22727 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22728 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22729 gcc_cv_as_cfi_directive=no
22730 else
22731 case "$target" in
22732 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22733 # On Solaris/x86, make sure that GCC and gas agree on using
22734 # read-only .eh_frame sections for 64-bit.
22735 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22736 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22737 sed -e /.eh_frame/!d -e N | \
22738 grep READONLY > /dev/null; then
22739 gcc_cv_as_cfi_directive=yes
22740 else
22741 gcc_cv_as_cfi_directive=no
22745 gcc_cv_as_cfi_directive=yes
22747 esac
22749 else
22750 # no objdump, err on the side of caution
22751 gcc_cv_as_cfi_directive=no
22753 else
22754 gcc_cv_as_cfi_directive=yes
22757 *-*-*)
22758 gcc_cv_as_cfi_directive=yes
22760 esac
22761 else
22762 echo "configure: failed program was" >&5
22763 cat conftest.s >&5
22765 rm -f conftest.o conftest.s
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22769 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22771 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22773 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22774 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22775 $as_echo_n "(cached) " >&6
22776 else
22777 gcc_cv_as_cfi_advance_working=no
22778 if test x$gcc_cv_as != x; then
22779 $as_echo ' .text
22780 .cfi_startproc
22781 .cfi_adjust_cfa_offset 64
22782 .skip 75040, 0
22783 .cfi_adjust_cfa_offset 128
22784 .cfi_endproc' > conftest.s
22785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }
22791 then
22793 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22794 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22795 gcc_cv_as_cfi_advance_working=yes
22798 else
22799 echo "configure: failed program was" >&5
22800 cat conftest.s >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22806 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22808 else
22809 # no objdump, err on the side of caution
22810 gcc_cv_as_cfi_advance_working=no
22814 cat >>confdefs.h <<_ACEOF
22815 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22816 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22817 _ACEOF
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22822 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22823 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22825 else
22826 gcc_cv_as_cfi_personality_directive=no
22827 if test x$gcc_cv_as != x; then
22828 $as_echo ' .text
22829 .cfi_startproc
22830 .cfi_personality 0, symbol
22831 .cfi_endproc' > conftest.s
22832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22837 test $ac_status = 0; }; }
22838 then
22839 gcc_cv_as_cfi_personality_directive=yes
22840 else
22841 echo "configure: failed program was" >&5
22842 cat conftest.s >&5
22844 rm -f conftest.o conftest.s
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22848 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22851 cat >>confdefs.h <<_ACEOF
22852 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22853 then echo 1; else echo 0; fi`
22854 _ACEOF
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22858 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22859 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22861 else
22862 gcc_cv_as_cfi_sections_directive=no
22863 if test x$gcc_cv_as != x; then
22864 $as_echo ' .text
22865 .cfi_sections .debug_frame, .eh_frame
22866 .cfi_startproc
22867 .cfi_endproc' > conftest.s
22868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }; }
22874 then
22875 case $target_os in
22876 win32 | pe | cygwin* | mingw32* | uwin*)
22877 # Need to check that we generated the correct relocation for the
22878 # .debug_frame section. This was fixed for binutils 2.21.
22879 gcc_cv_as_cfi_sections_directive=no
22880 if test "x$gcc_cv_objdump" != x; then
22881 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22882 grep secrel > /dev/null; then
22883 gcc_cv_as_cfi_sections_directive=yes
22888 gcc_cv_as_cfi_sections_directive=yes
22890 esac
22891 else
22892 echo "configure: failed program was" >&5
22893 cat conftest.s >&5
22895 rm -f conftest.o conftest.s
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22899 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22903 cat >>confdefs.h <<_ACEOF
22904 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22905 then echo 1; else echo 0; fi`
22906 _ACEOF
22909 # GAS versions up to and including 2.11.0 may mis-optimize
22910 # .eh_frame data.
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22912 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22913 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22915 else
22916 gcc_cv_as_eh_frame=no
22917 if test $in_tree_gas = yes; then
22918 if test $in_tree_gas_is_elf = yes \
22919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22920 then gcc_cv_as_eh_frame=yes
22922 elif test x$gcc_cv_as != x; then
22923 $as_echo ' .text
22924 .LFB1:
22925 .4byte 0
22926 .L1:
22927 .4byte 0
22928 .LFE1:
22929 .section .eh_frame,"aw",@progbits
22930 __FRAME_BEGIN__:
22931 .4byte .LECIE1-.LSCIE1
22932 .LSCIE1:
22933 .4byte 0x0
22934 .byte 0x1
22935 .ascii "z\0"
22936 .byte 0x1
22937 .byte 0x78
22938 .byte 0x1a
22939 .byte 0x0
22940 .byte 0x4
22941 .4byte 1
22942 .p2align 1
22943 .LECIE1:
22944 .LSFDE1:
22945 .4byte .LEFDE1-.LASFDE1
22946 .LASFDE1:
22947 .4byte .LASFDE1-__FRAME_BEGIN__
22948 .4byte .LFB1
22949 .4byte .LFE1-.LFB1
22950 .byte 0x4
22951 .4byte .LFE1-.LFB1
22952 .byte 0x4
22953 .4byte .L1-.LFB1
22954 .LEFDE1:' > conftest.s
22955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22960 test $ac_status = 0; }; }
22961 then
22962 cat > conftest.lit <<EOF
22963 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22964 0010 01000000 12000000 18000000 00000000 ................
22965 0020 08000000 04080000 0044 .........D
22967 cat > conftest.big <<EOF
22968 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22969 0010 00000001 00000012 00000018 00000000 ................
22970 0020 00000008 04000000 0844 .........D
22972 # If the assembler didn't choke, and we can objdump,
22973 # and we got the correct data, then succeed.
22974 # The text in the here-document typically retains its unix-style line
22975 # endings, while the output of objdump will use host line endings.
22976 # Therefore, use diff -b for the comparisons.
22977 if test x$gcc_cv_objdump != x \
22978 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22979 | tail -3 > conftest.got \
22980 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22981 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22982 then
22983 gcc_cv_as_eh_frame=yes
22984 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22989 test $ac_status = 0; }; }; then
22990 gcc_cv_as_eh_frame=buggy
22991 else
22992 # Uh oh, what do we do now?
22993 gcc_cv_as_eh_frame=no
22995 else
22996 echo "configure: failed program was" >&5
22997 cat conftest.s >&5
22999 rm -f conftest.o conftest.s
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23003 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23006 if test $gcc_cv_as_eh_frame = buggy; then
23008 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23013 $as_echo_n "checking assembler for section merging support... " >&6; }
23014 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23015 $as_echo_n "(cached) " >&6
23016 else
23017 gcc_cv_as_shf_merge=no
23018 if test $in_tree_gas = yes; then
23019 if test $in_tree_gas_is_elf = yes \
23020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23021 then gcc_cv_as_shf_merge=yes
23023 elif test x$gcc_cv_as != x; then
23024 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23030 test $ac_status = 0; }; }
23031 then
23032 gcc_cv_as_shf_merge=yes
23033 else
23034 echo "configure: failed program was" >&5
23035 cat conftest.s >&5
23037 rm -f conftest.o conftest.s
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23041 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23043 if test $gcc_cv_as_shf_merge = no; then
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23045 $as_echo_n "checking assembler for section merging support... " >&6; }
23046 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23047 $as_echo_n "(cached) " >&6
23048 else
23049 gcc_cv_as_shf_merge=no
23050 if test $in_tree_gas = yes; then
23051 if test $in_tree_gas_is_elf = yes \
23052 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23053 then gcc_cv_as_shf_merge=yes
23055 elif test x$gcc_cv_as != x; then
23056 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23059 (eval $ac_try) 2>&5
23060 ac_status=$?
23061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23062 test $ac_status = 0; }; }
23063 then
23064 gcc_cv_as_shf_merge=yes
23065 else
23066 echo "configure: failed program was" >&5
23067 cat conftest.s >&5
23069 rm -f conftest.o conftest.s
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23073 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23077 cat >>confdefs.h <<_ACEOF
23078 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23079 _ACEOF
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23083 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23084 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23085 $as_echo_n "(cached) " >&6
23086 else
23087 gcc_cv_as_comdat_group=no
23088 if test $in_tree_gas = yes; then
23089 if test $in_tree_gas_is_elf = yes \
23090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23091 then gcc_cv_as_comdat_group=yes
23093 elif test x$gcc_cv_as != x; then
23094 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23101 then
23102 gcc_cv_as_comdat_group=yes
23103 else
23104 echo "configure: failed program was" >&5
23105 cat conftest.s >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23111 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23113 if test $gcc_cv_as_comdat_group = yes; then
23114 gcc_cv_as_comdat_group_percent=no
23115 gcc_cv_as_comdat_group_group=no
23116 else
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23118 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23119 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23120 $as_echo_n "(cached) " >&6
23121 else
23122 gcc_cv_as_comdat_group_percent=no
23123 if test $in_tree_gas = yes; then
23124 if test $in_tree_gas_is_elf = yes \
23125 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23126 then gcc_cv_as_comdat_group_percent=yes
23128 elif test x$gcc_cv_as != x; then
23129 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135 test $ac_status = 0; }; }
23136 then
23137 gcc_cv_as_comdat_group_percent=yes
23138 else
23139 echo "configure: failed program was" >&5
23140 cat conftest.s >&5
23142 rm -f conftest.o conftest.s
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23146 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23148 if test $gcc_cv_as_comdat_group_percent = yes; then
23149 gcc_cv_as_comdat_group_group=no
23150 else
23151 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23152 gcc_cv_as_comdat_group_group=no
23154 case "${target}" in
23155 # Sun as uses a completely different syntax.
23156 *-*-solaris2*)
23157 case "${target}" in
23158 sparc*-*-solaris2*)
23159 conftest_s='
23160 .group foo,".text%foo",#comdat
23161 .section ".text%foo", #alloc,#execinstr,#progbits
23162 .globl foo
23163 foo:
23166 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23167 conftest_s='
23168 .group foo,.text%foo,#comdat
23169 .section .text%foo, "ax", @progbits
23170 .globl foo
23171 foo:
23174 esac
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23176 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23177 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23178 $as_echo_n "(cached) " >&6
23179 else
23180 gcc_cv_as_comdat_group_group=no
23181 if test x$gcc_cv_as != x; then
23182 $as_echo "$conftest_s" > conftest.s
23183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188 test $ac_status = 0; }; }
23189 then
23190 gcc_cv_as_comdat_group_group=yes
23191 else
23192 echo "configure: failed program was" >&5
23193 cat conftest.s >&5
23195 rm -f conftest.o conftest.s
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23199 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23202 esac
23205 if test x"$ld_is_gold" = xyes; then
23206 comdat_group=yes
23207 elif test $in_tree_ld = yes ; then
23208 comdat_group=no
23209 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 \
23210 && test $in_tree_ld_is_elf = yes; then
23211 comdat_group=yes
23213 elif echo "$ld_ver" | grep GNU > /dev/null; then
23214 comdat_group=yes
23215 if test 0"$ld_date" -lt 20050308; then
23216 if test -n "$ld_date"; then
23217 # If there was date string, but was earlier than 2005-03-08, fail
23218 comdat_group=no
23219 elif test "$ld_vers_major" -lt 2; then
23220 comdat_group=no
23221 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23222 comdat_group=no
23225 else
23226 case "${target}" in
23227 *-*-solaris2.1[1-9]*)
23228 comdat_group=no
23229 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23230 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23231 # version 1.688.
23233 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23234 # least ld version 1.2267.
23235 if test "$ld_vers_major" -gt 1; then
23236 comdat_group=yes
23237 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23238 comdat_group=yes
23239 elif test "$ld_vers_minor" -ge 2267; then
23240 comdat_group=yes
23244 # Assume linkers other than GNU ld don't support COMDAT group.
23245 comdat_group=no
23247 esac
23249 # Allow overriding the automatic COMDAT group tests above.
23250 # Check whether --enable-comdat was given.
23251 if test "${enable_comdat+set}" = set; then :
23252 enableval=$enable_comdat; comdat_group="$enable_comdat"
23255 if test $comdat_group = no; then
23256 gcc_cv_as_comdat_group=no
23257 gcc_cv_as_comdat_group_percent=no
23258 gcc_cv_as_comdat_group_group=no
23261 cat >>confdefs.h <<_ACEOF
23262 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23263 || test $gcc_cv_as_comdat_group_percent = yes \
23264 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23265 _ACEOF
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23269 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23270 if test "${gcc_cv_as_discriminator+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23272 else
23273 gcc_cv_as_discriminator=no
23274 if test $in_tree_gas = yes; then
23275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23276 then gcc_cv_as_discriminator=yes
23278 elif test x$gcc_cv_as != x; then
23279 $as_echo ' .text
23280 .file 1 "conf.c"
23281 .loc 1 1 0 discriminator 1' > conftest.s
23282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
23286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23287 test $ac_status = 0; }; }
23288 then
23289 gcc_cv_as_discriminator=yes
23290 else
23291 echo "configure: failed program was" >&5
23292 cat conftest.s >&5
23294 rm -f conftest.o conftest.s
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23298 $as_echo "$gcc_cv_as_discriminator" >&6; }
23299 if test $gcc_cv_as_discriminator = yes; then
23301 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23305 # Thread-local storage - the check is heavily parameterized.
23306 conftest_s=
23307 tls_first_major=
23308 tls_first_minor=
23309 tls_as_opt=
23310 case "$target" in
23311 alpha*-*-*)
23312 conftest_s='
23313 .section ".tdata","awT",@progbits
23314 foo: .long 25
23315 .text
23316 ldq $27,__tls_get_addr($29) !literal!1
23317 lda $16,foo($29) !tlsgd!1
23318 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23319 ldq $27,__tls_get_addr($29) !literal!2
23320 lda $16,foo($29) !tlsldm!2
23321 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23322 ldq $1,foo($29) !gotdtprel
23323 ldah $2,foo($29) !dtprelhi
23324 lda $3,foo($2) !dtprello
23325 lda $4,foo($29) !dtprel
23326 ldq $1,foo($29) !gottprel
23327 ldah $2,foo($29) !tprelhi
23328 lda $3,foo($2) !tprello
23329 lda $4,foo($29) !tprel'
23330 tls_first_major=2
23331 tls_first_minor=13
23332 tls_as_opt=--fatal-warnings
23334 cris-*-*|crisv32-*-*)
23335 conftest_s='
23336 .section ".tdata","awT",@progbits
23337 x: .long 25
23338 .text
23339 move.d x:IE,$r10
23340 nop'
23341 tls_first_major=2
23342 tls_first_minor=20
23343 tls_as_opt=--fatal-warnings
23345 frv*-*-*)
23346 conftest_s='
23347 .section ".tdata","awT",@progbits
23348 x: .long 25
23349 .text
23350 call #gettlsoff(x)'
23351 tls_first_major=2
23352 tls_first_minor=14
23354 hppa*-*-linux*)
23355 conftest_s='
23356 t1: .reg %r20
23357 t2: .reg %r21
23358 gp: .reg %r19
23359 .section ".tdata","awT",@progbits
23360 foo: .long 25
23361 .text
23362 .align 4
23363 addil LT%foo-$tls_gdidx$,gp
23364 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23365 b __tls_get_addr
23367 addil LT%foo-$tls_ldidx$,gp
23368 b __tls_get_addr
23369 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23370 addil LR%foo-$tls_dtpoff$,%ret0
23371 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23372 mfctl %cr27,%t1
23373 addil LT%foo-$tls_ieoff$,gp
23374 ldw RT%foo-$tls_ieoff$(%r1),%t2
23375 add %t1,%t2,%t3
23376 mfctl %cr27,%t1
23377 addil LR%foo-$tls_leoff$,%t1
23378 ldo RR%foo-$tls_leoff$(%r1),%t2'
23379 tls_first_major=2
23380 tls_first_minor=15
23381 tls_as_opt=--fatal-warnings
23383 arm*-*-*)
23384 conftest_s='
23385 .section ".tdata","awT",%progbits
23386 foo: .long 25
23387 .text
23388 .word foo(gottpoff)
23389 .word foo(tpoff)
23390 .word foo(tlsgd)
23391 .word foo(tlsldm)
23392 .word foo(tlsldo)'
23393 tls_first_major=2
23394 tls_first_minor=17
23396 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23397 case "$target" in
23398 i[34567]86-*-solaris2.*)
23399 on_solaris=yes
23400 tga_func=___tls_get_addr
23402 x86_64-*-solaris2.1[0-9]*)
23403 on_solaris=yes
23404 tga_func=__tls_get_addr
23407 on_solaris=no
23409 esac
23410 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23411 conftest_s='
23412 .section .tdata,"awt",@progbits'
23413 tls_first_major=0
23414 tls_first_minor=0
23416 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23418 else
23419 conftest_s='
23420 .section ".tdata","awT",@progbits'
23421 tls_first_major=2
23422 tls_first_minor=14
23423 tls_as_opt="--fatal-warnings"
23425 conftest_s="$conftest_s
23426 foo: .long 25
23427 .text
23428 movl %gs:0, %eax
23429 leal foo@tlsgd(,%ebx,1), %eax
23430 leal foo@tlsldm(%ebx), %eax
23431 leal foo@dtpoff(%eax), %edx
23432 movl foo@gottpoff(%ebx), %eax
23433 subl foo@gottpoff(%ebx), %eax
23434 addl foo@gotntpoff(%ebx), %eax
23435 movl foo@indntpoff, %eax
23436 movl \$foo@tpoff, %eax
23437 subl \$foo@tpoff, %eax
23438 leal foo@ntpoff(%ecx), %eax"
23440 x86_64-*-*)
23441 conftest_s='
23442 .section ".tdata","awT",@progbits
23443 foo: .long 25
23444 .text
23445 movq %fs:0, %rax
23446 leaq foo@TLSGD(%rip), %rdi
23447 leaq foo@TLSLD(%rip), %rdi
23448 leaq foo@DTPOFF(%rax), %rdx
23449 movq foo@GOTTPOFF(%rip), %rax
23450 movq $foo@TPOFF, %rax'
23451 tls_first_major=2
23452 tls_first_minor=14
23453 tls_as_opt=--fatal-warnings
23455 ia64-*-*)
23456 conftest_s='
23457 .section ".tdata","awT",@progbits
23458 foo: data8 25
23459 .text
23460 addl r16 = @ltoff(@dtpmod(foo#)), gp
23461 addl r17 = @ltoff(@dtprel(foo#)), gp
23462 addl r18 = @ltoff(@tprel(foo#)), gp
23463 addl r19 = @dtprel(foo#), gp
23464 adds r21 = @dtprel(foo#), r13
23465 movl r23 = @dtprel(foo#)
23466 addl r20 = @tprel(foo#), gp
23467 adds r22 = @tprel(foo#), r13
23468 movl r24 = @tprel(foo#)'
23469 tls_first_major=2
23470 tls_first_minor=13
23471 tls_as_opt=--fatal-warnings
23473 mips*-*-*)
23474 conftest_s='
23475 .section .tdata,"awT",@progbits
23477 .word 2
23478 .text
23479 addiu $4, $28, %tlsgd(x)
23480 addiu $4, $28, %tlsldm(x)
23481 lui $4, %dtprel_hi(x)
23482 addiu $4, $4, %dtprel_lo(x)
23483 lw $4, %gottprel(x)($28)
23484 lui $4, %tprel_hi(x)
23485 addiu $4, $4, %tprel_lo(x)'
23486 tls_first_major=2
23487 tls_first_minor=16
23488 tls_as_opt='-32 --fatal-warnings'
23490 m68k-*-*)
23491 conftest_s='
23492 .section .tdata,"awT",@progbits
23494 .word 2
23495 .text
23496 foo:
23497 move.l x@TLSGD(%a5),%a0
23498 move.l x@TLSLDM(%a5),%a0
23499 move.l x@TLSLDO(%a5),%a0
23500 move.l x@TLSIE(%a5),%a0
23501 move.l x@TLSLE(%a5),%a0'
23502 tls_first_major=2
23503 tls_first_minor=19
23504 tls_as_opt='--fatal-warnings'
23506 aarch64*-*-*)
23507 conftest_s='
23508 .section ".tdata","awT",%progbits
23509 foo: .long 25
23510 .text
23511 adrp x0, :tlsgd:x
23512 add x0, x0, #:tlsgd_lo12:x
23513 bl __tls_get_addr
23514 nop'
23515 tls_first_major=2
23516 tls_first_minor=20
23517 tls_as_opt='--fatal-warnings'
23519 powerpc-ibm-aix*)
23520 conftest_s='
23521 .extern __get_tpointer
23522 .toc
23523 LC..1:
23524 .tc a[TC],a[TL]@le
23525 .csect .text[PR]
23526 .tlstest:
23527 lwz 9,LC..1(2)
23528 bla __get_tpointer
23529 lwzx 3,9,3
23530 .globl a
23531 .csect a[TL],4
23533 .space 4'
23534 tls_first_major=0
23535 tls_first_minor=0
23537 powerpc-*-*)
23538 conftest_s='
23539 .section ".tdata","awT",@progbits
23540 .align 2
23541 ld0: .space 4
23542 ld1: .space 4
23543 x1: .space 4
23544 x2: .space 4
23545 x3: .space 4
23546 .text
23547 addi 3,31,ld0@got@tlsgd
23548 bl __tls_get_addr
23549 addi 3,31,x1@got@tlsld
23550 bl __tls_get_addr
23551 addi 9,3,x1@dtprel
23552 addis 9,3,x2@dtprel@ha
23553 addi 9,9,x2@dtprel@l
23554 lwz 9,x3@got@tprel(31)
23555 add 9,9,x@tls
23556 addi 9,2,x1@tprel
23557 addis 9,2,x2@tprel@ha
23558 addi 9,9,x2@tprel@l'
23559 tls_first_major=2
23560 tls_first_minor=14
23561 tls_as_opt="-a32 --fatal-warnings"
23563 powerpc64-*-*)
23564 conftest_s='
23565 .section ".tdata","awT",@progbits
23566 .align 3
23567 ld0: .space 8
23568 ld1: .space 8
23569 x1: .space 8
23570 x2: .space 8
23571 x3: .space 8
23572 .text
23573 addi 3,2,ld0@got@tlsgd
23574 bl .__tls_get_addr
23576 addi 3,2,ld1@toc
23577 bl .__tls_get_addr
23579 addi 3,2,x1@got@tlsld
23580 bl .__tls_get_addr
23582 addi 9,3,x1@dtprel
23583 bl .__tls_get_addr
23585 addis 9,3,x2@dtprel@ha
23586 addi 9,9,x2@dtprel@l
23587 bl .__tls_get_addr
23589 ld 9,x3@got@dtprel(2)
23590 add 9,9,3
23591 bl .__tls_get_addr
23592 nop'
23593 tls_first_major=2
23594 tls_first_minor=14
23595 tls_as_opt="-a64 --fatal-warnings"
23597 s390-*-*)
23598 conftest_s='
23599 .section ".tdata","awT",@progbits
23600 foo: .long 25
23601 .text
23602 .long foo@TLSGD
23603 .long foo@TLSLDM
23604 .long foo@DTPOFF
23605 .long foo@NTPOFF
23606 .long foo@GOTNTPOFF
23607 .long foo@INDNTPOFF
23608 l %r1,foo@GOTNTPOFF(%r12)
23609 l %r1,0(%r1):tls_load:foo
23610 bas %r14,0(%r1,%r13):tls_gdcall:foo
23611 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23612 tls_first_major=2
23613 tls_first_minor=14
23614 tls_as_opt="-m31 --fatal-warnings"
23616 s390x-*-*)
23617 conftest_s='
23618 .section ".tdata","awT",@progbits
23619 foo: .long 25
23620 .text
23621 .quad foo@TLSGD
23622 .quad foo@TLSLDM
23623 .quad foo@DTPOFF
23624 .quad foo@NTPOFF
23625 .quad foo@GOTNTPOFF
23626 lg %r1,foo@GOTNTPOFF(%r12)
23627 larl %r1,foo@INDNTPOFF
23628 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23629 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23630 tls_first_major=2
23631 tls_first_minor=14
23632 tls_as_opt="-m64 -Aesame --fatal-warnings"
23634 sh-*-* | sh[34]-*-*)
23635 conftest_s='
23636 .section ".tdata","awT",@progbits
23637 foo: .long 25
23638 .text
23639 .long foo@TLSGD
23640 .long foo@TLSLDM
23641 .long foo@DTPOFF
23642 .long foo@GOTTPOFF
23643 .long foo@TPOFF'
23644 tls_first_major=2
23645 tls_first_minor=13
23646 tls_as_opt=--fatal-warnings
23648 sparc*-*-*)
23649 case "$target" in
23650 sparc*-sun-solaris2.*)
23651 on_solaris=yes
23652 tga_func=__tls_get_addr
23655 on_solaris=no
23657 esac
23658 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23659 conftest_s='
23660 .section ".tdata",#alloc,#write,#tls'
23661 tls_first_major=0
23662 tls_first_minor=0
23663 else
23664 conftest_s='
23665 .section ".tdata","awT",@progbits'
23666 tls_first_major=2
23667 tls_first_minor=14
23668 tls_as_opt="-32 --fatal-warnings"
23670 conftest_s="$conftest_s
23671 foo: .long 25
23672 .text
23673 sethi %tgd_hi22(foo), %o0
23674 add %o0, %tgd_lo10(foo), %o1
23675 add %l7, %o1, %o0, %tgd_add(foo)
23676 call __tls_get_addr, %tgd_call(foo)
23677 sethi %tldm_hi22(foo), %l1
23678 add %l1, %tldm_lo10(foo), %l2
23679 add %l7, %l2, %o0, %tldm_add(foo)
23680 call __tls_get_addr, %tldm_call(foo)
23681 sethi %tldo_hix22(foo), %l3
23682 xor %l3, %tldo_lox10(foo), %l4
23683 add %o0, %l4, %l5, %tldo_add(foo)
23684 sethi %tie_hi22(foo), %o3
23685 add %o3, %tie_lo10(foo), %o3
23686 ld [%l7 + %o3], %o2, %tie_ld(foo)
23687 add %g7, %o2, %o4, %tie_add(foo)
23688 sethi %tle_hix22(foo), %l1
23689 xor %l1, %tle_lox10(foo), %o5
23690 ld [%g7 + %o5], %o1"
23692 tilepro*-*-*)
23693 conftest_s='
23694 .section ".tdata","awT",@progbits
23695 foo: .long 25
23696 .text
23697 addli r0, zero, tls_gd(foo)
23698 auli r0, zero, tls_gd_ha16(foo)
23699 addli r0, r0, tls_gd_lo16(foo)
23700 jal __tls_get_addr
23701 addli r0, zero, tls_ie(foo)
23702 auli r0, r0, tls_ie_ha16(foo)
23703 addli r0, r0, tls_ie_lo16(foo)'
23704 tls_first_major=2
23705 tls_first_minor=22
23706 tls_as_opt="--fatal-warnings"
23708 tilegx*-*-*)
23709 conftest_s='
23710 .section ".tdata","awT",@progbits
23711 foo: .long 25
23712 .text
23713 shl16insli r0, zero, hw0_last_tls_gd(foo)
23714 shl16insli r0, zero, hw1_last_tls_gd(foo)
23715 shl16insli r0, r0, hw0_tls_gd(foo)
23716 jal __tls_get_addr
23717 shl16insli r0, zero, hw1_last_tls_ie(foo)
23718 shl16insli r0, r0, hw0_tls_ie(foo)'
23719 tls_first_major=2
23720 tls_first_minor=22
23721 tls_as_opt="--fatal-warnings"
23723 xtensa*-*-*)
23724 conftest_s='
23725 .section ".tdata","awT",@progbits
23726 foo: .long 25
23727 .text
23728 movi a8, foo@TLSFUNC
23729 movi a10, foo@TLSARG
23730 callx8.tls a8, foo@TLSCALL'
23731 tls_first_major=2
23732 tls_first_minor=19
23734 esac
23735 set_have_as_tls=no
23736 if test "x$enable_tls" = xno ; then
23737 : # TLS explicitly disabled.
23738 elif test "x$enable_tls" = xyes ; then
23739 set_have_as_tls=yes # TLS explicitly enabled.
23740 elif test -z "$tls_first_major"; then
23741 : # If we don't have a check, assume no support.
23742 else
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23744 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23745 if test "${gcc_cv_as_tls+set}" = set; then :
23746 $as_echo_n "(cached) " >&6
23747 else
23748 gcc_cv_as_tls=no
23749 if test $in_tree_gas = yes; then
23750 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23751 then gcc_cv_as_tls=yes
23753 elif test x$gcc_cv_as != x; then
23754 $as_echo "$conftest_s" > conftest.s
23755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23760 test $ac_status = 0; }; }
23761 then
23762 gcc_cv_as_tls=yes
23763 else
23764 echo "configure: failed program was" >&5
23765 cat conftest.s >&5
23767 rm -f conftest.o conftest.s
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23771 $as_echo "$gcc_cv_as_tls" >&6; }
23772 if test $gcc_cv_as_tls = yes; then
23773 set_have_as_tls=yes
23776 case "$target" in
23777 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23778 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23779 # Sun style that Sun ld and GCC don't support any longer.
23780 *-*-solaris2.*)
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23782 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23783 ld_tls_support=no
23784 # Check ld and ld.so.1 TLS support.
23785 if echo "$ld_ver" | grep GNU > /dev/null; then
23786 # Assume all interesting versions of GNU ld have TLS support.
23787 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23788 ld_tls_support=yes
23789 else
23790 case "$target" in
23791 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23792 i?86-*-solaris2.9)
23793 min_tls_ld_vers_minor=374
23795 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23796 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23797 min_tls_ld_vers_minor=343
23799 esac
23800 if test "$ld_vers_major" -gt 1 || \
23801 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23802 ld_tls_support=yes
23803 else
23804 set_have_as_tls=no
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23808 $as_echo "$ld_tls_support" >&6; }
23810 save_LIBS="$LIBS"
23811 save_LDFLAGS="$LDFLAGS"
23812 LIBS=
23813 LDFLAGS=
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23816 $as_echo_n "checking library containing $tga_func... " >&6; }
23817 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23818 # (32-bit x86) only lived in libthread, so check for that. Keep
23819 # set_have_as_tls if found, disable if not.
23820 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23822 $as_echo_n "checking for library containing $tga_func... " >&6; }
23823 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23824 $as_echo_n "(cached) " >&6
23825 else
23826 ac_func_search_save_LIBS=$LIBS
23827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h. */
23830 /* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23833 #ifdef __cplusplus
23834 extern "C"
23835 #endif
23836 char $tga_func ();
23838 main ()
23840 return $tga_func ();
23842 return 0;
23844 _ACEOF
23845 for ac_lib in '' thread; do
23846 if test -z "$ac_lib"; then
23847 ac_res="none required"
23848 else
23849 ac_res=-l$ac_lib
23850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23852 if ac_fn_c_try_link "$LINENO"; then :
23853 eval "$as_ac_Search=\$ac_res"
23855 rm -f core conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext
23857 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23858 break
23860 done
23861 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23863 else
23864 eval "$as_ac_Search=no"
23866 rm conftest.$ac_ext
23867 LIBS=$ac_func_search_save_LIBS
23869 eval ac_res=\$$as_ac_Search
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23871 $as_echo "$ac_res" >&6; }
23872 eval ac_res=\$$as_ac_Search
23873 if test "$ac_res" != no; then :
23874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23876 else
23877 set_have_as_tls=no
23880 # Clear LIBS if we cannot support TLS.
23881 if test $set_have_as_tls = no; then
23882 LIBS=
23884 # Always define LIB_TLS_SPEC, even without TLS support.
23886 cat >>confdefs.h <<_ACEOF
23887 #define LIB_TLS_SPEC "$LIBS"
23888 _ACEOF
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23891 $as_echo "$LIBS" >&6; }
23893 LIBS="$save_LIBS"
23894 LDFLAGS="$save_LDFLAGS"
23896 esac
23897 if test $set_have_as_tls = yes ; then
23899 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23903 # Target-specific assembler checks.
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23906 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23907 gcc_cv_ld_static_dynamic=no
23908 gcc_cv_ld_static_option='-Bstatic'
23909 gcc_cv_ld_dynamic_option='-Bdynamic'
23910 if test $in_tree_ld = yes ; then
23911 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
23912 gcc_cv_ld_static_dynamic=yes
23914 elif test x$gcc_cv_ld != x; then
23915 # Check if linker supports -Bstatic/-Bdynamic option
23916 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23917 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23918 gcc_cv_ld_static_dynamic=yes
23919 else
23920 case "$target" in
23921 # AIX ld uses -b flags
23922 *-*-aix4.[23]* | *-*-aix[5-9]*)
23923 gcc_cv_ld_static_dynamic=yes
23924 gcc_cv_ld_static_option="-bstatic"
23925 gcc_cv_ld_dynamic_option="-bdynamic"
23927 # HP-UX ld uses -a flags to select between shared and archive.
23928 *-*-hpux*)
23929 if test x"$gnu_ld" = xno; then
23930 gcc_cv_ld_static_dynamic=yes
23931 gcc_cv_ld_static_option="-aarchive_shared"
23932 gcc_cv_ld_dynamic_option="-adefault"
23935 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23936 *-*-solaris2*)
23937 gcc_cv_ld_static_dynamic=yes
23939 esac
23942 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23944 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23947 cat >>confdefs.h <<_ACEOF
23948 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23949 _ACEOF
23952 cat >>confdefs.h <<_ACEOF
23953 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23954 _ACEOF
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23958 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23960 if test x"$demangler_in_ld" = xyes; then
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23962 $as_echo_n "checking linker --demangle support... " >&6; }
23963 gcc_cv_ld_demangle=no
23964 if test $in_tree_ld = yes; then
23965 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 \
23966 gcc_cv_ld_demangle=yes
23968 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23969 # Check if the GNU linker supports --demangle option
23970 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23971 gcc_cv_ld_demangle=yes
23974 if test x"$gcc_cv_ld_demangle" = xyes; then
23976 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23980 $as_echo "$gcc_cv_ld_demangle" >&6; }
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23984 $as_echo_n "checking linker plugin support... " >&6; }
23985 gcc_cv_lto_plugin=0
23986 if test -f liblto_plugin.la; then
23987 save_ld_ver="$ld_ver"
23988 save_ld_vers_major="$ld_vers_major"
23989 save_ld_vers_minor="$ld_vers_minor"
23990 save_ld_is_gold="$ld_is_gold"
23992 ld_is_gold=no
23994 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23995 ld_ver="GNU ld"
23996 # FIXME: ld_is_gold?
23997 ld_vers_major="$gcc_cv_gld_major_version"
23998 ld_vers_minor="$gcc_cv_gld_minor_version"
23999 else
24000 # Determine plugin linker version.
24001 # FIXME: Partial duplicate from above, generalize.
24002 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24003 if echo "$ld_ver" | grep GNU > /dev/null; then
24004 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24005 ld_is_gold=yes
24006 ld_vers=`echo $ld_ver | sed -n \
24007 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24008 else
24009 ld_vers=`echo $ld_ver | sed -n \
24010 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24012 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24013 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24017 # Determine plugin support.
24018 if echo "$ld_ver" | grep GNU > /dev/null; then
24019 # Require GNU ld or gold 2.21+ for plugin support by default.
24020 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24021 gcc_cv_lto_plugin=2
24022 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24023 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24024 gcc_cv_lto_plugin=1
24028 ld_ver="$save_ld_ver"
24029 ld_vers_major="$save_ld_vers_major"
24030 ld_vers_minor="$save_ld_vers_minor"
24031 ld_is_gold="$save_ld_is_gold"
24034 cat >>confdefs.h <<_ACEOF
24035 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24036 _ACEOF
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24039 $as_echo "$gcc_cv_lto_plugin" >&6; }
24041 case "$target" in
24042 # All TARGET_ABI_OSF targets.
24043 alpha*-*-linux* | alpha*-*-*bsd*)
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24045 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24046 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24048 else
24049 gcc_cv_as_alpha_explicit_relocs=no
24050 if test $in_tree_gas = yes; then
24051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24052 then gcc_cv_as_alpha_explicit_relocs=yes
24054 elif test x$gcc_cv_as != x; then
24055 $as_echo ' .set nomacro
24056 .text
24057 extbl $3, $2, $3 !lituse_bytoff!1
24058 ldq $2, a($29) !literal!1
24059 ldq $4, b($29) !literal!2
24060 ldq_u $3, 0($2) !lituse_base!1
24061 ldq $27, f($29) !literal!5
24062 jsr $26, ($27), f !lituse_jsr!5
24063 ldah $29, 0($26) !gpdisp!3
24064 lda $0, c($29) !gprel
24065 ldah $1, d($29) !gprelhigh
24066 lda $1, d($1) !gprellow
24067 lda $29, 0($29) !gpdisp!3' > conftest.s
24068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }
24074 then
24075 gcc_cv_as_alpha_explicit_relocs=yes
24076 else
24077 echo "configure: failed program was" >&5
24078 cat conftest.s >&5
24080 rm -f conftest.o conftest.s
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24084 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24085 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24087 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24091 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24092 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24094 else
24095 gcc_cv_as_alpha_jsrdirect_relocs=no
24096 if test $in_tree_gas = yes; then
24097 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24098 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24100 elif test x$gcc_cv_as != x; then
24101 $as_echo ' .set nomacro
24102 .text
24103 ldq $27, a($29) !literal!1
24104 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24108 ac_status=$?
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24111 then
24112 gcc_cv_as_alpha_jsrdirect_relocs=yes
24113 else
24114 echo "configure: failed program was" >&5
24115 cat conftest.s >&5
24117 rm -f conftest.o conftest.s
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24121 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24122 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24124 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24129 cris-*-*)
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24131 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24132 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24133 $as_echo_n "(cached) " >&6
24134 else
24135 gcc_cv_as_cris_no_mul_bug=no
24136 if test $in_tree_gas = yes; then
24137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24138 then gcc_cv_as_cris_no_mul_bug=yes
24140 elif test x$gcc_cv_as != x; then
24141 $as_echo '.text' > conftest.s
24142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24148 then
24149 gcc_cv_as_cris_no_mul_bug=yes
24150 else
24151 echo "configure: failed program was" >&5
24152 cat conftest.s >&5
24154 rm -f conftest.o conftest.s
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24158 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24159 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24161 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24166 sparc*-*-*)
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24168 $as_echo_n "checking assembler for .register... " >&6; }
24169 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24170 $as_echo_n "(cached) " >&6
24171 else
24172 gcc_cv_as_sparc_register_op=no
24173 if test x$gcc_cv_as != x; then
24174 $as_echo '.register %g2, #scratch' > conftest.s
24175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24181 then
24182 gcc_cv_as_sparc_register_op=yes
24183 else
24184 echo "configure: failed program was" >&5
24185 cat conftest.s >&5
24187 rm -f conftest.o conftest.s
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24191 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24192 if test $gcc_cv_as_sparc_register_op = yes; then
24194 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24199 $as_echo_n "checking assembler for #nobits... " >&6; }
24200 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24201 $as_echo_n "(cached) " >&6
24202 else
24203 gcc_cv_as_sparc_nobits=no
24204 if test x$gcc_cv_as != x; then
24205 $as_echo '.section "nobits",#alloc,#write,#nobits
24206 .section "progbits",#alloc,#write,#progbits' > conftest.s
24207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24213 then
24214 gcc_cv_as_sparc_nobits=yes
24215 else
24216 echo "configure: failed program was" >&5
24217 cat conftest.s >&5
24219 rm -f conftest.o conftest.s
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24223 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24226 cat >>confdefs.h <<_ACEOF
24227 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24228 _ACEOF
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24232 $as_echo_n "checking assembler for -relax option... " >&6; }
24233 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24234 $as_echo_n "(cached) " >&6
24235 else
24236 gcc_cv_as_sparc_relax=no
24237 if test x$gcc_cv_as != x; then
24238 $as_echo '.text' > conftest.s
24239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; }
24245 then
24246 gcc_cv_as_sparc_relax=yes
24247 else
24248 echo "configure: failed program was" >&5
24249 cat conftest.s >&5
24251 rm -f conftest.o conftest.s
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24255 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24256 if test $gcc_cv_as_sparc_relax = yes; then
24258 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24263 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24264 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24266 else
24267 gcc_cv_as_sparc_gotdata_op=no
24268 if test x$gcc_cv_as != x; then
24269 $as_echo '.text
24270 .align 4
24271 foo:
24273 bar:
24274 sethi %gdop_hix22(foo), %g1
24275 xor %g1, %gdop_lox10(foo), %g1
24276 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24282 test $ac_status = 0; }; }
24283 then
24284 if test x$gcc_cv_ld != x \
24285 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24286 if test x$gcc_cv_objdump != x; then
24287 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24288 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24289 gcc_cv_as_sparc_gotdata_op=no
24290 else
24291 gcc_cv_as_sparc_gotdata_op=yes
24295 rm -f conftest
24296 else
24297 echo "configure: failed program was" >&5
24298 cat conftest.s >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24304 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24305 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24307 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24312 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24313 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 gcc_cv_as_sparc_ua_pcrel=no
24317 if test x$gcc_cv_as != x; then
24318 $as_echo '.text
24319 foo:
24321 .data
24322 .align 4
24323 .byte 0
24324 .uaword %r_disp32(foo)' > conftest.s
24325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
24333 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24334 gcc_cv_as_sparc_ua_pcrel=yes
24336 rm -f conftest
24337 else
24338 echo "configure: failed program was" >&5
24339 cat conftest.s >&5
24341 rm -f conftest.o conftest.s
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24345 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24346 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24348 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24352 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24353 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24355 else
24356 gcc_cv_as_sparc_ua_pcrel_hidden=no
24357 if test x$gcc_cv_as != x; then
24358 $as_echo '.data
24359 .align 4
24360 .byte 0x31
24361 .uaword %r_disp32(foo)
24362 .byte 0x32, 0x33, 0x34
24363 .global foo
24364 .hidden foo
24365 foo:
24366 .skip 4' > conftest.s
24367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372 test $ac_status = 0; }; }
24373 then
24374 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24375 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24376 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24377 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24378 if $gcc_cv_objdump -R conftest 2> /dev/null \
24379 | grep 'DISP32' > /dev/null 2>&1; then
24381 else
24382 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24385 rm -f conftest
24386 else
24387 echo "configure: failed program was" >&5
24388 cat conftest.s >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24394 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24395 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24397 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24401 fi # unaligned pcrel relocs
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24404 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24405 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24406 $as_echo_n "(cached) " >&6
24407 else
24408 gcc_cv_as_sparc_offsetable_lo10=no
24409 if test x$gcc_cv_as != x; then
24410 $as_echo '.text
24411 or %g1, %lo(ab) + 12, %g1
24412 or %g1, %lo(ab + 12), %g1' > conftest.s
24413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
24417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24418 test $ac_status = 0; }; }
24419 then
24420 if test x$gcc_cv_objdump != x \
24421 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24422 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24423 gcc_cv_as_sparc_offsetable_lo10=yes
24425 else
24426 echo "configure: failed program was" >&5
24427 cat conftest.s >&5
24429 rm -f conftest.o conftest.s
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24433 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24434 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24436 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24441 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24442 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 gcc_cv_as_sparc_fmaf=no
24446 if test x$gcc_cv_as != x; then
24447 $as_echo '.text
24448 .register %g2, #scratch
24449 .register %g3, #scratch
24450 .align 4
24451 fmaddd %f0, %f2, %f4, %f6
24452 addxccc %g1, %g2, %g3
24453 fsrl32 %f2, %f4, %f8
24454 fnaddd %f10, %f12, %f14' > conftest.s
24455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24461 then
24462 gcc_cv_as_sparc_fmaf=yes
24463 else
24464 echo "configure: failed program was" >&5
24465 cat conftest.s >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24471 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24472 if test $gcc_cv_as_sparc_fmaf = yes; then
24474 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24479 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24480 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24482 else
24483 gcc_cv_as_sparc_sparc4=no
24484 if test x$gcc_cv_as != x; then
24485 $as_echo '.text
24486 .register %g2, #scratch
24487 .register %g3, #scratch
24488 .align 4
24489 cxbe %g2, %g3, 1f
24490 1: cwbneg %g2, %g3, 1f
24491 1: sha1
24493 aes_kexpand0 %f4, %f6, %f8
24494 des_round %f38, %f40, %f42, %f44
24495 camellia_f %f54, %f56, %f58, %f60
24496 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24499 (eval $ac_try) 2>&5
24500 ac_status=$?
24501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24502 test $ac_status = 0; }; }
24503 then
24504 gcc_cv_as_sparc_sparc4=yes
24505 else
24506 echo "configure: failed program was" >&5
24507 cat conftest.s >&5
24509 rm -f conftest.o conftest.s
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24513 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24514 if test $gcc_cv_as_sparc_sparc4 = yes; then
24516 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24521 i[34567]86-*-* | x86_64-*-*)
24522 case $target_os in
24523 cygwin*)
24524 # Full C++ conformance when using a shared libstdc++-v3 requires some
24525 # support from the Cygwin DLL, which in more recent versions exports
24526 # wrappers to aid in interposing and redirecting operators new, delete,
24527 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24528 # are configuring for a version of Cygwin that exports the wrappers.
24529 if test x$host = x$target; then
24530 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24531 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24532 gcc_ac_cygwin_dll_wrappers=yes
24533 else
24534 gcc_ac_cygwin_dll_wrappers=no
24537 else
24538 # Can't check presence of libc functions during cross-compile, so
24539 # we just have to assume we're building for an up-to-date target.
24540 gcc_ac_cygwin_dll_wrappers=yes
24543 cat >>confdefs.h <<_ACEOF
24544 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24545 _ACEOF
24547 esac
24548 case $target_os in
24549 cygwin* | pe | mingw32* | interix*)
24550 # Recent binutils allows the three-operand form of ".comm" on PE. This
24551 # definition is used unconditionally to initialise the default state of
24552 # the target option variable that governs usage of the feature.
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24554 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24555 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24557 else
24558 gcc_cv_as_comm_has_align=no
24559 if test $in_tree_gas = yes; then
24560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24561 then gcc_cv_as_comm_has_align=yes
24563 elif test x$gcc_cv_as != x; then
24564 $as_echo '.comm foo,1,32' > conftest.s
24565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24571 then
24572 gcc_cv_as_comm_has_align=yes
24573 else
24574 echo "configure: failed program was" >&5
24575 cat conftest.s >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24581 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24584 cat >>confdefs.h <<_ACEOF
24585 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24586 _ACEOF
24588 # Used for DWARF 2 in PE
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24590 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24591 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24593 else
24594 gcc_cv_as_ix86_pe_secrel32=no
24595 if test $in_tree_gas = yes; then
24596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24597 then gcc_cv_as_ix86_pe_secrel32=yes
24599 elif test x$gcc_cv_as != x; then
24600 $as_echo '.text
24601 foo: nop
24602 .data
24603 .secrel32 foo' > conftest.s
24604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24610 then
24611 if test x$gcc_cv_ld != x \
24612 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24613 gcc_cv_as_ix86_pe_secrel32=yes
24615 rm -f conftest
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24624 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24625 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24627 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24630 # Test if the assembler supports the extended form of the .section
24631 # directive that specifies section alignment. LTO support uses this,
24632 # but normally only after installation, so we warn but don't fail the
24633 # configure if LTO is enabled but the assembler does not support it.
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24635 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24636 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24638 else
24639 gcc_cv_as_section_has_align=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24642 then gcc_cv_as_section_has_align=yes
24644 elif test x$gcc_cv_as != x; then
24645 $as_echo '.section lto_test,"dr0"' > conftest.s
24646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24651 test $ac_status = 0; }; }
24652 then
24653 gcc_cv_as_section_has_align=yes
24654 else
24655 echo "configure: failed program was" >&5
24656 cat conftest.s >&5
24658 rm -f conftest.o conftest.s
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24662 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24664 if test x$gcc_cv_as_section_has_align != xyes; then
24665 case ",$enable_languages," in
24666 *,lto,*)
24667 { $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
24668 $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;}
24670 esac
24672 # Test if the assembler supports the section flag 'e' for specifying
24673 # an excluded section.
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24675 $as_echo_n "checking assembler for .section with e... " >&6; }
24676 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24678 else
24679 gcc_cv_as_section_has_e=no
24680 if test $in_tree_gas = yes; then
24681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24682 then gcc_cv_as_section_has_e=yes
24684 elif test x$gcc_cv_as != x; then
24685 $as_echo '.section foo1,"e"
24686 .byte 0,0,0,0' > conftest.s
24687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24693 then
24694 gcc_cv_as_section_has_e=yes
24695 else
24696 echo "configure: failed program was" >&5
24697 cat conftest.s >&5
24699 rm -f conftest.o conftest.s
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24703 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24706 cat >>confdefs.h <<_ACEOF
24707 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24708 _ACEOF
24711 esac
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24714 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24715 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24716 $as_echo_n "(cached) " >&6
24717 else
24718 gcc_cv_as_ix86_filds=no
24719 if test x$gcc_cv_as != x; then
24720 $as_echo 'filds mem; fists mem' > conftest.s
24721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24726 test $ac_status = 0; }; }
24727 then
24728 gcc_cv_as_ix86_filds=yes
24729 else
24730 echo "configure: failed program was" >&5
24731 cat conftest.s >&5
24733 rm -f conftest.o conftest.s
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24737 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24738 if test $gcc_cv_as_ix86_filds = yes; then
24740 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24745 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24746 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24747 $as_echo_n "(cached) " >&6
24748 else
24749 gcc_cv_as_ix86_fildq=no
24750 if test x$gcc_cv_as != x; then
24751 $as_echo 'fildq mem; fistpq mem' > conftest.s
24752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24754 (eval $ac_try) 2>&5
24755 ac_status=$?
24756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24757 test $ac_status = 0; }; }
24758 then
24759 gcc_cv_as_ix86_fildq=yes
24760 else
24761 echo "configure: failed program was" >&5
24762 cat conftest.s >&5
24764 rm -f conftest.o conftest.s
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24768 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24769 if test $gcc_cv_as_ix86_fildq = yes; then
24771 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24776 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24777 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24779 else
24780 gcc_cv_as_ix86_cmov_sun_syntax=no
24781 if test x$gcc_cv_as != x; then
24782 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24789 then
24790 gcc_cv_as_ix86_cmov_sun_syntax=yes
24791 else
24792 echo "configure: failed program was" >&5
24793 cat conftest.s >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24799 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24800 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24802 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24807 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24808 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24810 else
24811 gcc_cv_as_ix86_ffreep=no
24812 if test x$gcc_cv_as != x; then
24813 $as_echo 'ffreep %st(1)' > conftest.s
24814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819 test $ac_status = 0; }; }
24820 then
24821 gcc_cv_as_ix86_ffreep=yes
24822 else
24823 echo "configure: failed program was" >&5
24824 cat conftest.s >&5
24826 rm -f conftest.o conftest.s
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24830 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24831 if test $gcc_cv_as_ix86_ffreep = yes; then
24833 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24838 $as_echo_n "checking assembler for .quad directive... " >&6; }
24839 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24841 else
24842 gcc_cv_as_ix86_quad=no
24843 if test x$gcc_cv_as != x; then
24844 $as_echo '.quad 0' > conftest.s
24845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24851 then
24852 gcc_cv_as_ix86_quad=yes
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24861 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24862 if test $gcc_cv_as_ix86_quad = yes; then
24864 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24869 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24870 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24871 $as_echo_n "(cached) " >&6
24872 else
24873 gcc_cv_as_ix86_sahf=no
24874 if test x$gcc_cv_as != x; then
24875 $as_echo '.code64
24876 sahf' > conftest.s
24877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24883 then
24884 gcc_cv_as_ix86_sahf=yes
24885 else
24886 echo "configure: failed program was" >&5
24887 cat conftest.s >&5
24889 rm -f conftest.o conftest.s
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24893 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24894 if test $gcc_cv_as_ix86_sahf = yes; then
24896 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24901 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24902 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24904 else
24905 gcc_cv_as_ix86_hle=no
24906 if test x$gcc_cv_as != x; then
24907 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24914 then
24915 gcc_cv_as_ix86_hle=yes
24916 else
24917 echo "configure: failed program was" >&5
24918 cat conftest.s >&5
24920 rm -f conftest.o conftest.s
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24924 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24925 if test $gcc_cv_as_ix86_hle = yes; then
24927 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24932 $as_echo_n "checking assembler for swap suffix... " >&6; }
24933 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24935 else
24936 gcc_cv_as_ix86_swap=no
24937 if test x$gcc_cv_as != x; then
24938 $as_echo 'movl.s %esp, %ebp' > conftest.s
24939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; }
24945 then
24946 gcc_cv_as_ix86_swap=yes
24947 else
24948 echo "configure: failed program was" >&5
24949 cat conftest.s >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24955 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24956 if test $gcc_cv_as_ix86_swap = yes; then
24958 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24963 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24964 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 gcc_cv_as_ix86_diff_sect_delta=no
24968 if test x$gcc_cv_as != x; then
24969 $as_echo '.section .rodata
24970 .L1:
24971 .long .L2-.L1
24972 .long .L3-.L1
24973 .text
24974 .L3: nop
24975 .L2: nop' > conftest.s
24976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24981 test $ac_status = 0; }; }
24982 then
24983 gcc_cv_as_ix86_diff_sect_delta=yes
24984 else
24985 echo "configure: failed program was" >&5
24986 cat conftest.s >&5
24988 rm -f conftest.o conftest.s
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24992 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24993 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24995 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24999 # These two are used unconditionally by i386.[ch]; it is to be defined
25000 # to 1 if the feature is present, 0 otherwise.
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25002 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25003 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25006 gcc_cv_as_ix86_gotoff_in_data=no
25007 if test $in_tree_gas = yes; then
25008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25009 then gcc_cv_as_ix86_gotoff_in_data=yes
25011 elif test x$gcc_cv_as != x; then
25012 $as_echo ' .text
25013 .L0:
25015 .data
25016 .long .L0@GOTOFF' > conftest.s
25017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25023 then
25024 gcc_cv_as_ix86_gotoff_in_data=yes
25025 else
25026 echo "configure: failed program was" >&5
25027 cat conftest.s >&5
25029 rm -f conftest.o conftest.s
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25033 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25036 cat >>confdefs.h <<_ACEOF
25037 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25038 _ACEOF
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25042 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25043 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25044 $as_echo_n "(cached) " >&6
25045 else
25046 gcc_cv_as_ix86_rep_lock_prefix=no
25047 if test x$gcc_cv_as != x; then
25048 $as_echo 'rep movsl
25049 rep ret
25050 rep nop
25051 rep bsf %ecx, %eax
25052 rep bsr %ecx, %eax
25053 lock addl %edi, (%eax,%esi)
25054 lock orl $0, (%esp)' > conftest.s
25055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25058 ac_status=$?
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25061 then
25062 gcc_cv_as_ix86_rep_lock_prefix=yes
25063 else
25064 echo "configure: failed program was" >&5
25065 cat conftest.s >&5
25067 rm -f conftest.o conftest.s
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25071 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25072 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25074 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25079 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25080 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25081 $as_echo_n "(cached) " >&6
25082 else
25083 gcc_cv_as_ix86_tlsgdplt=no
25084 if test x$gcc_cv_as != x; then
25085 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25088 (eval $ac_try) 2>&5
25089 ac_status=$?
25090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25091 test $ac_status = 0; }; }
25092 then
25093 if test x$gcc_cv_ld != x \
25094 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25095 gcc_cv_as_ix86_tlsgdplt=yes
25097 rm -f conftest
25098 else
25099 echo "configure: failed program was" >&5
25100 cat conftest.s >&5
25102 rm -f conftest.o conftest.s
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25106 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25107 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25109 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25114 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25115 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_ix86_tlsldmplt=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo 'tls_ld:
25121 call tls_ld@tlsldmplt' > conftest.s
25122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25128 then
25129 if test x$gcc_cv_ld != x \
25130 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25131 gcc_cv_as_ix86_tlsldmplt=yes
25133 rm -f conftest
25134 else
25135 echo "configure: failed program was" >&5
25136 cat conftest.s >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25142 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25143 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25145 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25151 ia64*-*-*)
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25153 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25154 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25160 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25162 elif test x$gcc_cv_as != x; then
25163 $as_echo ' .text
25164 addl r15 = @ltoffx(x#), gp
25166 ld8.mov r16 = [r15], x#' > conftest.s
25167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25173 then
25174 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25175 else
25176 echo "configure: failed program was" >&5
25177 cat conftest.s >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25183 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25184 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25186 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25192 powerpc*-*-*)
25193 case $target in
25194 *-*-aix*) conftest_s=' .machine "pwr5"
25195 .csect .text[PR]
25196 mfcr 3,128';;
25197 *-*-darwin*)
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25199 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25200 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25202 else
25203 gcc_cv_as_machine_directive=no
25204 if test x$gcc_cv_as != x; then
25205 $as_echo ' .machine ppc7400' > conftest.s
25206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25209 ac_status=$?
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }
25212 then
25213 gcc_cv_as_machine_directive=yes
25214 else
25215 echo "configure: failed program was" >&5
25216 cat conftest.s >&5
25218 rm -f conftest.o conftest.s
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25222 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25224 if test x$gcc_cv_as_machine_directive != xyes; then
25225 echo "*** This target requires an assembler supporting \".machine\"" >&2
25226 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25227 test x$build = x$target && exit 1
25229 conftest_s=' .text
25230 mfcr r3,128';;
25231 *) conftest_s=' .machine power4
25232 .text
25233 mfcr 3,128';;
25234 esac
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25237 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25238 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25239 $as_echo_n "(cached) " >&6
25240 else
25241 gcc_cv_as_powerpc_mfcrf=no
25242 if test $in_tree_gas = yes; then
25243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25244 then gcc_cv_as_powerpc_mfcrf=yes
25246 elif test x$gcc_cv_as != x; then
25247 $as_echo "$conftest_s" > conftest.s
25248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25254 then
25255 gcc_cv_as_powerpc_mfcrf=yes
25256 else
25257 echo "configure: failed program was" >&5
25258 cat conftest.s >&5
25260 rm -f conftest.o conftest.s
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25264 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25265 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25267 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25271 case $target in
25272 *-*-aix*) conftest_s=' .machine "pwr5"
25273 .csect .text[PR]
25274 popcntb 3,3';;
25275 *) conftest_s=' .machine power5
25276 .text
25277 popcntb 3,3';;
25278 esac
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25281 $as_echo_n "checking assembler for popcntb support... " >&6; }
25282 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 gcc_cv_as_powerpc_popcntb=no
25286 if test $in_tree_gas = yes; then
25287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25288 then gcc_cv_as_powerpc_popcntb=yes
25290 elif test x$gcc_cv_as != x; then
25291 $as_echo "$conftest_s" > conftest.s
25292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25298 then
25299 gcc_cv_as_powerpc_popcntb=yes
25300 else
25301 echo "configure: failed program was" >&5
25302 cat conftest.s >&5
25304 rm -f conftest.o conftest.s
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25308 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25309 if test $gcc_cv_as_powerpc_popcntb = yes; then
25311 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25315 case $target in
25316 *-*-aix*) conftest_s=' .machine "pwr5x"
25317 .csect .text[PR]
25318 frin 1,1';;
25319 *) conftest_s=' .machine power5
25320 .text
25321 frin 1,1';;
25322 esac
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25325 $as_echo_n "checking assembler for fp round support... " >&6; }
25326 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25328 else
25329 gcc_cv_as_powerpc_fprnd=no
25330 if test $in_tree_gas = yes; then
25331 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25332 then gcc_cv_as_powerpc_fprnd=yes
25334 elif test x$gcc_cv_as != x; then
25335 $as_echo "$conftest_s" > conftest.s
25336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341 test $ac_status = 0; }; }
25342 then
25343 gcc_cv_as_powerpc_fprnd=yes
25344 else
25345 echo "configure: failed program was" >&5
25346 cat conftest.s >&5
25348 rm -f conftest.o conftest.s
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25352 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25353 if test $gcc_cv_as_powerpc_fprnd = yes; then
25355 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25359 case $target in
25360 *-*-aix*) conftest_s=' .machine "pwr6"
25361 .csect .text[PR]
25362 mffgpr 1,3';;
25363 *) conftest_s=' .machine power6
25364 .text
25365 mffgpr 1,3';;
25366 esac
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25369 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25370 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25371 $as_echo_n "(cached) " >&6
25372 else
25373 gcc_cv_as_powerpc_mfpgpr=no
25374 if test $in_tree_gas = yes; then
25375 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25376 then gcc_cv_as_powerpc_mfpgpr=yes
25378 elif test x$gcc_cv_as != x; then
25379 $as_echo "$conftest_s" > conftest.s
25380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; }
25386 then
25387 gcc_cv_as_powerpc_mfpgpr=yes
25388 else
25389 echo "configure: failed program was" >&5
25390 cat conftest.s >&5
25392 rm -f conftest.o conftest.s
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25396 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25397 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25399 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25403 case $target in
25404 *-*-aix*) conftest_s=' .csect .text[PR]
25405 LCF..0:
25406 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25407 *-*-darwin*)
25408 conftest_s=' .text
25409 LCF0:
25410 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25411 *) conftest_s=' .text
25412 .LCF0:
25413 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25414 esac
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25417 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25418 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25420 else
25421 gcc_cv_as_powerpc_rel16=no
25422 if test $in_tree_gas = yes; then
25423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25424 then gcc_cv_as_powerpc_rel16=yes
25426 elif test x$gcc_cv_as != x; then
25427 $as_echo "$conftest_s" > conftest.s
25428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25434 then
25435 gcc_cv_as_powerpc_rel16=yes
25436 else
25437 echo "configure: failed program was" >&5
25438 cat conftest.s >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25444 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25445 if test $gcc_cv_as_powerpc_rel16 = yes; then
25447 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25451 case $target in
25452 *-*-aix*) conftest_s=' .machine "pwr6"
25453 .csect .text[PR]
25454 cmpb 3,4,5';;
25455 *) conftest_s=' .machine power6
25456 .text
25457 cmpb 3,4,5';;
25458 esac
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25461 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 gcc_cv_as_powerpc_cmpb=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25468 then gcc_cv_as_powerpc_cmpb=yes
25470 elif test x$gcc_cv_as != x; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25478 then
25479 gcc_cv_as_powerpc_cmpb=yes
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25488 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25489 if test $gcc_cv_as_powerpc_cmpb = yes; then
25491 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25495 case $target in
25496 *-*-aix*) conftest_s=' .machine "pwr6"
25497 .csect .text[PR]
25498 dadd 1,2,3';;
25499 *) conftest_s=' .machine power6
25500 .text
25501 dadd 1,2,3';;
25502 esac
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25505 $as_echo_n "checking assembler for decimal float support... " >&6; }
25506 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25508 else
25509 gcc_cv_as_powerpc_dfp=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25512 then gcc_cv_as_powerpc_dfp=yes
25514 elif test x$gcc_cv_as != x; then
25515 $as_echo "$conftest_s" > conftest.s
25516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25522 then
25523 gcc_cv_as_powerpc_dfp=yes
25524 else
25525 echo "configure: failed program was" >&5
25526 cat conftest.s >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25532 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25533 if test $gcc_cv_as_powerpc_dfp = yes; then
25535 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25539 case $target in
25540 *-*-aix*) conftest_s=' .machine "pwr7"
25541 .csect .text[PR]
25542 lxvd2x 1,2,3';;
25543 *) conftest_s=' .machine power7
25544 .text
25545 lxvd2x 1,2,3';;
25546 esac
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25549 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25550 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25551 $as_echo_n "(cached) " >&6
25552 else
25553 gcc_cv_as_powerpc_vsx=no
25554 if test $in_tree_gas = yes; then
25555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25556 then gcc_cv_as_powerpc_vsx=yes
25558 elif test x$gcc_cv_as != x; then
25559 $as_echo "$conftest_s" > conftest.s
25560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562 (eval $ac_try) 2>&5
25563 ac_status=$?
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; }
25566 then
25567 gcc_cv_as_powerpc_vsx=yes
25568 else
25569 echo "configure: failed program was" >&5
25570 cat conftest.s >&5
25572 rm -f conftest.o conftest.s
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25576 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25577 if test $gcc_cv_as_powerpc_vsx = yes; then
25579 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25583 case $target in
25584 *-*-aix*) conftest_s=' .machine "pwr7"
25585 .csect .text[PR]
25586 popcntd 3,3';;
25587 *) conftest_s=' .machine power7
25588 .text
25589 popcntd 3,3';;
25590 esac
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25593 $as_echo_n "checking assembler for popcntd support... " >&6; }
25594 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_powerpc_popcntd=no
25598 if test $in_tree_gas = yes; then
25599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25600 then gcc_cv_as_powerpc_popcntd=yes
25602 elif test x$gcc_cv_as != x; then
25603 $as_echo "$conftest_s" > conftest.s
25604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25610 then
25611 gcc_cv_as_powerpc_popcntd=yes
25612 else
25613 echo "configure: failed program was" >&5
25614 cat conftest.s >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25620 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25621 if test $gcc_cv_as_powerpc_popcntd = yes; then
25623 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25627 case $target in
25628 *-*-aix*) conftest_s=' .machine "pwr8"
25629 .csect .text[PR]';;
25630 *) conftest_s=' .machine power8
25631 .text';;
25632 esac
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25635 $as_echo_n "checking assembler for power8 support... " >&6; }
25636 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25637 $as_echo_n "(cached) " >&6
25638 else
25639 gcc_cv_as_powerpc_power8=no
25640 if test $in_tree_gas = yes; then
25641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25642 then gcc_cv_as_powerpc_power8=yes
25644 elif test x$gcc_cv_as != x; then
25645 $as_echo "$conftest_s" > conftest.s
25646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25648 (eval $ac_try) 2>&5
25649 ac_status=$?
25650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25651 test $ac_status = 0; }; }
25652 then
25653 gcc_cv_as_powerpc_power8=yes
25654 else
25655 echo "configure: failed program was" >&5
25656 cat conftest.s >&5
25658 rm -f conftest.o conftest.s
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25662 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25663 if test $gcc_cv_as_powerpc_power8 = yes; then
25665 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25669 case $target in
25670 *-*-aix*) conftest_s=' .csect .text[PR]
25671 lwsync';;
25672 *) conftest_s=' .text
25673 lwsync';;
25674 esac
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25677 $as_echo_n "checking assembler for lwsync support... " >&6; }
25678 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25679 $as_echo_n "(cached) " >&6
25680 else
25681 gcc_cv_as_powerpc_lwsync=no
25682 if test $in_tree_gas = yes; then
25683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25684 then gcc_cv_as_powerpc_lwsync=yes
25686 elif test x$gcc_cv_as != x; then
25687 $as_echo "$conftest_s" > conftest.s
25688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25693 test $ac_status = 0; }; }
25694 then
25695 gcc_cv_as_powerpc_lwsync=yes
25696 else
25697 echo "configure: failed program was" >&5
25698 cat conftest.s >&5
25700 rm -f conftest.o conftest.s
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25704 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25705 if test $gcc_cv_as_powerpc_lwsync = yes; then
25707 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25711 case $target in
25712 *-*-aix*) conftest_s=' .machine "476"
25713 .csect .text[PR]
25714 dci 0';;
25715 *) conftest_s=' .machine "476"
25716 .text
25717 dci 0';;
25718 esac
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25721 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25722 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25724 else
25725 gcc_cv_as_powerpc_dci=no
25726 if test $in_tree_gas = yes; then
25727 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25728 then gcc_cv_as_powerpc_dci=yes
25730 elif test x$gcc_cv_as != x; then
25731 $as_echo "$conftest_s" > conftest.s
25732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25738 then
25739 gcc_cv_as_powerpc_dci=yes
25740 else
25741 echo "configure: failed program was" >&5
25742 cat conftest.s >&5
25744 rm -f conftest.o conftest.s
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25748 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25749 if test $gcc_cv_as_powerpc_dci = yes; then
25751 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25756 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25757 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25759 else
25760 gcc_cv_as_powerpc_gnu_attribute=no
25761 if test $in_tree_gas = yes; then
25762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25763 then gcc_cv_as_powerpc_gnu_attribute=yes
25765 elif test x$gcc_cv_as != x; then
25766 $as_echo '.gnu_attribute 4,1' > conftest.s
25767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25769 (eval $ac_try) 2>&5
25770 ac_status=$?
25771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772 test $ac_status = 0; }; }
25773 then
25774 gcc_cv_as_powerpc_gnu_attribute=yes
25775 else
25776 echo "configure: failed program was" >&5
25777 cat conftest.s >&5
25779 rm -f conftest.o conftest.s
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25783 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25784 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25786 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25791 $as_echo_n "checking assembler for tls marker support... " >&6; }
25792 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_powerpc_tls_markers=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25798 then gcc_cv_as_powerpc_tls_markers=yes
25800 elif test x$gcc_cv_as != x; then
25801 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25808 then
25809 gcc_cv_as_powerpc_tls_markers=yes
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25818 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25819 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25821 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25825 case $target in
25826 *-*-aix*)
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25828 $as_echo_n "checking assembler for .ref support... " >&6; }
25829 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 gcc_cv_as_aix_ref=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25835 then gcc_cv_as_aix_ref=yes
25837 elif test x$gcc_cv_as != x; then
25838 $as_echo ' .csect stuff[rw]
25839 stuff:
25840 .long 1
25841 .extern sym
25842 .ref sym
25843 ' > conftest.s
25844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25849 test $ac_status = 0; }; }
25850 then
25851 gcc_cv_as_aix_ref=yes
25852 else
25853 echo "configure: failed program was" >&5
25854 cat conftest.s >&5
25856 rm -f conftest.o conftest.s
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25860 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25861 if test $gcc_cv_as_aix_ref = yes; then
25863 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25867 esac
25870 mips*-*-*)
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25872 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25873 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25875 else
25876 gcc_cv_as_mips_explicit_relocs=no
25877 if test $in_tree_gas = yes; then
25878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25879 then gcc_cv_as_mips_explicit_relocs=yes
25881 elif test x$gcc_cv_as != x; then
25882 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25889 then
25890 gcc_cv_as_mips_explicit_relocs=yes
25891 else
25892 echo "configure: failed program was" >&5
25893 cat conftest.s >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25899 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25900 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25901 if test x$target_cpu_default = x
25902 then target_cpu_default=MASK_EXPLICIT_RELOCS
25903 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25907 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25908 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 gcc_cv_as_mips_no_shared=no
25912 if test $in_tree_gas = yes; then
25913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25914 then gcc_cv_as_mips_no_shared=yes
25916 elif test x$gcc_cv_as != x; then
25917 $as_echo 'nop' > conftest.s
25918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_mips_no_shared=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_mips_no_shared" >&5
25934 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25935 if test $gcc_cv_as_mips_no_shared = yes; then
25937 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25942 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25943 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25945 else
25946 gcc_cv_as_mips_gnu_attribute=no
25947 if test $in_tree_gas = yes; then
25948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25949 then gcc_cv_as_mips_gnu_attribute=yes
25951 elif test x$gcc_cv_as != x; then
25952 $as_echo '.gnu_attribute 4,1' > conftest.s
25953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25959 then
25960 gcc_cv_as_mips_gnu_attribute=yes
25961 else
25962 echo "configure: failed program was" >&5
25963 cat conftest.s >&5
25965 rm -f conftest.o conftest.s
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25969 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25970 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25972 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25977 $as_echo_n "checking assembler for .micromips support... " >&6; }
25978 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25979 $as_echo_n "(cached) " >&6
25980 else
25981 gcc_cv_as_micromips_support=no
25982 if test x$gcc_cv_as != x; then
25983 $as_echo '.set micromips' > conftest.s
25984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25986 (eval $ac_try) 2>&5
25987 ac_status=$?
25988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25989 test $ac_status = 0; }; }
25990 then
25991 gcc_cv_as_micromips_support=yes
25992 else
25993 echo "configure: failed program was" >&5
25994 cat conftest.s >&5
25996 rm -f conftest.o conftest.s
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26000 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26001 if test $gcc_cv_as_micromips_support = yes; then
26003 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26008 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26009 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26010 $as_echo_n "(cached) " >&6
26011 else
26012 gcc_cv_as_mips_dtprelword=no
26013 if test $in_tree_gas = yes; then
26014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26015 then gcc_cv_as_mips_dtprelword=yes
26017 elif test x$gcc_cv_as != x; then
26018 $as_echo '.section .tdata,"awT",@progbits
26020 .word 2
26021 .text
26022 .dtprelword x+0x8000' > conftest.s
26023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }
26029 then
26030 gcc_cv_as_mips_dtprelword=yes
26031 else
26032 echo "configure: failed program was" >&5
26033 cat conftest.s >&5
26035 rm -f conftest.o conftest.s
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26039 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26040 if test $gcc_cv_as_mips_dtprelword = yes; then
26042 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26047 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26048 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26049 $as_echo_n "(cached) " >&6
26050 else
26051 gcc_cv_as_mips_dspr1_mult=no
26052 if test x$gcc_cv_as != x; then
26053 $as_echo ' .set mips32r2
26054 .set nodspr2
26055 .set dsp
26056 madd $ac3,$4,$5
26057 maddu $ac3,$4,$5
26058 msub $ac3,$4,$5
26059 msubu $ac3,$4,$5
26060 mult $ac3,$4,$5
26061 multu $ac3,$4,$5' > conftest.s
26062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26068 then
26069 gcc_cv_as_mips_dspr1_mult=yes
26070 else
26071 echo "configure: failed program was" >&5
26072 cat conftest.s >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26078 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26079 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26081 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26086 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26087 gcc_cv_as_ld_jalr_reloc=no
26088 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26089 if test $in_tree_ld = yes ; then
26090 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 \
26091 && test $in_tree_ld_is_elf = yes; then
26092 gcc_cv_as_ld_jalr_reloc=yes
26094 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26095 echo ' .ent x' > conftest.s
26096 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26097 echo ' ld $25,%call16(y)($28)' >> conftest.s
26098 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26099 echo '1: jalr $25' >> conftest.s
26100 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26101 echo '1: jalr $25' >> conftest.s
26102 echo ' .end x' >> conftest.s
26103 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26104 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26105 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26106 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26107 gcc_cv_as_ld_jalr_reloc=yes
26110 rm -f conftest.*
26113 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26114 if test x$target_cpu_default = x; then
26115 target_cpu_default=MASK_RELAX_PIC_CALLS
26116 else
26117 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26121 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26124 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26125 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26126 $as_echo_n "(cached) " >&6
26127 else
26128 gcc_cv_ld_mips_personality_relaxation=no
26129 if test $in_tree_ld = yes ; then
26130 if test "$gcc_cv_gld_major_version" -eq 2 \
26131 -a "$gcc_cv_gld_minor_version" -ge 21 \
26132 -o "$gcc_cv_gld_major_version" -gt 2; then
26133 gcc_cv_ld_mips_personality_relaxation=yes
26135 elif test x$gcc_cv_as != x \
26136 -a x$gcc_cv_ld != x \
26137 -a x$gcc_cv_readelf != x ; then
26138 cat > conftest.s <<EOF
26139 .cfi_startproc
26140 .cfi_personality 0x80,indirect_ptr
26141 .ent test
26142 test:
26144 .end test
26145 .cfi_endproc
26147 .section .data,"aw",@progbits
26148 indirect_ptr:
26149 .dc.a personality
26151 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26152 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26153 if $gcc_cv_readelf -d conftest 2>&1 \
26154 | grep TEXTREL > /dev/null 2>&1; then
26156 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26157 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26159 else
26160 gcc_cv_ld_mips_personality_relaxation=yes
26164 rm -f conftest.s conftest.o conftest
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26167 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26168 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26170 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26174 esac
26176 # Mips and HP-UX need the GNU assembler.
26177 # Linux on IA64 might be able to use the Intel assembler.
26179 case "$target" in
26180 mips*-*-* | *-*-hpux* )
26181 if test x$gas_flag = xyes \
26182 || test x"$host" != x"$build" \
26183 || test ! -x "$gcc_cv_as" \
26184 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26186 else
26187 echo "*** This configuration requires the GNU assembler" >&2
26188 exit 1
26191 esac
26193 # ??? Not all targets support dwarf2 debug_line, even within a version
26194 # of gas. Moreover, we need to emit a valid instruction to trigger any
26195 # info to the output file. So, as supported targets are added to gas 2.11,
26196 # add some instruction here to (also) show we expect this might work.
26197 # ??? Once 2.11 is released, probably need to add first known working
26198 # version to the per-target configury.
26199 case "$cpu_type" in
26200 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26201 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26202 insn="nop"
26204 ia64 | s390)
26205 insn="nop 0"
26207 mmix)
26208 insn="swym 0"
26210 esac
26211 if test x"$insn" != x; then
26212 conftest_s="\
26213 .file 1 \"conftest.s\"
26214 .loc 1 3 0
26215 $insn"
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26217 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26218 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26219 $as_echo_n "(cached) " >&6
26220 else
26221 gcc_cv_as_dwarf2_debug_line=no
26222 if test $in_tree_gas = yes; then
26223 if test $in_tree_gas_is_elf = yes \
26224 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26225 then gcc_cv_as_dwarf2_debug_line=yes
26227 elif test x$gcc_cv_as != x; then
26228 $as_echo "$conftest_s" > conftest.s
26229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231 (eval $ac_try) 2>&5
26232 ac_status=$?
26233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; }; }
26235 then
26236 if test x$gcc_cv_objdump != x \
26237 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26238 | grep debug_line > /dev/null 2>&1; then
26239 gcc_cv_as_dwarf2_debug_line=yes
26241 else
26242 echo "configure: failed program was" >&5
26243 cat conftest.s >&5
26245 rm -f conftest.o conftest.s
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26249 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26252 # The .debug_line file table must be in the exact order that
26253 # we specified the files, since these indices are also used
26254 # by DW_AT_decl_file. Approximate this test by testing if
26255 # the assembler bitches if the same index is assigned twice.
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26257 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26258 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_as_dwarf2_file_buggy=no
26262 if test x$gcc_cv_as != x; then
26263 $as_echo ' .file 1 "foo.s"
26264 .file 1 "bar.s"' > conftest.s
26265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26268 ac_status=$?
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; }
26271 then
26272 gcc_cv_as_dwarf2_file_buggy=yes
26273 else
26274 echo "configure: failed program was" >&5
26275 cat conftest.s >&5
26277 rm -f conftest.o conftest.s
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26281 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26284 if test $gcc_cv_as_dwarf2_debug_line = yes \
26285 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26287 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26292 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26293 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26294 $as_echo_n "(cached) " >&6
26295 else
26296 gcc_cv_as_gdwarf2_flag=no
26297 if test $in_tree_gas = yes; then
26298 if test $in_tree_gas_is_elf = yes \
26299 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26300 then gcc_cv_as_gdwarf2_flag=yes
26302 elif test x$gcc_cv_as != x; then
26303 $as_echo "$insn" > conftest.s
26304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26309 test $ac_status = 0; }; }
26310 then
26311 gcc_cv_as_gdwarf2_flag=yes
26312 else
26313 echo "configure: failed program was" >&5
26314 cat conftest.s >&5
26316 rm -f conftest.o conftest.s
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26320 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26321 if test $gcc_cv_as_gdwarf2_flag = yes; then
26323 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26328 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26329 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26330 $as_echo_n "(cached) " >&6
26331 else
26332 gcc_cv_as_gstabs_flag=no
26333 if test $in_tree_gas = yes; then
26334 if test $in_tree_gas_is_elf = yes \
26335 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26336 then gcc_cv_as_gstabs_flag=yes
26338 elif test x$gcc_cv_as != x; then
26339 $as_echo "$insn" > conftest.s
26340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26342 (eval $ac_try) 2>&5
26343 ac_status=$?
26344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26345 test $ac_status = 0; }; }
26346 then
26347 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26348 # and warns about it, but still exits successfully. So check for
26349 # this.
26350 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26356 then :
26357 else gcc_cv_as_gstabs_flag=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26363 rm -f conftest.o conftest.s
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26367 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26368 if test $gcc_cv_as_gstabs_flag = yes; then
26370 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26375 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26376 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26377 $as_echo_n "(cached) " >&6
26378 else
26379 gcc_cv_as_debug_prefix_map_flag=no
26380 if test $in_tree_gas = yes; then
26381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26382 then gcc_cv_as_debug_prefix_map_flag=yes
26384 elif test x$gcc_cv_as != x; then
26385 $as_echo "$insn" > conftest.s
26386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26392 then
26393 gcc_cv_as_debug_prefix_map_flag=yes
26394 else
26395 echo "configure: failed program was" >&5
26396 cat conftest.s >&5
26398 rm -f conftest.o conftest.s
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26402 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26403 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26405 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26411 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26412 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26413 $as_echo_n "(cached) " >&6
26414 else
26415 gcc_cv_as_lcomm_with_alignment=no
26416 if test x$gcc_cv_as != x; then
26417 $as_echo '.lcomm bar,4,16' > conftest.s
26418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26423 test $ac_status = 0; }; }
26424 then
26425 gcc_cv_as_lcomm_with_alignment=yes
26426 else
26427 echo "configure: failed program was" >&5
26428 cat conftest.s >&5
26430 rm -f conftest.o conftest.s
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26434 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26435 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26437 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26441 # Check whether --enable-gnu-unique-object was given.
26442 if test "${enable_gnu_unique_object+set}" = set; then :
26443 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26444 yes | no) ;;
26445 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26446 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26447 esac
26448 else
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26450 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26451 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26453 else
26454 gcc_cv_as_gnu_unique_object=no
26455 if test $in_tree_gas = yes; then
26456 if test $in_tree_gas_is_elf = yes \
26457 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26458 then gcc_cv_as_gnu_unique_object=yes
26460 elif test x$gcc_cv_as != x; then
26461 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26468 then
26469 gcc_cv_as_gnu_unique_object=yes
26470 else
26471 echo "configure: failed program was" >&5
26472 cat conftest.s >&5
26474 rm -f conftest.o conftest.s
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26478 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26479 if test $gcc_cv_as_gnu_unique_object = yes; then
26480 # We need to unquote above to to use the definition from config.gcc.
26481 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26482 if test x$host = x$build -a x$host = x$target &&
26483 ldd --version 2>/dev/null &&
26484 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26485 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26486 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26487 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26488 if test "$glibcnum" -ge 2011 ; then
26489 enable_gnu_unique_object=yes
26495 if test x$enable_gnu_unique_object = xyes; then
26497 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26502 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26503 if test "${gcc_cv_as_line_zero+set}" = set; then :
26504 $as_echo_n "(cached) " >&6
26505 else
26506 gcc_cv_as_line_zero=no
26507 if test $in_tree_gas = yes; then
26508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26509 then gcc_cv_as_line_zero=yes
26511 elif test "x$gcc_cv_as" != x; then
26512 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26513 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26516 ac_status=$?
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; } &&
26519 test "x`cat conftest.out`" = x
26520 then
26521 gcc_cv_as_line_zero=yes
26522 else
26523 echo "configure: failed program was" >&5
26524 cat conftest.s >&5
26525 echo "configure: error output was" >&5
26526 cat conftest.out >&5
26528 rm -f conftest.o conftest.s conftest.out
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26532 $as_echo "$gcc_cv_as_line_zero" >&6; }
26533 if test "x$gcc_cv_as_line_zero" = xyes; then
26535 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26540 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26541 gcc_cv_ld_eh_frame_hdr=no
26542 if test $in_tree_ld = yes ; then
26543 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 \
26544 && test $in_tree_ld_is_elf = yes; then
26545 gcc_cv_ld_eh_frame_hdr=yes
26547 elif test x$gcc_cv_ld != x; then
26548 if echo "$ld_ver" | grep GNU > /dev/null; then
26549 # Check if linker supports --eh-frame-hdr option
26550 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26551 gcc_cv_ld_eh_frame_hdr=yes
26553 else
26554 case "$target" in
26555 *-*-solaris2*)
26556 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26557 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26558 gcc_cv_ld_eh_frame_hdr=yes
26561 esac
26565 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26567 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26571 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26574 $as_echo_n "checking linker position independent executable support... " >&6; }
26575 gcc_cv_ld_pie=no
26576 if test $in_tree_ld = yes ; then
26577 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 \
26578 && test $in_tree_ld_is_elf = yes; then
26579 gcc_cv_ld_pie=yes
26581 elif test x$gcc_cv_ld != x; then
26582 # Check if linker supports -pie option
26583 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26584 gcc_cv_ld_pie=yes
26587 if test x"$gcc_cv_ld_pie" = xyes; then
26589 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26593 $as_echo "$gcc_cv_ld_pie" >&6; }
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26596 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26597 gcc_cv_ld_eh_gc_sections=no
26598 if test $in_tree_ld = yes ; then
26599 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 \
26600 && test $in_tree_ld_is_elf = yes; then
26601 gcc_cv_ld_eh_gc_sections=yes
26603 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26604 cat > conftest.s <<EOF
26605 .section .text
26606 .globl _start
26607 .type _start, @function
26608 _start:
26609 .long foo
26610 .size _start, .-_start
26611 .section .text.foo,"ax",@progbits
26612 .type foo, @function
26613 foo:
26614 .long 0
26615 .size foo, .-foo
26616 .section .gcc_except_table.foo,"a",@progbits
26617 .L0:
26618 .long 0
26619 .section .eh_frame,"a",@progbits
26620 .long .L0
26622 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26623 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26624 | grep "gc-sections option ignored" > /dev/null; then
26625 gcc_cv_ld_eh_gc_sections=no
26626 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26627 | grep gcc_except_table > /dev/null; then
26628 gcc_cv_ld_eh_gc_sections=yes
26629 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26630 if test x$gcc_cv_as_comdat_group != xyes; then
26631 gcc_cv_ld_eh_gc_sections=no
26632 cat > conftest.s <<EOF
26633 .section .text
26634 .globl _start
26635 .type _start, @function
26636 _start:
26637 .long foo
26638 .size _start, .-_start
26639 .section .gnu.linkonce.t.foo,"ax",@progbits
26640 .type foo, @function
26641 foo:
26642 .long 0
26643 .size foo, .-foo
26644 .section .gcc_except_table.foo,"a",@progbits
26645 .L0:
26646 .long 0
26647 .section .eh_frame,"a",@progbits
26648 .long .L0
26650 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26651 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26652 | grep "gc-sections option ignored" > /dev/null; then
26653 gcc_cv_ld_eh_gc_sections=no
26654 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26655 | grep gcc_except_table > /dev/null; then
26656 gcc_cv_ld_eh_gc_sections=yes
26662 rm -f conftest.s conftest.o conftest
26664 case "$target" in
26665 hppa*-*-linux*)
26666 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26667 gcc_cv_ld_eh_gc_sections=no
26669 esac
26670 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26672 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26676 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26679 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26680 gcc_cv_ld_eh_gc_sections_bug=no
26681 if test $in_tree_ld = yes ; then
26682 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 \
26683 && test $in_tree_ld_is_elf = yes; then
26684 gcc_cv_ld_eh_gc_sections_bug=yes
26686 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
26687 gcc_cv_ld_eh_gc_sections_bug=yes
26688 cat > conftest.s <<EOF
26689 .section .text
26690 .globl _start
26691 .type _start, @function
26692 _start:
26693 .long foo
26694 .size _start, .-_start
26695 .section .text.startup.foo,"ax",@progbits
26696 .type foo, @function
26697 foo:
26698 .long 0
26699 .size foo, .-foo
26700 .section .gcc_except_table.foo,"a",@progbits
26701 .L0:
26702 .long 0
26703 .section .eh_frame,"a",@progbits
26704 .long .L0
26706 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26707 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26708 | grep "gc-sections option ignored" > /dev/null; then
26710 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26711 | grep gcc_except_table > /dev/null; then
26712 gcc_cv_ld_eh_gc_sections_bug=no
26715 rm -f conftest.s conftest.o conftest
26717 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26719 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26723 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26725 # --------
26726 # UNSORTED
26727 # --------
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26730 $as_echo_n "checking linker --as-needed support... " >&6; }
26731 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26732 $as_echo_n "(cached) " >&6
26733 else
26734 gcc_cv_ld_as_needed=no
26735 if test $in_tree_ld = yes ; then
26736 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 \
26737 && test $in_tree_ld_is_elf = yes; then
26738 gcc_cv_ld_as_needed=yes
26740 elif test x$gcc_cv_ld != x; then
26741 # Check if linker supports --as-needed and --no-as-needed options
26742 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26743 gcc_cv_ld_as_needed=yes
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26749 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26750 if test x"$gcc_cv_ld_as_needed" = xyes; then
26752 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26756 case "$target:$tm_file" in
26757 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26758 case "$target" in
26759 *-*-linux*)
26760 emul_name="-melf64ppc"
26762 *-*-freebsd*)
26763 emul_name="-melf64ppc_fbsd"
26765 esac
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26767 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26768 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26769 $as_echo_n "(cached) " >&6
26770 else
26771 gcc_cv_ld_no_dot_syms=no
26772 if test x"$ld_is_gold" = xyes; then
26773 gcc_cv_ld_no_dot_syms=yes
26774 elif test $in_tree_ld = yes ; then
26775 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
26776 gcc_cv_ld_no_dot_syms=yes
26778 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26779 cat > conftest1.s <<EOF
26780 .text
26781 bl .foo
26783 cat > conftest2.s <<EOF
26784 .section ".opd","aw"
26785 .align 3
26786 .globl foo
26787 .type foo,@function
26788 foo:
26789 .quad .LEfoo,.TOC.@tocbase,0
26790 .text
26791 .LEfoo:
26793 .size foo,.-.LEfoo
26795 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26796 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26797 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26798 gcc_cv_ld_no_dot_syms=yes
26800 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26805 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26806 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26808 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26813 $as_echo_n "checking linker large toc support... " >&6; }
26814 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26815 $as_echo_n "(cached) " >&6
26816 else
26817 gcc_cv_ld_large_toc=no
26818 if test x"$ld_is_gold" = xyes; then
26819 gcc_cv_ld_large_toc=yes
26820 elif test $in_tree_ld = yes ; then
26821 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
26822 gcc_cv_ld_large_toc=yes
26824 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26825 cat > conftest.s <<EOF
26826 .section ".tbss","awT",@nobits
26827 .align 3
26828 ie0: .space 8
26829 .global _start
26830 .text
26831 _start:
26832 addis 9,13,ie0@got@tprel@ha
26833 ld 9,ie0@got@tprel@l(9)
26835 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26836 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26837 gcc_cv_ld_large_toc=yes
26839 rm -f conftest conftest.o conftest.s
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26844 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26845 if test x"$gcc_cv_ld_large_toc" = xyes; then
26847 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26851 esac
26853 case "$target" in
26854 *-*-aix*)
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26856 $as_echo_n "checking linker large toc support... " >&6; }
26857 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26859 else
26860 gcc_cv_ld_large_toc=no
26861 if test x$gcc_cv_as != x ; then
26862 cat > conftest.s <<EOF
26863 .toc
26864 LC..1:
26865 .tc a[TC],a[RW]
26866 .extern a[RW]
26867 .csect .text[PR]
26868 .largetoctest:
26869 addis 9,LC..1@u(2)
26870 ld 3,LC..1@l(9)
26872 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26873 gcc_cv_ld_large_toc=yes
26875 rm -f conftest conftest.o conftest.s
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26880 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26881 if test x"$gcc_cv_ld_large_toc" = xyes; then
26883 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26887 esac
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26890 $as_echo_n "checking linker --build-id support... " >&6; }
26891 if test "${gcc_cv_ld_buildid+set}" = set; then :
26892 $as_echo_n "(cached) " >&6
26893 else
26894 gcc_cv_ld_buildid=no
26895 if test $in_tree_ld = yes ; then
26896 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26897 "$gcc_cv_gld_minor_version" -ge 18 -o \
26898 "$gcc_cv_gld_major_version" -gt 2 \
26899 && test $in_tree_ld_is_elf = yes; then
26900 gcc_cv_ld_buildid=yes
26902 elif test x$gcc_cv_ld != x; then
26903 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26904 gcc_cv_ld_buildid=yes
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26909 $as_echo "$gcc_cv_ld_buildid" >&6; }
26910 if test x"$gcc_cv_ld_buildid" = xyes; then
26912 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26916 # Check whether --enable-linker-build-id was given.
26917 if test "${enable_linker_build_id+set}" = set; then :
26918 enableval=$enable_linker_build_id;
26919 else
26920 enable_linker_build_id=no
26924 if test x"$enable_linker_build_id" = xyes; then
26925 if test x"$gcc_cv_ld_buildid" = xyes; then
26927 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26929 else
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26931 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26935 # In binutils 2.21, GNU ld gained support for new emulations fully
26936 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26938 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26939 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26942 gcc_cv_ld_sol2_emulation=no
26943 if test $in_tree_ld = yes ; then
26944 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26945 "$gcc_cv_gld_minor_version" -ge 21 -o \
26946 "$gcc_cv_gld_major_version" -gt 2 \
26947 && test $in_tree_ld_is_elf = yes; then
26948 gcc_cv_ld_sol2_emulation=yes
26950 elif test x$gcc_cv_ld != x; then
26951 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26952 grep _sol2 > /dev/null; then
26953 gcc_cv_ld_sol2_emulation=yes
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26958 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26959 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26961 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26966 $as_echo_n "checking linker --sysroot support... " >&6; }
26967 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26968 $as_echo_n "(cached) " >&6
26969 else
26970 gcc_cv_ld_sysroot=no
26971 if test $in_tree_ld = yes ; then
26972 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
26973 gcc_cv_ld_sysroot=yes
26975 elif test x$gcc_cv_ld != x; then
26976 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26977 gcc_cv_ld_sysroot=yes
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26982 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26983 if test x"$gcc_cv_ld_sysroot" = xyes; then
26985 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26989 if test x$with_sysroot = x && test x$host = x$target \
26990 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26991 && test "$prefix" != "NONE"; then
26993 cat >>confdefs.h <<_ACEOF
26994 #define PREFIX_INCLUDE_DIR "$prefix/include"
26995 _ACEOF
26999 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
27000 if test "x$with_headers" != x; then
27001 target_header_dir=$with_headers
27002 elif test "x$with_sysroot" = x; then
27003 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
27004 elif test "x$with_build_sysroot" != "x"; then
27005 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
27006 elif test "x$with_sysroot" = xyes; then
27007 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27008 else
27009 target_header_dir="${with_sysroot}${native_system_header_dir}"
27011 else
27012 target_header_dir=${native_system_header_dir}
27015 # Test for stack protector support in target C library.
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27017 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27018 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27019 $as_echo_n "(cached) " >&6
27020 else
27021 gcc_cv_libc_provides_ssp=no
27022 case "$target" in
27023 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27024 # glibc 2.4 and later provides __stack_chk_fail and
27025 # either __stack_chk_guard, or TLS access to stack guard canary.
27026 if test -f $target_header_dir/features.h \
27027 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27028 $target_header_dir/features.h > /dev/null; then
27029 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27030 $target_header_dir/features.h > /dev/null; then
27031 gcc_cv_libc_provides_ssp=yes
27032 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27033 $target_header_dir/features.h > /dev/null \
27034 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27035 $target_header_dir/features.h > /dev/null; then
27036 gcc_cv_libc_provides_ssp=yes
27037 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27038 $target_header_dir/features.h > /dev/null && \
27039 test -f $target_header_dir/bits/uClibc_config.h && \
27040 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27041 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27042 gcc_cv_libc_provides_ssp=yes
27044 # all versions of Bionic support stack protector
27045 elif test -f $target_header_dir/sys/cdefs.h \
27046 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27047 $target_header_dir/sys/cdefs.h > /dev/null; then
27048 gcc_cv_libc_provides_ssp=yes
27051 *-*-gnu*)
27052 # Avoid complicated tests (see
27053 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27054 # simply assert that glibc does provide this, which is true for all
27055 # realistically usable GNU/Hurd configurations.
27056 gcc_cv_libc_provides_ssp=yes;;
27057 *-*-darwin* | *-*-freebsd*)
27058 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27059 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27060 gcc_cv_libc_provides_ssp=yes
27061 else
27062 echo "no __stack_chk_fail on this target"
27066 *) gcc_cv_libc_provides_ssp=no ;;
27067 esac
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27070 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27072 if test x$gcc_cv_libc_provides_ssp = xyes; then
27074 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27078 # Test for <sys/sdt.h> on the target.
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27081 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27082 have_sys_sdt_h=no
27083 if test -f $target_header_dir/sys/sdt.h; then
27084 have_sys_sdt_h=yes
27086 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27090 $as_echo "$have_sys_sdt_h" >&6; }
27092 # Check if TFmode long double should be used by default or not.
27093 # Some glibc targets used DFmode long double, but with glibc 2.4
27094 # and later they can use TFmode.
27095 case "$target" in
27096 powerpc*-*-linux* | \
27097 sparc*-*-linux* | \
27098 s390*-*-linux* | \
27099 alpha*-*-linux*)
27101 # Check whether --with-long-double-128 was given.
27102 if test "${with_long_double_128+set}" = set; then :
27103 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27104 else
27105 gcc_cv_target_ldbl128=no
27106 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27107 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27108 && gcc_cv_target_ldbl128=yes
27113 esac
27114 if test x$gcc_cv_target_ldbl128 = xyes; then
27116 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27121 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27122 gcc_cv_target_dl_iterate_phdr=unknown
27123 case "$target" in
27124 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27125 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27126 # libdl there, both complicating its use and breaking compatibility
27127 # between Solaris 10 updates.
27128 *-*-solaris2.1[1-9]*)
27129 # <link.h> needs both a dl_iterate_phdr declaration and support for
27130 # compilation with largefile support.
27131 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27132 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27133 gcc_cv_target_dl_iterate_phdr=yes
27134 else
27135 gcc_cv_target_dl_iterate_phdr=no
27138 esac
27140 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27142 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27146 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27148 # We no longer support different GC mechanisms. Emit an error if
27149 # the user configures with --with-gc.
27151 # Check whether --with-gc was given.
27152 if test "${with_gc+set}" = set; then :
27153 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27157 # Libraries to use on the host. This will normally be set by the top
27158 # level Makefile. Here we simply capture the value for our Makefile.
27159 if test -z "${HOST_LIBS+set}"; then
27160 HOST_LIBS=
27164 # Use the system's zlib library.
27165 zlibdir=-L../zlib
27166 zlibinc="-I\$(srcdir)/../zlib"
27168 # Check whether --with-system-zlib was given.
27169 if test "${with_system_zlib+set}" = set; then :
27170 withval=$with_system_zlib; zlibdir=
27171 zlibinc=
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27180 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27181 # Check whether --enable-maintainer-mode was given.
27182 if test "${enable_maintainer_mode+set}" = set; then :
27183 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27184 else
27185 maintainer_mode=no
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27190 $as_echo "$maintainer_mode" >&6; }
27192 if test "$maintainer_mode" = "yes"; then
27193 MAINT=''
27194 else
27195 MAINT='#'
27198 # --------------
27199 # Language hooks
27200 # --------------
27202 # Make empty files to contain the specs and options for each language.
27203 # Then add #include lines to for a compiler that has specs and/or options.
27205 subdirs=
27206 lang_opt_files=
27207 lang_specs_files=
27208 lang_tree_files=
27209 # These (without "all_") are set in each config-lang.in.
27210 # `language' must be a single word so is spelled singularly.
27211 all_languages=
27212 all_compilers=
27213 all_outputs='Makefile'
27214 # List of language makefile fragments.
27215 all_lang_makefrags=
27216 # Additional files for gengtype
27217 all_gtfiles="$target_gtfiles"
27219 # These are the languages that are set in --enable-languages,
27220 # and are available in the GCC tree.
27221 all_selected_languages=
27223 # Add the language fragments.
27224 # Languages are added via two mechanisms. Some information must be
27225 # recorded in makefile variables, these are defined in config-lang.in.
27226 # We accumulate them and plug them into the main Makefile.
27227 # The other mechanism is a set of hooks for each of the main targets
27228 # like `clean', `install', etc.
27230 language_hooks="Make-hooks"
27232 for lang in ${srcdir}/*/config-lang.in
27234 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27236 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27237 if test "x$lang_alias" = x
27238 then
27239 echo "$lang doesn't set \$language." 1>&2
27240 exit 1
27242 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27243 subdirs="$subdirs $subdir"
27245 # $gcc_subdir is where the gcc integration files are to be found
27246 # for a language, both for internal compiler purposes (compiler
27247 # sources implementing front-end to GCC tree converters), and for
27248 # build infrastructure purposes (Make-lang.in, etc.)
27250 # This will be <subdir> (relative to $srcdir) if a line like
27251 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27252 # is found in <langdir>/config-lang.in, and will remain <langdir>
27253 # otherwise.
27255 # Except for the language alias (fetched above), the regular
27256 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27257 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27258 # only this and the language alias.
27260 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27261 if [ "$gcc_subdir" = "" ]; then
27262 gcc_subdir="$subdir"
27265 case ",$enable_languages," in
27266 *,$lang_alias,*)
27267 all_selected_languages="$all_selected_languages $lang_alias"
27268 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27269 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27272 esac
27274 language=
27275 boot_language=
27276 compilers=
27277 outputs=
27278 gtfiles=
27279 subdir_requires=
27280 . ${srcdir}/$gcc_subdir/config-lang.in
27281 if test "x$language" = x
27282 then
27283 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27284 exit 1
27287 ok=:
27288 case ",$enable_languages," in
27289 *,$lang_alias,*) ;;
27291 for i in $subdir_requires; do
27292 test -f "${srcdir}/$i/config-lang.in" && continue
27293 ok=false
27294 break
27295 done
27297 esac
27298 $ok || continue
27300 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27301 if test -f $srcdir/$gcc_subdir/lang.opt; then
27302 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27303 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27305 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27306 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27308 all_languages="$all_languages $language"
27309 all_compilers="$all_compilers $compilers"
27310 all_outputs="$all_outputs $outputs"
27311 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27312 case ",$enable_languages," in
27313 *,lto,*)
27315 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27317 enable_lto=yes
27320 *) ;;
27321 esac
27322 done
27324 check_languages=
27325 for language in $all_selected_languages
27327 check_languages="$check_languages check-$language"
27328 done
27330 # We link each language in with a set of hooks, reached indirectly via
27331 # lang.${target}. Only do so for selected languages.
27333 rm -f Make-hooks
27334 touch Make-hooks
27335 target_list="all.cross start.encap rest.encap tags \
27336 install-common install-man install-info install-pdf install-html dvi \
27337 pdf html uninstall info man srcextra srcman srcinfo \
27338 mostlyclean clean distclean maintainer-clean install-plugin"
27340 for t in $target_list
27343 for lang in $all_selected_languages
27345 x="$x $lang.$t"
27346 done
27347 echo "lang.$t: $x" >> Make-hooks
27348 done
27350 # --------
27351 # Option include files
27352 # --------
27354 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27355 option_includes="option-includes.mk"
27358 # --------
27359 # UNSORTED
27360 # --------
27362 # Create .gdbinit.
27364 echo "dir ." > .gdbinit
27365 echo "dir ${srcdir}" >> .gdbinit
27366 if test x$gdb_needs_out_file_path = xyes
27367 then
27368 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27370 if test "x$subdirs" != x; then
27371 for s in $subdirs
27373 echo "dir ${srcdir}/$s" >> .gdbinit
27374 done
27376 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27378 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27382 # Find a directory in which to install a shared libgcc.
27384 # Check whether --enable-version-specific-runtime-libs was given.
27385 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27386 enableval=$enable_version_specific_runtime_libs;
27390 # Substitute configuration variables
27453 # Echo link setup.
27454 if test x${build} = x${host} ; then
27455 if test x${host} = x${target} ; then
27456 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27457 else
27458 echo "Links are now set up to build a cross-compiler" 1>&2
27459 echo " from ${host} to ${target}." 1>&2
27461 else
27462 if test x${host} = x${target} ; then
27463 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27464 echo " for ${target}." 1>&2
27465 else
27466 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27467 echo " from ${host} to ${target}." 1>&2
27479 if test "x${CLOOGLIBS}" != "x" ; then
27481 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27485 # Check for plugin support
27486 # Check whether --enable-plugin was given.
27487 if test "${enable_plugin+set}" = set; then :
27488 enableval=$enable_plugin; enable_plugin=$enableval
27489 else
27490 enable_plugin=yes; default_plugin=yes
27494 pluginlibs=
27496 case "${host}" in
27497 *-*-darwin*)
27498 if test x$build = x$host; then
27499 export_sym_check="nm${exeext} -g"
27500 elif test x$host = x$target; then
27501 export_sym_check="$gcc_cv_nm -g"
27502 else
27503 export_sym_check=
27507 if test x$build = x$host; then
27508 export_sym_check="objdump${exeext} -T"
27509 elif test x$host = x$target; then
27510 export_sym_check="$gcc_cv_objdump -T"
27511 else
27512 export_sym_check=
27515 esac
27517 if test x"$enable_plugin" = x"yes"; then
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27520 $as_echo_n "checking for exported symbols... " >&6; }
27521 if test "x$export_sym_check" != x; then
27522 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27523 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27524 if $export_sym_check conftest | grep foobar > /dev/null; then
27525 : # No need to use a flag
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27527 $as_echo "yes" >&6; }
27528 else
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27530 $as_echo "yes" >&6; }
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27532 $as_echo_n "checking for -rdynamic... " >&6; }
27533 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27534 if $export_sym_check conftest | grep foobar > /dev/null; then
27535 plugin_rdynamic=yes
27536 pluginlibs="-rdynamic"
27537 else
27538 plugin_rdynamic=no
27539 enable_plugin=no
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27542 $as_echo "$plugin_rdynamic" >&6; }
27544 else
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27546 $as_echo "unable to check" >&6; }
27549 # Check -ldl
27550 saved_LIBS="$LIBS"
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27552 $as_echo_n "checking for library containing dlopen... " >&6; }
27553 if test "${ac_cv_search_dlopen+set}" = set; then :
27554 $as_echo_n "(cached) " >&6
27555 else
27556 ac_func_search_save_LIBS=$LIBS
27557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27558 /* end confdefs.h. */
27560 /* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27563 #ifdef __cplusplus
27564 extern "C"
27565 #endif
27566 char dlopen ();
27568 main ()
27570 return dlopen ();
27572 return 0;
27574 _ACEOF
27575 for ac_lib in '' dl; do
27576 if test -z "$ac_lib"; then
27577 ac_res="none required"
27578 else
27579 ac_res=-l$ac_lib
27580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27582 if ac_fn_c_try_link "$LINENO"; then :
27583 ac_cv_search_dlopen=$ac_res
27585 rm -f core conftest.err conftest.$ac_objext \
27586 conftest$ac_exeext
27587 if test "${ac_cv_search_dlopen+set}" = set; then :
27588 break
27590 done
27591 if test "${ac_cv_search_dlopen+set}" = set; then :
27593 else
27594 ac_cv_search_dlopen=no
27596 rm conftest.$ac_ext
27597 LIBS=$ac_func_search_save_LIBS
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27600 $as_echo "$ac_cv_search_dlopen" >&6; }
27601 ac_res=$ac_cv_search_dlopen
27602 if test "$ac_res" != no; then :
27603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27607 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27608 pluginlibs="$pluginlibs -ldl"
27610 LIBS="$saved_LIBS"
27612 # Check that we can build shared objects with -fPIC -shared
27613 saved_LDFLAGS="$LDFLAGS"
27614 saved_CFLAGS="$CFLAGS"
27615 case "${host}" in
27616 *-*-darwin*)
27617 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27618 CFLAGS="$CFLAGS -fPIC"
27619 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27622 CFLAGS="$CFLAGS -fPIC"
27623 LDFLAGS="$LDFLAGS -fPIC -shared"
27625 esac
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27627 $as_echo_n "checking for -fPIC -shared... " >&6; }
27628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27630 extern int X;
27632 main ()
27634 return X == 0;
27636 return 0;
27638 _ACEOF
27639 if ac_fn_c_try_link "$LINENO"; then :
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27641 $as_echo "yes" >&6; }; have_pic_shared=yes
27642 else
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27644 $as_echo "no" >&6; }; have_pic_shared=no
27646 rm -f core conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
27648 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27649 pluginlibs=
27650 enable_plugin=no
27652 LDFLAGS="$saved_LDFLAGS"
27653 CFLAGS="$saved_CFLAGS"
27655 # If plugin support had been requested but not available, fail.
27656 if test x"$enable_plugin" = x"no" ; then
27657 if test x"$default_plugin" != x"yes"; then
27658 as_fn_error "
27659 Building GCC with plugin support requires a host that supports
27660 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27667 if test x"$enable_plugin" = x"yes"; then
27669 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27674 # Check whether --enable-libquadmath-support was given.
27675 if test "${enable_libquadmath_support+set}" = set; then :
27676 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27677 else
27678 ENABLE_LIBQUADMATH_SUPPORT=yes
27681 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27683 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27688 # Specify what hash style to use by default.
27690 # Check whether --with-linker-hash-style was given.
27691 if test "${with_linker_hash_style+set}" = set; then :
27692 withval=$with_linker_hash_style; case x"$withval" in
27693 xsysv)
27694 LINKER_HASH_STYLE=sysv
27696 xgnu)
27697 LINKER_HASH_STYLE=gnu
27699 xboth)
27700 LINKER_HASH_STYLE=both
27703 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27705 esac
27706 else
27707 LINKER_HASH_STYLE=''
27710 if test x"${LINKER_HASH_STYLE}" != x; then
27712 cat >>confdefs.h <<_ACEOF
27713 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27714 _ACEOF
27718 # Configure the subdirectories
27719 # AC_CONFIG_SUBDIRS($subdirs)
27721 # Create the Makefile
27722 # and configure language subdirectories
27723 ac_config_files="$ac_config_files $all_outputs"
27726 ac_config_commands="$ac_config_commands default"
27728 cat >confcache <<\_ACEOF
27729 # This file is a shell script that caches the results of configure
27730 # tests run on this system so they can be shared between configure
27731 # scripts and configure runs, see configure's option --config-cache.
27732 # It is not useful on other systems. If it contains results you don't
27733 # want to keep, you may remove or edit it.
27735 # config.status only pays attention to the cache file if you give it
27736 # the --recheck option to rerun configure.
27738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27740 # following values.
27742 _ACEOF
27744 # The following way of writing the cache mishandles newlines in values,
27745 # but we know of no workaround that is simple, portable, and efficient.
27746 # So, we kill variables containing newlines.
27747 # Ultrix sh set writes to stderr and can't be redirected directly,
27748 # and sets the high bit in the cache file unless we assign to the vars.
27750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27751 eval ac_val=\$$ac_var
27752 case $ac_val in #(
27753 *${as_nl}*)
27754 case $ac_var in #(
27755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27757 esac
27758 case $ac_var in #(
27759 _ | IFS | as_nl) ;; #(
27760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27761 *) { eval $ac_var=; unset $ac_var;} ;;
27762 esac ;;
27763 esac
27764 done
27766 (set) 2>&1 |
27767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27768 *${as_nl}ac_space=\ *)
27769 # `set' does not quote correctly, so add quotes: double-quote
27770 # substitution turns \\\\ into \\, and sed turns \\ into \.
27771 sed -n \
27772 "s/'/'\\\\''/g;
27773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27774 ;; #(
27776 # `set' quotes correctly as required by POSIX, so do not add quotes.
27777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27779 esac |
27780 sort
27782 sed '
27783 /^ac_cv_env_/b end
27784 t clear
27785 :clear
27786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27787 t end
27788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27789 :end' >>confcache
27790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27791 if test -w "$cache_file"; then
27792 test "x$cache_file" != "x/dev/null" &&
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27794 $as_echo "$as_me: updating cache $cache_file" >&6;}
27795 cat confcache >$cache_file
27796 else
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27798 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27801 rm -f confcache
27803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27804 # Let make expand exec_prefix.
27805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27807 DEFS=-DHAVE_CONFIG_H
27809 ac_libobjs=
27810 ac_ltlibobjs=
27811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27812 # 1. Remove the extension, and $U if already installed.
27813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27816 # will be set to the directory where LIBOBJS objects are built.
27817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27819 done
27820 LIBOBJS=$ac_libobjs
27822 LTLIBOBJS=$ac_ltlibobjs
27827 : ${CONFIG_STATUS=./config.status}
27828 ac_write_fail=0
27829 ac_clean_files_save=$ac_clean_files
27830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27833 as_write_fail=0
27834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27835 #! $SHELL
27836 # Generated by $as_me.
27837 # Run this file to recreate the current configuration.
27838 # Compiler output produced by configure, useful for debugging
27839 # configure, is in config.log if it exists.
27841 debug=false
27842 ac_cs_recheck=false
27843 ac_cs_silent=false
27845 SHELL=\${CONFIG_SHELL-$SHELL}
27846 export SHELL
27847 _ASEOF
27848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27849 ## -------------------- ##
27850 ## M4sh Initialization. ##
27851 ## -------------------- ##
27853 # Be more Bourne compatible
27854 DUALCASE=1; export DUALCASE # for MKS sh
27855 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27856 emulate sh
27857 NULLCMD=:
27858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27859 # is contrary to our usage. Disable this feature.
27860 alias -g '${1+"$@"}'='"$@"'
27861 setopt NO_GLOB_SUBST
27862 else
27863 case `(set -o) 2>/dev/null` in #(
27864 *posix*) :
27865 set -o posix ;; #(
27866 *) :
27868 esac
27872 as_nl='
27874 export as_nl
27875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27879 # Prefer a ksh shell builtin over an external printf program on Solaris,
27880 # but without wasting forks for bash or zsh.
27881 if test -z "$BASH_VERSION$ZSH_VERSION" \
27882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27883 as_echo='print -r --'
27884 as_echo_n='print -rn --'
27885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27886 as_echo='printf %s\n'
27887 as_echo_n='printf %s'
27888 else
27889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27891 as_echo_n='/usr/ucb/echo -n'
27892 else
27893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27894 as_echo_n_body='eval
27895 arg=$1;
27896 case $arg in #(
27897 *"$as_nl"*)
27898 expr "X$arg" : "X\\(.*\\)$as_nl";
27899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27900 esac;
27901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27903 export as_echo_n_body
27904 as_echo_n='sh -c $as_echo_n_body as_echo'
27906 export as_echo_body
27907 as_echo='sh -c $as_echo_body as_echo'
27910 # The user is always right.
27911 if test "${PATH_SEPARATOR+set}" != set; then
27912 PATH_SEPARATOR=:
27913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27915 PATH_SEPARATOR=';'
27920 # IFS
27921 # We need space, tab and new line, in precisely that order. Quoting is
27922 # there to prevent editors from complaining about space-tab.
27923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27924 # splitting by setting IFS to empty value.)
27925 IFS=" "" $as_nl"
27927 # Find who we are. Look in the path if we contain no directory separator.
27928 case $0 in #((
27929 *[\\/]* ) as_myself=$0 ;;
27930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27931 for as_dir in $PATH
27933 IFS=$as_save_IFS
27934 test -z "$as_dir" && as_dir=.
27935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27936 done
27937 IFS=$as_save_IFS
27940 esac
27941 # We did not find ourselves, most probably we were run as `sh COMMAND'
27942 # in which case we are not to be found in the path.
27943 if test "x$as_myself" = x; then
27944 as_myself=$0
27946 if test ! -f "$as_myself"; then
27947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27948 exit 1
27951 # Unset variables that we do not need and which cause bugs (e.g. in
27952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27953 # suppresses any "Segmentation fault" message there. '((' could
27954 # trigger a bug in pdksh 5.2.14.
27955 for as_var in BASH_ENV ENV MAIL MAILPATH
27956 do eval test x\${$as_var+set} = xset \
27957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27958 done
27959 PS1='$ '
27960 PS2='> '
27961 PS4='+ '
27963 # NLS nuisances.
27964 LC_ALL=C
27965 export LC_ALL
27966 LANGUAGE=C
27967 export LANGUAGE
27969 # CDPATH.
27970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27973 # as_fn_error ERROR [LINENO LOG_FD]
27974 # ---------------------------------
27975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27977 # script with status $?, using 1 if that was 0.
27978 as_fn_error ()
27980 as_status=$?; test $as_status -eq 0 && as_status=1
27981 if test "$3"; then
27982 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27985 $as_echo "$as_me: error: $1" >&2
27986 as_fn_exit $as_status
27987 } # as_fn_error
27990 # as_fn_set_status STATUS
27991 # -----------------------
27992 # Set $? to STATUS, without forking.
27993 as_fn_set_status ()
27995 return $1
27996 } # as_fn_set_status
27998 # as_fn_exit STATUS
27999 # -----------------
28000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28001 as_fn_exit ()
28003 set +e
28004 as_fn_set_status $1
28005 exit $1
28006 } # as_fn_exit
28008 # as_fn_unset VAR
28009 # ---------------
28010 # Portably unset VAR.
28011 as_fn_unset ()
28013 { eval $1=; unset $1;}
28015 as_unset=as_fn_unset
28016 # as_fn_append VAR VALUE
28017 # ----------------------
28018 # Append the text in VALUE to the end of the definition contained in VAR. Take
28019 # advantage of any shell optimizations that allow amortized linear growth over
28020 # repeated appends, instead of the typical quadratic growth present in naive
28021 # implementations.
28022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28023 eval 'as_fn_append ()
28025 eval $1+=\$2
28027 else
28028 as_fn_append ()
28030 eval $1=\$$1\$2
28032 fi # as_fn_append
28034 # as_fn_arith ARG...
28035 # ------------------
28036 # Perform arithmetic evaluation on the ARGs, and store the result in the
28037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28038 # must be portable across $(()) and expr.
28039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28040 eval 'as_fn_arith ()
28042 as_val=$(( $* ))
28044 else
28045 as_fn_arith ()
28047 as_val=`expr "$@" || test $? -eq 1`
28049 fi # as_fn_arith
28052 if expr a : '\(a\)' >/dev/null 2>&1 &&
28053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28054 as_expr=expr
28055 else
28056 as_expr=false
28059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28060 as_basename=basename
28061 else
28062 as_basename=false
28065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28066 as_dirname=dirname
28067 else
28068 as_dirname=false
28071 as_me=`$as_basename -- "$0" ||
28072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28073 X"$0" : 'X\(//\)$' \| \
28074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28075 $as_echo X/"$0" |
28076 sed '/^.*\/\([^/][^/]*\)\/*$/{
28077 s//\1/
28080 /^X\/\(\/\/\)$/{
28081 s//\1/
28084 /^X\/\(\/\).*/{
28085 s//\1/
28088 s/.*/./; q'`
28090 # Avoid depending upon Character Ranges.
28091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28094 as_cr_digits='0123456789'
28095 as_cr_alnum=$as_cr_Letters$as_cr_digits
28097 ECHO_C= ECHO_N= ECHO_T=
28098 case `echo -n x` in #(((((
28099 -n*)
28100 case `echo 'xy\c'` in
28101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28102 xy) ECHO_C='\c';;
28103 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28104 ECHO_T=' ';;
28105 esac;;
28107 ECHO_N='-n';;
28108 esac
28110 rm -f conf$$ conf$$.exe conf$$.file
28111 if test -d conf$$.dir; then
28112 rm -f conf$$.dir/conf$$.file
28113 else
28114 rm -f conf$$.dir
28115 mkdir conf$$.dir 2>/dev/null
28117 if (echo >conf$$.file) 2>/dev/null; then
28118 if ln -s conf$$.file conf$$ 2>/dev/null; then
28119 as_ln_s='ln -s'
28120 # ... but there are two gotchas:
28121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28123 # In both cases, we have to default to `cp -p'.
28124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28125 as_ln_s='cp -p'
28126 elif ln conf$$.file conf$$ 2>/dev/null; then
28127 as_ln_s=ln
28128 else
28129 as_ln_s='cp -p'
28131 else
28132 as_ln_s='cp -p'
28134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28135 rmdir conf$$.dir 2>/dev/null
28138 # as_fn_mkdir_p
28139 # -------------
28140 # Create "$as_dir" as a directory, including parents if necessary.
28141 as_fn_mkdir_p ()
28144 case $as_dir in #(
28145 -*) as_dir=./$as_dir;;
28146 esac
28147 test -d "$as_dir" || eval $as_mkdir_p || {
28148 as_dirs=
28149 while :; do
28150 case $as_dir in #(
28151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28152 *) as_qdir=$as_dir;;
28153 esac
28154 as_dirs="'$as_qdir' $as_dirs"
28155 as_dir=`$as_dirname -- "$as_dir" ||
28156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28157 X"$as_dir" : 'X\(//\)[^/]' \| \
28158 X"$as_dir" : 'X\(//\)$' \| \
28159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28160 $as_echo X"$as_dir" |
28161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28162 s//\1/
28165 /^X\(\/\/\)[^/].*/{
28166 s//\1/
28169 /^X\(\/\/\)$/{
28170 s//\1/
28173 /^X\(\/\).*/{
28174 s//\1/
28177 s/.*/./; q'`
28178 test -d "$as_dir" && break
28179 done
28180 test -z "$as_dirs" || eval "mkdir $as_dirs"
28181 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28184 } # as_fn_mkdir_p
28185 if mkdir -p . 2>/dev/null; then
28186 as_mkdir_p='mkdir -p "$as_dir"'
28187 else
28188 test -d ./-p && rmdir ./-p
28189 as_mkdir_p=false
28192 if test -x / >/dev/null 2>&1; then
28193 as_test_x='test -x'
28194 else
28195 if ls -dL / >/dev/null 2>&1; then
28196 as_ls_L_option=L
28197 else
28198 as_ls_L_option=
28200 as_test_x='
28201 eval sh -c '\''
28202 if test -d "$1"; then
28203 test -d "$1/.";
28204 else
28205 case $1 in #(
28206 -*)set "./$1";;
28207 esac;
28208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28209 ???[sx]*):;;*)false;;esac;fi
28210 '\'' sh
28213 as_executable_p=$as_test_x
28215 # Sed expression to map a string onto a valid CPP name.
28216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28218 # Sed expression to map a string onto a valid variable name.
28219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28222 exec 6>&1
28223 ## ----------------------------------- ##
28224 ## Main body of $CONFIG_STATUS script. ##
28225 ## ----------------------------------- ##
28226 _ASEOF
28227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28230 # Save the log message, to keep $0 and so on meaningful, and to
28231 # report actual input values of CONFIG_FILES etc. instead of their
28232 # values after options handling.
28233 ac_log="
28234 This file was extended by $as_me, which was
28235 generated by GNU Autoconf 2.64. Invocation command line was
28237 CONFIG_FILES = $CONFIG_FILES
28238 CONFIG_HEADERS = $CONFIG_HEADERS
28239 CONFIG_LINKS = $CONFIG_LINKS
28240 CONFIG_COMMANDS = $CONFIG_COMMANDS
28241 $ $0 $@
28243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28246 _ACEOF
28248 case $ac_config_files in *"
28249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28250 esac
28252 case $ac_config_headers in *"
28253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28254 esac
28257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28258 # Files that config.status was made for.
28259 config_files="$ac_config_files"
28260 config_headers="$ac_config_headers"
28261 config_commands="$ac_config_commands"
28263 _ACEOF
28265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28266 ac_cs_usage="\
28267 \`$as_me' instantiates files and other configuration actions
28268 from templates according to the current configuration. Unless the files
28269 and actions are specified as TAGs, all are instantiated by default.
28271 Usage: $0 [OPTION]... [TAG]...
28273 -h, --help print this help, then exit
28274 -V, --version print version number and configuration settings, then exit
28275 -q, --quiet, --silent
28276 do not print progress messages
28277 -d, --debug don't remove temporary files
28278 --recheck update $as_me by reconfiguring in the same conditions
28279 --file=FILE[:TEMPLATE]
28280 instantiate the configuration file FILE
28281 --header=FILE[:TEMPLATE]
28282 instantiate the configuration header FILE
28284 Configuration files:
28285 $config_files
28287 Configuration headers:
28288 $config_headers
28290 Configuration commands:
28291 $config_commands
28293 Report bugs to the package provider."
28295 _ACEOF
28296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28297 ac_cs_version="\\
28298 config.status
28299 configured by $0, generated by GNU Autoconf 2.64,
28300 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28302 Copyright (C) 2009 Free Software Foundation, Inc.
28303 This config.status script is free software; the Free Software Foundation
28304 gives unlimited permission to copy, distribute and modify it."
28306 ac_pwd='$ac_pwd'
28307 srcdir='$srcdir'
28308 AWK='$AWK'
28309 test -n "\$AWK" || AWK=awk
28310 _ACEOF
28312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28313 # The default lists apply if the user does not specify any file.
28314 ac_need_defaults=:
28315 while test $# != 0
28317 case $1 in
28318 --*=*)
28319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28321 ac_shift=:
28324 ac_option=$1
28325 ac_optarg=$2
28326 ac_shift=shift
28328 esac
28330 case $ac_option in
28331 # Handling of the options.
28332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28333 ac_cs_recheck=: ;;
28334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28335 $as_echo "$ac_cs_version"; exit ;;
28336 --debug | --debu | --deb | --de | --d | -d )
28337 debug=: ;;
28338 --file | --fil | --fi | --f )
28339 $ac_shift
28340 case $ac_optarg in
28341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28342 esac
28343 as_fn_append CONFIG_FILES " '$ac_optarg'"
28344 ac_need_defaults=false;;
28345 --header | --heade | --head | --hea )
28346 $ac_shift
28347 case $ac_optarg in
28348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28349 esac
28350 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28351 ac_need_defaults=false;;
28352 --he | --h)
28353 # Conflict between --help and --header
28354 as_fn_error "ambiguous option: \`$1'
28355 Try \`$0 --help' for more information.";;
28356 --help | --hel | -h )
28357 $as_echo "$ac_cs_usage"; exit ;;
28358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28360 ac_cs_silent=: ;;
28362 # This is an error.
28363 -*) as_fn_error "unrecognized option: \`$1'
28364 Try \`$0 --help' for more information." ;;
28366 *) as_fn_append ac_config_targets " $1"
28367 ac_need_defaults=false ;;
28369 esac
28370 shift
28371 done
28373 ac_configure_extra_args=
28375 if $ac_cs_silent; then
28376 exec 6>/dev/null
28377 ac_configure_extra_args="$ac_configure_extra_args --silent"
28380 _ACEOF
28381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28382 if \$ac_cs_recheck; then
28383 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28384 shift
28385 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28386 CONFIG_SHELL='$SHELL'
28387 export CONFIG_SHELL
28388 exec "\$@"
28391 _ACEOF
28392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28393 exec 5>>config.log
28395 echo
28396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28397 ## Running $as_me. ##
28398 _ASBOX
28399 $as_echo "$ac_log"
28400 } >&5
28402 _ACEOF
28403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28405 # INIT-COMMANDS
28407 subdirs='$subdirs'
28409 _ACEOF
28411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28413 # Handling of arguments.
28414 for ac_config_target in $ac_config_targets
28416 case $ac_config_target in
28417 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28418 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28419 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28420 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28421 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28422 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28424 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28425 esac
28426 done
28429 # If the user did not use the arguments to specify the items to instantiate,
28430 # then the envvar interface is used. Set only those that are not.
28431 # We use the long form for the default assignment because of an extremely
28432 # bizarre bug on SunOS 4.1.3.
28433 if $ac_need_defaults; then
28434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28439 # Have a temporary directory for convenience. Make it in the build tree
28440 # simply because there is no reason against having it here, and in addition,
28441 # creating and moving files from /tmp can sometimes cause problems.
28442 # Hook for its removal unless debugging.
28443 # Note that there is a small window in which the directory will not be cleaned:
28444 # after its creation but before its name has been assigned to `$tmp'.
28445 $debug ||
28447 tmp=
28448 trap 'exit_status=$?
28449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28451 trap 'as_fn_exit 1' 1 2 13 15
28453 # Create a (secure) tmp directory for tmp files.
28456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28457 test -n "$tmp" && test -d "$tmp"
28458 } ||
28460 tmp=./conf$$-$RANDOM
28461 (umask 077 && mkdir "$tmp")
28462 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28464 # Set up the scripts for CONFIG_FILES section.
28465 # No need to generate them if there are no CONFIG_FILES.
28466 # This happens for instance with `./config.status config.h'.
28467 if test -n "$CONFIG_FILES"; then
28469 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28470 ac_cs_awk_getline=:
28471 ac_cs_awk_pipe_init=
28472 ac_cs_awk_read_file='
28473 while ((getline aline < (F[key])) > 0)
28474 print(aline)
28475 close(F[key])'
28476 ac_cs_awk_pipe_fini=
28477 else
28478 ac_cs_awk_getline=false
28479 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28480 ac_cs_awk_read_file='
28481 print "|#_!!_#|"
28482 print "cat " F[key] " &&"
28483 '$ac_cs_awk_pipe_init
28484 # The final `:' finishes the AND list.
28485 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28487 ac_cr=`echo X | tr X '\015'`
28488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28489 # But we know of no other shell where ac_cr would be empty at this
28490 # point, so we can use a bashism as a fallback.
28491 if test "x$ac_cr" = x; then
28492 eval ac_cr=\$\'\\r\'
28494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28496 ac_cs_awk_cr='\r'
28497 else
28498 ac_cs_awk_cr=$ac_cr
28501 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28502 _ACEOF
28504 # Create commands to substitute file output variables.
28506 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28507 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28508 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28509 echo "_ACAWK" &&
28510 echo "_ACEOF"
28511 } >conf$$files.sh &&
28512 . ./conf$$files.sh ||
28513 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28514 rm -f conf$$files.sh
28517 echo "cat >conf$$subs.awk <<_ACEOF" &&
28518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28519 echo "_ACEOF"
28520 } >conf$$subs.sh ||
28521 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28522 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28523 ac_delim='%!_!# '
28524 for ac_last_try in false false false false false :; do
28525 . ./conf$$subs.sh ||
28526 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28528 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28529 if test $ac_delim_n = $ac_delim_num; then
28530 break
28531 elif $ac_last_try; then
28532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28533 else
28534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28536 done
28537 rm -f conf$$subs.sh
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28541 _ACEOF
28542 sed -n '
28544 s/^/S["/; s/!.*/"]=/
28547 s/^[^!]*!//
28548 :repl
28549 t repl
28550 s/'"$ac_delim"'$//
28551 t delim
28554 s/\(.\{148\}\).*/\1/
28555 t more1
28556 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28559 b repl
28560 :more1
28561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28564 s/.\{148\}//
28565 t nl
28566 :delim
28568 s/\(.\{148\}\).*/\1/
28569 t more2
28570 s/["\\]/\\&/g; s/^/"/; s/$/"/
28573 :more2
28574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28577 s/.\{148\}//
28578 t delim
28579 ' <conf$$subs.awk | sed '
28580 /^[^""]/{
28582 s/\n//
28584 ' >>$CONFIG_STATUS || ac_write_fail=1
28585 rm -f conf$$subs.awk
28586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28587 _ACAWK
28588 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28589 for (key in S) S_is_set[key] = 1
28590 FS = "\a"
28591 \$ac_cs_awk_pipe_init
28594 line = $ 0
28595 nfields = split(line, field, "@")
28596 substed = 0
28597 len = length(field[1])
28598 for (i = 2; i < nfields; i++) {
28599 key = field[i]
28600 keylen = length(key)
28601 if (S_is_set[key]) {
28602 value = S[key]
28603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28604 len += length(value) + length(field[++i])
28605 substed = 1
28606 } else
28607 len += 1 + keylen
28609 if (nfields == 3 && !substed) {
28610 key = field[2]
28611 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28612 \$ac_cs_awk_read_file
28613 next
28616 print line
28618 \$ac_cs_awk_pipe_fini
28619 _ACAWK
28620 _ACEOF
28621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28622 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28623 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28624 else
28626 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28627 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28628 _ACEOF
28630 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28631 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28632 # trailing colons and then remove the whole line if VPATH becomes empty
28633 # (actually we leave an empty line to preserve line numbers).
28634 if test "x$srcdir" = x.; then
28635 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28636 s/:*\$(srcdir):*/:/
28637 s/:*\${srcdir}:*/:/
28638 s/:*@srcdir@:*/:/
28639 s/^\([^=]*=[ ]*\):*/\1/
28640 s/:*$//
28641 s/^[^=]*=[ ]*$//
28645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28646 fi # test -n "$CONFIG_FILES"
28648 # Set up the scripts for CONFIG_HEADERS section.
28649 # No need to generate them if there are no CONFIG_HEADERS.
28650 # This happens for instance with `./config.status Makefile'.
28651 if test -n "$CONFIG_HEADERS"; then
28652 cat >"$tmp/defines.awk" <<\_ACAWK ||
28653 BEGIN {
28654 _ACEOF
28656 # Transform confdefs.h into an awk script `defines.awk', embedded as
28657 # here-document in config.status, that substitutes the proper values into
28658 # config.h.in to produce config.h.
28660 # Create a delimiter string that does not exist in confdefs.h, to ease
28661 # handling of long lines.
28662 ac_delim='%!_!# '
28663 for ac_last_try in false false :; do
28664 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28665 if test -z "$ac_t"; then
28666 break
28667 elif $ac_last_try; then
28668 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28669 else
28670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28672 done
28674 # For the awk script, D is an array of macro values keyed by name,
28675 # likewise P contains macro parameters if any. Preserve backslash
28676 # newline sequences.
28678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28679 sed -n '
28680 s/.\{148\}/&'"$ac_delim"'/g
28681 t rset
28682 :rset
28683 s/^[ ]*#[ ]*define[ ][ ]*/ /
28684 t def
28686 :def
28687 s/\\$//
28688 t bsnl
28689 s/["\\]/\\&/g
28690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28691 D["\1"]=" \3"/p
28692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28694 :bsnl
28695 s/["\\]/\\&/g
28696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28697 D["\1"]=" \3\\\\\\n"\\/p
28698 t cont
28699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28700 t cont
28702 :cont
28704 s/.\{148\}/&'"$ac_delim"'/g
28705 t clear
28706 :clear
28707 s/\\$//
28708 t bsnlc
28709 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28711 :bsnlc
28712 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28713 b cont
28714 ' <confdefs.h | sed '
28715 s/'"$ac_delim"'/"\\\
28716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28719 for (key in D) D_is_set[key] = 1
28720 FS = "\a"
28722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28723 line = \$ 0
28724 split(line, arg, " ")
28725 if (arg[1] == "#") {
28726 defundef = arg[2]
28727 mac1 = arg[3]
28728 } else {
28729 defundef = substr(arg[1], 2)
28730 mac1 = arg[2]
28732 split(mac1, mac2, "(") #)
28733 macro = mac2[1]
28734 prefix = substr(line, 1, index(line, defundef) - 1)
28735 if (D_is_set[macro]) {
28736 # Preserve the white space surrounding the "#".
28737 print prefix "define", macro P[macro] D[macro]
28738 next
28739 } else {
28740 # Replace #undef with comments. This is necessary, for example,
28741 # in the case of _POSIX_SOURCE, which is predefined and required
28742 # on some systems where configure will not decide to define it.
28743 if (defundef == "undef") {
28744 print "/*", prefix defundef, macro, "*/"
28745 next
28749 { print }
28750 _ACAWK
28751 _ACEOF
28752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28753 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28754 fi # test -n "$CONFIG_HEADERS"
28757 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28758 shift
28759 for ac_tag
28761 case $ac_tag in
28762 :[FHLC]) ac_mode=$ac_tag; continue;;
28763 esac
28764 case $ac_mode$ac_tag in
28765 :[FHL]*:*);;
28766 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28767 :[FH]-) ac_tag=-:-;;
28768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28769 esac
28770 ac_save_IFS=$IFS
28771 IFS=:
28772 set x $ac_tag
28773 IFS=$ac_save_IFS
28774 shift
28775 ac_file=$1
28776 shift
28778 case $ac_mode in
28779 :L) ac_source=$1;;
28780 :[FH])
28781 ac_file_inputs=
28782 for ac_f
28784 case $ac_f in
28785 -) ac_f="$tmp/stdin";;
28786 *) # Look for the file first in the build tree, then in the source tree
28787 # (if the path is not absolute). The absolute path cannot be DOS-style,
28788 # because $ac_f cannot contain `:'.
28789 test -f "$ac_f" ||
28790 case $ac_f in
28791 [\\/$]*) false;;
28792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28793 esac ||
28794 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28795 esac
28796 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28797 as_fn_append ac_file_inputs " '$ac_f'"
28798 done
28800 # Let's still pretend it is `configure' which instantiates (i.e., don't
28801 # use $as_me), people would be surprised to read:
28802 # /* config.h. Generated by config.status. */
28803 configure_input='Generated from '`
28804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28805 `' by configure.'
28806 if test x"$ac_file" != x-; then
28807 configure_input="$ac_file. $configure_input"
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28809 $as_echo "$as_me: creating $ac_file" >&6;}
28811 # Neutralize special characters interpreted by sed in replacement strings.
28812 case $configure_input in #(
28813 *\&* | *\|* | *\\* )
28814 ac_sed_conf_input=`$as_echo "$configure_input" |
28815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28816 *) ac_sed_conf_input=$configure_input;;
28817 esac
28819 case $ac_tag in
28820 *:-:* | *:-) cat >"$tmp/stdin" \
28821 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28822 esac
28824 esac
28826 ac_dir=`$as_dirname -- "$ac_file" ||
28827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28828 X"$ac_file" : 'X\(//\)[^/]' \| \
28829 X"$ac_file" : 'X\(//\)$' \| \
28830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28831 $as_echo X"$ac_file" |
28832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28833 s//\1/
28836 /^X\(\/\/\)[^/].*/{
28837 s//\1/
28840 /^X\(\/\/\)$/{
28841 s//\1/
28844 /^X\(\/\).*/{
28845 s//\1/
28848 s/.*/./; q'`
28849 as_dir="$ac_dir"; as_fn_mkdir_p
28850 ac_builddir=.
28852 case "$ac_dir" in
28853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28856 # A ".." for each directory in $ac_dir_suffix.
28857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28858 case $ac_top_builddir_sub in
28859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28861 esac ;;
28862 esac
28863 ac_abs_top_builddir=$ac_pwd
28864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28865 # for backward compatibility:
28866 ac_top_builddir=$ac_top_build_prefix
28868 case $srcdir in
28869 .) # We are building in place.
28870 ac_srcdir=.
28871 ac_top_srcdir=$ac_top_builddir_sub
28872 ac_abs_top_srcdir=$ac_pwd ;;
28873 [\\/]* | ?:[\\/]* ) # Absolute name.
28874 ac_srcdir=$srcdir$ac_dir_suffix;
28875 ac_top_srcdir=$srcdir
28876 ac_abs_top_srcdir=$srcdir ;;
28877 *) # Relative name.
28878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28879 ac_top_srcdir=$ac_top_build_prefix$srcdir
28880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28881 esac
28882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28885 case $ac_mode in
28888 # CONFIG_FILE
28891 _ACEOF
28893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28894 # If the template does not know about datarootdir, expand it.
28895 # FIXME: This hack should be removed a few years after 2.60.
28896 ac_datarootdir_hack=; ac_datarootdir_seen=
28897 ac_sed_dataroot='
28898 /datarootdir/ {
28902 /@datadir@/p
28903 /@docdir@/p
28904 /@infodir@/p
28905 /@localedir@/p
28906 /@mandir@/p'
28907 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28908 *datarootdir*) ac_datarootdir_seen=yes;;
28909 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28911 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28912 _ACEOF
28913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28914 ac_datarootdir_hack='
28915 s&@datadir@&$datadir&g
28916 s&@docdir@&$docdir&g
28917 s&@infodir@&$infodir&g
28918 s&@localedir@&$localedir&g
28919 s&@mandir@&$mandir&g
28920 s&\\\${datarootdir}&$datarootdir&g' ;;
28921 esac
28922 _ACEOF
28924 # Neutralize VPATH when `$srcdir' = `.'.
28925 # Shell code in configure.ac might set extrasub.
28926 # FIXME: do we really want to maintain this feature?
28927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28928 ac_sed_extra="$ac_vpsub
28929 $extrasub
28930 _ACEOF
28931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28934 s|@configure_input@|$ac_sed_conf_input|;t t
28935 s&@top_builddir@&$ac_top_builddir_sub&;t t
28936 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28937 s&@srcdir@&$ac_srcdir&;t t
28938 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28939 s&@top_srcdir@&$ac_top_srcdir&;t t
28940 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28941 s&@builddir@&$ac_builddir&;t t
28942 s&@abs_builddir@&$ac_abs_builddir&;t t
28943 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28944 $ac_datarootdir_hack
28946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28947 if $ac_cs_awk_getline; then
28948 $AWK -f "$tmp/subs.awk"
28949 else
28950 $AWK -f "$tmp/subs.awk" | $SHELL
28951 fi >$tmp/out \
28952 || as_fn_error "could not create $ac_file" "$LINENO" 5
28954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28955 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28958 which seems to be undefined. Please make sure it is defined." >&5
28959 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28960 which seems to be undefined. Please make sure it is defined." >&2;}
28962 rm -f "$tmp/stdin"
28963 case $ac_file in
28964 -) cat "$tmp/out" && rm -f "$tmp/out";;
28965 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28966 esac \
28967 || as_fn_error "could not create $ac_file" "$LINENO" 5
28971 # CONFIG_HEADER
28973 if test x"$ac_file" != x-; then
28975 $as_echo "/* $configure_input */" \
28976 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28977 } >"$tmp/config.h" \
28978 || as_fn_error "could not create $ac_file" "$LINENO" 5
28979 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28981 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28982 else
28983 rm -f "$ac_file"
28984 mv "$tmp/config.h" "$ac_file" \
28985 || as_fn_error "could not create $ac_file" "$LINENO" 5
28987 else
28988 $as_echo "/* $configure_input */" \
28989 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28990 || as_fn_error "could not create -" "$LINENO" 5
28994 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28995 $as_echo "$as_me: executing $ac_file commands" >&6;}
28997 esac
29000 case $ac_file$ac_mode in
29001 "as":F) chmod +x as ;;
29002 "collect-ld":F) chmod +x collect-ld ;;
29003 "nm":F) chmod +x nm ;;
29004 "default":C)
29005 case ${CONFIG_HEADERS} in
29006 *auto-host.h:config.in*)
29007 echo > cstamp-h ;;
29008 esac
29009 # Make sure all the subdirs exist.
29010 for d in $subdirs doc build common c-family
29012 test -d $d || mkdir $d
29013 done
29016 esac
29017 done # for ac_tag
29020 as_fn_exit 0
29021 _ACEOF
29022 ac_clean_files=$ac_clean_files_save
29024 test $ac_write_fail = 0 ||
29025 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29028 # configure is writing to config.log, and then calls config.status.
29029 # config.status does its own redirection, appending to config.log.
29030 # Unfortunately, on DOS this fails, as config.log is still kept open
29031 # by configure, so config.status won't be able to write to it; its
29032 # output is simply discarded. So we exec the FD to /dev/null,
29033 # effectively closing config.log, so it can be properly (re)opened and
29034 # appended to by config.status. When coming back to configure, we
29035 # need to make the FD available again.
29036 if test "$no_create" != yes; then
29037 ac_cs_success=:
29038 ac_config_status_args=
29039 test "$silent" = yes &&
29040 ac_config_status_args="$ac_config_status_args --quiet"
29041 exec 5>/dev/null
29042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29043 exec 5>>config.log
29044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29045 # would make configure fail if this is the last instruction.
29046 $ac_cs_success || as_fn_exit $?
29048 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29050 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}