Merge trunk version 195164 into gupc branch.
[official-gcc.git] / gcc / configure
blob31755f3c6f722989f6e3f826b2a2d3fa2c595363
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 PERL
767 enable_fixed_point
768 enable_decimal_float
769 with_float
770 with_cpu
771 enable_multiarch
772 enable_multilib
773 coverage_flags
774 valgrind_command
775 valgrind_path_defines
776 valgrind_path
777 TREECHECKING
778 TREEBROWSER
779 nocommon_flag
780 noexception_flags
781 warn_cxxflags
782 warn_cflags
783 c_strict_warn
784 strict_warn
785 c_loose_warn
786 loose_warn
787 EGREP
788 GREP
790 PICFLAG_FOR_TARGET
791 OUTPUT_OPTION
792 NO_MINUS_C_MINUS_O
793 GNATMAKE
794 GNATBIND
795 ac_ct_CXX
796 CXXFLAGS
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
805 GENINSRC
806 target_subdir
807 host_subdir
808 build_subdir
809 build_libsubdir
810 target_noncanonical
811 target_os
812 target_vendor
813 target_cpu
814 target
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files='option_includes
862 language_hooks'
863 ac_user_opts='
864 enable_option_checking
865 with_build_libsubdir
866 with_local_prefix
867 with_gxx_include_dir
868 with_cpp_install_dir
869 enable_generated_files_in_srcdir
870 with_gnu_ld
871 with_ld
872 with_demangler_in_ld
873 with_gnu_as
874 with_as
875 enable_largefile
876 enable_werror_always
877 enable_checking
878 enable_coverage
879 enable_gather_detailed_mem_stats
880 with_stabs
881 enable_multilib
882 enable_multiarch
883 enable___cxa_atexit
884 enable_decimal_float
885 enable_fixed_point
886 enable_threads
887 enable_tls
888 enable_objc_gc
889 with_upc_pts
890 with_upc_pts_vaddr_order
891 with_upc_packed_bits
892 with_upc_pts_packed_bits
893 enable_upc_link_script
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 with_plugin_ld
917 enable_gnu_indirect_function
918 enable_initfini_array
919 enable_comdat
920 enable_gnu_unique_object
921 enable_linker_build_id
922 with_long_double_128
923 with_gc
924 with_system_zlib
925 enable_maintainer_mode
926 enable_version_specific_runtime_libs
927 enable_plugin
928 enable_libquadmath_support
929 with_linker_hash_style
931 ac_precious_vars='build_alias
932 host_alias
933 target_alias
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
940 CXXFLAGS
943 CXXCPP
944 GMPLIBS
945 GMPINC
946 ISLLIBS
947 ISLINC
948 CLOOGLIBS
949 CLOOGINC'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *) ac_optarg=yes ;;
1014 esac
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1020 ac_dashdash=yes ;;
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 ac_prev=bindir ;;
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1043 ac_prev=datadir ;;
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1284 -with-* | --with-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=no ;;
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) as_fn_error "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1338 *=*)
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1344 esac
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 esac
1357 done
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error "missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1366 no) ;;
1367 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 esac
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1380 case $ac_val in
1381 */ )
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1384 esac
1385 # Be sure to have absolute directory names.
1386 case $ac_val in
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 esac
1390 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391 done
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1396 build=$build_alias
1397 host=$host_alias
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1411 ac_tool_prefix=
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414 test "$silent" = yes && exec 6>/dev/null
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error "working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error "pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 s//\1/
1439 /^X\(\/\/\)[^/].*/{
1440 s//\1/
1443 /^X\(\/\/\)$/{
1444 s//\1/
1447 /^X\(\/\).*/{
1448 s//\1/
1451 s/.*/./; q'`
1452 srcdir=$ac_confdir
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 srcdir=..
1456 else
1457 ac_srcdir_defaulted=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491 \`configure' configures this package to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1500 Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1544 _ACEOF
1546 cat <<\_ACEOF
1548 Program names:
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553 System types:
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 --target=TARGET configure for building compilers for TARGET [HOST]
1557 _ACEOF
1560 if test -n "$ac_init_help"; then
1562 cat <<\_ACEOF
1564 Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-generated-files-in-srcdir
1569 put copies of generated files in source dir intended
1570 for creating source tarballs for users without
1571 texinfo bison or flex
1572 --disable-largefile omit support for large files
1573 --enable-werror-always enable -Werror despite compiler version
1574 --enable-checking[=LIST]
1575 enable expensive run-time checks. With LIST, enable
1576 only specific categories of checks. Categories are:
1577 yes,no,all,none,release. Flags are:
1578 assert,df,fold,gc,gcac,gimple,misc,
1579 rtlflag,rtl,runtime,tree,valgrind,types
1580 --enable-coverage[=LEVEL]
1581 enable compiler's code coverage collection. Use to
1582 measure compiler performance and locate unused parts
1583 of the compiler. With LEVEL, specify optimization.
1584 Values are opt, noopt, default is noopt
1585 --enable-gather-detailed-mem-stats
1586 enable detailed memory allocation stats gathering
1587 --enable-multilib enable library support for multiple ABIs
1588 --enable-multiarch enable support for multiarch paths
1589 --enable-__cxa_atexit enable __cxa_atexit for C++
1590 --enable-decimal-float={no,yes,bid,dpd}
1591 enable decimal float extension to C. Selecting 'bid'
1592 or 'dpd' choses which decimal floating point format
1593 to use
1594 --enable-fixed-point enable fixed-point arithmetic extension to C
1595 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1596 package
1597 --enable-tls enable or disable generation of tls code overriding
1598 the assembler check for tls support
1599 --enable-objc-gc enable the use of Boehm's garbage collector with the
1600 GNU Objective-C runtime
1601 --enable-upc-link-script
1602 enable UPC's use of a custom linker script; this
1603 will define the UPC shared section as a no load
1604 section on targets where this feature is supported
1605 (requires GNU LD)
1606 --disable-shared don't provide a shared libgcc
1607 --enable-languages=LIST specify which front-ends to build
1608 --disable-rpath do not hardcode runtime library paths
1609 --enable-sjlj-exceptions
1610 arrange to use setjmp/longjmp exception handling
1611 --enable-secureplt enable -msecure-plt by default for PowerPC
1612 --enable-leading-mingw64-underscores
1613 enable leading underscores on 64 bit mingw targets
1614 --enable-cld enable -mcld by default for 32bit x86
1615 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1617 --disable-win32-registry
1618 disable lookup of installation paths in the Registry
1619 on Windows hosts
1620 --enable-win32-registry enable registry lookup (default)
1621 --enable-win32-registry=KEY
1622 use KEY instead of GCC version as the last portion
1623 of the registry key
1624 --enable-shared[=PKGS] build shared libraries [default=yes]
1625 --enable-static[=PKGS] build static libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --enable-gnu-indirect-function
1630 enable the use of the @gnu_indirect_function to
1631 glibc systems
1632 --enable-initfini-array use .init_array/.fini_array sections
1633 --enable-comdat enable COMDAT group support
1634 --enable-gnu-unique-object
1635 enable the use of the @gnu_unique_object ELF
1636 extension on glibc systems
1637 --enable-linker-build-id
1638 compiler will always pass --build-id to linker
1639 --enable-maintainer-mode
1640 enable make rules and dependencies not useful (and
1641 sometimes confusing) to the casual installer
1642 --enable-version-specific-runtime-libs
1643 specify that runtime libraries should be installed
1644 in a compiler-specific directory
1645 --enable-plugin enable plugin support
1646 --disable-libquadmath-support
1647 disable libquadmath support for Fortran
1649 Optional Packages:
1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1652 --with-build-libsubdir=DIR Directory where to find libraries for build system
1653 --with-local-prefix=DIR specifies directory to put local include
1654 --with-gxx-include-dir=DIR
1655 specifies directory to put g++ header files
1656 --with-cpp-install-dir=DIR
1657 install the user visible C preprocessor in DIR
1658 (relative to PREFIX) as well as PREFIX/bin
1659 --with-gnu-ld arrange to work with GNU ld
1660 --with-ld arrange to use the specified ld (full pathname)
1661 --with-demangler-in-ld try to use demangler in GNU ld
1662 --with-gnu-as arrange to work with GNU as
1663 --with-as arrange to use the specified as (full pathname)
1664 --with-stabs arrange to use stabs instead of host debug format
1665 --with-upc-pts={struct,packed}
1666 choose the representation of a UPC pointer-to-shared
1667 --with-upc-pts-vaddr-order={last,first}
1668 choose position of the address field in UPC
1669 pointer-to-shared representation
1671 --with-upc-pts-packed-bits=phase,thread,vaddr
1672 choose bit distribution in packed UPC
1673 pointer-to-shared representation
1674 --with-dwarf2 force the default debug format to be DWARF 2
1675 --with-native-system-header-dir=dir
1676 use dir as the directory to look for standard
1677 system header files in. Defaults to /usr/include.
1678 --with-build-sysroot=sysroot
1679 use sysroot as the system root during the build
1680 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1681 --with-specs=SPECS add SPECS to driver command-line processing
1682 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1683 --with-bugurl=URL Direct users to URL to report a bug
1684 --with-multilib-list select multilibs (SH and x86-64 only)
1685 --with-gnu-ld assume the C compiler uses GNU ld default=no
1686 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1687 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1688 --with-pic try to use only PIC/non-PIC objects [default=use
1689 both]
1690 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1691 --with-plugin-ld=[ARG] specify the plugin linker
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} 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
11405 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11406 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11407 use_cxa_atexit=yes
11408 else
11409 echo "__cxa_atexit can't be enabled on this target"
11413 esac
11414 else
11415 # We can't check for __cxa_atexit when building a cross, so assume
11416 # it is available
11417 use_cxa_atexit=yes
11419 if test x$use_cxa_atexit = xyes; then
11421 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11426 # Look for a file containing extra machine modes.
11427 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11428 extra_modes_file='$(srcdir)'/config/${extra_modes}
11431 cat >>confdefs.h <<_ACEOF
11432 #define EXTRA_MODES_FILE "config/$extra_modes"
11433 _ACEOF
11437 # Convert extra_options into a form suitable for Makefile use.
11438 extra_opt_files=
11439 all_opt_files=
11440 for f in $extra_options; do
11441 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11442 all_opt_files="$all_opt_files $srcdir/config/$f"
11443 done
11446 # auto-host.h is the file containing items generated by autoconf and is
11447 # the first file included by config.h.
11448 # If host=build, it is correct to have bconfig include auto-host.h
11449 # as well. If host!=build, we are in error and need to do more
11450 # work to find out the build config parameters.
11451 if test x$host = x$build
11452 then
11453 build_auto=auto-host.h
11454 else
11455 # We create a subdir, then run autoconf in the subdir.
11456 # To prevent recursion we set host and build for the new
11457 # invocation of configure to the build for this invocation
11458 # of configure.
11459 tempdir=build.$$
11460 rm -rf $tempdir
11461 mkdir $tempdir
11462 cd $tempdir
11463 case ${srcdir} in
11464 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11465 *) realsrcdir=../${srcdir};;
11466 esac
11467 saved_CFLAGS="${CFLAGS}"
11468 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11469 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11470 ${realsrcdir}/configure \
11471 --enable-languages=${enable_languages-all} \
11472 --target=$target_alias --host=$build_alias --build=$build_alias
11473 CFLAGS="${saved_CFLAGS}"
11475 # We just finished tests for the build machine, so rename
11476 # the file auto-build.h in the gcc directory.
11477 mv auto-host.h ../auto-build.h
11478 cd ..
11479 rm -rf $tempdir
11480 build_auto=auto-build.h
11484 tm_file="${tm_file} defaults.h"
11485 tm_p_file="${tm_p_file} tm-preds.h"
11486 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11487 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11488 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11489 # put this back in temporarily.
11490 xm_file="auto-host.h ansidecl.h ${xm_file}"
11492 # --------
11493 # UNSORTED
11494 # --------
11496 # Compile in configure arguments.
11497 if test -f configargs.h ; then
11498 # Being re-configured.
11499 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11500 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11501 else
11502 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11505 # Double all backslashes and backslash all quotes to turn
11506 # gcc_config_arguments into a C string.
11507 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11508 $gcc_config_arguments
11510 gcc_config_arguments_str=`cat conftest.out`
11511 rm -f conftest.out
11513 cat > configargs.h <<EOF
11514 /* Generated automatically. */
11515 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11516 static const char thread_model[] = "$thread_file";
11518 static const struct {
11519 const char *name, *value;
11520 } configure_default_options[] = $configure_default_options;
11523 gcc_BASEVER=`cat $srcdir/BASE-VER`
11524 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11525 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11526 if test -f $srcdir/REVISION ; then
11527 gcc_REVISION=`cat $srcdir/REVISION`
11528 else
11529 gcc_REVISION=""
11531 cat > plugin-version.h <<EOF
11532 #include "configargs.h"
11534 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11535 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11536 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11537 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11539 static char basever[] = "$gcc_BASEVER";
11540 static char datestamp[] = "$gcc_DATESTAMP";
11541 static char devphase[] = "$gcc_DEVPHASE";
11542 static char revision[] = "$gcc_REVISION";
11544 /* FIXME plugins: We should make the version information more precise.
11545 One way to do is to add a checksum. */
11547 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11548 devphase, revision,
11549 configuration_arguments};
11552 # Internationalization
11553 # If we haven't got the data from the intl directory,
11554 # assume NLS is disabled.
11555 USE_NLS=no
11556 LIBINTL=
11557 LIBINTL_DEP=
11558 INCINTL=
11559 XGETTEXT=
11560 GMSGFMT=
11561 POSUB=
11563 if test -f ../intl/config.intl; then
11564 . ../intl/config.intl
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11567 $as_echo_n "checking whether NLS is requested... " >&6; }
11568 if test x"$USE_NLS" != xyes; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11573 $as_echo "yes" >&6; }
11575 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11579 $as_echo_n "checking for catalogs to be installed... " >&6; }
11580 # Look for .po and .gmo files in the source directory.
11581 CATALOGS=
11582 XLINGUAS=
11583 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11584 # If there aren't any .gmo files the shell will give us the
11585 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11586 # weeded out.
11587 case "$cat" in *\**)
11588 continue;;
11589 esac
11590 # The quadruple backslash is collapsed to a double backslash
11591 # by the backticks, then collapsed again by the double quotes,
11592 # leaving us with one backslash in the sed expression (right
11593 # before the dot that mustn't act as a wildcard).
11594 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11595 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11596 # The user is allowed to set LINGUAS to a list of languages to
11597 # install catalogs for. If it's empty that means "all of them."
11598 if test "x$LINGUAS" = x; then
11599 CATALOGS="$CATALOGS $cat"
11600 XLINGUAS="$XLINGUAS $lang"
11601 else
11602 case "$LINGUAS" in *$lang*)
11603 CATALOGS="$CATALOGS $cat"
11604 XLINGUAS="$XLINGUAS $lang"
11606 esac
11608 done
11609 LINGUAS="$XLINGUAS"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11611 $as_echo "$LINGUAS" >&6; }
11614 DATADIRNAME=share
11616 INSTOBJEXT=.mo
11618 GENCAT=gencat
11620 CATOBJEXT=.gmo
11624 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11625 # -liconv on the link line twice.
11626 case "$LIBINTL" in *$LIBICONV*)
11627 LIBICONV= ;;
11628 esac
11630 # Check whether --enable-secureplt was given.
11631 if test "${enable_secureplt+set}" = set; then :
11632 enableval=$enable_secureplt;
11636 # Check whether --enable-leading-mingw64-underscores was given.
11637 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11638 enableval=$enable_leading_mingw64_underscores;
11641 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11643 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11647 # Check whether --enable-cld was given.
11648 if test "${enable_cld+set}" = set; then :
11649 enableval=$enable_cld;
11650 else
11651 enable_cld=no
11655 # Check whether --enable-frame-pointer was given.
11656 if test "${enable_frame_pointer+set}" = set; then :
11657 enableval=$enable_frame_pointer;
11658 else
11660 case $target_os in
11661 linux* | darwin[8912]*)
11662 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11663 # DWARF2.
11664 enable_frame_pointer=no
11667 enable_frame_pointer=yes
11669 esac
11674 # Windows32 Registry support for specifying GCC installation paths.
11675 # Check whether --enable-win32-registry was given.
11676 if test "${enable_win32_registry+set}" = set; then :
11677 enableval=$enable_win32_registry;
11681 case $host_os in
11682 win32 | pe | cygwin* | mingw32* | uwin*)
11683 if test "x$enable_win32_registry" != xno; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11685 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11686 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 ac_func_search_save_LIBS=$LIBS
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11693 /* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 char RegOpenKeyExA ();
11701 main ()
11703 return RegOpenKeyExA ();
11705 return 0;
11707 _ACEOF
11708 for ac_lib in '' advapi32; do
11709 if test -z "$ac_lib"; then
11710 ac_res="none required"
11711 else
11712 ac_res=-l$ac_lib
11713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11715 if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_search_RegOpenKeyExA=$ac_res
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext
11720 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11721 break
11723 done
11724 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11726 else
11727 ac_cv_search_RegOpenKeyExA=no
11729 rm conftest.$ac_ext
11730 LIBS=$ac_func_search_save_LIBS
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11733 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11734 ac_res=$ac_cv_search_RegOpenKeyExA
11735 if test "$ac_res" != no; then :
11736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11738 else
11739 enable_win32_registry=no
11744 if test "x$enable_win32_registry" != xno; then
11746 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11749 if test "x$enable_win32_registry" != xyes \
11750 && test "x$enable_win32_registry" != x; then
11752 cat >>confdefs.h <<_ACEOF
11753 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11754 _ACEOF
11759 esac
11761 # Get an absolute path to the GCC top-level source directory
11762 holddir=`${PWDCMD-pwd}`
11763 cd $srcdir
11764 topdir=`${PWDCMD-pwd}`
11765 cd $holddir
11767 # Conditionalize the makefile for this host machine.
11768 xmake_file=
11769 for f in ${host_xmake_file}
11771 if test -f ${srcdir}/config/$f
11772 then
11773 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11775 done
11777 # Conditionalize the makefile for this target machine.
11778 tmake_file_=
11779 for f in ${tmake_file}
11781 if test -f ${srcdir}/config/$f
11782 then
11783 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11785 done
11786 tmake_file="${tmake_file_}"
11788 out_object_file=`basename $out_file .c`.o
11789 common_out_object_file=`basename $common_out_file .c`.o
11791 tm_file_list="options.h"
11792 tm_include_list="options.h insn-constants.h"
11793 for f in $tm_file; do
11794 case $f in
11795 ./* )
11796 f=`echo $f | sed 's/^..//'`
11797 tm_file_list="${tm_file_list} $f"
11798 tm_include_list="${tm_include_list} $f"
11800 defaults.h )
11801 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11802 tm_include_list="${tm_include_list} $f"
11805 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11806 tm_include_list="${tm_include_list} config/$f"
11808 esac
11809 done
11811 tm_p_file_list=
11812 tm_p_include_list=
11813 for f in $tm_p_file; do
11814 case $f in
11815 tm-preds.h )
11816 tm_p_file_list="${tm_p_file_list} $f"
11817 tm_p_include_list="${tm_p_include_list} $f"
11820 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11821 tm_p_include_list="${tm_p_include_list} config/$f"
11822 esac
11823 done
11825 xm_file_list=
11826 xm_include_list=
11827 for f in $xm_file; do
11828 case $f in
11829 ansidecl.h )
11830 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11831 xm_include_list="${xm_include_list} $f"
11833 auto-host.h )
11834 xm_file_list="${xm_file_list} $f"
11835 xm_include_list="${xm_include_list} $f"
11838 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11839 xm_include_list="${xm_include_list} config/$f"
11841 esac
11842 done
11844 host_xm_file_list=
11845 host_xm_include_list=
11846 for f in $host_xm_file; do
11847 case $f in
11848 ansidecl.h )
11849 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11850 host_xm_include_list="${host_xm_include_list} $f"
11852 auto-host.h )
11853 host_xm_file_list="${host_xm_file_list} $f"
11854 host_xm_include_list="${host_xm_include_list} $f"
11857 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11858 host_xm_include_list="${host_xm_include_list} config/$f"
11860 esac
11861 done
11863 build_xm_file_list=
11864 for f in $build_xm_file; do
11865 case $f in
11866 ansidecl.h )
11867 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11868 build_xm_include_list="${build_xm_include_list} $f"
11870 auto-build.h | auto-host.h )
11871 build_xm_file_list="${build_xm_file_list} $f"
11872 build_xm_include_list="${build_xm_include_list} $f"
11875 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11876 build_xm_include_list="${build_xm_include_list} config/$f"
11878 esac
11879 done
11881 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11882 # cross-compiler which does not use the native headers and libraries.
11883 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11884 CROSS=
11885 ALL=all.internal
11886 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11888 if test "x$with_build_sysroot" != x; then
11889 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11890 else
11891 # This value is used, even on a native system, because
11892 # CROSS_SYSTEM_HEADER_DIR is just
11893 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11894 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11897 if test x$host != x$target
11898 then
11899 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11900 ALL=all.cross
11901 SYSTEM_HEADER_DIR=$build_system_header_dir
11902 case "$host","$target" in
11903 # Darwin crosses can use the host system's libraries and headers,
11904 # because of the fat library support. Of course, it must be the
11905 # same version of Darwin on both sides. Allow the user to
11906 # just say --target=foo-darwin without a version number to mean
11907 # "the version on this system".
11908 *-*-darwin*,*-*-darwin*)
11909 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11910 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11911 if test $hostos = $targetos -o $targetos = darwin ; then
11912 CROSS=
11913 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11914 with_headers=yes
11918 i?86-*-*,x86_64-*-* \
11919 | powerpc*-*-*,powerpc64*-*-*)
11920 CROSS="$CROSS -DNATIVE_CROSS" ;;
11921 esac
11923 case $target in
11924 *-*-mingw*)
11925 if test "x$with_headers" = x; then
11926 with_headers=yes
11931 esac
11932 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11933 SYSTEM_HEADER_DIR=$build_system_header_dir
11936 # If this is a cross-compiler that does not
11937 # have its own set of headers then define
11938 # inhibit_libc
11940 # If this is using newlib, without having the headers available now,
11941 # then define inhibit_libc in LIBGCC2_CFLAGS.
11942 # This prevents libgcc2 from containing any code which requires libc
11943 # support.
11944 : ${inhibit_libc=false}
11945 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11946 test x$with_newlib = xyes ; } &&
11947 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11948 inhibit_libc=true
11952 # When building gcc with a cross-compiler, we need to adjust things so
11953 # that the generator programs are still built with the native compiler.
11954 # Also, we cannot run fixincludes.
11956 # These are the normal (build=host) settings:
11957 CC_FOR_BUILD='$(CC)'
11958 CXX_FOR_BUILD='$(CXX)'
11959 BUILD_CFLAGS='$(ALL_CFLAGS)'
11960 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11961 BUILD_LDFLAGS='$(LDFLAGS)'
11962 STMP_FIXINC=stmp-fixinc
11964 # And these apply if build != host, or we are generating coverage data
11965 if test x$build != x$host || test "x$coverage_flags" != x
11966 then
11967 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11968 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11971 # Expand extra_headers to include complete path.
11972 # This substitutes for lots of t-* files.
11973 extra_headers_list=
11974 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11975 for file in ${extra_headers} ; do
11976 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11977 done
11979 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11980 if test x"$use_gcc_tgmath" = xyes
11981 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11984 # Define collect2 in Makefile.
11985 case $host_can_use_collect2 in
11986 no) collect2= ;;
11987 *) collect2='collect2$(exeext)' ;;
11988 esac
11991 # Add a definition of USE_COLLECT2 if system wants one.
11992 case $use_collect2 in
11993 no) use_collect2= ;;
11994 "") ;;
11996 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11997 xm_defines="${xm_defines} USE_COLLECT2"
11998 case $host_can_use_collect2 in
12000 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12002 esac
12004 esac
12007 cat >>confdefs.h <<_ACEOF
12008 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12009 _ACEOF
12012 # ---------------------------
12013 # Assembler & linker features
12014 # ---------------------------
12016 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12017 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12018 # However when ld-new is first executed from the build tree, libtool will
12019 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12020 # to the build tree. While doing this we need to use the previous-stage
12021 # linker, or we have an infinite loop. The presence of a shell script as
12022 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12023 # the gcc/collect-ld script. So we need to know how libtool works, or
12024 # exec-tool will fail.
12027 case `pwd` in
12028 *\ * | *\ *)
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12030 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12031 esac
12035 macro_version='2.2.7a'
12036 macro_revision='1.3134'
12050 ltmain="$ac_aux_dir/ltmain.sh"
12052 # Backslashify metacharacters that are still active within
12053 # double-quoted strings.
12054 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12056 # Same as above, but do not quote variable references.
12057 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12059 # Sed substitution to delay expansion of an escaped shell variable in a
12060 # double_quote_subst'ed string.
12061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12063 # Sed substitution to delay expansion of an escaped single quote.
12064 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12066 # Sed substitution to avoid accidental globbing in evaled expressions
12067 no_glob_subst='s/\*/\\\*/g'
12069 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12074 $as_echo_n "checking how to print strings... " >&6; }
12075 # Test print first, because it will be a builtin if present.
12076 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12077 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12078 ECHO='print -r --'
12079 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12080 ECHO='printf %s\n'
12081 else
12082 # Use this function as a fallback that always works.
12083 func_fallback_echo ()
12085 eval 'cat <<_LTECHO_EOF
12087 _LTECHO_EOF'
12089 ECHO='func_fallback_echo'
12092 # func_echo_all arg...
12093 # Invoke $ECHO with all args, space-separated.
12094 func_echo_all ()
12096 $ECHO ""
12099 case "$ECHO" in
12100 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12101 $as_echo "printf" >&6; } ;;
12102 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12103 $as_echo "print -r" >&6; } ;;
12104 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12105 $as_echo "cat" >&6; } ;;
12106 esac
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12123 if test "${ac_cv_path_SED+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12127 for ac_i in 1 2 3 4 5 6 7; do
12128 ac_script="$ac_script$as_nl$ac_script"
12129 done
12130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12131 { ac_script=; unset ac_script;}
12132 if test -z "$SED"; then
12133 ac_path_SED_found=false
12134 # Loop through the user's path and test for each of PROGNAME-LIST
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_prog in sed gsed; do
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12143 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12144 # Check for GNU ac_path_SED and select it if it is found.
12145 # Check for GNU $ac_path_SED
12146 case `"$ac_path_SED" --version 2>&1` in
12147 *GNU*)
12148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12150 ac_count=0
12151 $as_echo_n 0123456789 >"conftest.in"
12152 while :
12154 cat "conftest.in" "conftest.in" >"conftest.tmp"
12155 mv "conftest.tmp" "conftest.in"
12156 cp "conftest.in" "conftest.nl"
12157 $as_echo '' >> "conftest.nl"
12158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12160 as_fn_arith $ac_count + 1 && ac_count=$as_val
12161 if test $ac_count -gt ${ac_path_SED_max-0}; then
12162 # Best one so far, save it but keep looking for a better one
12163 ac_cv_path_SED="$ac_path_SED"
12164 ac_path_SED_max=$ac_count
12166 # 10*(2^10) chars as input seems more than enough
12167 test $ac_count -gt 10 && break
12168 done
12169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12170 esac
12172 $ac_path_SED_found && break 3
12173 done
12174 done
12175 done
12176 IFS=$as_save_IFS
12177 if test -z "$ac_cv_path_SED"; then
12178 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12180 else
12181 ac_cv_path_SED=$SED
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12186 $as_echo "$ac_cv_path_SED" >&6; }
12187 SED="$ac_cv_path_SED"
12188 rm -f conftest.sed
12190 test -z "$SED" && SED=sed
12191 Xsed="$SED -e 1s/^X//"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12204 $as_echo_n "checking for fgrep... " >&6; }
12205 if test "${ac_cv_path_FGREP+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12209 then ac_cv_path_FGREP="$GREP -F"
12210 else
12211 if test -z "$FGREP"; then
12212 ac_path_FGREP_found=false
12213 # Loop through the user's path and test for each of PROGNAME-LIST
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_prog in fgrep; do
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12222 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12223 # Check for GNU ac_path_FGREP and select it if it is found.
12224 # Check for GNU $ac_path_FGREP
12225 case `"$ac_path_FGREP" --version 2>&1` in
12226 *GNU*)
12227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12229 ac_count=0
12230 $as_echo_n 0123456789 >"conftest.in"
12231 while :
12233 cat "conftest.in" "conftest.in" >"conftest.tmp"
12234 mv "conftest.tmp" "conftest.in"
12235 cp "conftest.in" "conftest.nl"
12236 $as_echo 'FGREP' >> "conftest.nl"
12237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12239 as_fn_arith $ac_count + 1 && ac_count=$as_val
12240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12241 # Best one so far, save it but keep looking for a better one
12242 ac_cv_path_FGREP="$ac_path_FGREP"
12243 ac_path_FGREP_max=$ac_count
12245 # 10*(2^10) chars as input seems more than enough
12246 test $ac_count -gt 10 && break
12247 done
12248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12249 esac
12251 $ac_path_FGREP_found && break 3
12252 done
12253 done
12254 done
12255 IFS=$as_save_IFS
12256 if test -z "$ac_cv_path_FGREP"; then
12257 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12259 else
12260 ac_cv_path_FGREP=$FGREP
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12266 $as_echo "$ac_cv_path_FGREP" >&6; }
12267 FGREP="$ac_cv_path_FGREP"
12270 test -z "$GREP" && GREP=grep
12290 # Check whether --with-gnu-ld was given.
12291 if test "${with_gnu_ld+set}" = set; then :
12292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12293 else
12294 with_gnu_ld=no
12297 ac_prog=ld
12298 if test "$GCC" = yes; then
12299 # Check if gcc -print-prog-name=ld gives a path.
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12301 $as_echo_n "checking for ld used by $CC... " >&6; }
12302 case $host in
12303 *-*-mingw*)
12304 # gcc leaves a trailing carriage return which upsets mingw
12305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12308 esac
12309 case $ac_prog in
12310 # Accept absolute paths.
12311 [\\/]* | ?:[\\/]*)
12312 re_direlt='/[^/][^/]*/\.\./'
12313 # Canonicalize the pathname of ld
12314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12317 done
12318 test -z "$LD" && LD="$ac_prog"
12321 # If it fails, then pretend we aren't using GCC.
12322 ac_prog=ld
12325 # If it is relative, then search for the first ld in PATH.
12326 with_gnu_ld=unknown
12328 esac
12329 elif test "$with_gnu_ld" = yes; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12331 $as_echo_n "checking for GNU ld... " >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12334 $as_echo_n "checking for non-GNU ld... " >&6; }
12336 if test "${lt_cv_path_LD+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -z "$LD"; then
12340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12341 for ac_dir in $PATH; do
12342 IFS="$lt_save_ifs"
12343 test -z "$ac_dir" && ac_dir=.
12344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12345 lt_cv_path_LD="$ac_dir/$ac_prog"
12346 # Check to see if the program is GNU ld. I'd rather use --version,
12347 # but apparently some variants of GNU ld only accept -v.
12348 # Break only if it was the GNU/non-GNU ld that we prefer.
12349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12350 *GNU* | *'with BFD'*)
12351 test "$with_gnu_ld" != no && break
12354 test "$with_gnu_ld" != yes && break
12356 esac
12358 done
12359 IFS="$lt_save_ifs"
12360 else
12361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12365 LD="$lt_cv_path_LD"
12366 if test -n "$LD"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12368 $as_echo "$LD" >&6; }
12369 else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12373 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12380 case `$LD -v 2>&1 </dev/null` in
12381 *GNU* | *'with BFD'*)
12382 lt_cv_prog_gnu_ld=yes
12385 lt_cv_prog_gnu_ld=no
12387 esac
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12391 with_gnu_ld=$lt_cv_prog_gnu_ld
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12403 if test "${lt_cv_path_NM+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 if test -n "$NM"; then
12407 # Let the user override the test.
12408 lt_cv_path_NM="$NM"
12409 else
12410 lt_nm_to_check="${ac_tool_prefix}nm"
12411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12412 lt_nm_to_check="$lt_nm_to_check nm"
12414 for lt_tmp_nm in $lt_nm_to_check; do
12415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12417 IFS="$lt_save_ifs"
12418 test -z "$ac_dir" && ac_dir=.
12419 tmp_nm="$ac_dir/$lt_tmp_nm"
12420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12421 # Check to see if the nm accepts a BSD-compat flag.
12422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12423 # nm: unknown option "B" ignored
12424 # Tru64's nm complains that /dev/null is an invalid object file
12425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12426 */dev/null* | *'Invalid file or object type'*)
12427 lt_cv_path_NM="$tmp_nm -B"
12428 break
12431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12432 */dev/null*)
12433 lt_cv_path_NM="$tmp_nm -p"
12434 break
12437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12438 continue # so that we can try to find one that supports BSD flags
12440 esac
12442 esac
12444 done
12445 IFS="$lt_save_ifs"
12446 done
12447 : ${lt_cv_path_NM=no}
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12451 $as_echo "$lt_cv_path_NM" >&6; }
12452 if test "$lt_cv_path_NM" != "no"; then
12453 NM="$lt_cv_path_NM"
12454 else
12455 # Didn't find any BSD compatible name lister, look for dumpbin.
12456 if test -n "$DUMPBIN"; then :
12457 # Let the user override the test.
12458 else
12459 if test -n "$ac_tool_prefix"; then
12460 for ac_prog in dumpbin "link -dump"
12462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 if test -n "$DUMPBIN"; then
12470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12471 else
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12483 done
12484 done
12485 IFS=$as_save_IFS
12489 DUMPBIN=$ac_cv_prog_DUMPBIN
12490 if test -n "$DUMPBIN"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12492 $as_echo "$DUMPBIN" >&6; }
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495 $as_echo "no" >&6; }
12499 test -n "$DUMPBIN" && break
12500 done
12502 if test -z "$DUMPBIN"; then
12503 ac_ct_DUMPBIN=$DUMPBIN
12504 for ac_prog in dumpbin "link -dump"
12506 # Extract the first word of "$ac_prog", so it can be a program name with args.
12507 set dummy $ac_prog; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if test -n "$ac_ct_DUMPBIN"; then
12514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12515 else
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12527 done
12528 done
12529 IFS=$as_save_IFS
12533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12534 if test -n "$ac_ct_DUMPBIN"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12536 $as_echo "$ac_ct_DUMPBIN" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12543 test -n "$ac_ct_DUMPBIN" && break
12544 done
12546 if test "x$ac_ct_DUMPBIN" = x; then
12547 DUMPBIN=":"
12548 else
12549 case $cross_compiling:$ac_tool_warned in
12550 yes:)
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12553 ac_tool_warned=yes ;;
12554 esac
12555 DUMPBIN=$ac_ct_DUMPBIN
12559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12560 *COFF*)
12561 DUMPBIN="$DUMPBIN -symbols"
12564 DUMPBIN=:
12566 esac
12569 if test "$DUMPBIN" != ":"; then
12570 NM="$DUMPBIN"
12573 test -z "$NM" && NM=nm
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12582 if test "${lt_cv_nm_interface+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 lt_cv_nm_interface="BSD nm"
12586 echo "int some_variable = 0;" > conftest.$ac_ext
12587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12588 (eval "$ac_compile" 2>conftest.err)
12589 cat conftest.err >&5
12590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12592 cat conftest.err >&5
12593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12594 cat conftest.out >&5
12595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12596 lt_cv_nm_interface="MS dumpbin"
12598 rm -f conftest*
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12601 $as_echo "$lt_cv_nm_interface" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12604 $as_echo_n "checking whether ln -s works... " >&6; }
12605 LN_S=$as_ln_s
12606 if test "$LN_S" = "ln -s"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12611 $as_echo "no, using $LN_S" >&6; }
12614 # find the maximum length of command line arguments
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12621 teststring="ABCD"
12623 case $build_os in
12624 msdosdjgpp*)
12625 # On DJGPP, this test can blow up pretty badly due to problems in libc
12626 # (any single argument exceeding 2000 bytes causes a buffer overrun
12627 # during glob expansion). Even if it were fixed, the result of this
12628 # check would be larger than it should be.
12629 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12632 gnu*)
12633 # Under GNU Hurd, this test is not required because there is
12634 # no limit to the length of command line arguments.
12635 # Libtool will interpret -1 as no limit whatsoever
12636 lt_cv_sys_max_cmd_len=-1;
12639 cygwin* | mingw* | cegcc*)
12640 # On Win9x/ME, this test blows up -- it succeeds, but takes
12641 # about 5 minutes as the teststring grows exponentially.
12642 # Worse, since 9x/ME are not pre-emptively multitasking,
12643 # you end up with a "frozen" computer, even though with patience
12644 # the test eventually succeeds (with a max line length of 256k).
12645 # Instead, let's just punt: use the minimum linelength reported by
12646 # all of the supported platforms: 8192 (on NT/2K/XP).
12647 lt_cv_sys_max_cmd_len=8192;
12650 mint*)
12651 # On MiNT this can take a long time and run out of memory.
12652 lt_cv_sys_max_cmd_len=8192;
12655 amigaos*)
12656 # On AmigaOS with pdksh, this test takes hours, literally.
12657 # So we just punt and use a minimum line length of 8192.
12658 lt_cv_sys_max_cmd_len=8192;
12661 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12662 # This has been around since 386BSD, at least. Likely further.
12663 if test -x /sbin/sysctl; then
12664 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12665 elif test -x /usr/sbin/sysctl; then
12666 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12667 else
12668 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12670 # And add a safety zone
12671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12675 interix*)
12676 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12677 lt_cv_sys_max_cmd_len=196608
12680 osf*)
12681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12683 # nice to cause kernel panics so lets avoid the loop below.
12684 # First set a reasonable default.
12685 lt_cv_sys_max_cmd_len=16384
12687 if test -x /sbin/sysconfig; then
12688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12689 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12690 esac
12693 sco3.2v5*)
12694 lt_cv_sys_max_cmd_len=102400
12696 sysv5* | sco5v6* | sysv4.2uw2*)
12697 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12698 if test -n "$kargmax"; then
12699 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12700 else
12701 lt_cv_sys_max_cmd_len=32768
12705 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12706 if test -n "$lt_cv_sys_max_cmd_len"; then
12707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12709 else
12710 # Make teststring a little bigger before we do anything with it.
12711 # a 1K string should be a reasonable start.
12712 for i in 1 2 3 4 5 6 7 8 ; do
12713 teststring=$teststring$teststring
12714 done
12715 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12716 # If test is not a shell built-in, we'll probably end up computing a
12717 # maximum length that is only half of the actual maximum length, but
12718 # we can't tell.
12719 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12720 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12721 test $i != 17 # 1/2 MB should be enough
12723 i=`expr $i + 1`
12724 teststring=$teststring$teststring
12725 done
12726 # Only check the string length outside the loop.
12727 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12728 teststring=
12729 # Add a significant safety factor because C++ compilers can tack on
12730 # massive amounts of additional arguments before passing them to the
12731 # linker. It appears as though 1/2 is a usable value.
12732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12735 esac
12739 if test -n $lt_cv_sys_max_cmd_len ; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12741 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12742 else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12744 $as_echo "none" >&6; }
12746 max_cmd_len=$lt_cv_sys_max_cmd_len
12753 : ${CP="cp -f"}
12754 : ${MV="mv -f"}
12755 : ${RM="rm -f"}
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12758 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12759 # Try some XSI features
12760 xsi_shell=no
12761 ( _lt_dummy="a/b/c"
12762 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12763 = c,a/b,, \
12764 && eval 'test $(( 1 + 1 )) -eq 2 \
12765 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12766 && xsi_shell=yes
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12768 $as_echo "$xsi_shell" >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12772 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12773 lt_shell_append=no
12774 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12775 >/dev/null 2>&1 \
12776 && lt_shell_append=yes
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12778 $as_echo "$lt_shell_append" >&6; }
12781 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12782 lt_unset=unset
12783 else
12784 lt_unset=false
12791 # test EBCDIC or ASCII
12792 case `echo X|tr X '\101'` in
12793 A) # ASCII based system
12794 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12795 lt_SP2NL='tr \040 \012'
12796 lt_NL2SP='tr \015\012 \040\040'
12798 *) # EBCDIC based system
12799 lt_SP2NL='tr \100 \n'
12800 lt_NL2SP='tr \r\n \100\100'
12802 esac
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12813 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12814 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 lt_cv_ld_reload_flag='-r'
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12820 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12821 reload_flag=$lt_cv_ld_reload_flag
12822 case $reload_flag in
12823 "" | " "*) ;;
12824 *) reload_flag=" $reload_flag" ;;
12825 esac
12826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12827 case $host_os in
12828 darwin*)
12829 if test "$GCC" = yes; then
12830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12831 else
12832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12835 esac
12845 if test -n "$ac_tool_prefix"; then
12846 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849 $as_echo_n "checking for $ac_word... " >&6; }
12850 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 if test -n "$OBJDUMP"; then
12854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12855 else
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12867 done
12868 done
12869 IFS=$as_save_IFS
12873 OBJDUMP=$ac_cv_prog_OBJDUMP
12874 if test -n "$OBJDUMP"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12876 $as_echo "$OBJDUMP" >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12884 if test -z "$ac_cv_prog_OBJDUMP"; then
12885 ac_ct_OBJDUMP=$OBJDUMP
12886 # Extract the first word of "objdump", so it can be a program name with args.
12887 set dummy objdump; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 if test -n "$ac_ct_OBJDUMP"; then
12894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12895 else
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12907 done
12908 done
12909 IFS=$as_save_IFS
12913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12914 if test -n "$ac_ct_OBJDUMP"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12916 $as_echo "$ac_ct_OBJDUMP" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12922 if test "x$ac_ct_OBJDUMP" = x; then
12923 OBJDUMP="false"
12924 else
12925 case $cross_compiling:$ac_tool_warned in
12926 yes:)
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12929 ac_tool_warned=yes ;;
12930 esac
12931 OBJDUMP=$ac_ct_OBJDUMP
12933 else
12934 OBJDUMP="$ac_cv_prog_OBJDUMP"
12937 test -z "$OBJDUMP" && OBJDUMP=objdump
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12949 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 lt_cv_file_magic_cmd='$MAGIC_CMD'
12953 lt_cv_file_magic_test_file=
12954 lt_cv_deplibs_check_method='unknown'
12955 # Need to set the preceding variable on all platforms that support
12956 # interlibrary dependencies.
12957 # 'none' -- dependencies not supported.
12958 # `unknown' -- same as none, but documents that we really don't know.
12959 # 'pass_all' -- all dependencies passed with no checks.
12960 # 'test_compile' -- check by making test program.
12961 # 'file_magic [[regex]]' -- check by looking for files in library path
12962 # which responds to the $file_magic_cmd with a given extended regex.
12963 # If you have `file' or equivalent on your system and you're not sure
12964 # whether `pass_all' will *always* work, you probably want this one.
12966 case $host_os in
12967 aix[4-9]*)
12968 lt_cv_deplibs_check_method=pass_all
12971 beos*)
12972 lt_cv_deplibs_check_method=pass_all
12975 bsdi[45]*)
12976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12977 lt_cv_file_magic_cmd='/usr/bin/file -L'
12978 lt_cv_file_magic_test_file=/shlib/libc.so
12981 cygwin*)
12982 # func_win32_libid is a shell function defined in ltmain.sh
12983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12984 lt_cv_file_magic_cmd='func_win32_libid'
12987 mingw* | pw32*)
12988 # Base MSYS/MinGW do not provide the 'file' command needed by
12989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12990 # unless we find 'file', for example because we are cross-compiling.
12991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12992 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12994 lt_cv_file_magic_cmd='func_win32_libid'
12995 else
12996 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12997 lt_cv_file_magic_cmd='$OBJDUMP -f'
13001 cegcc*)
13002 # use the weaker test based on 'objdump'. See mingw*.
13003 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13004 lt_cv_file_magic_cmd='$OBJDUMP -f'
13007 darwin* | rhapsody*)
13008 lt_cv_deplibs_check_method=pass_all
13011 freebsd* | dragonfly*)
13012 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13013 case $host_cpu in
13014 i*86 )
13015 # Not sure whether the presence of OpenBSD here was a mistake.
13016 # Let's accept both of them until this is cleared up.
13017 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13018 lt_cv_file_magic_cmd=/usr/bin/file
13019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13021 esac
13022 else
13023 lt_cv_deplibs_check_method=pass_all
13027 gnu*)
13028 lt_cv_deplibs_check_method=pass_all
13031 haiku*)
13032 lt_cv_deplibs_check_method=pass_all
13035 hpux10.20* | hpux11*)
13036 lt_cv_file_magic_cmd=/usr/bin/file
13037 case $host_cpu in
13038 ia64*)
13039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13042 hppa*64*)
13043 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]'
13044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13050 esac
13053 interix[3-9]*)
13054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13058 irix5* | irix6* | nonstopux*)
13059 case $LD in
13060 *-32|*"-32 ") libmagic=32-bit;;
13061 *-n32|*"-n32 ") libmagic=N32;;
13062 *-64|*"-64 ") libmagic=64-bit;;
13063 *) libmagic=never-match;;
13064 esac
13065 lt_cv_deplibs_check_method=pass_all
13068 # This must be Linux ELF.
13069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13070 lt_cv_deplibs_check_method=pass_all
13073 netbsd*)
13074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13076 else
13077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13081 newos6*)
13082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13083 lt_cv_file_magic_cmd=/usr/bin/file
13084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13087 *nto* | *qnx*)
13088 lt_cv_deplibs_check_method=pass_all
13091 openbsd*)
13092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13094 else
13095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13099 osf3* | osf4* | osf5*)
13100 lt_cv_deplibs_check_method=pass_all
13103 rdos*)
13104 lt_cv_deplibs_check_method=pass_all
13107 solaris*)
13108 lt_cv_deplibs_check_method=pass_all
13111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13112 lt_cv_deplibs_check_method=pass_all
13115 sysv4 | sysv4.3*)
13116 case $host_vendor in
13117 motorola)
13118 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]'
13119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13121 ncr)
13122 lt_cv_deplibs_check_method=pass_all
13124 sequent)
13125 lt_cv_file_magic_cmd='/bin/file'
13126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13128 sni)
13129 lt_cv_file_magic_cmd='/bin/file'
13130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13131 lt_cv_file_magic_test_file=/lib/libc.so
13133 siemens)
13134 lt_cv_deplibs_check_method=pass_all
13137 lt_cv_deplibs_check_method=pass_all
13139 esac
13142 tpf*)
13143 lt_cv_deplibs_check_method=pass_all
13145 esac
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13149 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13150 file_magic_cmd=$lt_cv_file_magic_cmd
13151 deplibs_check_method=$lt_cv_deplibs_check_method
13152 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13165 if test -n "$ac_tool_prefix"; then
13166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13167 set dummy ${ac_tool_prefix}ar; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if test "${ac_cv_prog_AR+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 if test -n "$AR"; then
13174 ac_cv_prog_AR="$AR" # Let the user override the test.
13175 else
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183 ac_cv_prog_AR="${ac_tool_prefix}ar"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185 break 2
13187 done
13188 done
13189 IFS=$as_save_IFS
13193 AR=$ac_cv_prog_AR
13194 if test -n "$AR"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13196 $as_echo "$AR" >&6; }
13197 else
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13204 if test -z "$ac_cv_prog_AR"; then
13205 ac_ct_AR=$AR
13206 # Extract the first word of "ar", so it can be a program name with args.
13207 set dummy ar; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209 $as_echo_n "checking for $ac_word... " >&6; }
13210 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 if test -n "$ac_ct_AR"; then
13214 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13215 else
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13223 ac_cv_prog_ac_ct_AR="ar"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 break 2
13227 done
13228 done
13229 IFS=$as_save_IFS
13233 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13234 if test -n "$ac_ct_AR"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13236 $as_echo "$ac_ct_AR" >&6; }
13237 else
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13242 if test "x$ac_ct_AR" = x; then
13243 AR="false"
13244 else
13245 case $cross_compiling:$ac_tool_warned in
13246 yes:)
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13249 ac_tool_warned=yes ;;
13250 esac
13251 AR=$ac_ct_AR
13253 else
13254 AR="$ac_cv_prog_AR"
13257 test -z "$AR" && AR=ar
13258 test -z "$AR_FLAGS" && AR_FLAGS=cru
13270 if test -n "$ac_tool_prefix"; then
13271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13272 set dummy ${ac_tool_prefix}strip; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if test "${ac_cv_prog_STRIP+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$STRIP"; then
13279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13292 done
13293 done
13294 IFS=$as_save_IFS
13298 STRIP=$ac_cv_prog_STRIP
13299 if test -n "$STRIP"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13301 $as_echo "$STRIP" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13309 if test -z "$ac_cv_prog_STRIP"; then
13310 ac_ct_STRIP=$STRIP
13311 # Extract the first word of "strip", so it can be a program name with args.
13312 set dummy strip; ac_word=$2
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13314 $as_echo_n "checking for $ac_word... " >&6; }
13315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 if test -n "$ac_ct_STRIP"; then
13319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13320 else
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13328 ac_cv_prog_ac_ct_STRIP="strip"
13329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13332 done
13333 done
13334 IFS=$as_save_IFS
13338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13339 if test -n "$ac_ct_STRIP"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13341 $as_echo "$ac_ct_STRIP" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13347 if test "x$ac_ct_STRIP" = x; then
13348 STRIP=":"
13349 else
13350 case $cross_compiling:$ac_tool_warned in
13351 yes:)
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13354 ac_tool_warned=yes ;;
13355 esac
13356 STRIP=$ac_ct_STRIP
13358 else
13359 STRIP="$ac_cv_prog_STRIP"
13362 test -z "$STRIP" && STRIP=:
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$RANLIB"; then
13378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13393 IFS=$as_save_IFS
13397 RANLIB=$ac_cv_prog_RANLIB
13398 if test -n "$RANLIB"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13400 $as_echo "$RANLIB" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13408 if test -z "$ac_cv_prog_RANLIB"; then
13409 ac_ct_RANLIB=$RANLIB
13410 # Extract the first word of "ranlib", so it can be a program name with args.
13411 set dummy ranlib; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$ac_ct_RANLIB"; then
13418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_RANLIB="ranlib"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13431 done
13432 done
13433 IFS=$as_save_IFS
13437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13438 if test -n "$ac_ct_RANLIB"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13440 $as_echo "$ac_ct_RANLIB" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13446 if test "x$ac_ct_RANLIB" = x; then
13447 RANLIB=":"
13448 else
13449 case $cross_compiling:$ac_tool_warned in
13450 yes:)
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13453 ac_tool_warned=yes ;;
13454 esac
13455 RANLIB=$ac_ct_RANLIB
13457 else
13458 RANLIB="$ac_cv_prog_RANLIB"
13461 test -z "$RANLIB" && RANLIB=:
13468 # Determine commands to create old-style static archives.
13469 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13470 old_postinstall_cmds='chmod 644 $oldlib'
13471 old_postuninstall_cmds=
13473 if test -n "$RANLIB"; then
13474 case $host_os in
13475 openbsd*)
13476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13481 esac
13482 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13485 case $host_os in
13486 darwin*)
13487 lock_old_archive_extraction=yes ;;
13489 lock_old_archive_extraction=no ;;
13490 esac
13530 # If no C compiler was specified, use CC.
13531 LTCC=${LTCC-"$CC"}
13533 # If no C compiler flags were specified, use CFLAGS.
13534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13536 # Allow CC to be a program name with arguments.
13537 compiler=$CC
13540 # Check for command to grab the raw symbol name followed by C symbol from nm.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13542 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13543 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13547 # These are sane defaults that work on at least a few old systems.
13548 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13550 # Character class describing NM global symbol codes.
13551 symcode='[BCDEGRST]'
13553 # Regexp to match symbols that can be accessed directly from C.
13554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13556 # Define system-specific variables.
13557 case $host_os in
13558 aix*)
13559 symcode='[BCDT]'
13561 cygwin* | mingw* | pw32* | cegcc*)
13562 symcode='[ABCDGISTW]'
13564 hpux*)
13565 if test "$host_cpu" = ia64; then
13566 symcode='[ABCDEGRST]'
13569 irix* | nonstopux*)
13570 symcode='[BCDEGRST]'
13572 osf*)
13573 symcode='[BCDEGQRST]'
13575 solaris*)
13576 symcode='[BDRT]'
13578 sco3.2v5*)
13579 symcode='[DT]'
13581 sysv4.2uw2*)
13582 symcode='[DT]'
13584 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13585 symcode='[ABDT]'
13587 sysv4)
13588 symcode='[DFNSTU]'
13590 esac
13592 # If we're using GNU nm, then use its standard symbol codes.
13593 case `$NM -V 2>&1` in
13594 *GNU* | *'with BFD'*)
13595 symcode='[ABCDGIRSTW]' ;;
13596 esac
13598 # Transform an extracted symbol line into a proper C declaration.
13599 # Some systems (esp. on ia64) link data and code symbols differently,
13600 # so use this general approach.
13601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13603 # Transform an extracted symbol line into symbol name and symbol address
13604 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13605 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'"
13607 # Handle CRLF in mingw tool chain
13608 opt_cr=
13609 case $build_os in
13610 mingw*)
13611 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13613 esac
13615 # Try without a prefix underscore, then with it.
13616 for ac_symprfx in "" "_"; do
13618 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13619 symxfrm="\\1 $ac_symprfx\\2 \\2"
13621 # Write the raw and C identifiers.
13622 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13623 # Fake it for dumpbin and say T for any non-static function
13624 # and D for any global variable.
13625 # Also find C++ and __fastcall symbols from MSVC++,
13626 # which start with @ or ?.
13627 lt_cv_sys_global_symbol_pipe="$AWK '"\
13628 " {last_section=section; section=\$ 3};"\
13629 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13630 " \$ 0!~/External *\|/{next};"\
13631 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13632 " {if(hide[section]) next};"\
13633 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13634 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13635 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13636 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13637 " ' prfx=^$ac_symprfx"
13638 else
13639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13642 # Check to see that the pipe works correctly.
13643 pipe_works=no
13645 rm -f conftest*
13646 cat > conftest.$ac_ext <<_LT_EOF
13647 #ifdef __cplusplus
13648 extern "C" {
13649 #endif
13650 char nm_test_var;
13651 void nm_test_func(void);
13652 void nm_test_func(void){}
13653 #ifdef __cplusplus
13655 #endif
13656 int main(){nm_test_var='a';nm_test_func();return(0);}
13657 _LT_EOF
13659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13660 (eval $ac_compile) 2>&5
13661 ac_status=$?
13662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13663 test $ac_status = 0; }; then
13664 # Now try to grab the symbols.
13665 nlist=conftest.nm
13666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13667 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13668 ac_status=$?
13669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670 test $ac_status = 0; } && test -s "$nlist"; then
13671 # Try sorting and uniquifying the output.
13672 if sort "$nlist" | uniq > "$nlist"T; then
13673 mv -f "$nlist"T "$nlist"
13674 else
13675 rm -f "$nlist"T
13678 # Make sure that we snagged all the symbols we need.
13679 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13680 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13681 cat <<_LT_EOF > conftest.$ac_ext
13682 #ifdef __cplusplus
13683 extern "C" {
13684 #endif
13686 _LT_EOF
13687 # Now generate the symbol file.
13688 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13690 cat <<_LT_EOF >> conftest.$ac_ext
13692 /* The mapping between symbol names and symbols. */
13693 const struct {
13694 const char *name;
13695 void *address;
13697 lt__PROGRAM__LTX_preloaded_symbols[] =
13699 { "@PROGRAM@", (void *) 0 },
13700 _LT_EOF
13701 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13702 cat <<\_LT_EOF >> conftest.$ac_ext
13703 {0, (void *) 0}
13706 /* This works around a problem in FreeBSD linker */
13707 #ifdef FREEBSD_WORKAROUND
13708 static const void *lt_preloaded_setup() {
13709 return lt__PROGRAM__LTX_preloaded_symbols;
13711 #endif
13713 #ifdef __cplusplus
13715 #endif
13716 _LT_EOF
13717 # Now try linking the two files.
13718 mv conftest.$ac_objext conftstm.$ac_objext
13719 lt_save_LIBS="$LIBS"
13720 lt_save_CFLAGS="$CFLAGS"
13721 LIBS="conftstm.$ac_objext"
13722 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13724 (eval $ac_link) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13728 pipe_works=yes
13730 LIBS="$lt_save_LIBS"
13731 CFLAGS="$lt_save_CFLAGS"
13732 else
13733 echo "cannot find nm_test_func in $nlist" >&5
13735 else
13736 echo "cannot find nm_test_var in $nlist" >&5
13738 else
13739 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13741 else
13742 echo "$progname: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13745 rm -rf conftest* conftst*
13747 # Do not use the global_symbol_pipe unless it works.
13748 if test "$pipe_works" = yes; then
13749 break
13750 else
13751 lt_cv_sys_global_symbol_pipe=
13753 done
13757 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13758 lt_cv_sys_global_symbol_to_cdecl=
13760 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13762 $as_echo "failed" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13765 $as_echo "ok" >&6; }
13789 # Check whether --enable-libtool-lock was given.
13790 if test "${enable_libtool_lock+set}" = set; then :
13791 enableval=$enable_libtool_lock;
13794 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13796 # Some flags need to be propagated to the compiler or linker for good
13797 # libtool support.
13798 case $host in
13799 ia64-*-hpux*)
13800 # Find out which ABI we are using.
13801 echo 'int i;' > conftest.$ac_ext
13802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13803 (eval $ac_compile) 2>&5
13804 ac_status=$?
13805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13806 test $ac_status = 0; }; then
13807 case `/usr/bin/file conftest.$ac_objext` in
13808 *ELF-32*)
13809 HPUX_IA64_MODE="32"
13811 *ELF-64*)
13812 HPUX_IA64_MODE="64"
13814 esac
13816 rm -rf conftest*
13818 *-*-irix6*)
13819 # Find out which ABI we are using.
13820 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 if test "$lt_cv_prog_gnu_ld" = yes; then
13827 case `/usr/bin/file conftest.$ac_objext` in
13828 *32-bit*)
13829 LD="${LD-ld} -melf32bsmip"
13831 *N32*)
13832 LD="${LD-ld} -melf32bmipn32"
13834 *64-bit*)
13835 LD="${LD-ld} -melf64bmip"
13837 esac
13838 else
13839 case `/usr/bin/file conftest.$ac_objext` in
13840 *32-bit*)
13841 LD="${LD-ld} -32"
13843 *N32*)
13844 LD="${LD-ld} -n32"
13846 *64-bit*)
13847 LD="${LD-ld} -64"
13849 esac
13852 rm -rf conftest*
13855 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13856 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13857 # Find out which ABI we are using.
13858 echo 'int i;' > conftest.$ac_ext
13859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13860 (eval $ac_compile) 2>&5
13861 ac_status=$?
13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863 test $ac_status = 0; }; then
13864 case `/usr/bin/file conftest.o` in
13865 *32-bit*)
13866 case $host in
13867 x86_64-*kfreebsd*-gnu)
13868 LD="${LD-ld} -m elf_i386_fbsd"
13870 x86_64-*linux*)
13871 case `/usr/bin/file conftest.o` in
13872 *x86-64*)
13873 LD="${LD-ld} -m elf32_x86_64"
13876 LD="${LD-ld} -m elf_i386"
13878 esac
13880 ppc64-*linux*|powerpc64-*linux*)
13881 LD="${LD-ld} -m elf32ppclinux"
13883 s390x-*linux*)
13884 LD="${LD-ld} -m elf_s390"
13886 sparc64-*linux*)
13887 LD="${LD-ld} -m elf32_sparc"
13889 esac
13891 *64-bit*)
13892 case $host in
13893 x86_64-*kfreebsd*-gnu)
13894 LD="${LD-ld} -m elf_x86_64_fbsd"
13896 x86_64-*linux*)
13897 LD="${LD-ld} -m elf_x86_64"
13899 ppc*-*linux*|powerpc*-*linux*)
13900 LD="${LD-ld} -m elf64ppc"
13902 s390*-*linux*|s390*-*tpf*)
13903 LD="${LD-ld} -m elf64_s390"
13905 sparc*-*linux*)
13906 LD="${LD-ld} -m elf64_sparc"
13908 esac
13910 esac
13912 rm -rf conftest*
13915 *-*-sco3.2v5*)
13916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13917 SAVE_CFLAGS="$CFLAGS"
13918 CFLAGS="$CFLAGS -belf"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13920 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13921 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 ac_ext=c
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13934 main ()
13938 return 0;
13940 _ACEOF
13941 if ac_fn_c_try_link "$LINENO"; then :
13942 lt_cv_cc_needs_belf=yes
13943 else
13944 lt_cv_cc_needs_belf=no
13946 rm -f core conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948 ac_ext=c
13949 ac_cpp='$CPP $CPPFLAGS'
13950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13959 CFLAGS="$SAVE_CFLAGS"
13962 sparc*-*solaris*)
13963 # Find out which ABI we are using.
13964 echo 'int i;' > conftest.$ac_ext
13965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13966 (eval $ac_compile) 2>&5
13967 ac_status=$?
13968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13969 test $ac_status = 0; }; then
13970 case `/usr/bin/file conftest.o` in
13971 *64-bit*)
13972 case $lt_cv_prog_gnu_ld in
13973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13976 LD="${LD-ld} -64"
13979 esac
13981 esac
13983 rm -rf conftest*
13985 esac
13987 need_locks="$enable_libtool_lock"
13990 case $host_os in
13991 rhapsody* | darwin*)
13992 if test -n "$ac_tool_prefix"; then
13993 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13996 $as_echo_n "checking for $ac_word... " >&6; }
13997 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 if test -n "$DSYMUTIL"; then
14001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14002 else
14003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004 for as_dir in $PATH
14006 IFS=$as_save_IFS
14007 test -z "$as_dir" && as_dir=.
14008 for ac_exec_ext in '' $ac_executable_extensions; do
14009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14012 break 2
14014 done
14015 done
14016 IFS=$as_save_IFS
14020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14021 if test -n "$DSYMUTIL"; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14023 $as_echo "$DSYMUTIL" >&6; }
14024 else
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14031 if test -z "$ac_cv_prog_DSYMUTIL"; then
14032 ac_ct_DSYMUTIL=$DSYMUTIL
14033 # Extract the first word of "dsymutil", so it can be a program name with args.
14034 set dummy dsymutil; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 if test -n "$ac_ct_DSYMUTIL"; then
14041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14054 done
14055 done
14056 IFS=$as_save_IFS
14060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14061 if test -n "$ac_ct_DSYMUTIL"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14069 if test "x$ac_ct_DSYMUTIL" = x; then
14070 DSYMUTIL=":"
14071 else
14072 case $cross_compiling:$ac_tool_warned in
14073 yes:)
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14076 ac_tool_warned=yes ;;
14077 esac
14078 DSYMUTIL=$ac_ct_DSYMUTIL
14080 else
14081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14084 if test -n "$ac_tool_prefix"; then
14085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088 $as_echo_n "checking for $ac_word... " >&6; }
14089 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 if test -n "$NMEDIT"; then
14093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14094 else
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14098 IFS=$as_save_IFS
14099 test -z "$as_dir" && as_dir=.
14100 for ac_exec_ext in '' $ac_executable_extensions; do
14101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14104 break 2
14106 done
14107 done
14108 IFS=$as_save_IFS
14112 NMEDIT=$ac_cv_prog_NMEDIT
14113 if test -n "$NMEDIT"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14115 $as_echo "$NMEDIT" >&6; }
14116 else
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14123 if test -z "$ac_cv_prog_NMEDIT"; then
14124 ac_ct_NMEDIT=$NMEDIT
14125 # Extract the first word of "nmedit", so it can be a program name with args.
14126 set dummy nmedit; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 if test -n "$ac_ct_NMEDIT"; then
14133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14134 else
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14138 IFS=$as_save_IFS
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14142 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14144 break 2
14146 done
14147 done
14148 IFS=$as_save_IFS
14152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14153 if test -n "$ac_ct_NMEDIT"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14155 $as_echo "$ac_ct_NMEDIT" >&6; }
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14161 if test "x$ac_ct_NMEDIT" = x; then
14162 NMEDIT=":"
14163 else
14164 case $cross_compiling:$ac_tool_warned in
14165 yes:)
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14168 ac_tool_warned=yes ;;
14169 esac
14170 NMEDIT=$ac_ct_NMEDIT
14172 else
14173 NMEDIT="$ac_cv_prog_NMEDIT"
14176 if test -n "$ac_tool_prefix"; then
14177 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14180 $as_echo_n "checking for $ac_word... " >&6; }
14181 if test "${ac_cv_prog_LIPO+set}" = set; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 if test -n "$LIPO"; then
14185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14186 else
14187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14190 IFS=$as_save_IFS
14191 test -z "$as_dir" && as_dir=.
14192 for ac_exec_ext in '' $ac_executable_extensions; do
14193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14196 break 2
14198 done
14199 done
14200 IFS=$as_save_IFS
14204 LIPO=$ac_cv_prog_LIPO
14205 if test -n "$LIPO"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14207 $as_echo "$LIPO" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14215 if test -z "$ac_cv_prog_LIPO"; then
14216 ac_ct_LIPO=$LIPO
14217 # Extract the first word of "lipo", so it can be a program name with args.
14218 set dummy lipo; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 if test -n "$ac_ct_LIPO"; then
14225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14230 IFS=$as_save_IFS
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14234 ac_cv_prog_ac_ct_LIPO="lipo"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 break 2
14238 done
14239 done
14240 IFS=$as_save_IFS
14244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14245 if test -n "$ac_ct_LIPO"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14247 $as_echo "$ac_ct_LIPO" >&6; }
14248 else
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14253 if test "x$ac_ct_LIPO" = x; then
14254 LIPO=":"
14255 else
14256 case $cross_compiling:$ac_tool_warned in
14257 yes:)
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14260 ac_tool_warned=yes ;;
14261 esac
14262 LIPO=$ac_ct_LIPO
14264 else
14265 LIPO="$ac_cv_prog_LIPO"
14268 if test -n "$ac_tool_prefix"; then
14269 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14270 set dummy ${ac_tool_prefix}otool; ac_word=$2
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14272 $as_echo_n "checking for $ac_word... " >&6; }
14273 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 if test -n "$OTOOL"; then
14277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14290 done
14291 done
14292 IFS=$as_save_IFS
14296 OTOOL=$ac_cv_prog_OTOOL
14297 if test -n "$OTOOL"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14299 $as_echo "$OTOOL" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14307 if test -z "$ac_cv_prog_OTOOL"; then
14308 ac_ct_OTOOL=$OTOOL
14309 # Extract the first word of "otool", so it can be a program name with args.
14310 set dummy otool; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312 $as_echo_n "checking for $ac_word... " >&6; }
14313 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 if test -n "$ac_ct_OTOOL"; then
14317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14318 else
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14322 IFS=$as_save_IFS
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14326 ac_cv_prog_ac_ct_OTOOL="otool"
14327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328 break 2
14330 done
14331 done
14332 IFS=$as_save_IFS
14336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14337 if test -n "$ac_ct_OTOOL"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14339 $as_echo "$ac_ct_OTOOL" >&6; }
14340 else
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14345 if test "x$ac_ct_OTOOL" = x; then
14346 OTOOL=":"
14347 else
14348 case $cross_compiling:$ac_tool_warned in
14349 yes:)
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14352 ac_tool_warned=yes ;;
14353 esac
14354 OTOOL=$ac_ct_OTOOL
14356 else
14357 OTOOL="$ac_cv_prog_OTOOL"
14360 if test -n "$ac_tool_prefix"; then
14361 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14364 $as_echo_n "checking for $ac_word... " >&6; }
14365 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 if test -n "$OTOOL64"; then
14369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14370 else
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $PATH
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14382 done
14383 done
14384 IFS=$as_save_IFS
14388 OTOOL64=$ac_cv_prog_OTOOL64
14389 if test -n "$OTOOL64"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14391 $as_echo "$OTOOL64" >&6; }
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14399 if test -z "$ac_cv_prog_OTOOL64"; then
14400 ac_ct_OTOOL64=$OTOOL64
14401 # Extract the first word of "otool64", so it can be a program name with args.
14402 set dummy otool64; ac_word=$2
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14404 $as_echo_n "checking for $ac_word... " >&6; }
14405 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 if test -n "$ac_ct_OTOOL64"; then
14409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14410 else
14411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14412 for as_dir in $PATH
14414 IFS=$as_save_IFS
14415 test -z "$as_dir" && as_dir=.
14416 for ac_exec_ext in '' $ac_executable_extensions; do
14417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14418 ac_cv_prog_ac_ct_OTOOL64="otool64"
14419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14420 break 2
14422 done
14423 done
14424 IFS=$as_save_IFS
14428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14429 if test -n "$ac_ct_OTOOL64"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14431 $as_echo "$ac_ct_OTOOL64" >&6; }
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14437 if test "x$ac_ct_OTOOL64" = x; then
14438 OTOOL64=":"
14439 else
14440 case $cross_compiling:$ac_tool_warned in
14441 yes:)
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14444 ac_tool_warned=yes ;;
14445 esac
14446 OTOOL64=$ac_ct_OTOOL64
14448 else
14449 OTOOL64="$ac_cv_prog_OTOOL64"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14479 $as_echo_n "checking for -single_module linker flag... " >&6; }
14480 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 lt_cv_apple_cc_single_mod=no
14484 if test -z "${LT_MULTI_MODULE}"; then
14485 # By default we will add the -single_module flag. You can override
14486 # by either setting the environment variable LT_MULTI_MODULE
14487 # non-empty at configure time, or by adding -multi_module to the
14488 # link flags.
14489 rm -rf libconftest.dylib*
14490 echo "int foo(void){return 1;}" > conftest.c
14491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14492 -dynamiclib -Wl,-single_module conftest.c" >&5
14493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14495 _lt_result=$?
14496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14497 lt_cv_apple_cc_single_mod=yes
14498 else
14499 cat conftest.err >&5
14501 rm -rf libconftest.dylib*
14502 rm -f conftest.*
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14509 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 lt_cv_ld_exported_symbols_list=no
14513 save_LDFLAGS=$LDFLAGS
14514 echo "_main" > conftest.sym
14515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14520 main ()
14524 return 0;
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 lt_cv_ld_exported_symbols_list=yes
14529 else
14530 lt_cv_ld_exported_symbols_list=no
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534 LDFLAGS="$save_LDFLAGS"
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14540 $as_echo_n "checking for -force_load linker flag... " >&6; }
14541 if test "${lt_cv_ld_force_load+set}" = set; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 lt_cv_ld_force_load=no
14545 cat > conftest.c << _LT_EOF
14546 int forced_loaded() { return 2;}
14547 _LT_EOF
14548 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14549 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14550 echo "$AR cru libconftest.a conftest.o" >&5
14551 $AR cru libconftest.a conftest.o 2>&5
14552 cat > conftest.c << _LT_EOF
14553 int main() { return 0;}
14554 _LT_EOF
14555 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14556 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14557 _lt_result=$?
14558 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14559 lt_cv_ld_force_load=yes
14560 else
14561 cat conftest.err >&5
14563 rm -f conftest.err libconftest.a conftest conftest.c
14564 rm -rf conftest.dSYM
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14568 $as_echo "$lt_cv_ld_force_load" >&6; }
14569 case $host_os in
14570 rhapsody* | darwin1.[012])
14571 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14572 darwin1.*)
14573 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14574 darwin*) # darwin 5.x on
14575 # if running on 10.5 or later, the deployment target defaults
14576 # to the OS version, if on x86, and 10.4, the deployment
14577 # target defaults to 10.4. Don't you love it?
14578 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14579 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14581 10.[012]*)
14582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14583 10.*)
14584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14585 esac
14587 esac
14588 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14589 _lt_dar_single_mod='$single_module'
14591 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14592 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14593 else
14594 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14596 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14597 _lt_dsymutil='~$DSYMUTIL $lib || :'
14598 else
14599 _lt_dsymutil=
14602 esac
14604 for ac_header in dlfcn.h
14605 do :
14606 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14607 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_DLFCN_H 1
14610 _ACEOF
14613 done
14619 # Set options
14623 enable_dlopen=no
14626 enable_win32_dll=no
14629 # Check whether --enable-shared was given.
14630 if test "${enable_shared+set}" = set; then :
14631 enableval=$enable_shared; p=${PACKAGE-default}
14632 case $enableval in
14633 yes) enable_shared=yes ;;
14634 no) enable_shared=no ;;
14636 enable_shared=no
14637 # Look at the argument we got. We use all the common list separators.
14638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14639 for pkg in $enableval; do
14640 IFS="$lt_save_ifs"
14641 if test "X$pkg" = "X$p"; then
14642 enable_shared=yes
14644 done
14645 IFS="$lt_save_ifs"
14647 esac
14648 else
14649 enable_shared=yes
14660 # Check whether --enable-static was given.
14661 if test "${enable_static+set}" = set; then :
14662 enableval=$enable_static; p=${PACKAGE-default}
14663 case $enableval in
14664 yes) enable_static=yes ;;
14665 no) enable_static=no ;;
14667 enable_static=no
14668 # Look at the argument we got. We use all the common list separators.
14669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14670 for pkg in $enableval; do
14671 IFS="$lt_save_ifs"
14672 if test "X$pkg" = "X$p"; then
14673 enable_static=yes
14675 done
14676 IFS="$lt_save_ifs"
14678 esac
14679 else
14680 enable_static=yes
14692 # Check whether --with-pic was given.
14693 if test "${with_pic+set}" = set; then :
14694 withval=$with_pic; pic_mode="$withval"
14695 else
14696 pic_mode=default
14700 test -z "$pic_mode" && pic_mode=default
14708 # Check whether --enable-fast-install was given.
14709 if test "${enable_fast_install+set}" = set; then :
14710 enableval=$enable_fast_install; p=${PACKAGE-default}
14711 case $enableval in
14712 yes) enable_fast_install=yes ;;
14713 no) enable_fast_install=no ;;
14715 enable_fast_install=no
14716 # Look at the argument we got. We use all the common list separators.
14717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14718 for pkg in $enableval; do
14719 IFS="$lt_save_ifs"
14720 if test "X$pkg" = "X$p"; then
14721 enable_fast_install=yes
14723 done
14724 IFS="$lt_save_ifs"
14726 esac
14727 else
14728 enable_fast_install=yes
14741 # This can be used to rebuild libtool when needed
14742 LIBTOOL_DEPS="$ltmain"
14744 # Always use our own libtool.
14745 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14772 test -z "$LN_S" && LN_S="ln -s"
14787 if test -n "${ZSH_VERSION+set}" ; then
14788 setopt NO_GLOB_SUBST
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14792 $as_echo_n "checking for objdir... " >&6; }
14793 if test "${lt_cv_objdir+set}" = set; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 rm -f .libs 2>/dev/null
14797 mkdir .libs 2>/dev/null
14798 if test -d .libs; then
14799 lt_cv_objdir=.libs
14800 else
14801 # MS-DOS does not allow filenames that begin with a dot.
14802 lt_cv_objdir=_libs
14804 rmdir .libs 2>/dev/null
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14807 $as_echo "$lt_cv_objdir" >&6; }
14808 objdir=$lt_cv_objdir
14814 cat >>confdefs.h <<_ACEOF
14815 #define LT_OBJDIR "$lt_cv_objdir/"
14816 _ACEOF
14821 case $host_os in
14822 aix3*)
14823 # AIX sometimes has problems with the GCC collect2 program. For some
14824 # reason, if we set the COLLECT_NAMES environment variable, the problems
14825 # vanish in a puff of smoke.
14826 if test "X${COLLECT_NAMES+set}" != Xset; then
14827 COLLECT_NAMES=
14828 export COLLECT_NAMES
14831 esac
14833 # Global variables:
14834 ofile=libtool
14835 can_build_shared=yes
14837 # All known linkers require a `.a' archive for static linking (except MSVC,
14838 # which needs '.lib').
14839 libext=a
14841 with_gnu_ld="$lt_cv_prog_gnu_ld"
14843 old_CC="$CC"
14844 old_CFLAGS="$CFLAGS"
14846 # Set sane defaults for various variables
14847 test -z "$CC" && CC=cc
14848 test -z "$LTCC" && LTCC=$CC
14849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14850 test -z "$LD" && LD=ld
14851 test -z "$ac_objext" && ac_objext=o
14853 for cc_temp in $compiler""; do
14854 case $cc_temp in
14855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14857 \-*) ;;
14858 *) break;;
14859 esac
14860 done
14861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14864 # Only perform the check for file, if the check method requires it
14865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14866 case $deplibs_check_method in
14867 file_magic*)
14868 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14870 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14871 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 case $MAGIC_CMD in
14875 [\\/*] | ?:[\\/]*)
14876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14879 lt_save_MAGIC_CMD="$MAGIC_CMD"
14880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14882 for ac_dir in $ac_dummy; do
14883 IFS="$lt_save_ifs"
14884 test -z "$ac_dir" && ac_dir=.
14885 if test -f $ac_dir/${ac_tool_prefix}file; then
14886 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14887 if test -n "$file_magic_test_file"; then
14888 case $deplibs_check_method in
14889 "file_magic "*)
14890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14893 $EGREP "$file_magic_regex" > /dev/null; then
14895 else
14896 cat <<_LT_EOF 1>&2
14898 *** Warning: the command libtool uses to detect shared libraries,
14899 *** $file_magic_cmd, produces output that libtool cannot recognize.
14900 *** The result is that libtool may fail to recognize shared libraries
14901 *** as such. This will affect the creation of libtool libraries that
14902 *** depend on shared libraries, but programs linked with such libtool
14903 *** libraries will work regardless of this problem. Nevertheless, you
14904 *** may want to report the problem to your system manager and/or to
14905 *** bug-libtool@gnu.org
14907 _LT_EOF
14908 fi ;;
14909 esac
14911 break
14913 done
14914 IFS="$lt_save_ifs"
14915 MAGIC_CMD="$lt_save_MAGIC_CMD"
14917 esac
14920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14921 if test -n "$MAGIC_CMD"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14923 $as_echo "$MAGIC_CMD" >&6; }
14924 else
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926 $as_echo "no" >&6; }
14933 if test -z "$lt_cv_path_MAGIC_CMD"; then
14934 if test -n "$ac_tool_prefix"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14936 $as_echo_n "checking for file... " >&6; }
14937 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 case $MAGIC_CMD in
14941 [\\/*] | ?:[\\/]*)
14942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14945 lt_save_MAGIC_CMD="$MAGIC_CMD"
14946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14948 for ac_dir in $ac_dummy; do
14949 IFS="$lt_save_ifs"
14950 test -z "$ac_dir" && ac_dir=.
14951 if test -f $ac_dir/file; then
14952 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14953 if test -n "$file_magic_test_file"; then
14954 case $deplibs_check_method in
14955 "file_magic "*)
14956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14959 $EGREP "$file_magic_regex" > /dev/null; then
14961 else
14962 cat <<_LT_EOF 1>&2
14964 *** Warning: the command libtool uses to detect shared libraries,
14965 *** $file_magic_cmd, produces output that libtool cannot recognize.
14966 *** The result is that libtool may fail to recognize shared libraries
14967 *** as such. This will affect the creation of libtool libraries that
14968 *** depend on shared libraries, but programs linked with such libtool
14969 *** libraries will work regardless of this problem. Nevertheless, you
14970 *** may want to report the problem to your system manager and/or to
14971 *** bug-libtool@gnu.org
14973 _LT_EOF
14974 fi ;;
14975 esac
14977 break
14979 done
14980 IFS="$lt_save_ifs"
14981 MAGIC_CMD="$lt_save_MAGIC_CMD"
14983 esac
14986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14987 if test -n "$MAGIC_CMD"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14989 $as_echo "$MAGIC_CMD" >&6; }
14990 else
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14996 else
14997 MAGIC_CMD=:
15003 esac
15005 # Use C for the default configuration in the libtool script
15007 lt_save_CC="$CC"
15008 ac_ext=c
15009 ac_cpp='$CPP $CPPFLAGS'
15010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15015 # Source file extension for C test sources.
15016 ac_ext=c
15018 # Object file extension for compiled C test sources.
15019 objext=o
15020 objext=$objext
15022 # Code to be used in simple compile tests
15023 lt_simple_compile_test_code="int some_variable = 0;"
15025 # Code to be used in simple link tests
15026 lt_simple_link_test_code='int main(){return(0);}'
15034 # If no C compiler was specified, use CC.
15035 LTCC=${LTCC-"$CC"}
15037 # If no C compiler flags were specified, use CFLAGS.
15038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15040 # Allow CC to be a program name with arguments.
15041 compiler=$CC
15043 # Save the default compiler, since it gets overwritten when the other
15044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15045 compiler_DEFAULT=$CC
15047 # save warnings/boilerplate of simple test code
15048 ac_outfile=conftest.$ac_objext
15049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15051 _lt_compiler_boilerplate=`cat conftest.err`
15052 $RM conftest*
15054 ac_outfile=conftest.$ac_objext
15055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15057 _lt_linker_boilerplate=`cat conftest.err`
15058 $RM -r conftest*
15061 ## CAVEAT EMPTOR:
15062 ## There is no encapsulation within the following macros, do not change
15063 ## the running order or otherwise move them around unless you know exactly
15064 ## what you are doing...
15065 if test -n "$compiler"; then
15067 lt_prog_compiler_no_builtin_flag=
15069 if test "$GCC" = yes; then
15070 case $cc_basename in
15071 nvcc*)
15072 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15074 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15075 esac
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15078 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15079 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 lt_cv_prog_compiler_rtti_exceptions=no
15083 ac_outfile=conftest.$ac_objext
15084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15085 lt_compiler_flag="-fno-rtti -fno-exceptions"
15086 # Insert the option either (1) after the last *FLAGS variable, or
15087 # (2) before a word containing "conftest.", or (3) at the end.
15088 # Note that $ac_compile itself does not contain backslashes and begins
15089 # with a dollar sign (not a hyphen), so the echo should work correctly.
15090 # The option is referenced via a variable to avoid confusing sed.
15091 lt_compile=`echo "$ac_compile" | $SED \
15092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15094 -e 's:$: $lt_compiler_flag:'`
15095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15096 (eval "$lt_compile" 2>conftest.err)
15097 ac_status=$?
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 if (exit $ac_status) && test -s "$ac_outfile"; then
15101 # The compiler can only warn and ignore the option if not recognized
15102 # So say no if there are warnings other than the usual output.
15103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15106 lt_cv_prog_compiler_rtti_exceptions=yes
15109 $RM conftest*
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15113 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15117 else
15128 lt_prog_compiler_wl=
15129 lt_prog_compiler_pic=
15130 lt_prog_compiler_static=
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15133 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15135 if test "$GCC" = yes; then
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_static='-static'
15139 case $host_os in
15140 aix*)
15141 # All AIX code is PIC.
15142 if test "$host_cpu" = ia64; then
15143 # AIX 5 now supports IA64 processor
15144 lt_prog_compiler_static='-Bstatic'
15146 lt_prog_compiler_pic='-fPIC'
15149 amigaos*)
15150 case $host_cpu in
15151 powerpc)
15152 # see comment about AmigaOS4 .so support
15153 lt_prog_compiler_pic='-fPIC'
15155 m68k)
15156 # FIXME: we need at least 68020 code to build shared libraries, but
15157 # adding the `-m68020' flag to GCC prevents building anything better,
15158 # like `-m68040'.
15159 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15161 esac
15164 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15165 # PIC is the default for these OSes.
15168 mingw* | cygwin* | pw32* | os2* | cegcc*)
15169 # This hack is so that the source file can tell whether it is being
15170 # built for inclusion in a dll (and should export symbols for example).
15171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15172 # (--disable-auto-import) libraries
15173 lt_prog_compiler_pic='-DDLL_EXPORT'
15176 darwin* | rhapsody*)
15177 # PIC is the default on this platform
15178 # Common symbols not allowed in MH_DYLIB files
15179 lt_prog_compiler_pic='-fno-common'
15182 haiku*)
15183 # PIC is the default for Haiku.
15184 # The "-static" flag exists, but is broken.
15185 lt_prog_compiler_static=
15188 hpux*)
15189 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15190 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15191 # sets the default TLS model and affects inlining.
15192 case $host_cpu in
15193 hppa*64*)
15194 # +Z the default
15197 lt_prog_compiler_pic='-fPIC'
15199 esac
15202 interix[3-9]*)
15203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15204 # Instead, we relocate shared libraries at runtime.
15207 msdosdjgpp*)
15208 # Just because we use GCC doesn't mean we suddenly get shared libraries
15209 # on systems that don't support them.
15210 lt_prog_compiler_can_build_shared=no
15211 enable_shared=no
15214 *nto* | *qnx*)
15215 # QNX uses GNU C++, but need to define -shared option too, otherwise
15216 # it will coredump.
15217 lt_prog_compiler_pic='-fPIC -shared'
15220 sysv4*MP*)
15221 if test -d /usr/nec; then
15222 lt_prog_compiler_pic=-Kconform_pic
15227 lt_prog_compiler_pic='-fPIC'
15229 esac
15231 case $cc_basename in
15232 nvcc*) # Cuda Compiler Driver 2.2
15233 lt_prog_compiler_wl='-Xlinker '
15234 lt_prog_compiler_pic='-Xcompiler -fPIC'
15236 esac
15237 else
15238 # PORTME Check for flag to pass linker flags through the system compiler.
15239 case $host_os in
15240 aix*)
15241 lt_prog_compiler_wl='-Wl,'
15242 if test "$host_cpu" = ia64; then
15243 # AIX 5 now supports IA64 processor
15244 lt_prog_compiler_static='-Bstatic'
15245 else
15246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15250 mingw* | cygwin* | pw32* | os2* | cegcc*)
15251 # This hack is so that the source file can tell whether it is being
15252 # built for inclusion in a dll (and should export symbols for example).
15253 lt_prog_compiler_pic='-DDLL_EXPORT'
15256 hpux9* | hpux10* | hpux11*)
15257 lt_prog_compiler_wl='-Wl,'
15258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15259 # not for PA HP-UX.
15260 case $host_cpu in
15261 hppa*64*|ia64*)
15262 # +Z the default
15265 lt_prog_compiler_pic='+Z'
15267 esac
15268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15269 lt_prog_compiler_static='${wl}-a ${wl}archive'
15272 irix5* | irix6* | nonstopux*)
15273 lt_prog_compiler_wl='-Wl,'
15274 # PIC (with -KPIC) is the default.
15275 lt_prog_compiler_static='-non_shared'
15278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15279 case $cc_basename in
15280 # old Intel for x86_64 which still supported -KPIC.
15281 ecc*)
15282 lt_prog_compiler_wl='-Wl,'
15283 lt_prog_compiler_pic='-KPIC'
15284 lt_prog_compiler_static='-static'
15286 # icc used to be incompatible with GCC.
15287 # ICC 10 doesn't accept -KPIC any more.
15288 icc* | ifort*)
15289 lt_prog_compiler_wl='-Wl,'
15290 lt_prog_compiler_pic='-fPIC'
15291 lt_prog_compiler_static='-static'
15293 # Lahey Fortran 8.1.
15294 lf95*)
15295 lt_prog_compiler_wl='-Wl,'
15296 lt_prog_compiler_pic='--shared'
15297 lt_prog_compiler_static='--static'
15299 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15300 # Portland Group compilers (*not* the Pentium gcc compiler,
15301 # which looks to be a dead project)
15302 lt_prog_compiler_wl='-Wl,'
15303 lt_prog_compiler_pic='-fpic'
15304 lt_prog_compiler_static='-Bstatic'
15306 ccc*)
15307 lt_prog_compiler_wl='-Wl,'
15308 # All Alpha code is PIC.
15309 lt_prog_compiler_static='-non_shared'
15311 xl* | bgxl* | bgf* | mpixl*)
15312 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15313 lt_prog_compiler_wl='-Wl,'
15314 lt_prog_compiler_pic='-qpic'
15315 lt_prog_compiler_static='-qstaticlink'
15318 case `$CC -V 2>&1 | sed 5q` in
15319 *Sun\ F* | *Sun*Fortran*)
15320 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15321 lt_prog_compiler_pic='-KPIC'
15322 lt_prog_compiler_static='-Bstatic'
15323 lt_prog_compiler_wl=''
15325 *Sun\ C*)
15326 # Sun C 5.9
15327 lt_prog_compiler_pic='-KPIC'
15328 lt_prog_compiler_static='-Bstatic'
15329 lt_prog_compiler_wl='-Wl,'
15331 esac
15333 esac
15336 newsos6)
15337 lt_prog_compiler_pic='-KPIC'
15338 lt_prog_compiler_static='-Bstatic'
15341 *nto* | *qnx*)
15342 # QNX uses GNU C++, but need to define -shared option too, otherwise
15343 # it will coredump.
15344 lt_prog_compiler_pic='-fPIC -shared'
15347 osf3* | osf4* | osf5*)
15348 lt_prog_compiler_wl='-Wl,'
15349 # All OSF/1 code is PIC.
15350 lt_prog_compiler_static='-non_shared'
15353 rdos*)
15354 lt_prog_compiler_static='-non_shared'
15357 solaris*)
15358 lt_prog_compiler_pic='-KPIC'
15359 lt_prog_compiler_static='-Bstatic'
15360 case $cc_basename in
15361 f77* | f90* | f95*)
15362 lt_prog_compiler_wl='-Qoption ld ';;
15364 lt_prog_compiler_wl='-Wl,';;
15365 esac
15368 sunos4*)
15369 lt_prog_compiler_wl='-Qoption ld '
15370 lt_prog_compiler_pic='-PIC'
15371 lt_prog_compiler_static='-Bstatic'
15374 sysv4 | sysv4.2uw2* | sysv4.3*)
15375 lt_prog_compiler_wl='-Wl,'
15376 lt_prog_compiler_pic='-KPIC'
15377 lt_prog_compiler_static='-Bstatic'
15380 sysv4*MP*)
15381 if test -d /usr/nec ;then
15382 lt_prog_compiler_pic='-Kconform_pic'
15383 lt_prog_compiler_static='-Bstatic'
15387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15388 lt_prog_compiler_wl='-Wl,'
15389 lt_prog_compiler_pic='-KPIC'
15390 lt_prog_compiler_static='-Bstatic'
15393 unicos*)
15394 lt_prog_compiler_wl='-Wl,'
15395 lt_prog_compiler_can_build_shared=no
15398 uts4*)
15399 lt_prog_compiler_pic='-pic'
15400 lt_prog_compiler_static='-Bstatic'
15404 lt_prog_compiler_can_build_shared=no
15406 esac
15409 case $host_os in
15410 # For platforms which do not support PIC, -DPIC is meaningless:
15411 *djgpp*)
15412 lt_prog_compiler_pic=
15415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15417 esac
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15419 $as_echo "$lt_prog_compiler_pic" >&6; }
15427 # Check to make sure the PIC flag actually works.
15429 if test -n "$lt_prog_compiler_pic"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15432 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 lt_cv_prog_compiler_pic_works=no
15436 ac_outfile=conftest.$ac_objext
15437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15439 # Insert the option either (1) after the last *FLAGS variable, or
15440 # (2) before a word containing "conftest.", or (3) at the end.
15441 # Note that $ac_compile itself does not contain backslashes and begins
15442 # with a dollar sign (not a hyphen), so the echo should work correctly.
15443 # The option is referenced via a variable to avoid confusing sed.
15444 lt_compile=`echo "$ac_compile" | $SED \
15445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15447 -e 's:$: $lt_compiler_flag:'`
15448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15449 (eval "$lt_compile" 2>conftest.err)
15450 ac_status=$?
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 if (exit $ac_status) && test -s "$ac_outfile"; then
15454 # The compiler can only warn and ignore the option if not recognized
15455 # So say no if there are warnings other than the usual output.
15456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15459 lt_cv_prog_compiler_pic_works=yes
15462 $RM conftest*
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15469 case $lt_prog_compiler_pic in
15470 "" | " "*) ;;
15471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15472 esac
15473 else
15474 lt_prog_compiler_pic=
15475 lt_prog_compiler_can_build_shared=no
15486 # Check to make sure the static flag actually works.
15488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15491 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 lt_cv_prog_compiler_static_works=no
15495 save_LDFLAGS="$LDFLAGS"
15496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15499 # The linker can only warn and ignore the option if not recognized
15500 # So say no if there are warnings
15501 if test -s conftest.err; then
15502 # Append any errors to the config.log.
15503 cat conftest.err 1>&5
15504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15506 if diff conftest.exp conftest.er2 >/dev/null; then
15507 lt_cv_prog_compiler_static_works=yes
15509 else
15510 lt_cv_prog_compiler_static_works=yes
15513 $RM -r conftest*
15514 LDFLAGS="$save_LDFLAGS"
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15522 else
15523 lt_prog_compiler_static=
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 lt_cv_prog_compiler_c_o=no
15538 $RM -r conftest 2>/dev/null
15539 mkdir conftest
15540 cd conftest
15541 mkdir out
15542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15544 lt_compiler_flag="-o out/conftest2.$ac_objext"
15545 # Insert the option either (1) after the last *FLAGS variable, or
15546 # (2) before a word containing "conftest.", or (3) at the end.
15547 # Note that $ac_compile itself does not contain backslashes and begins
15548 # with a dollar sign (not a hyphen), so the echo should work correctly.
15549 lt_compile=`echo "$ac_compile" | $SED \
15550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15552 -e 's:$: $lt_compiler_flag:'`
15553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15554 (eval "$lt_compile" 2>out/conftest.err)
15555 ac_status=$?
15556 cat out/conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15559 then
15560 # The compiler can only warn and ignore the option if not recognized
15561 # So say no if there are warnings
15562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15565 lt_cv_prog_compiler_c_o=yes
15568 chmod u+w . 2>&5
15569 $RM conftest*
15570 # SGI C++ compiler will create directory out/ii_files/ for
15571 # template instantiation
15572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15573 $RM out/* && rmdir out
15574 cd ..
15575 $RM -r conftest
15576 $RM conftest*
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 lt_cv_prog_compiler_c_o=no
15593 $RM -r conftest 2>/dev/null
15594 mkdir conftest
15595 cd conftest
15596 mkdir out
15597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15599 lt_compiler_flag="-o out/conftest2.$ac_objext"
15600 # Insert the option either (1) after the last *FLAGS variable, or
15601 # (2) before a word containing "conftest.", or (3) at the end.
15602 # Note that $ac_compile itself does not contain backslashes and begins
15603 # with a dollar sign (not a hyphen), so the echo should work correctly.
15604 lt_compile=`echo "$ac_compile" | $SED \
15605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15607 -e 's:$: $lt_compiler_flag:'`
15608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15609 (eval "$lt_compile" 2>out/conftest.err)
15610 ac_status=$?
15611 cat out/conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15614 then
15615 # The compiler can only warn and ignore the option if not recognized
15616 # So say no if there are warnings
15617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15620 lt_cv_prog_compiler_c_o=yes
15623 chmod u+w . 2>&5
15624 $RM conftest*
15625 # SGI C++ compiler will create directory out/ii_files/ for
15626 # template instantiation
15627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15628 $RM out/* && rmdir out
15629 cd ..
15630 $RM -r conftest
15631 $RM conftest*
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15640 hard_links="nottested"
15641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15642 # do not overwrite the value of need_locks provided by the user
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15644 $as_echo_n "checking if we can lock with hard links... " >&6; }
15645 hard_links=yes
15646 $RM conftest*
15647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15648 touch conftest.a
15649 ln conftest.a conftest.b 2>&5 || hard_links=no
15650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15652 $as_echo "$hard_links" >&6; }
15653 if test "$hard_links" = no; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15656 need_locks=warn
15658 else
15659 need_locks=no
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15670 runpath_var=
15671 allow_undefined_flag=
15672 always_export_symbols=no
15673 archive_cmds=
15674 archive_expsym_cmds=
15675 compiler_needs_object=no
15676 enable_shared_with_static_runtimes=no
15677 export_dynamic_flag_spec=
15678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15679 hardcode_automatic=no
15680 hardcode_direct=no
15681 hardcode_direct_absolute=no
15682 hardcode_libdir_flag_spec=
15683 hardcode_libdir_flag_spec_ld=
15684 hardcode_libdir_separator=
15685 hardcode_minus_L=no
15686 hardcode_shlibpath_var=unsupported
15687 inherit_rpath=no
15688 link_all_deplibs=unknown
15689 module_cmds=
15690 module_expsym_cmds=
15691 old_archive_from_new_cmds=
15692 old_archive_from_expsyms_cmds=
15693 thread_safe_flag_spec=
15694 whole_archive_flag_spec=
15695 # include_expsyms should be a list of space-separated symbols to be *always*
15696 # included in the symbol list
15697 include_expsyms=
15698 # exclude_expsyms can be an extended regexp of symbols to exclude
15699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15701 # as well as any symbol that contains `d'.
15702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15704 # platforms (ab)use it in PIC code, but their linkers get confused if
15705 # the symbol is explicitly referenced. Since portable code cannot
15706 # rely on this symbol name, it's probably fine to never include it in
15707 # preloaded symbol tables.
15708 # Exclude shared library initialization/finalization symbols.
15709 extract_expsyms_cmds=
15711 case $host_os in
15712 cygwin* | mingw* | pw32* | cegcc*)
15713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15714 # When not using gcc, we currently assume that we are using
15715 # Microsoft Visual C++.
15716 if test "$GCC" != yes; then
15717 with_gnu_ld=no
15720 interix*)
15721 # we just hope/assume this is gcc and not c89 (= MSVC++)
15722 with_gnu_ld=yes
15724 openbsd*)
15725 with_gnu_ld=no
15727 esac
15729 ld_shlibs=yes
15731 # On some targets, GNU ld is compatible enough with the native linker
15732 # that we're better off using the native interface for both.
15733 lt_use_gnu_ld_interface=no
15734 if test "$with_gnu_ld" = yes; then
15735 case $host_os in
15736 aix*)
15737 # The AIX port of GNU ld has always aspired to compatibility
15738 # with the native linker. However, as the warning in the GNU ld
15739 # block says, versions before 2.19.5* couldn't really create working
15740 # shared libraries, regardless of the interface used.
15741 case `$LD -v 2>&1` in
15742 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15743 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15744 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15746 lt_use_gnu_ld_interface=yes
15748 esac
15751 lt_use_gnu_ld_interface=yes
15753 esac
15756 if test "$lt_use_gnu_ld_interface" = yes; then
15757 # If archive_cmds runs LD, not CC, wlarc should be empty
15758 wlarc='${wl}'
15760 # Set some defaults for GNU ld with shared library support. These
15761 # are reset later if shared libraries are not supported. Putting them
15762 # here allows them to be overridden if necessary.
15763 runpath_var=LD_RUN_PATH
15764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15765 export_dynamic_flag_spec='${wl}--export-dynamic'
15766 # ancient GNU ld didn't support --whole-archive et. al.
15767 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15768 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15769 else
15770 whole_archive_flag_spec=
15772 supports_anon_versioning=no
15773 case `$LD -v 2>&1` in
15774 *GNU\ gold*) supports_anon_versioning=yes ;;
15775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15778 *\ 2.11.*) ;; # other 2.11 versions
15779 *) supports_anon_versioning=yes ;;
15780 esac
15782 # See if GNU ld supports shared libraries.
15783 case $host_os in
15784 aix[3-9]*)
15785 # On AIX/PPC, the GNU linker is very broken
15786 if test "$host_cpu" != ia64; then
15787 ld_shlibs=no
15788 cat <<_LT_EOF 1>&2
15790 *** Warning: the GNU linker, at least up to release 2.19, is reported
15791 *** to be unable to reliably create shared libraries on AIX.
15792 *** Therefore, libtool is disabling shared libraries support. If you
15793 *** really care for shared libraries, you may want to install binutils
15794 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15795 *** You will then need to restart the configuration process.
15797 _LT_EOF
15801 amigaos*)
15802 case $host_cpu in
15803 powerpc)
15804 # see comment about AmigaOS4 .so support
15805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds=''
15808 m68k)
15809 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)'
15810 hardcode_libdir_flag_spec='-L$libdir'
15811 hardcode_minus_L=yes
15813 esac
15816 beos*)
15817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15818 allow_undefined_flag=unsupported
15819 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15820 # support --undefined. This deserves some investigation. FIXME
15821 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15822 else
15823 ld_shlibs=no
15827 cygwin* | mingw* | pw32* | cegcc*)
15828 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15829 # as there is no search path for DLLs.
15830 hardcode_libdir_flag_spec='-L$libdir'
15831 export_dynamic_flag_spec='${wl}--export-all-symbols'
15832 allow_undefined_flag=unsupported
15833 always_export_symbols=no
15834 enable_shared_with_static_runtimes=yes
15835 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15837 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15839 # If the export-symbols file already is a .def file (1st line
15840 # is EXPORTS), use it as is; otherwise, prepend...
15841 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842 cp $export_symbols $output_objdir/$soname.def;
15843 else
15844 echo EXPORTS > $output_objdir/$soname.def;
15845 cat $export_symbols >> $output_objdir/$soname.def;
15847 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15848 else
15849 ld_shlibs=no
15853 haiku*)
15854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855 link_all_deplibs=yes
15858 interix[3-9]*)
15859 hardcode_direct=no
15860 hardcode_shlibpath_var=no
15861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15862 export_dynamic_flag_spec='${wl}-E'
15863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15864 # Instead, shared libraries are loaded at an image base (0x10000000 by
15865 # default) and relocated if they conflict, which is a slow very memory
15866 # consuming and fragmenting process. To avoid this, we pick a random,
15867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15870 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'
15873 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15874 tmp_diet=no
15875 if test "$host_os" = linux-dietlibc; then
15876 case $cc_basename in
15877 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15878 esac
15880 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15881 && test "$tmp_diet" = no
15882 then
15883 tmp_addflag=
15884 tmp_sharedflag='-shared'
15885 case $cc_basename,$host_cpu in
15886 pgcc*) # Portland Group C compiler
15887 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'
15888 tmp_addflag=' $pic_flag'
15890 pgf77* | pgf90* | pgf95* | pgfortran*)
15891 # Portland Group f77 and f90 compilers
15892 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'
15893 tmp_addflag=' $pic_flag -Mnomain' ;;
15894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15895 tmp_addflag=' -i_dynamic' ;;
15896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15897 tmp_addflag=' -i_dynamic -nofor_main' ;;
15898 ifc* | ifort*) # Intel Fortran compiler
15899 tmp_addflag=' -nofor_main' ;;
15900 lf95*) # Lahey Fortran 8.1
15901 whole_archive_flag_spec=
15902 tmp_sharedflag='--shared' ;;
15903 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15904 tmp_sharedflag='-qmkshrobj'
15905 tmp_addflag= ;;
15906 nvcc*) # Cuda Compiler Driver 2.2
15907 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'
15908 compiler_needs_object=yes
15910 esac
15911 case `$CC -V 2>&1 | sed 5q` in
15912 *Sun\ C*) # Sun C 5.9
15913 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'
15914 compiler_needs_object=yes
15915 tmp_sharedflag='-G' ;;
15916 *Sun\ F*) # Sun Fortran 8.3
15917 tmp_sharedflag='-G' ;;
15918 esac
15919 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15921 if test "x$supports_anon_versioning" = xyes; then
15922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15924 echo "local: *; };" >> $output_objdir/$libname.ver~
15925 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15928 case $cc_basename in
15929 xlf* | bgf* | bgxlf* | mpixlf*)
15930 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15931 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15932 hardcode_libdir_flag_spec=
15933 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15934 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15935 if test "x$supports_anon_versioning" = xyes; then
15936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15938 echo "local: *; };" >> $output_objdir/$libname.ver~
15939 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15942 esac
15943 else
15944 ld_shlibs=no
15948 netbsd*)
15949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15951 wlarc=
15952 else
15953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15958 solaris*)
15959 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15960 ld_shlibs=no
15961 cat <<_LT_EOF 1>&2
15963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15964 *** create shared libraries on Solaris systems. Therefore, libtool
15965 *** is disabling shared libraries support. We urge you to upgrade GNU
15966 *** binutils to release 2.9.1 or newer. Another option is to modify
15967 *** your PATH or compiler configuration so that the native linker is
15968 *** used, and then restart.
15970 _LT_EOF
15971 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15974 else
15975 ld_shlibs=no
15979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15980 case `$LD -v 2>&1` in
15981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15982 ld_shlibs=no
15983 cat <<_LT_EOF 1>&2
15985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15986 *** reliably create shared libraries on SCO systems. Therefore, libtool
15987 *** is disabling shared libraries support. We urge you to upgrade GNU
15988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15989 *** your PATH or compiler configuration so that the native linker is
15990 *** used, and then restart.
15992 _LT_EOF
15995 # For security reasons, it is highly recommended that you always
15996 # use absolute paths for naming shared libraries, and exclude the
15997 # DT_RUNPATH tag from executables and libraries. But doing so
15998 # requires that you compile everything twice, which is a pain.
15999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16003 else
16004 ld_shlibs=no
16007 esac
16010 sunos4*)
16011 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16012 wlarc=
16013 hardcode_direct=yes
16014 hardcode_shlibpath_var=no
16018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16021 else
16022 ld_shlibs=no
16025 esac
16027 if test "$ld_shlibs" = no; then
16028 runpath_var=
16029 hardcode_libdir_flag_spec=
16030 export_dynamic_flag_spec=
16031 whole_archive_flag_spec=
16033 else
16034 # PORTME fill in a description of your system's linker (not GNU ld)
16035 case $host_os in
16036 aix3*)
16037 allow_undefined_flag=unsupported
16038 always_export_symbols=yes
16039 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'
16040 # Note: this linker hardcodes the directories in LIBPATH if there
16041 # are no directories specified by -L.
16042 hardcode_minus_L=yes
16043 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16044 # Neither direct hardcoding nor static linking is supported with a
16045 # broken collect2.
16046 hardcode_direct=unsupported
16050 aix[4-9]*)
16051 if test "$host_cpu" = ia64; then
16052 # On IA64, the linker does run time linking by default, so we don't
16053 # have to do anything special.
16054 aix_use_runtimelinking=no
16055 exp_sym_flag='-Bexport'
16056 no_entry_flag=""
16057 else
16058 # If we're using GNU nm, then we don't want the "-C" option.
16059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16060 # Also, AIX nm treats weak defined symbols like other global
16061 # defined symbols, whereas GNU nm marks them as "W".
16062 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16063 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'
16064 else
16065 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'
16067 aix_use_runtimelinking=no
16069 # Test if we are trying to use run time linking or normal
16070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16071 # need to do runtime linking.
16072 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16073 for ld_flag in $LDFLAGS; do
16074 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16075 aix_use_runtimelinking=yes
16076 break
16078 done
16080 esac
16082 exp_sym_flag='-bexport'
16083 no_entry_flag='-bnoentry'
16086 # When large executables or shared objects are built, AIX ld can
16087 # have problems creating the table of contents. If linking a library
16088 # or program results in "error TOC overflow" add -mminimal-toc to
16089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16092 archive_cmds=''
16093 hardcode_direct=yes
16094 hardcode_direct_absolute=yes
16095 hardcode_libdir_separator=':'
16096 link_all_deplibs=yes
16097 file_list_spec='${wl}-f,'
16099 if test "$GCC" = yes; then
16100 case $host_os in aix4.[012]|aix4.[012].*)
16101 # We only want to do this on AIX 4.2 and lower, the check
16102 # below for broken collect2 doesn't work under 4.3+
16103 collect2name=`${CC} -print-prog-name=collect2`
16104 if test -f "$collect2name" &&
16105 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16106 then
16107 # We have reworked collect2
16109 else
16110 # We have old collect2
16111 hardcode_direct=unsupported
16112 # It fails to find uninstalled libraries when the uninstalled
16113 # path is not listed in the libpath. Setting hardcode_minus_L
16114 # to unsupported forces relinking
16115 hardcode_minus_L=yes
16116 hardcode_libdir_flag_spec='-L$libdir'
16117 hardcode_libdir_separator=
16120 esac
16121 shared_flag='-shared'
16122 if test "$aix_use_runtimelinking" = yes; then
16123 shared_flag="$shared_flag "'${wl}-G'
16125 else
16126 # not using gcc
16127 if test "$host_cpu" = ia64; then
16128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16129 # chokes on -Wl,-G. The following line is correct:
16130 shared_flag='-G'
16131 else
16132 if test "$aix_use_runtimelinking" = yes; then
16133 shared_flag='${wl}-G'
16134 else
16135 shared_flag='${wl}-bM:SRE'
16140 export_dynamic_flag_spec='${wl}-bexpall'
16141 # It seems that -bexpall does not export symbols beginning with
16142 # underscore (_), so it is better to generate a list of symbols to export.
16143 always_export_symbols=yes
16144 if test "$aix_use_runtimelinking" = yes; then
16145 # Warning - without using the other runtime loading flags (-brtl),
16146 # -berok will link without error, but may produce a broken library.
16147 allow_undefined_flag='-berok'
16148 # Determine the default libpath from the value encoded in an
16149 # empty executable.
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16154 main ()
16158 return 0;
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16163 lt_aix_libpath_sed='
16164 /Import File Strings/,/^$/ {
16165 /^0/ {
16166 s/^0 *\(.*\)$/\1/
16170 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16171 # Check for a 64-bit object if we didn't find anything.
16172 if test -z "$aix_libpath"; then
16173 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16176 rm -f core conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
16178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16181 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"
16182 else
16183 if test "$host_cpu" = ia64; then
16184 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16185 allow_undefined_flag="-z nodefs"
16186 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"
16187 else
16188 # Determine the default libpath from the value encoded in an
16189 # empty executable.
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16194 main ()
16198 return 0;
16200 _ACEOF
16201 if ac_fn_c_try_link "$LINENO"; then :
16203 lt_aix_libpath_sed='
16204 /Import File Strings/,/^$/ {
16205 /^0/ {
16206 s/^0 *\(.*\)$/\1/
16210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16211 # Check for a 64-bit object if we didn't find anything.
16212 if test -z "$aix_libpath"; then
16213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16216 rm -f core conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16221 # Warning - without using the other run time loading flags,
16222 # -berok will link without error, but may produce a broken library.
16223 no_undefined_flag=' ${wl}-bernotok'
16224 allow_undefined_flag=' ${wl}-berok'
16225 if test "$with_gnu_ld" = yes; then
16226 # We only use this code for GNU lds that support --whole-archive.
16227 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16228 else
16229 # Exported symbols can be pulled into shared objects from archives
16230 whole_archive_flag_spec='$convenience'
16232 archive_cmds_need_lc=yes
16233 # This is similar to how AIX traditionally builds its shared libraries.
16234 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'
16239 amigaos*)
16240 case $host_cpu in
16241 powerpc)
16242 # see comment about AmigaOS4 .so support
16243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 archive_expsym_cmds=''
16246 m68k)
16247 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)'
16248 hardcode_libdir_flag_spec='-L$libdir'
16249 hardcode_minus_L=yes
16251 esac
16254 bsdi[45]*)
16255 export_dynamic_flag_spec=-rdynamic
16258 cygwin* | mingw* | pw32* | cegcc*)
16259 # When not using gcc, we currently assume that we are using
16260 # Microsoft Visual C++.
16261 # hardcode_libdir_flag_spec is actually meaningless, as there is
16262 # no search path for DLLs.
16263 hardcode_libdir_flag_spec=' '
16264 allow_undefined_flag=unsupported
16265 # Tell ltmain to make .lib files, not .a files.
16266 libext=lib
16267 # Tell ltmain to make .dll files, not .so files.
16268 shrext_cmds=".dll"
16269 # FIXME: Setting linknames here is a bad hack.
16270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16271 # The linker will automatically build a .lib file if we build a DLL.
16272 old_archive_from_new_cmds='true'
16273 # FIXME: Should let the user specify the lib program.
16274 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16275 fix_srcfile_path='`cygpath -w "$srcfile"`'
16276 enable_shared_with_static_runtimes=yes
16279 darwin* | rhapsody*)
16282 archive_cmds_need_lc=no
16283 hardcode_direct=no
16284 hardcode_automatic=yes
16285 hardcode_shlibpath_var=unsupported
16286 if test "$lt_cv_ld_force_load" = "yes"; then
16287 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\"`'
16288 else
16289 whole_archive_flag_spec=''
16291 link_all_deplibs=yes
16292 allow_undefined_flag="$_lt_dar_allow_undefined"
16293 case $cc_basename in
16294 ifort*) _lt_dar_can_shared=yes ;;
16295 *) _lt_dar_can_shared=$GCC ;;
16296 esac
16297 if test "$_lt_dar_can_shared" = "yes"; then
16298 output_verbose_link_cmd=func_echo_all
16299 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16300 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16301 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}"
16302 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}"
16304 else
16305 ld_shlibs=no
16310 dgux*)
16311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_libdir_flag_spec='-L$libdir'
16313 hardcode_shlibpath_var=no
16316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16317 # support. Future versions do this automatically, but an explicit c++rt0.o
16318 # does not break anything, and helps significantly (at the cost of a little
16319 # extra space).
16320 freebsd2.2*)
16321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16322 hardcode_libdir_flag_spec='-R$libdir'
16323 hardcode_direct=yes
16324 hardcode_shlibpath_var=no
16327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16328 freebsd2.*)
16329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16330 hardcode_direct=yes
16331 hardcode_minus_L=yes
16332 hardcode_shlibpath_var=no
16335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16336 freebsd* | dragonfly*)
16337 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16338 hardcode_libdir_flag_spec='-R$libdir'
16339 hardcode_direct=yes
16340 hardcode_shlibpath_var=no
16343 hpux9*)
16344 if test "$GCC" = yes; then
16345 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'
16346 else
16347 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'
16349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16350 hardcode_libdir_separator=:
16351 hardcode_direct=yes
16353 # hardcode_minus_L: Not really in the search PATH,
16354 # but as the default location of the library.
16355 hardcode_minus_L=yes
16356 export_dynamic_flag_spec='${wl}-E'
16359 hpux10*)
16360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16361 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16362 else
16363 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16365 if test "$with_gnu_ld" = no; then
16366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16367 hardcode_libdir_flag_spec_ld='+b $libdir'
16368 hardcode_libdir_separator=:
16369 hardcode_direct=yes
16370 hardcode_direct_absolute=yes
16371 export_dynamic_flag_spec='${wl}-E'
16372 # hardcode_minus_L: Not really in the search PATH,
16373 # but as the default location of the library.
16374 hardcode_minus_L=yes
16378 hpux11*)
16379 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16380 case $host_cpu in
16381 hppa*64*)
16382 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 ia64*)
16385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16390 esac
16391 else
16392 case $host_cpu in
16393 hppa*64*)
16394 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16396 ia64*)
16397 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16401 # Older versions of the 11.00 compiler do not understand -b yet
16402 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16404 $as_echo_n "checking if $CC understands -b... " >&6; }
16405 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16406 $as_echo_n "(cached) " >&6
16407 else
16408 lt_cv_prog_compiler__b=no
16409 save_LDFLAGS="$LDFLAGS"
16410 LDFLAGS="$LDFLAGS -b"
16411 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16413 # The linker can only warn and ignore the option if not recognized
16414 # So say no if there are warnings
16415 if test -s conftest.err; then
16416 # Append any errors to the config.log.
16417 cat conftest.err 1>&5
16418 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16420 if diff conftest.exp conftest.er2 >/dev/null; then
16421 lt_cv_prog_compiler__b=yes
16423 else
16424 lt_cv_prog_compiler__b=yes
16427 $RM -r conftest*
16428 LDFLAGS="$save_LDFLAGS"
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16432 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16434 if test x"$lt_cv_prog_compiler__b" = xyes; then
16435 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16436 else
16437 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16441 esac
16443 if test "$with_gnu_ld" = no; then
16444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16445 hardcode_libdir_separator=:
16447 case $host_cpu in
16448 hppa*64*|ia64*)
16449 hardcode_direct=no
16450 hardcode_shlibpath_var=no
16453 hardcode_direct=yes
16454 hardcode_direct_absolute=yes
16455 export_dynamic_flag_spec='${wl}-E'
16457 # hardcode_minus_L: Not really in the search PATH,
16458 # but as the default location of the library.
16459 hardcode_minus_L=yes
16461 esac
16465 irix5* | irix6* | nonstopux*)
16466 if test "$GCC" = yes; then
16467 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'
16468 # Try to use the -exported_symbol ld option, if it does not
16469 # work, assume that -exports_file does not work either and
16470 # implicitly export all symbols.
16471 save_LDFLAGS="$LDFLAGS"
16472 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475 int foo(void) {}
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"; then :
16478 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'
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 LDFLAGS="$save_LDFLAGS"
16484 else
16485 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'
16486 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'
16488 archive_cmds_need_lc='no'
16489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16490 hardcode_libdir_separator=:
16491 inherit_rpath=yes
16492 link_all_deplibs=yes
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16498 else
16499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16501 hardcode_libdir_flag_spec='-R$libdir'
16502 hardcode_direct=yes
16503 hardcode_shlibpath_var=no
16506 newsos6)
16507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct=yes
16509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator=:
16511 hardcode_shlibpath_var=no
16514 *nto* | *qnx*)
16517 openbsd*)
16518 if test -f /usr/libexec/ld.so; then
16519 hardcode_direct=yes
16520 hardcode_shlibpath_var=no
16521 hardcode_direct_absolute=yes
16522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16524 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16526 export_dynamic_flag_spec='${wl}-E'
16527 else
16528 case $host_os in
16529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16531 hardcode_libdir_flag_spec='-R$libdir'
16534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16537 esac
16539 else
16540 ld_shlibs=no
16544 os2*)
16545 hardcode_libdir_flag_spec='-L$libdir'
16546 hardcode_minus_L=yes
16547 allow_undefined_flag=unsupported
16548 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'
16549 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16552 osf3*)
16553 if test "$GCC" = yes; then
16554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16555 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'
16556 else
16557 allow_undefined_flag=' -expect_unresolved \*'
16558 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'
16560 archive_cmds_need_lc='no'
16561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator=:
16565 osf4* | osf5*) # as osf3* with the addition of -msym flag
16566 if test "$GCC" = yes; then
16567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16568 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'
16569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16570 else
16571 allow_undefined_flag=' -expect_unresolved \*'
16572 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'
16573 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~
16574 $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'
16576 # Both c and cxx compiler support -rpath directly
16577 hardcode_libdir_flag_spec='-rpath $libdir'
16579 archive_cmds_need_lc='no'
16580 hardcode_libdir_separator=:
16583 solaris*)
16584 no_undefined_flag=' -z defs'
16585 if test "$GCC" = yes; then
16586 wlarc='${wl}'
16587 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16589 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16590 else
16591 case `$CC -V 2>&1` in
16592 *"Compilers 5.0"*)
16593 wlarc=''
16594 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16599 wlarc='${wl}'
16600 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16602 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16604 esac
16606 hardcode_libdir_flag_spec='-R$libdir'
16607 hardcode_shlibpath_var=no
16608 case $host_os in
16609 solaris2.[0-5] | solaris2.[0-5].*) ;;
16611 # The compiler driver will combine and reorder linker options,
16612 # but understands `-z linker_flag'. GCC discards it without `$wl',
16613 # but is careful enough not to reorder.
16614 # Supported since Solaris 2.6 (maybe 2.5.1?)
16615 if test "$GCC" = yes; then
16616 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16617 else
16618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16621 esac
16622 link_all_deplibs=yes
16625 sunos4*)
16626 if test "x$host_vendor" = xsequent; then
16627 # Use $CC to link under sequent, because it throws in some extra .o
16628 # files that make .init and .fini sections work.
16629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16630 else
16631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16633 hardcode_libdir_flag_spec='-L$libdir'
16634 hardcode_direct=yes
16635 hardcode_minus_L=yes
16636 hardcode_shlibpath_var=no
16639 sysv4)
16640 case $host_vendor in
16641 sni)
16642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_direct=yes # is this really true???
16645 siemens)
16646 ## LD is ld it makes a PLAMLIB
16647 ## CC just makes a GrossModule.
16648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16649 reload_cmds='$CC -r -o $output$reload_objs'
16650 hardcode_direct=no
16652 motorola)
16653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16656 esac
16657 runpath_var='LD_RUN_PATH'
16658 hardcode_shlibpath_var=no
16661 sysv4.3*)
16662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16663 hardcode_shlibpath_var=no
16664 export_dynamic_flag_spec='-Bexport'
16667 sysv4*MP*)
16668 if test -d /usr/nec; then
16669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_shlibpath_var=no
16671 runpath_var=LD_RUN_PATH
16672 hardcode_runpath_var=yes
16673 ld_shlibs=yes
16677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16678 no_undefined_flag='${wl}-z,text'
16679 archive_cmds_need_lc=no
16680 hardcode_shlibpath_var=no
16681 runpath_var='LD_RUN_PATH'
16683 if test "$GCC" = yes; then
16684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16686 else
16687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 sysv5* | sco3.2v5* | sco5v6*)
16693 # Note: We can NOT use -z defs as we might desire, because we do not
16694 # link with -lc, and that would cause any symbols used from libc to
16695 # always be unresolved, which means just about no library would
16696 # ever link correctly. If we're not using GNU ld we use -z text
16697 # though, which does catch some bad symbols but isn't as heavy-handed
16698 # as -z defs.
16699 no_undefined_flag='${wl}-z,text'
16700 allow_undefined_flag='${wl}-z,nodefs'
16701 archive_cmds_need_lc=no
16702 hardcode_shlibpath_var=no
16703 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16704 hardcode_libdir_separator=':'
16705 link_all_deplibs=yes
16706 export_dynamic_flag_spec='${wl}-Bexport'
16707 runpath_var='LD_RUN_PATH'
16709 if test "$GCC" = yes; then
16710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16712 else
16713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 uts4*)
16719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16720 hardcode_libdir_flag_spec='-L$libdir'
16721 hardcode_shlibpath_var=no
16725 ld_shlibs=no
16727 esac
16729 if test x$host_vendor = xsni; then
16730 case $host in
16731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16732 export_dynamic_flag_spec='${wl}-Blargedynsym'
16734 esac
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16739 $as_echo "$ld_shlibs" >&6; }
16740 test "$ld_shlibs" = no && can_build_shared=no
16742 with_gnu_ld=$with_gnu_ld
16759 # Do we need to explicitly link libc?
16761 case "x$archive_cmds_need_lc" in
16762 x|xyes)
16763 # Assume -lc should be added
16764 archive_cmds_need_lc=yes
16766 if test "$enable_shared" = yes && test "$GCC" = yes; then
16767 case $archive_cmds in
16768 *'~'*)
16769 # FIXME: we may have to deal with multi-command sequences.
16771 '$CC '*)
16772 # Test whether the compiler implicitly links with -lc since on some
16773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16774 # to ld, don't add -lc before -lgcc.
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16777 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16778 $as_echo_n "(cached) " >&6
16779 else
16780 $RM conftest*
16781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16784 (eval $ac_compile) 2>&5
16785 ac_status=$?
16786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16787 test $ac_status = 0; } 2>conftest.err; then
16788 soname=conftest
16789 lib=conftest
16790 libobjs=conftest.$ac_objext
16791 deplibs=
16792 wl=$lt_prog_compiler_wl
16793 pic_flag=$lt_prog_compiler_pic
16794 compiler_flags=-v
16795 linker_flags=-v
16796 verstring=
16797 output_objdir=.
16798 libname=conftest
16799 lt_save_allow_undefined_flag=$allow_undefined_flag
16800 allow_undefined_flag=
16801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16803 ac_status=$?
16804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16805 test $ac_status = 0; }
16806 then
16807 lt_cv_archive_cmds_need_lc=no
16808 else
16809 lt_cv_archive_cmds_need_lc=yes
16811 allow_undefined_flag=$lt_save_allow_undefined_flag
16812 else
16813 cat conftest.err 1>&5
16815 $RM conftest*
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16822 esac
16825 esac
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16986 if test "$GCC" = yes; then
16987 case $host_os in
16988 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16989 *) lt_awk_arg="/^libraries:/" ;;
16990 esac
16991 case $host_os in
16992 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16993 *) lt_sed_strip_eq="s,=/,/,g" ;;
16994 esac
16995 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16996 case $lt_search_path_spec in
16997 *\;*)
16998 # if the path contains ";" then we assume it to be the separator
16999 # otherwise default to the standard path separator (i.e. ":") - it is
17000 # assumed that no part of a normal pathname contains ";" but that should
17001 # okay in the real world where ";" in dirpaths is itself problematic.
17002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17007 esac
17008 # Ok, now we have the path, separated by spaces, we can step through it
17009 # and add multilib dir if necessary.
17010 lt_tmp_lt_search_path_spec=
17011 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17012 for lt_sys_path in $lt_search_path_spec; do
17013 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17015 else
17016 test -d "$lt_sys_path" && \
17017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17019 done
17020 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17021 BEGIN {RS=" "; FS="/|\n";} {
17022 lt_foo="";
17023 lt_count=0;
17024 for (lt_i = NF; lt_i > 0; lt_i--) {
17025 if ($lt_i != "" && $lt_i != ".") {
17026 if ($lt_i == "..") {
17027 lt_count++;
17028 } else {
17029 if (lt_count == 0) {
17030 lt_foo="/" $lt_i lt_foo;
17031 } else {
17032 lt_count--;
17037 if (lt_foo != "") { lt_freq[lt_foo]++; }
17038 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17040 # AWK program above erroneously prepends '/' to C:/dos/paths
17041 # for these hosts.
17042 case $host_os in
17043 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17044 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17045 esac
17046 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17047 else
17048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17050 library_names_spec=
17051 libname_spec='lib$name'
17052 soname_spec=
17053 shrext_cmds=".so"
17054 postinstall_cmds=
17055 postuninstall_cmds=
17056 finish_cmds=
17057 finish_eval=
17058 shlibpath_var=
17059 shlibpath_overrides_runpath=unknown
17060 version_type=none
17061 dynamic_linker="$host_os ld.so"
17062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17063 need_lib_prefix=unknown
17064 hardcode_into_libs=no
17066 # when you set need_version to no, make sure it does not cause -set_version
17067 # flags to be left without arguments
17068 need_version=unknown
17070 case $host_os in
17071 aix3*)
17072 version_type=linux
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17074 shlibpath_var=LIBPATH
17076 # AIX 3 has no versioning support, so we append a major version to the name.
17077 soname_spec='${libname}${release}${shared_ext}$major'
17080 aix[4-9]*)
17081 version_type=linux
17082 need_lib_prefix=no
17083 need_version=no
17084 hardcode_into_libs=yes
17085 if test "$host_cpu" = ia64; then
17086 # AIX 5 supports IA64
17087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 else
17090 # With GCC up to 2.95.x, collect2 would create an import file
17091 # for dependence libraries. The import file would start with
17092 # the line `#! .'. This would cause the generated library to
17093 # depend on `.', always an invalid library. This was fixed in
17094 # development snapshots of GCC prior to 3.0.
17095 case $host_os in
17096 aix4 | aix4.[01] | aix4.[01].*)
17097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17098 echo ' yes '
17099 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17101 else
17102 can_build_shared=no
17105 esac
17106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17107 # soname into executable. Probably we can add versioning support to
17108 # collect2, so additional links can be useful in future.
17109 if test "$aix_use_runtimelinking" = yes; then
17110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17111 # instead of lib<name>.a to let people know that these are not
17112 # typical AIX shared libraries.
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114 else
17115 # We preserve .a as extension for shared libraries through AIX4.2
17116 # and later when we are not doing run time linking.
17117 library_names_spec='${libname}${release}.a $libname.a'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LIBPATH
17124 amigaos*)
17125 case $host_cpu in
17126 powerpc)
17127 # Since July 2007 AmigaOS4 officially supports .so libraries.
17128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 m68k)
17132 library_names_spec='$libname.ixlibrary $libname.a'
17133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17134 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'
17136 esac
17139 beos*)
17140 library_names_spec='${libname}${shared_ext}'
17141 dynamic_linker="$host_os ld.so"
17142 shlibpath_var=LIBRARY_PATH
17145 bsdi[45]*)
17146 version_type=linux
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17154 # the default ld.so.conf also contains /usr/contrib/lib and
17155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17156 # libtool to hard-code these into programs
17159 cygwin* | mingw* | pw32* | cegcc*)
17160 version_type=windows
17161 shrext_cmds=".dll"
17162 need_version=no
17163 need_lib_prefix=no
17165 case $GCC,$host_os in
17166 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17167 library_names_spec='$libname.dll.a'
17168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17169 postinstall_cmds='base_file=`basename \${file}`~
17170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17171 dldir=$destdir/`dirname \$dlpath`~
17172 test -d \$dldir || mkdir -p \$dldir~
17173 $install_prog $dir/$dlname \$dldir/$dlname~
17174 chmod a+x \$dldir/$dlname~
17175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17179 dlpath=$dir/\$dldll~
17180 $RM \$dlpath'
17181 shlibpath_overrides_runpath=yes
17183 case $host_os in
17184 cygwin*)
17185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17190 mingw* | cegcc*)
17191 # MinGW DLLs use traditional 'lib' prefix
17192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17194 pw32*)
17195 # pw32 DLLs use 'pw' prefix rather than 'lib'
17196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17198 esac
17202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17204 esac
17205 dynamic_linker='Win32 ld.exe'
17206 # FIXME: first we should search . and the directory the executable is in
17207 shlibpath_var=PATH
17210 darwin* | rhapsody*)
17211 dynamic_linker="$host_os dyld"
17212 version_type=darwin
17213 need_lib_prefix=no
17214 need_version=no
17215 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17216 soname_spec='${libname}${release}${major}$shared_ext'
17217 shlibpath_overrides_runpath=yes
17218 shlibpath_var=DYLD_LIBRARY_PATH
17219 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17225 dgux*)
17226 version_type=linux
17227 need_lib_prefix=no
17228 need_version=no
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 shlibpath_var=LD_LIBRARY_PATH
17234 freebsd* | dragonfly*)
17235 # DragonFly does not have aout. When/if they implement a new
17236 # versioning mechanism, adjust this.
17237 if test -x /usr/bin/objformat; then
17238 objformat=`/usr/bin/objformat`
17239 else
17240 case $host_os in
17241 freebsd[23].*) objformat=aout ;;
17242 *) objformat=elf ;;
17243 esac
17245 version_type=freebsd-$objformat
17246 case $version_type in
17247 freebsd-elf*)
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17249 need_version=no
17250 need_lib_prefix=no
17252 freebsd-*)
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17254 need_version=yes
17256 esac
17257 shlibpath_var=LD_LIBRARY_PATH
17258 case $host_os in
17259 freebsd2.*)
17260 shlibpath_overrides_runpath=yes
17262 freebsd3.[01]* | freebsdelf3.[01]*)
17263 shlibpath_overrides_runpath=yes
17264 hardcode_into_libs=yes
17266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17268 shlibpath_overrides_runpath=no
17269 hardcode_into_libs=yes
17271 *) # from 4.6 on, and DragonFly
17272 shlibpath_overrides_runpath=yes
17273 hardcode_into_libs=yes
17275 esac
17278 gnu*)
17279 version_type=linux
17280 need_lib_prefix=no
17281 need_version=no
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 hardcode_into_libs=yes
17288 haiku*)
17289 version_type=linux
17290 need_lib_prefix=no
17291 need_version=no
17292 dynamic_linker="$host_os runtime_loader"
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17294 soname_spec='${libname}${release}${shared_ext}$major'
17295 shlibpath_var=LIBRARY_PATH
17296 shlibpath_overrides_runpath=yes
17297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17298 hardcode_into_libs=yes
17301 hpux9* | hpux10* | hpux11*)
17302 # Give a soname corresponding to the major version so that dld.sl refuses to
17303 # link against other versions.
17304 version_type=sunos
17305 need_lib_prefix=no
17306 need_version=no
17307 case $host_cpu in
17308 ia64*)
17309 shrext_cmds='.so'
17310 hardcode_into_libs=yes
17311 dynamic_linker="$host_os dld.so"
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 if test "X$HPUX_IA64_MODE" = X32; then
17317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17318 else
17319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17323 hppa*64*)
17324 shrext_cmds='.sl'
17325 hardcode_into_libs=yes
17326 dynamic_linker="$host_os dld.sl"
17327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17335 shrext_cmds='.sl'
17336 dynamic_linker="$host_os dld.sl"
17337 shlibpath_var=SHLIB_PATH
17338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17342 esac
17343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17344 postinstall_cmds='chmod 555 $lib'
17345 # or fails outright, so override atomically:
17346 install_override_mode=555
17349 interix[3-9]*)
17350 version_type=linux
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=no
17358 hardcode_into_libs=yes
17361 irix5* | irix6* | nonstopux*)
17362 case $host_os in
17363 nonstopux*) version_type=nonstopux ;;
17365 if test "$lt_cv_prog_gnu_ld" = yes; then
17366 version_type=linux
17367 else
17368 version_type=irix
17369 fi ;;
17370 esac
17371 need_lib_prefix=no
17372 need_version=no
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17375 case $host_os in
17376 irix5* | nonstopux*)
17377 libsuff= shlibsuff=
17380 case $LD in # libtool.m4 will add one of these switches to LD
17381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17382 libsuff= shlibsuff= libmagic=32-bit;;
17383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17384 libsuff=32 shlibsuff=N32 libmagic=N32;;
17385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17387 *) libsuff= shlibsuff= libmagic=never-match;;
17388 esac
17390 esac
17391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17392 shlibpath_overrides_runpath=no
17393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17395 hardcode_into_libs=yes
17398 # No shared lib support for Linux oldld, aout, or coff.
17399 linux*oldld* | linux*aout* | linux*coff*)
17400 dynamic_linker=no
17403 # This must be Linux ELF.
17404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17405 version_type=linux
17406 need_lib_prefix=no
17407 need_version=no
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath=no
17414 # Some binutils ld are patched to set DT_RUNPATH
17415 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17416 $as_echo_n "(cached) " >&6
17417 else
17418 lt_cv_shlibpath_overrides_runpath=no
17419 save_LDFLAGS=$LDFLAGS
17420 save_libdir=$libdir
17421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424 /* end confdefs.h. */
17427 main ()
17431 return 0;
17433 _ACEOF
17434 if ac_fn_c_try_link "$LINENO"; then :
17435 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17436 lt_cv_shlibpath_overrides_runpath=yes
17439 rm -f core conftest.err conftest.$ac_objext \
17440 conftest$ac_exeext conftest.$ac_ext
17441 LDFLAGS=$save_LDFLAGS
17442 libdir=$save_libdir
17446 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17448 # This implies no fast_install, which is unacceptable.
17449 # Some rework will be needed to allow for fast_install
17450 # before this can be enabled.
17451 hardcode_into_libs=yes
17453 # Append ld.so.conf contents to the search path
17454 if test -f /etc/ld.so.conf; then
17455 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' ' '`
17456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17459 # We used to test for /lib/ld.so.1 and disable shared libraries on
17460 # powerpc, because MkLinux only supported shared libraries with the
17461 # GNU dynamic linker. Since this was broken with cross compilers,
17462 # most powerpc-linux boxes support dynamic linking these days and
17463 # people can always --disable-shared, the test was removed, and we
17464 # assume the GNU/Linux dynamic linker is in use.
17465 dynamic_linker='GNU/Linux ld.so'
17468 netbsd*)
17469 version_type=sunos
17470 need_lib_prefix=no
17471 need_version=no
17472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 dynamic_linker='NetBSD (a.out) ld.so'
17476 else
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 dynamic_linker='NetBSD ld.elf_so'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=yes
17483 hardcode_into_libs=yes
17486 newsos6)
17487 version_type=linux
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath=yes
17493 *nto* | *qnx*)
17494 version_type=qnx
17495 need_lib_prefix=no
17496 need_version=no
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=no
17501 hardcode_into_libs=yes
17502 dynamic_linker='ldqnx.so'
17505 openbsd*)
17506 version_type=sunos
17507 sys_lib_dlsearch_path_spec="/usr/lib"
17508 need_lib_prefix=no
17509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17510 case $host_os in
17511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17512 *) need_version=no ;;
17513 esac
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17518 case $host_os in
17519 openbsd2.[89] | openbsd2.[89].*)
17520 shlibpath_overrides_runpath=no
17523 shlibpath_overrides_runpath=yes
17525 esac
17526 else
17527 shlibpath_overrides_runpath=yes
17531 os2*)
17532 libname_spec='$name'
17533 shrext_cmds=".dll"
17534 need_lib_prefix=no
17535 library_names_spec='$libname${shared_ext} $libname.a'
17536 dynamic_linker='OS/2 ld.exe'
17537 shlibpath_var=LIBPATH
17540 osf3* | osf4* | osf5*)
17541 version_type=osf
17542 need_lib_prefix=no
17543 need_version=no
17544 soname_spec='${libname}${release}${shared_ext}$major'
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17551 rdos*)
17552 dynamic_linker=no
17555 solaris*)
17556 version_type=linux
17557 need_lib_prefix=no
17558 need_version=no
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=yes
17563 hardcode_into_libs=yes
17564 # ldd complains unless libraries are executable
17565 postinstall_cmds='chmod +x $lib'
17568 sunos4*)
17569 version_type=sunos
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 shlibpath_overrides_runpath=yes
17574 if test "$with_gnu_ld" = yes; then
17575 need_lib_prefix=no
17577 need_version=yes
17580 sysv4 | sysv4.3*)
17581 version_type=linux
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 case $host_vendor in
17586 sni)
17587 shlibpath_overrides_runpath=no
17588 need_lib_prefix=no
17589 runpath_var=LD_RUN_PATH
17591 siemens)
17592 need_lib_prefix=no
17594 motorola)
17595 need_lib_prefix=no
17596 need_version=no
17597 shlibpath_overrides_runpath=no
17598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17600 esac
17603 sysv4*MP*)
17604 if test -d /usr/nec ;then
17605 version_type=linux
17606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17607 soname_spec='$libname${shared_ext}.$major'
17608 shlibpath_var=LD_LIBRARY_PATH
17612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17613 version_type=freebsd-elf
17614 need_lib_prefix=no
17615 need_version=no
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath=yes
17620 hardcode_into_libs=yes
17621 if test "$with_gnu_ld" = yes; then
17622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17623 else
17624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17625 case $host_os in
17626 sco3.2v5*)
17627 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17629 esac
17631 sys_lib_dlsearch_path_spec='/usr/lib'
17634 tpf*)
17635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17636 version_type=linux
17637 need_lib_prefix=no
17638 need_version=no
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 shlibpath_overrides_runpath=no
17642 hardcode_into_libs=yes
17645 uts4*)
17646 version_type=linux
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648 soname_spec='${libname}${release}${shared_ext}$major'
17649 shlibpath_var=LD_LIBRARY_PATH
17653 dynamic_linker=no
17655 esac
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17657 $as_echo "$dynamic_linker" >&6; }
17658 test "$dynamic_linker" = no && can_build_shared=no
17660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17661 if test "$GCC" = yes; then
17662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17666 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17669 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17765 hardcode_action=
17766 if test -n "$hardcode_libdir_flag_spec" ||
17767 test -n "$runpath_var" ||
17768 test "X$hardcode_automatic" = "Xyes" ; then
17770 # We can hardcode non-existent directories.
17771 if test "$hardcode_direct" != no &&
17772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17773 # have to relink, otherwise we might link with an installed library
17774 # when we should be linking with a yet-to-be-installed one
17775 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17776 test "$hardcode_minus_L" != no; then
17777 # Linking always hardcodes the temporary library directory.
17778 hardcode_action=relink
17779 else
17780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17781 hardcode_action=immediate
17783 else
17784 # We cannot hardcode anything, or else we can only hardcode existing
17785 # directories.
17786 hardcode_action=unsupported
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17789 $as_echo "$hardcode_action" >&6; }
17791 if test "$hardcode_action" = relink ||
17792 test "$inherit_rpath" = yes; then
17793 # Fast installation is not supported
17794 enable_fast_install=no
17795 elif test "$shlibpath_overrides_runpath" = yes ||
17796 test "$enable_shared" = no; then
17797 # Fast installation is not necessary
17798 enable_fast_install=needless
17806 if test "x$enable_dlopen" != xyes; then
17807 enable_dlopen=unknown
17808 enable_dlopen_self=unknown
17809 enable_dlopen_self_static=unknown
17810 else
17811 lt_cv_dlopen=no
17812 lt_cv_dlopen_libs=
17814 case $host_os in
17815 beos*)
17816 lt_cv_dlopen="load_add_on"
17817 lt_cv_dlopen_libs=
17818 lt_cv_dlopen_self=yes
17821 mingw* | pw32* | cegcc*)
17822 lt_cv_dlopen="LoadLibrary"
17823 lt_cv_dlopen_libs=
17826 cygwin*)
17827 lt_cv_dlopen="dlopen"
17828 lt_cv_dlopen_libs=
17831 darwin*)
17832 # if libdl is installed we need to link against it
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 ac_check_lib_save_LIBS=$LIBS
17839 LIBS="-ldl $LIBS"
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char dlopen ();
17851 main ()
17853 return dlopen ();
17855 return 0;
17857 _ACEOF
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 ac_cv_lib_dl_dlopen=yes
17860 else
17861 ac_cv_lib_dl_dlopen=no
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17869 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17871 else
17873 lt_cv_dlopen="dyld"
17874 lt_cv_dlopen_libs=
17875 lt_cv_dlopen_self=yes
17882 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17883 if test "x$ac_cv_func_shl_load" = x""yes; then :
17884 lt_cv_dlopen="shl_load"
17885 else
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-ldld $LIBS"
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17899 #ifdef __cplusplus
17900 extern "C"
17901 #endif
17902 char shl_load ();
17904 main ()
17906 return shl_load ();
17908 return 0;
17910 _ACEOF
17911 if ac_fn_c_try_link "$LINENO"; then :
17912 ac_cv_lib_dld_shl_load=yes
17913 else
17914 ac_cv_lib_dld_shl_load=no
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17922 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17923 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17924 else
17925 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17926 if test "x$ac_cv_func_dlopen" = x""yes; then :
17927 lt_cv_dlopen="dlopen"
17928 else
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-ldl $LIBS"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char dlopen ();
17947 main ()
17949 return dlopen ();
17951 return 0;
17953 _ACEOF
17954 if ac_fn_c_try_link "$LINENO"; then :
17955 ac_cv_lib_dl_dlopen=yes
17956 else
17957 ac_cv_lib_dl_dlopen=no
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17965 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17967 else
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17969 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17972 else
17973 ac_check_lib_save_LIBS=$LIBS
17974 LIBS="-lsvld $LIBS"
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17981 #ifdef __cplusplus
17982 extern "C"
17983 #endif
17984 char dlopen ();
17986 main ()
17988 return dlopen ();
17990 return 0;
17992 _ACEOF
17993 if ac_fn_c_try_link "$LINENO"; then :
17994 ac_cv_lib_svld_dlopen=yes
17995 else
17996 ac_cv_lib_svld_dlopen=no
17998 rm -f core conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18004 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18006 else
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 ac_check_lib_save_LIBS=$LIBS
18013 LIBS="-ldld $LIBS"
18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015 /* end confdefs.h. */
18017 /* Override any GCC internal prototype to avoid an error.
18018 Use char because int might match the return type of a GCC
18019 builtin and then its argument prototype would still apply. */
18020 #ifdef __cplusplus
18021 extern "C"
18022 #endif
18023 char dld_link ();
18025 main ()
18027 return dld_link ();
18029 return 0;
18031 _ACEOF
18032 if ac_fn_c_try_link "$LINENO"; then :
18033 ac_cv_lib_dld_dld_link=yes
18034 else
18035 ac_cv_lib_dld_dld_link=no
18037 rm -f core conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
18039 LIBS=$ac_check_lib_save_LIBS
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18042 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18043 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18044 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18063 esac
18065 if test "x$lt_cv_dlopen" != xno; then
18066 enable_dlopen=yes
18067 else
18068 enable_dlopen=no
18071 case $lt_cv_dlopen in
18072 dlopen)
18073 save_CPPFLAGS="$CPPFLAGS"
18074 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18076 save_LDFLAGS="$LDFLAGS"
18077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18079 save_LIBS="$LIBS"
18080 LIBS="$lt_cv_dlopen_libs $LIBS"
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18083 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18084 if test "${lt_cv_dlopen_self+set}" = set; then :
18085 $as_echo_n "(cached) " >&6
18086 else
18087 if test "$cross_compiling" = yes; then :
18088 lt_cv_dlopen_self=cross
18089 else
18090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18091 lt_status=$lt_dlunknown
18092 cat > conftest.$ac_ext <<_LT_EOF
18093 #line 18093 "configure"
18094 #include "confdefs.h"
18096 #if HAVE_DLFCN_H
18097 #include <dlfcn.h>
18098 #endif
18100 #include <stdio.h>
18102 #ifdef RTLD_GLOBAL
18103 # define LT_DLGLOBAL RTLD_GLOBAL
18104 #else
18105 # ifdef DL_GLOBAL
18106 # define LT_DLGLOBAL DL_GLOBAL
18107 # else
18108 # define LT_DLGLOBAL 0
18109 # endif
18110 #endif
18112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18113 find out it does not work in some platform. */
18114 #ifndef LT_DLLAZY_OR_NOW
18115 # ifdef RTLD_LAZY
18116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18117 # else
18118 # ifdef DL_LAZY
18119 # define LT_DLLAZY_OR_NOW DL_LAZY
18120 # else
18121 # ifdef RTLD_NOW
18122 # define LT_DLLAZY_OR_NOW RTLD_NOW
18123 # else
18124 # ifdef DL_NOW
18125 # define LT_DLLAZY_OR_NOW DL_NOW
18126 # else
18127 # define LT_DLLAZY_OR_NOW 0
18128 # endif
18129 # endif
18130 # endif
18131 # endif
18132 #endif
18134 /* When -fvisbility=hidden is used, assume the code has been annotated
18135 correspondingly for the symbols needed. */
18136 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18137 void fnord () __attribute__((visibility("default")));
18138 #endif
18140 void fnord () { int i=42; }
18141 int main ()
18143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18144 int status = $lt_dlunknown;
18146 if (self)
18148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18149 else
18151 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18152 else puts (dlerror ());
18154 /* dlclose (self); */
18156 else
18157 puts (dlerror ());
18159 return status;
18161 _LT_EOF
18162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18163 (eval $ac_link) 2>&5
18164 ac_status=$?
18165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18166 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18167 (./conftest; exit; ) >&5 2>/dev/null
18168 lt_status=$?
18169 case x$lt_status in
18170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18173 esac
18174 else :
18175 # compilation failed
18176 lt_cv_dlopen_self=no
18179 rm -fr conftest*
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18184 $as_echo "$lt_cv_dlopen_self" >&6; }
18186 if test "x$lt_cv_dlopen_self" = xyes; then
18187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18189 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18190 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18191 $as_echo_n "(cached) " >&6
18192 else
18193 if test "$cross_compiling" = yes; then :
18194 lt_cv_dlopen_self_static=cross
18195 else
18196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18197 lt_status=$lt_dlunknown
18198 cat > conftest.$ac_ext <<_LT_EOF
18199 #line 18199 "configure"
18200 #include "confdefs.h"
18202 #if HAVE_DLFCN_H
18203 #include <dlfcn.h>
18204 #endif
18206 #include <stdio.h>
18208 #ifdef RTLD_GLOBAL
18209 # define LT_DLGLOBAL RTLD_GLOBAL
18210 #else
18211 # ifdef DL_GLOBAL
18212 # define LT_DLGLOBAL DL_GLOBAL
18213 # else
18214 # define LT_DLGLOBAL 0
18215 # endif
18216 #endif
18218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18219 find out it does not work in some platform. */
18220 #ifndef LT_DLLAZY_OR_NOW
18221 # ifdef RTLD_LAZY
18222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18223 # else
18224 # ifdef DL_LAZY
18225 # define LT_DLLAZY_OR_NOW DL_LAZY
18226 # else
18227 # ifdef RTLD_NOW
18228 # define LT_DLLAZY_OR_NOW RTLD_NOW
18229 # else
18230 # ifdef DL_NOW
18231 # define LT_DLLAZY_OR_NOW DL_NOW
18232 # else
18233 # define LT_DLLAZY_OR_NOW 0
18234 # endif
18235 # endif
18236 # endif
18237 # endif
18238 #endif
18240 /* When -fvisbility=hidden is used, assume the code has been annotated
18241 correspondingly for the symbols needed. */
18242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18243 void fnord () __attribute__((visibility("default")));
18244 #endif
18246 void fnord () { int i=42; }
18247 int main ()
18249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18250 int status = $lt_dlunknown;
18252 if (self)
18254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18255 else
18257 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18258 else puts (dlerror ());
18260 /* dlclose (self); */
18262 else
18263 puts (dlerror ());
18265 return status;
18267 _LT_EOF
18268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18269 (eval $ac_link) 2>&5
18270 ac_status=$?
18271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18272 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18273 (./conftest; exit; ) >&5 2>/dev/null
18274 lt_status=$?
18275 case x$lt_status in
18276 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18277 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18278 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18279 esac
18280 else :
18281 # compilation failed
18282 lt_cv_dlopen_self_static=no
18285 rm -fr conftest*
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18290 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18293 CPPFLAGS="$save_CPPFLAGS"
18294 LDFLAGS="$save_LDFLAGS"
18295 LIBS="$save_LIBS"
18297 esac
18299 case $lt_cv_dlopen_self in
18300 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18301 *) enable_dlopen_self=unknown ;;
18302 esac
18304 case $lt_cv_dlopen_self_static in
18305 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18306 *) enable_dlopen_self_static=unknown ;;
18307 esac
18326 striplib=
18327 old_striplib=
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18329 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18330 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18332 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18335 else
18336 # FIXME - insert some real tests, host_os isn't really good enough
18337 case $host_os in
18338 darwin*)
18339 if test -n "$STRIP" ; then
18340 striplib="$STRIP -x"
18341 old_striplib="$STRIP -S"
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18343 $as_echo "yes" >&6; }
18344 else
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18346 $as_echo "no" >&6; }
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18353 esac
18367 # Report which library types will actually be built
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18369 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18371 $as_echo "$can_build_shared" >&6; }
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18374 $as_echo_n "checking whether to build shared libraries... " >&6; }
18375 test "$can_build_shared" = "no" && enable_shared=no
18377 # On AIX, shared libraries and static libraries use the same namespace, and
18378 # are all built from PIC.
18379 case $host_os in
18380 aix3*)
18381 test "$enable_shared" = yes && enable_static=no
18382 if test -n "$RANLIB"; then
18383 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18384 postinstall_cmds='$RANLIB $lib'
18388 aix[4-9]*)
18389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18390 test "$enable_shared" = yes && enable_static=no
18393 esac
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18395 $as_echo "$enable_shared" >&6; }
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18398 $as_echo_n "checking whether to build static libraries... " >&6; }
18399 # Make sure either enable_shared or enable_static is yes.
18400 test "$enable_shared" = yes || enable_static=yes
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18402 $as_echo "$enable_static" >&6; }
18408 ac_ext=c
18409 ac_cpp='$CPP $CPPFLAGS'
18410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18414 CC="$lt_save_CC"
18416 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18417 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18418 (test "X$CXX" != "Xg++"))) ; then
18419 ac_ext=cpp
18420 ac_cpp='$CXXCPP $CPPFLAGS'
18421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18425 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18426 if test -z "$CXXCPP"; then
18427 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18428 $as_echo_n "(cached) " >&6
18429 else
18430 # Double quotes because CXXCPP needs to be expanded
18431 for CXXCPP in "$CXX -E" "/lib/cpp"
18433 ac_preproc_ok=false
18434 for ac_cxx_preproc_warn_flag in '' yes
18436 # Use a header file that comes with gcc, so configuring glibc
18437 # with a fresh cross-compiler works.
18438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 # <limits.h> exists even on freestanding compilers.
18440 # On the NeXT, cc -E runs the code through the compiler's parser,
18441 # not just through cpp. "Syntax error" is here to catch this case.
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18444 #ifdef __STDC__
18445 # include <limits.h>
18446 #else
18447 # include <assert.h>
18448 #endif
18449 Syntax error
18450 _ACEOF
18451 if ac_fn_cxx_try_cpp "$LINENO"; then :
18453 else
18454 # Broken: fails on valid input.
18455 continue
18457 rm -f conftest.err conftest.$ac_ext
18459 # OK, works on sane cases. Now check whether nonexistent headers
18460 # can be detected and how.
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 #include <ac_nonexistent.h>
18464 _ACEOF
18465 if ac_fn_cxx_try_cpp "$LINENO"; then :
18466 # Broken: success on invalid input.
18467 continue
18468 else
18469 # Passes both tests.
18470 ac_preproc_ok=:
18471 break
18473 rm -f conftest.err conftest.$ac_ext
18475 done
18476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18477 rm -f conftest.err conftest.$ac_ext
18478 if $ac_preproc_ok; then :
18479 break
18482 done
18483 ac_cv_prog_CXXCPP=$CXXCPP
18486 CXXCPP=$ac_cv_prog_CXXCPP
18487 else
18488 ac_cv_prog_CXXCPP=$CXXCPP
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18491 $as_echo "$CXXCPP" >&6; }
18492 ac_preproc_ok=false
18493 for ac_cxx_preproc_warn_flag in '' yes
18495 # Use a header file that comes with gcc, so configuring glibc
18496 # with a fresh cross-compiler works.
18497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18498 # <limits.h> exists even on freestanding compilers.
18499 # On the NeXT, cc -E runs the code through the compiler's parser,
18500 # not just through cpp. "Syntax error" is here to catch this case.
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18503 #ifdef __STDC__
18504 # include <limits.h>
18505 #else
18506 # include <assert.h>
18507 #endif
18508 Syntax error
18509 _ACEOF
18510 if ac_fn_cxx_try_cpp "$LINENO"; then :
18512 else
18513 # Broken: fails on valid input.
18514 continue
18516 rm -f conftest.err conftest.$ac_ext
18518 # OK, works on sane cases. Now check whether nonexistent headers
18519 # can be detected and how.
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 #include <ac_nonexistent.h>
18523 _ACEOF
18524 if ac_fn_cxx_try_cpp "$LINENO"; then :
18525 # Broken: success on invalid input.
18526 continue
18527 else
18528 # Passes both tests.
18529 ac_preproc_ok=:
18530 break
18532 rm -f conftest.err conftest.$ac_ext
18534 done
18535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18536 rm -f conftest.err conftest.$ac_ext
18537 if $ac_preproc_ok; then :
18539 else
18540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18542 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18543 See \`config.log' for more details." "$LINENO" 5; }
18546 ac_ext=c
18547 ac_cpp='$CPP $CPPFLAGS'
18548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18552 else
18553 _lt_caught_CXX_error=yes
18556 ac_ext=cpp
18557 ac_cpp='$CXXCPP $CPPFLAGS'
18558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18562 archive_cmds_need_lc_CXX=no
18563 allow_undefined_flag_CXX=
18564 always_export_symbols_CXX=no
18565 archive_expsym_cmds_CXX=
18566 compiler_needs_object_CXX=no
18567 export_dynamic_flag_spec_CXX=
18568 hardcode_direct_CXX=no
18569 hardcode_direct_absolute_CXX=no
18570 hardcode_libdir_flag_spec_CXX=
18571 hardcode_libdir_flag_spec_ld_CXX=
18572 hardcode_libdir_separator_CXX=
18573 hardcode_minus_L_CXX=no
18574 hardcode_shlibpath_var_CXX=unsupported
18575 hardcode_automatic_CXX=no
18576 inherit_rpath_CXX=no
18577 module_cmds_CXX=
18578 module_expsym_cmds_CXX=
18579 link_all_deplibs_CXX=unknown
18580 old_archive_cmds_CXX=$old_archive_cmds
18581 reload_flag_CXX=$reload_flag
18582 reload_cmds_CXX=$reload_cmds
18583 no_undefined_flag_CXX=
18584 whole_archive_flag_spec_CXX=
18585 enable_shared_with_static_runtimes_CXX=no
18587 # Source file extension for C++ test sources.
18588 ac_ext=cpp
18590 # Object file extension for compiled C++ test sources.
18591 objext=o
18592 objext_CXX=$objext
18594 # No sense in running all these tests if we already determined that
18595 # the CXX compiler isn't working. Some variables (like enable_shared)
18596 # are currently assumed to apply to all compilers on this platform,
18597 # and will be corrupted by setting them based on a non-working compiler.
18598 if test "$_lt_caught_CXX_error" != yes; then
18599 # Code to be used in simple compile tests
18600 lt_simple_compile_test_code="int some_variable = 0;"
18602 # Code to be used in simple link tests
18603 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18612 # If no C compiler was specified, use CC.
18613 LTCC=${LTCC-"$CC"}
18615 # If no C compiler flags were specified, use CFLAGS.
18616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18618 # Allow CC to be a program name with arguments.
18619 compiler=$CC
18622 # save warnings/boilerplate of simple test code
18623 ac_outfile=conftest.$ac_objext
18624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18626 _lt_compiler_boilerplate=`cat conftest.err`
18627 $RM conftest*
18629 ac_outfile=conftest.$ac_objext
18630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18632 _lt_linker_boilerplate=`cat conftest.err`
18633 $RM -r conftest*
18636 # Allow CC to be a program name with arguments.
18637 lt_save_CC=$CC
18638 lt_save_LD=$LD
18639 lt_save_GCC=$GCC
18640 GCC=$GXX
18641 lt_save_with_gnu_ld=$with_gnu_ld
18642 lt_save_path_LD=$lt_cv_path_LD
18643 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18644 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18645 else
18646 $as_unset lt_cv_prog_gnu_ld
18648 if test -n "${lt_cv_path_LDCXX+set}"; then
18649 lt_cv_path_LD=$lt_cv_path_LDCXX
18650 else
18651 $as_unset lt_cv_path_LD
18653 test -z "${LDCXX+set}" || LD=$LDCXX
18654 CC=${CXX-"c++"}
18655 compiler=$CC
18656 compiler_CXX=$CC
18657 for cc_temp in $compiler""; do
18658 case $cc_temp in
18659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18661 \-*) ;;
18662 *) break;;
18663 esac
18664 done
18665 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18668 if test -n "$compiler"; then
18669 # We don't want -fno-exception when compiling C++ code, so set the
18670 # no_builtin_flag separately
18671 if test "$GXX" = yes; then
18672 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18673 else
18674 lt_prog_compiler_no_builtin_flag_CXX=
18677 if test "$GXX" = yes; then
18678 # Set up default GNU C++ configuration
18682 # Check whether --with-gnu-ld was given.
18683 if test "${with_gnu_ld+set}" = set; then :
18684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18685 else
18686 with_gnu_ld=no
18689 ac_prog=ld
18690 if test "$GCC" = yes; then
18691 # Check if gcc -print-prog-name=ld gives a path.
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18693 $as_echo_n "checking for ld used by $CC... " >&6; }
18694 case $host in
18695 *-*-mingw*)
18696 # gcc leaves a trailing carriage return which upsets mingw
18697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18700 esac
18701 case $ac_prog in
18702 # Accept absolute paths.
18703 [\\/]* | ?:[\\/]*)
18704 re_direlt='/[^/][^/]*/\.\./'
18705 # Canonicalize the pathname of ld
18706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18709 done
18710 test -z "$LD" && LD="$ac_prog"
18713 # If it fails, then pretend we aren't using GCC.
18714 ac_prog=ld
18717 # If it is relative, then search for the first ld in PATH.
18718 with_gnu_ld=unknown
18720 esac
18721 elif test "$with_gnu_ld" = yes; then
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18723 $as_echo_n "checking for GNU ld... " >&6; }
18724 else
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18726 $as_echo_n "checking for non-GNU ld... " >&6; }
18728 if test "${lt_cv_path_LD+set}" = set; then :
18729 $as_echo_n "(cached) " >&6
18730 else
18731 if test -z "$LD"; then
18732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18733 for ac_dir in $PATH; do
18734 IFS="$lt_save_ifs"
18735 test -z "$ac_dir" && ac_dir=.
18736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18737 lt_cv_path_LD="$ac_dir/$ac_prog"
18738 # Check to see if the program is GNU ld. I'd rather use --version,
18739 # but apparently some variants of GNU ld only accept -v.
18740 # Break only if it was the GNU/non-GNU ld that we prefer.
18741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18742 *GNU* | *'with BFD'*)
18743 test "$with_gnu_ld" != no && break
18746 test "$with_gnu_ld" != yes && break
18748 esac
18750 done
18751 IFS="$lt_save_ifs"
18752 else
18753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18757 LD="$lt_cv_path_LD"
18758 if test -n "$LD"; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18760 $as_echo "$LD" >&6; }
18761 else
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18765 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18767 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18768 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18772 case `$LD -v 2>&1 </dev/null` in
18773 *GNU* | *'with BFD'*)
18774 lt_cv_prog_gnu_ld=yes
18777 lt_cv_prog_gnu_ld=no
18779 esac
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18782 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18783 with_gnu_ld=$lt_cv_prog_gnu_ld
18791 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18792 # archiving commands below assume that GNU ld is being used.
18793 if test "$with_gnu_ld" = yes; then
18794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18795 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'
18797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18800 # If archive_cmds runs LD, not CC, wlarc should be empty
18801 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18802 # investigate it a little bit more. (MM)
18803 wlarc='${wl}'
18805 # ancient GNU ld didn't support --whole-archive et. al.
18806 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18807 $GREP 'no-whole-archive' > /dev/null; then
18808 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18809 else
18810 whole_archive_flag_spec_CXX=
18812 else
18813 with_gnu_ld=no
18814 wlarc=
18816 # A generic and very simple default shared library creation
18817 # command for GNU C++ for the case where it uses the native
18818 # linker, instead of GNU ld. If possible, this setting should
18819 # overridden to take advantage of the native linker features on
18820 # the platform it is being used on.
18821 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
18827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18829 else
18830 GXX=no
18831 with_gnu_ld=no
18832 wlarc=
18835 # PORTME: fill in a description of your system's C++ link characteristics
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18838 ld_shlibs_CXX=yes
18839 case $host_os in
18840 aix3*)
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18844 aix[4-9]*)
18845 if test "$host_cpu" = ia64; then
18846 # On IA64, the linker does run time linking by default, so we don't
18847 # have to do anything special.
18848 aix_use_runtimelinking=no
18849 exp_sym_flag='-Bexport'
18850 no_entry_flag=""
18851 else
18852 aix_use_runtimelinking=no
18854 # Test if we are trying to use run time linking or normal
18855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18856 # need to do runtime linking.
18857 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18858 for ld_flag in $LDFLAGS; do
18859 case $ld_flag in
18860 *-brtl*)
18861 aix_use_runtimelinking=yes
18862 break
18864 esac
18865 done
18867 esac
18869 exp_sym_flag='-bexport'
18870 no_entry_flag='-bnoentry'
18873 # When large executables or shared objects are built, AIX ld can
18874 # have problems creating the table of contents. If linking a library
18875 # or program results in "error TOC overflow" add -mminimal-toc to
18876 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18877 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18879 archive_cmds_CXX=''
18880 hardcode_direct_CXX=yes
18881 hardcode_direct_absolute_CXX=yes
18882 hardcode_libdir_separator_CXX=':'
18883 link_all_deplibs_CXX=yes
18884 file_list_spec_CXX='${wl}-f,'
18886 if test "$GXX" = yes; then
18887 case $host_os in aix4.[012]|aix4.[012].*)
18888 # We only want to do this on AIX 4.2 and lower, the check
18889 # below for broken collect2 doesn't work under 4.3+
18890 collect2name=`${CC} -print-prog-name=collect2`
18891 if test -f "$collect2name" &&
18892 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18893 then
18894 # We have reworked collect2
18896 else
18897 # We have old collect2
18898 hardcode_direct_CXX=unsupported
18899 # It fails to find uninstalled libraries when the uninstalled
18900 # path is not listed in the libpath. Setting hardcode_minus_L
18901 # to unsupported forces relinking
18902 hardcode_minus_L_CXX=yes
18903 hardcode_libdir_flag_spec_CXX='-L$libdir'
18904 hardcode_libdir_separator_CXX=
18906 esac
18907 shared_flag='-shared'
18908 if test "$aix_use_runtimelinking" = yes; then
18909 shared_flag="$shared_flag "'${wl}-G'
18911 else
18912 # not using gcc
18913 if test "$host_cpu" = ia64; then
18914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18915 # chokes on -Wl,-G. The following line is correct:
18916 shared_flag='-G'
18917 else
18918 if test "$aix_use_runtimelinking" = yes; then
18919 shared_flag='${wl}-G'
18920 else
18921 shared_flag='${wl}-bM:SRE'
18926 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18927 # It seems that -bexpall does not export symbols beginning with
18928 # underscore (_), so it is better to generate a list of symbols to
18929 # export.
18930 always_export_symbols_CXX=yes
18931 if test "$aix_use_runtimelinking" = yes; then
18932 # Warning - without using the other runtime loading flags (-brtl),
18933 # -berok will link without error, but may produce a broken library.
18934 allow_undefined_flag_CXX='-berok'
18935 # Determine the default libpath from the value encoded in an empty
18936 # executable.
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18941 main ()
18945 return 0;
18947 _ACEOF
18948 if ac_fn_cxx_try_link "$LINENO"; then :
18950 lt_aix_libpath_sed='
18951 /Import File Strings/,/^$/ {
18952 /^0/ {
18953 s/^0 *\(.*\)$/\1/
18957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 # Check for a 64-bit object if we didn't find anything.
18959 if test -z "$aix_libpath"; then
18960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18969 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"
18970 else
18971 if test "$host_cpu" = ia64; then
18972 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18973 allow_undefined_flag_CXX="-z nodefs"
18974 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"
18975 else
18976 # Determine the default libpath from the value encoded in an
18977 # empty executable.
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18982 main ()
18986 return 0;
18988 _ACEOF
18989 if ac_fn_cxx_try_link "$LINENO"; then :
18991 lt_aix_libpath_sed='
18992 /Import File Strings/,/^$/ {
18993 /^0/ {
18994 s/^0 *\(.*\)$/\1/
18998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18999 # Check for a 64-bit object if we didn't find anything.
19000 if test -z "$aix_libpath"; then
19001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19004 rm -f core conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
19006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19008 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19009 # Warning - without using the other run time loading flags,
19010 # -berok will link without error, but may produce a broken library.
19011 no_undefined_flag_CXX=' ${wl}-bernotok'
19012 allow_undefined_flag_CXX=' ${wl}-berok'
19013 if test "$with_gnu_ld" = yes; then
19014 # We only use this code for GNU lds that support --whole-archive.
19015 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19016 else
19017 # Exported symbols can be pulled into shared objects from archives
19018 whole_archive_flag_spec_CXX='$convenience'
19020 archive_cmds_need_lc_CXX=yes
19021 # This is similar to how AIX traditionally builds its shared
19022 # libraries.
19023 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'
19028 beos*)
19029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19030 allow_undefined_flag_CXX=unsupported
19031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19032 # support --undefined. This deserves some investigation. FIXME
19033 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19034 else
19035 ld_shlibs_CXX=no
19039 chorus*)
19040 case $cc_basename in
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19045 esac
19048 cygwin* | mingw* | pw32* | cegcc*)
19049 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19050 # as there is no search path for DLLs.
19051 hardcode_libdir_flag_spec_CXX='-L$libdir'
19052 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19053 allow_undefined_flag_CXX=unsupported
19054 always_export_symbols_CXX=no
19055 enable_shared_with_static_runtimes_CXX=yes
19057 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19058 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'
19059 # If the export-symbols file already is a .def file (1st line
19060 # is EXPORTS), use it as is; otherwise, prepend...
19061 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19062 cp $export_symbols $output_objdir/$soname.def;
19063 else
19064 echo EXPORTS > $output_objdir/$soname.def;
19065 cat $export_symbols >> $output_objdir/$soname.def;
19067 $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'
19068 else
19069 ld_shlibs_CXX=no
19072 darwin* | rhapsody*)
19075 archive_cmds_need_lc_CXX=no
19076 hardcode_direct_CXX=no
19077 hardcode_automatic_CXX=yes
19078 hardcode_shlibpath_var_CXX=unsupported
19079 if test "$lt_cv_ld_force_load" = "yes"; then
19080 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\"`'
19081 else
19082 whole_archive_flag_spec_CXX=''
19084 link_all_deplibs_CXX=yes
19085 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19086 case $cc_basename in
19087 ifort*) _lt_dar_can_shared=yes ;;
19088 *) _lt_dar_can_shared=$GCC ;;
19089 esac
19090 if test "$_lt_dar_can_shared" = "yes"; then
19091 output_verbose_link_cmd=func_echo_all
19092 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}"
19093 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19094 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}"
19095 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}"
19096 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19097 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}"
19098 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}"
19101 else
19102 ld_shlibs_CXX=no
19107 dgux*)
19108 case $cc_basename in
19109 ec++*)
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19113 ghcx*)
19114 # Green Hills C++ Compiler
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19122 esac
19125 freebsd2.*)
19126 # C++ shared libraries reported to be fairly broken before
19127 # switch to ELF
19128 ld_shlibs_CXX=no
19131 freebsd-elf*)
19132 archive_cmds_need_lc_CXX=no
19135 freebsd* | dragonfly*)
19136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19137 # conventions
19138 ld_shlibs_CXX=yes
19141 gnu*)
19144 haiku*)
19145 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146 link_all_deplibs_CXX=yes
19149 hpux9*)
19150 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19151 hardcode_libdir_separator_CXX=:
19152 export_dynamic_flag_spec_CXX='${wl}-E'
19153 hardcode_direct_CXX=yes
19154 hardcode_minus_L_CXX=yes # Not in the search PATH,
19155 # but as the default
19156 # location of the library.
19158 case $cc_basename in
19159 CC*)
19160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19163 aCC*)
19164 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'
19165 # Commands to make compiler produce verbose output that lists
19166 # what "hidden" libraries, object files and flags are used when
19167 # linking a shared library.
19169 # There doesn't appear to be a way to prevent this compiler from
19170 # explicitly linking system object files so we need to strip them
19171 # from the output so that they don't get included in the library
19172 # dependencies.
19173 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"'
19176 if test "$GXX" = yes; then
19177 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'
19178 else
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19183 esac
19186 hpux10*|hpux11*)
19187 if test $with_gnu_ld = no; then
19188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19189 hardcode_libdir_separator_CXX=:
19191 case $host_cpu in
19192 hppa*64*|ia64*)
19195 export_dynamic_flag_spec_CXX='${wl}-E'
19197 esac
19199 case $host_cpu in
19200 hppa*64*|ia64*)
19201 hardcode_direct_CXX=no
19202 hardcode_shlibpath_var_CXX=no
19205 hardcode_direct_CXX=yes
19206 hardcode_direct_absolute_CXX=yes
19207 hardcode_minus_L_CXX=yes # Not in the search PATH,
19208 # but as the default
19209 # location of the library.
19211 esac
19213 case $cc_basename in
19214 CC*)
19215 # FIXME: insert proper C++ library support
19216 ld_shlibs_CXX=no
19218 aCC*)
19219 case $host_cpu in
19220 hppa*64*)
19221 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19223 ia64*)
19224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 esac
19230 # Commands to make compiler produce verbose output that lists
19231 # what "hidden" libraries, object files and flags are used when
19232 # linking a shared library.
19234 # There doesn't appear to be a way to prevent this compiler from
19235 # explicitly linking system object files so we need to strip them
19236 # from the output so that they don't get included in the library
19237 # dependencies.
19238 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"'
19241 if test "$GXX" = yes; then
19242 if test $with_gnu_ld = no; then
19243 case $host_cpu in
19244 hppa*64*)
19245 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19247 ia64*)
19248 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 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'
19253 esac
19255 else
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19260 esac
19263 interix[3-9]*)
19264 hardcode_direct_CXX=no
19265 hardcode_shlibpath_var_CXX=no
19266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19267 export_dynamic_flag_spec_CXX='${wl}-E'
19268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19269 # Instead, shared libraries are loaded at an image base (0x10000000 by
19270 # default) and relocated if they conflict, which is a slow very memory
19271 # consuming and fragmenting process. To avoid this, we pick a random,
19272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19274 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'
19275 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'
19277 irix5* | irix6*)
19278 case $cc_basename in
19279 CC*)
19280 # SGI C++
19281 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'
19283 # Archives containing C++ object files must be created using
19284 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19285 # necessary to make sure instantiated templates are included
19286 # in the archive.
19287 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19290 if test "$GXX" = yes; then
19291 if test "$with_gnu_ld" = no; then
19292 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'
19293 else
19294 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'
19297 link_all_deplibs_CXX=yes
19299 esac
19300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19301 hardcode_libdir_separator_CXX=:
19302 inherit_rpath_CXX=yes
19305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19306 case $cc_basename in
19307 KCC*)
19308 # Kuck and Associates, Inc. (KAI) C++ Compiler
19310 # KCC will only create a shared library if the output file
19311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19312 # to its proper name (with version) after linking.
19313 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'
19314 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'
19315 # Commands to make compiler produce verbose output that lists
19316 # what "hidden" libraries, object files and flags are used when
19317 # linking a shared library.
19319 # There doesn't appear to be a way to prevent this compiler from
19320 # explicitly linking system object files so we need to strip them
19321 # from the output so that they don't get included in the library
19322 # dependencies.
19323 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"'
19325 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19328 # Archives containing C++ object files must be created using
19329 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19330 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19332 icpc* | ecpc* )
19333 # Intel C++
19334 with_gnu_ld=yes
19335 # version 8.0 and above of icpc choke on multiply defined symbols
19336 # if we add $predep_objects and $postdep_objects, however 7.1 and
19337 # earlier do not add the objects themselves.
19338 case `$CC -V 2>&1` in
19339 *"Version 7."*)
19340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19341 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'
19343 *) # Version 8.0 or newer
19344 tmp_idyn=
19345 case $host_cpu in
19346 ia64*) tmp_idyn=' -i_dynamic';;
19347 esac
19348 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19349 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'
19351 esac
19352 archive_cmds_need_lc_CXX=no
19353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19357 pgCC* | pgcpp*)
19358 # Portland Group C++ compiler
19359 case `$CC -V` in
19360 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19361 prelink_cmds_CXX='tpldir=Template.dir~
19362 rm -rf $tpldir~
19363 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19364 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19365 old_archive_cmds_CXX='tpldir=Template.dir~
19366 rm -rf $tpldir~
19367 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19368 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19369 $RANLIB $oldlib'
19370 archive_cmds_CXX='tpldir=Template.dir~
19371 rm -rf $tpldir~
19372 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19373 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19374 archive_expsym_cmds_CXX='tpldir=Template.dir~
19375 rm -rf $tpldir~
19376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19377 $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'
19379 *) # Version 6 and above use weak symbols
19380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19381 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'
19383 esac
19385 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19386 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19387 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'
19389 cxx*)
19390 # Compaq C++
19391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19392 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'
19394 runpath_var=LD_RUN_PATH
19395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19396 hardcode_libdir_separator_CXX=:
19398 # Commands to make compiler produce verbose output that lists
19399 # what "hidden" libraries, object files and flags are used when
19400 # linking a shared library.
19402 # There doesn't appear to be a way to prevent this compiler from
19403 # explicitly linking system object files so we need to strip them
19404 # from the output so that they don't get included in the library
19405 # dependencies.
19406 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'
19408 xl* | mpixl* | bgxl*)
19409 # IBM XL 8.0 on PPC, with GNU ld
19410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19412 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413 if test "x$supports_anon_versioning" = xyes; then
19414 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19416 echo "local: *; };" >> $output_objdir/$libname.ver~
19417 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19421 case `$CC -V 2>&1 | sed 5q` in
19422 *Sun\ C*)
19423 # Sun C++ 5.9
19424 no_undefined_flag_CXX=' -zdefs'
19425 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19426 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'
19427 hardcode_libdir_flag_spec_CXX='-R$libdir'
19428 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'
19429 compiler_needs_object_CXX=yes
19431 # Not sure whether something based on
19432 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19433 # would be better.
19434 output_verbose_link_cmd='func_echo_all'
19436 # Archives containing C++ object files must be created using
19437 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19438 # necessary to make sure instantiated templates are included
19439 # in the archive.
19440 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19442 esac
19444 esac
19447 lynxos*)
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19452 m88k*)
19453 # FIXME: insert proper C++ library support
19454 ld_shlibs_CXX=no
19457 mvs*)
19458 case $cc_basename in
19459 cxx*)
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19467 esac
19470 netbsd*)
19471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19472 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19473 wlarc=
19474 hardcode_libdir_flag_spec_CXX='-R$libdir'
19475 hardcode_direct_CXX=yes
19476 hardcode_shlibpath_var_CXX=no
19478 # Workaround some broken pre-1.5 toolchains
19479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19482 *nto* | *qnx*)
19483 ld_shlibs_CXX=yes
19486 openbsd2*)
19487 # C++ shared libraries are fairly broken
19488 ld_shlibs_CXX=no
19491 openbsd*)
19492 if test -f /usr/libexec/ld.so; then
19493 hardcode_direct_CXX=yes
19494 hardcode_shlibpath_var_CXX=no
19495 hardcode_direct_absolute_CXX=yes
19496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19499 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19500 export_dynamic_flag_spec_CXX='${wl}-E'
19501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19503 output_verbose_link_cmd=func_echo_all
19504 else
19505 ld_shlibs_CXX=no
19509 osf3* | osf4* | osf5*)
19510 case $cc_basename in
19511 KCC*)
19512 # Kuck and Associates, Inc. (KAI) C++ Compiler
19514 # KCC will only create a shared library if the output file
19515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19516 # to its proper name (with version) after linking.
19517 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'
19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19520 hardcode_libdir_separator_CXX=:
19522 # Archives containing C++ object files must be created using
19523 # the KAI C++ compiler.
19524 case $host in
19525 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19526 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19527 esac
19529 RCC*)
19530 # Rational C++ 2.4.1
19531 # FIXME: insert proper C++ library support
19532 ld_shlibs_CXX=no
19534 cxx*)
19535 case $host in
19536 osf3*)
19537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19538 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'
19539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19542 allow_undefined_flag_CXX=' -expect_unresolved \*'
19543 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'
19544 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19545 echo "-hidden">> $lib.exp~
19546 $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~
19547 $RM $lib.exp'
19548 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19550 esac
19552 hardcode_libdir_separator_CXX=:
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19558 # There doesn't appear to be a way to prevent this compiler from
19559 # explicitly linking system object files so we need to strip them
19560 # from the output so that they don't get included in the library
19561 # dependencies.
19562 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"'
19565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19567 case $host in
19568 osf3*)
19569 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'
19572 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'
19574 esac
19576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19577 hardcode_libdir_separator_CXX=:
19579 # Commands to make compiler produce verbose output that lists
19580 # what "hidden" libraries, object files and flags are used when
19581 # linking a shared library.
19582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19584 else
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19589 esac
19592 psos*)
19593 # FIXME: insert proper C++ library support
19594 ld_shlibs_CXX=no
19597 sunos4*)
19598 case $cc_basename in
19599 CC*)
19600 # Sun C++ 4.x
19601 # FIXME: insert proper C++ library support
19602 ld_shlibs_CXX=no
19604 lcc*)
19605 # Lucid
19606 # FIXME: insert proper C++ library support
19607 ld_shlibs_CXX=no
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19613 esac
19616 solaris*)
19617 case $cc_basename in
19618 CC*)
19619 # Sun C++ 4.2, 5.x and Centerline C++
19620 archive_cmds_need_lc_CXX=yes
19621 no_undefined_flag_CXX=' -zdefs'
19622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19624 $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'
19626 hardcode_libdir_flag_spec_CXX='-R$libdir'
19627 hardcode_shlibpath_var_CXX=no
19628 case $host_os in
19629 solaris2.[0-5] | solaris2.[0-5].*) ;;
19631 # The compiler driver will combine and reorder linker options,
19632 # but understands `-z linker_flag'.
19633 # Supported since Solaris 2.6 (maybe 2.5.1?)
19634 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19636 esac
19637 link_all_deplibs_CXX=yes
19639 output_verbose_link_cmd='func_echo_all'
19641 # Archives containing C++ object files must be created using
19642 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19643 # necessary to make sure instantiated templates are included
19644 # in the archive.
19645 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19647 gcx*)
19648 # Green Hills C++ Compiler
19649 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19651 # The C++ compiler must be used to create the archive.
19652 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19655 # GNU C++ compiler with Solaris linker
19656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19657 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19658 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19659 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19660 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19661 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19663 # Commands to make compiler produce verbose output that lists
19664 # what "hidden" libraries, object files and flags are used when
19665 # linking a shared library.
19666 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19667 else
19668 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19669 # platform.
19670 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19672 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19674 # Commands to make compiler produce verbose output that lists
19675 # what "hidden" libraries, object files and flags are used when
19676 # linking a shared library.
19677 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19680 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19681 case $host_os in
19682 solaris2.[0-5] | solaris2.[0-5].*) ;;
19684 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19686 esac
19689 esac
19692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19693 no_undefined_flag_CXX='${wl}-z,text'
19694 archive_cmds_need_lc_CXX=no
19695 hardcode_shlibpath_var_CXX=no
19696 runpath_var='LD_RUN_PATH'
19698 case $cc_basename in
19699 CC*)
19700 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19701 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19704 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19705 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 esac
19710 sysv5* | sco3.2v5* | sco5v6*)
19711 # Note: We can NOT use -z defs as we might desire, because we do not
19712 # link with -lc, and that would cause any symbols used from libc to
19713 # always be unresolved, which means just about no library would
19714 # ever link correctly. If we're not using GNU ld we use -z text
19715 # though, which does catch some bad symbols but isn't as heavy-handed
19716 # as -z defs.
19717 no_undefined_flag_CXX='${wl}-z,text'
19718 allow_undefined_flag_CXX='${wl}-z,nodefs'
19719 archive_cmds_need_lc_CXX=no
19720 hardcode_shlibpath_var_CXX=no
19721 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19722 hardcode_libdir_separator_CXX=':'
19723 link_all_deplibs_CXX=yes
19724 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19725 runpath_var='LD_RUN_PATH'
19727 case $cc_basename in
19728 CC*)
19729 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19730 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19732 '"$old_archive_cmds_CXX"
19733 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19734 '"$reload_cmds_CXX"
19737 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19738 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19740 esac
19743 tandem*)
19744 case $cc_basename in
19745 NCC*)
19746 # NonStop-UX NCC 3.20
19747 # FIXME: insert proper C++ library support
19748 ld_shlibs_CXX=no
19751 # FIXME: insert proper C++ library support
19752 ld_shlibs_CXX=no
19754 esac
19757 vxworks*)
19758 # FIXME: insert proper C++ library support
19759 ld_shlibs_CXX=no
19763 # FIXME: insert proper C++ library support
19764 ld_shlibs_CXX=no
19766 esac
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19769 $as_echo "$ld_shlibs_CXX" >&6; }
19770 test "$ld_shlibs_CXX" = no && can_build_shared=no
19772 GCC_CXX="$GXX"
19773 LD_CXX="$LD"
19775 ## CAVEAT EMPTOR:
19776 ## There is no encapsulation within the following macros, do not change
19777 ## the running order or otherwise move them around unless you know exactly
19778 ## what you are doing...
19779 # Dependencies to place before and after the object being linked:
19780 predep_objects_CXX=
19781 postdep_objects_CXX=
19782 predeps_CXX=
19783 postdeps_CXX=
19784 compiler_lib_search_path_CXX=
19786 cat > conftest.$ac_ext <<_LT_EOF
19787 class Foo
19789 public:
19790 Foo (void) { a = 0; }
19791 private:
19792 int a;
19794 _LT_EOF
19796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19797 (eval $ac_compile) 2>&5
19798 ac_status=$?
19799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19800 test $ac_status = 0; }; then
19801 # Parse the compiler output and extract the necessary
19802 # objects, libraries and library flags.
19804 # Sentinel used to keep track of whether or not we are before
19805 # the conftest object file.
19806 pre_test_object_deps_done=no
19808 for p in `eval "$output_verbose_link_cmd"`; do
19809 case $p in
19811 -L* | -R* | -l*)
19812 # Some compilers place space between "-{L,R}" and the path.
19813 # Remove the space.
19814 if test $p = "-L" ||
19815 test $p = "-R"; then
19816 prev=$p
19817 continue
19818 else
19819 prev=
19822 if test "$pre_test_object_deps_done" = no; then
19823 case $p in
19824 -L* | -R*)
19825 # Internal compiler library paths should come after those
19826 # provided the user. The postdeps already come after the
19827 # user supplied libs so there is no need to process them.
19828 if test -z "$compiler_lib_search_path_CXX"; then
19829 compiler_lib_search_path_CXX="${prev}${p}"
19830 else
19831 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19834 # The "-l" case would never come before the object being
19835 # linked, so don't bother handling this case.
19836 esac
19837 else
19838 if test -z "$postdeps_CXX"; then
19839 postdeps_CXX="${prev}${p}"
19840 else
19841 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19846 *.$objext)
19847 # This assumes that the test object file only shows up
19848 # once in the compiler output.
19849 if test "$p" = "conftest.$objext"; then
19850 pre_test_object_deps_done=yes
19851 continue
19854 if test "$pre_test_object_deps_done" = no; then
19855 if test -z "$predep_objects_CXX"; then
19856 predep_objects_CXX="$p"
19857 else
19858 predep_objects_CXX="$predep_objects_CXX $p"
19860 else
19861 if test -z "$postdep_objects_CXX"; then
19862 postdep_objects_CXX="$p"
19863 else
19864 postdep_objects_CXX="$postdep_objects_CXX $p"
19869 *) ;; # Ignore the rest.
19871 esac
19872 done
19874 # Clean up.
19875 rm -f a.out a.exe
19876 else
19877 echo "libtool.m4: error: problem compiling CXX test program"
19880 $RM -f confest.$objext
19882 # PORTME: override above test on systems where it is broken
19883 case $host_os in
19884 interix[3-9]*)
19885 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19886 # hack all around it, let's just trust "g++" to DTRT.
19887 predep_objects_CXX=
19888 postdep_objects_CXX=
19889 postdeps_CXX=
19892 linux*)
19893 case `$CC -V 2>&1 | sed 5q` in
19894 *Sun\ C*)
19895 # Sun C++ 5.9
19897 # The more standards-conforming stlport4 library is
19898 # incompatible with the Cstd library. Avoid specifying
19899 # it if it's in CXXFLAGS. Ignore libCrun as
19900 # -library=stlport4 depends on it.
19901 case " $CXX $CXXFLAGS " in
19902 *" -library=stlport4 "*)
19903 solaris_use_stlport4=yes
19905 esac
19907 if test "$solaris_use_stlport4" != yes; then
19908 postdeps_CXX='-library=Cstd -library=Crun'
19911 esac
19914 solaris*)
19915 case $cc_basename in
19916 CC*)
19917 # The more standards-conforming stlport4 library is
19918 # incompatible with the Cstd library. Avoid specifying
19919 # it if it's in CXXFLAGS. Ignore libCrun as
19920 # -library=stlport4 depends on it.
19921 case " $CXX $CXXFLAGS " in
19922 *" -library=stlport4 "*)
19923 solaris_use_stlport4=yes
19925 esac
19927 # Adding this requires a known-good setup of shared libraries for
19928 # Sun compiler versions before 5.6, else PIC objects from an old
19929 # archive will be linked into the output, leading to subtle bugs.
19930 if test "$solaris_use_stlport4" != yes; then
19931 postdeps_CXX='-library=Cstd -library=Crun'
19934 esac
19936 esac
19939 case " $postdeps_CXX " in
19940 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19941 esac
19942 compiler_lib_search_dirs_CXX=
19943 if test -n "${compiler_lib_search_path_CXX}"; then
19944 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19977 lt_prog_compiler_wl_CXX=
19978 lt_prog_compiler_pic_CXX=
19979 lt_prog_compiler_static_CXX=
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19982 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19984 # C++ specific cases for pic, static, wl, etc.
19985 if test "$GXX" = yes; then
19986 lt_prog_compiler_wl_CXX='-Wl,'
19987 lt_prog_compiler_static_CXX='-static'
19989 case $host_os in
19990 aix*)
19991 # All AIX code is PIC.
19992 if test "$host_cpu" = ia64; then
19993 # AIX 5 now supports IA64 processor
19994 lt_prog_compiler_static_CXX='-Bstatic'
19996 lt_prog_compiler_pic_CXX='-fPIC'
19999 amigaos*)
20000 case $host_cpu in
20001 powerpc)
20002 # see comment about AmigaOS4 .so support
20003 lt_prog_compiler_pic_CXX='-fPIC'
20005 m68k)
20006 # FIXME: we need at least 68020 code to build shared libraries, but
20007 # adding the `-m68020' flag to GCC prevents building anything better,
20008 # like `-m68040'.
20009 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20011 esac
20014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20015 # PIC is the default for these OSes.
20017 mingw* | cygwin* | os2* | pw32* | cegcc*)
20018 # This hack is so that the source file can tell whether it is being
20019 # built for inclusion in a dll (and should export symbols for example).
20020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20021 # (--disable-auto-import) libraries
20022 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20024 darwin* | rhapsody*)
20025 # PIC is the default on this platform
20026 # Common symbols not allowed in MH_DYLIB files
20027 lt_prog_compiler_pic_CXX='-fno-common'
20029 *djgpp*)
20030 # DJGPP does not support shared libraries at all
20031 lt_prog_compiler_pic_CXX=
20033 haiku*)
20034 # PIC is the default for Haiku.
20035 # The "-static" flag exists, but is broken.
20036 lt_prog_compiler_static_CXX=
20038 interix[3-9]*)
20039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20040 # Instead, we relocate shared libraries at runtime.
20042 sysv4*MP*)
20043 if test -d /usr/nec; then
20044 lt_prog_compiler_pic_CXX=-Kconform_pic
20047 hpux*)
20048 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20049 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20050 # sets the default TLS model and affects inlining.
20051 case $host_cpu in
20052 hppa*64*)
20055 lt_prog_compiler_pic_CXX='-fPIC'
20057 esac
20059 *qnx* | *nto*)
20060 # QNX uses GNU C++, but need to define -shared option too, otherwise
20061 # it will coredump.
20062 lt_prog_compiler_pic_CXX='-fPIC -shared'
20065 lt_prog_compiler_pic_CXX='-fPIC'
20067 esac
20068 else
20069 case $host_os in
20070 aix[4-9]*)
20071 # All AIX code is PIC.
20072 if test "$host_cpu" = ia64; then
20073 # AIX 5 now supports IA64 processor
20074 lt_prog_compiler_static_CXX='-Bstatic'
20075 else
20076 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20079 chorus*)
20080 case $cc_basename in
20081 cxch68*)
20082 # Green Hills C++ Compiler
20083 # _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"
20085 esac
20087 dgux*)
20088 case $cc_basename in
20089 ec++*)
20090 lt_prog_compiler_pic_CXX='-KPIC'
20092 ghcx*)
20093 # Green Hills C++ Compiler
20094 lt_prog_compiler_pic_CXX='-pic'
20098 esac
20100 freebsd* | dragonfly*)
20101 # FreeBSD uses GNU C++
20103 hpux9* | hpux10* | hpux11*)
20104 case $cc_basename in
20105 CC*)
20106 lt_prog_compiler_wl_CXX='-Wl,'
20107 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20108 if test "$host_cpu" != ia64; then
20109 lt_prog_compiler_pic_CXX='+Z'
20112 aCC*)
20113 lt_prog_compiler_wl_CXX='-Wl,'
20114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20115 case $host_cpu in
20116 hppa*64*|ia64*)
20117 # +Z the default
20120 lt_prog_compiler_pic_CXX='+Z'
20122 esac
20126 esac
20128 interix*)
20129 # This is c89, which is MS Visual C++ (no shared libs)
20130 # Anyone wants to do a port?
20132 irix5* | irix6* | nonstopux*)
20133 case $cc_basename in
20134 CC*)
20135 lt_prog_compiler_wl_CXX='-Wl,'
20136 lt_prog_compiler_static_CXX='-non_shared'
20137 # CC pic flag -KPIC is the default.
20141 esac
20143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20144 case $cc_basename in
20145 KCC*)
20146 # KAI C++ Compiler
20147 lt_prog_compiler_wl_CXX='--backend -Wl,'
20148 lt_prog_compiler_pic_CXX='-fPIC'
20150 ecpc* )
20151 # old Intel C++ for x86_64 which still supported -KPIC.
20152 lt_prog_compiler_wl_CXX='-Wl,'
20153 lt_prog_compiler_pic_CXX='-KPIC'
20154 lt_prog_compiler_static_CXX='-static'
20156 icpc* )
20157 # Intel C++, used to be incompatible with GCC.
20158 # ICC 10 doesn't accept -KPIC any more.
20159 lt_prog_compiler_wl_CXX='-Wl,'
20160 lt_prog_compiler_pic_CXX='-fPIC'
20161 lt_prog_compiler_static_CXX='-static'
20163 pgCC* | pgcpp*)
20164 # Portland Group C++ compiler
20165 lt_prog_compiler_wl_CXX='-Wl,'
20166 lt_prog_compiler_pic_CXX='-fpic'
20167 lt_prog_compiler_static_CXX='-Bstatic'
20169 cxx*)
20170 # Compaq C++
20171 # Make sure the PIC flag is empty. It appears that all Alpha
20172 # Linux and Compaq Tru64 Unix objects are PIC.
20173 lt_prog_compiler_pic_CXX=
20174 lt_prog_compiler_static_CXX='-non_shared'
20176 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20177 # IBM XL 8.0, 9.0 on PPC and BlueGene
20178 lt_prog_compiler_wl_CXX='-Wl,'
20179 lt_prog_compiler_pic_CXX='-qpic'
20180 lt_prog_compiler_static_CXX='-qstaticlink'
20183 case `$CC -V 2>&1 | sed 5q` in
20184 *Sun\ C*)
20185 # Sun C++ 5.9
20186 lt_prog_compiler_pic_CXX='-KPIC'
20187 lt_prog_compiler_static_CXX='-Bstatic'
20188 lt_prog_compiler_wl_CXX='-Qoption ld '
20190 esac
20192 esac
20194 lynxos*)
20196 m88k*)
20198 mvs*)
20199 case $cc_basename in
20200 cxx*)
20201 lt_prog_compiler_pic_CXX='-W c,exportall'
20205 esac
20207 netbsd*)
20209 *qnx* | *nto*)
20210 # QNX uses GNU C++, but need to define -shared option too, otherwise
20211 # it will coredump.
20212 lt_prog_compiler_pic_CXX='-fPIC -shared'
20214 osf3* | osf4* | osf5*)
20215 case $cc_basename in
20216 KCC*)
20217 lt_prog_compiler_wl_CXX='--backend -Wl,'
20219 RCC*)
20220 # Rational C++ 2.4.1
20221 lt_prog_compiler_pic_CXX='-pic'
20223 cxx*)
20224 # Digital/Compaq C++
20225 lt_prog_compiler_wl_CXX='-Wl,'
20226 # Make sure the PIC flag is empty. It appears that all Alpha
20227 # Linux and Compaq Tru64 Unix objects are PIC.
20228 lt_prog_compiler_pic_CXX=
20229 lt_prog_compiler_static_CXX='-non_shared'
20233 esac
20235 psos*)
20237 solaris*)
20238 case $cc_basename in
20239 CC*)
20240 # Sun C++ 4.2, 5.x and Centerline C++
20241 lt_prog_compiler_pic_CXX='-KPIC'
20242 lt_prog_compiler_static_CXX='-Bstatic'
20243 lt_prog_compiler_wl_CXX='-Qoption ld '
20245 gcx*)
20246 # Green Hills C++ Compiler
20247 lt_prog_compiler_pic_CXX='-PIC'
20251 esac
20253 sunos4*)
20254 case $cc_basename in
20255 CC*)
20256 # Sun C++ 4.x
20257 lt_prog_compiler_pic_CXX='-pic'
20258 lt_prog_compiler_static_CXX='-Bstatic'
20260 lcc*)
20261 # Lucid
20262 lt_prog_compiler_pic_CXX='-pic'
20266 esac
20268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20269 case $cc_basename in
20270 CC*)
20271 lt_prog_compiler_wl_CXX='-Wl,'
20272 lt_prog_compiler_pic_CXX='-KPIC'
20273 lt_prog_compiler_static_CXX='-Bstatic'
20275 esac
20277 tandem*)
20278 case $cc_basename in
20279 NCC*)
20280 # NonStop-UX NCC 3.20
20281 lt_prog_compiler_pic_CXX='-KPIC'
20285 esac
20287 vxworks*)
20290 lt_prog_compiler_can_build_shared_CXX=no
20292 esac
20295 case $host_os in
20296 # For platforms which do not support PIC, -DPIC is meaningless:
20297 *djgpp*)
20298 lt_prog_compiler_pic_CXX=
20301 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20303 esac
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20305 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20310 # Check to make sure the PIC flag actually works.
20312 if test -n "$lt_prog_compiler_pic_CXX"; then
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20315 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20316 $as_echo_n "(cached) " >&6
20317 else
20318 lt_cv_prog_compiler_pic_works_CXX=no
20319 ac_outfile=conftest.$ac_objext
20320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20321 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20322 # Insert the option either (1) after the last *FLAGS variable, or
20323 # (2) before a word containing "conftest.", or (3) at the end.
20324 # Note that $ac_compile itself does not contain backslashes and begins
20325 # with a dollar sign (not a hyphen), so the echo should work correctly.
20326 # The option is referenced via a variable to avoid confusing sed.
20327 lt_compile=`echo "$ac_compile" | $SED \
20328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20330 -e 's:$: $lt_compiler_flag:'`
20331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20332 (eval "$lt_compile" 2>conftest.err)
20333 ac_status=$?
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 if (exit $ac_status) && test -s "$ac_outfile"; then
20337 # The compiler can only warn and ignore the option if not recognized
20338 # So say no if there are warnings other than the usual output.
20339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20342 lt_cv_prog_compiler_pic_works_CXX=yes
20345 $RM conftest*
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20349 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20351 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20352 case $lt_prog_compiler_pic_CXX in
20353 "" | " "*) ;;
20354 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20355 esac
20356 else
20357 lt_prog_compiler_pic_CXX=
20358 lt_prog_compiler_can_build_shared_CXX=no
20366 # Check to make sure the static flag actually works.
20368 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20370 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20371 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20373 else
20374 lt_cv_prog_compiler_static_works_CXX=no
20375 save_LDFLAGS="$LDFLAGS"
20376 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20379 # The linker can only warn and ignore the option if not recognized
20380 # So say no if there are warnings
20381 if test -s conftest.err; then
20382 # Append any errors to the config.log.
20383 cat conftest.err 1>&5
20384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20386 if diff conftest.exp conftest.er2 >/dev/null; then
20387 lt_cv_prog_compiler_static_works_CXX=yes
20389 else
20390 lt_cv_prog_compiler_static_works_CXX=yes
20393 $RM -r conftest*
20394 LDFLAGS="$save_LDFLAGS"
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20398 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20400 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20402 else
20403 lt_prog_compiler_static_CXX=
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
20413 else
20414 lt_cv_prog_compiler_c_o_CXX=no
20415 $RM -r conftest 2>/dev/null
20416 mkdir conftest
20417 cd conftest
20418 mkdir out
20419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20421 lt_compiler_flag="-o out/conftest2.$ac_objext"
20422 # Insert the option either (1) after the last *FLAGS variable, or
20423 # (2) before a word containing "conftest.", or (3) at the end.
20424 # Note that $ac_compile itself does not contain backslashes and begins
20425 # with a dollar sign (not a hyphen), so the echo should work correctly.
20426 lt_compile=`echo "$ac_compile" | $SED \
20427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20429 -e 's:$: $lt_compiler_flag:'`
20430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20431 (eval "$lt_compile" 2>out/conftest.err)
20432 ac_status=$?
20433 cat out/conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20436 then
20437 # The compiler can only warn and ignore the option if not recognized
20438 # So say no if there are warnings
20439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20442 lt_cv_prog_compiler_c_o_CXX=yes
20445 chmod u+w . 2>&5
20446 $RM conftest*
20447 # SGI C++ compiler will create directory out/ii_files/ for
20448 # template instantiation
20449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20450 $RM out/* && rmdir out
20451 cd ..
20452 $RM -r conftest
20453 $RM conftest*
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20463 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20464 $as_echo_n "(cached) " >&6
20465 else
20466 lt_cv_prog_compiler_c_o_CXX=no
20467 $RM -r conftest 2>/dev/null
20468 mkdir conftest
20469 cd conftest
20470 mkdir out
20471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20473 lt_compiler_flag="-o out/conftest2.$ac_objext"
20474 # Insert the option either (1) after the last *FLAGS variable, or
20475 # (2) before a word containing "conftest.", or (3) at the end.
20476 # Note that $ac_compile itself does not contain backslashes and begins
20477 # with a dollar sign (not a hyphen), so the echo should work correctly.
20478 lt_compile=`echo "$ac_compile" | $SED \
20479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20481 -e 's:$: $lt_compiler_flag:'`
20482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20483 (eval "$lt_compile" 2>out/conftest.err)
20484 ac_status=$?
20485 cat out/conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20488 then
20489 # The compiler can only warn and ignore the option if not recognized
20490 # So say no if there are warnings
20491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20494 lt_cv_prog_compiler_c_o_CXX=yes
20497 chmod u+w . 2>&5
20498 $RM conftest*
20499 # SGI C++ compiler will create directory out/ii_files/ for
20500 # template instantiation
20501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20502 $RM out/* && rmdir out
20503 cd ..
20504 $RM -r conftest
20505 $RM conftest*
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20509 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20514 hard_links="nottested"
20515 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20516 # do not overwrite the value of need_locks provided by the user
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20518 $as_echo_n "checking if we can lock with hard links... " >&6; }
20519 hard_links=yes
20520 $RM conftest*
20521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20522 touch conftest.a
20523 ln conftest.a conftest.b 2>&5 || hard_links=no
20524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20526 $as_echo "$hard_links" >&6; }
20527 if test "$hard_links" = no; then
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20530 need_locks=warn
20532 else
20533 need_locks=no
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20541 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20542 case $host_os in
20543 aix[4-9]*)
20544 # If we're using GNU nm, then we don't want the "-C" option.
20545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20546 # Also, AIX nm treats weak defined symbols like other global defined
20547 # symbols, whereas GNU nm marks them as "W".
20548 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20549 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'
20550 else
20551 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'
20554 pw32*)
20555 export_symbols_cmds_CXX="$ltdll_cmds"
20557 cygwin* | mingw* | cegcc*)
20558 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'
20561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20563 esac
20564 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20567 $as_echo "$ld_shlibs_CXX" >&6; }
20568 test "$ld_shlibs_CXX" = no && can_build_shared=no
20570 with_gnu_ld_CXX=$with_gnu_ld
20578 # Do we need to explicitly link libc?
20580 case "x$archive_cmds_need_lc_CXX" in
20581 x|xyes)
20582 # Assume -lc should be added
20583 archive_cmds_need_lc_CXX=yes
20585 if test "$enable_shared" = yes && test "$GCC" = yes; then
20586 case $archive_cmds_CXX in
20587 *'~'*)
20588 # FIXME: we may have to deal with multi-command sequences.
20590 '$CC '*)
20591 # Test whether the compiler implicitly links with -lc since on some
20592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20593 # to ld, don't add -lc before -lgcc.
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20596 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20598 else
20599 $RM conftest*
20600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20603 (eval $ac_compile) 2>&5
20604 ac_status=$?
20605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20606 test $ac_status = 0; } 2>conftest.err; then
20607 soname=conftest
20608 lib=conftest
20609 libobjs=conftest.$ac_objext
20610 deplibs=
20611 wl=$lt_prog_compiler_wl_CXX
20612 pic_flag=$lt_prog_compiler_pic_CXX
20613 compiler_flags=-v
20614 linker_flags=-v
20615 verstring=
20616 output_objdir=.
20617 libname=conftest
20618 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20619 allow_undefined_flag_CXX=
20620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20621 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20622 ac_status=$?
20623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20624 test $ac_status = 0; }
20625 then
20626 lt_cv_archive_cmds_need_lc_CXX=no
20627 else
20628 lt_cv_archive_cmds_need_lc_CXX=yes
20630 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20631 else
20632 cat conftest.err 1>&5
20634 $RM conftest*
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20638 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20639 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20641 esac
20644 esac
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20710 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20712 library_names_spec=
20713 libname_spec='lib$name'
20714 soname_spec=
20715 shrext_cmds=".so"
20716 postinstall_cmds=
20717 postuninstall_cmds=
20718 finish_cmds=
20719 finish_eval=
20720 shlibpath_var=
20721 shlibpath_overrides_runpath=unknown
20722 version_type=none
20723 dynamic_linker="$host_os ld.so"
20724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20725 need_lib_prefix=unknown
20726 hardcode_into_libs=no
20728 # when you set need_version to no, make sure it does not cause -set_version
20729 # flags to be left without arguments
20730 need_version=unknown
20732 case $host_os in
20733 aix3*)
20734 version_type=linux
20735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20736 shlibpath_var=LIBPATH
20738 # AIX 3 has no versioning support, so we append a major version to the name.
20739 soname_spec='${libname}${release}${shared_ext}$major'
20742 aix[4-9]*)
20743 version_type=linux
20744 need_lib_prefix=no
20745 need_version=no
20746 hardcode_into_libs=yes
20747 if test "$host_cpu" = ia64; then
20748 # AIX 5 supports IA64
20749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20750 shlibpath_var=LD_LIBRARY_PATH
20751 else
20752 # With GCC up to 2.95.x, collect2 would create an import file
20753 # for dependence libraries. The import file would start with
20754 # the line `#! .'. This would cause the generated library to
20755 # depend on `.', always an invalid library. This was fixed in
20756 # development snapshots of GCC prior to 3.0.
20757 case $host_os in
20758 aix4 | aix4.[01] | aix4.[01].*)
20759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20760 echo ' yes '
20761 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20763 else
20764 can_build_shared=no
20767 esac
20768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20769 # soname into executable. Probably we can add versioning support to
20770 # collect2, so additional links can be useful in future.
20771 if test "$aix_use_runtimelinking" = yes; then
20772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20773 # instead of lib<name>.a to let people know that these are not
20774 # typical AIX shared libraries.
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20776 else
20777 # We preserve .a as extension for shared libraries through AIX4.2
20778 # and later when we are not doing run time linking.
20779 library_names_spec='${libname}${release}.a $libname.a'
20780 soname_spec='${libname}${release}${shared_ext}$major'
20782 shlibpath_var=LIBPATH
20786 amigaos*)
20787 case $host_cpu in
20788 powerpc)
20789 # Since July 2007 AmigaOS4 officially supports .so libraries.
20790 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20793 m68k)
20794 library_names_spec='$libname.ixlibrary $libname.a'
20795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20796 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'
20798 esac
20801 beos*)
20802 library_names_spec='${libname}${shared_ext}'
20803 dynamic_linker="$host_os ld.so"
20804 shlibpath_var=LIBRARY_PATH
20807 bsdi[45]*)
20808 version_type=linux
20809 need_version=no
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20811 soname_spec='${libname}${release}${shared_ext}$major'
20812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20816 # the default ld.so.conf also contains /usr/contrib/lib and
20817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20818 # libtool to hard-code these into programs
20821 cygwin* | mingw* | pw32* | cegcc*)
20822 version_type=windows
20823 shrext_cmds=".dll"
20824 need_version=no
20825 need_lib_prefix=no
20827 case $GCC,$host_os in
20828 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20829 library_names_spec='$libname.dll.a'
20830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20831 postinstall_cmds='base_file=`basename \${file}`~
20832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20833 dldir=$destdir/`dirname \$dlpath`~
20834 test -d \$dldir || mkdir -p \$dldir~
20835 $install_prog $dir/$dlname \$dldir/$dlname~
20836 chmod a+x \$dldir/$dlname~
20837 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20838 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20841 dlpath=$dir/\$dldll~
20842 $RM \$dlpath'
20843 shlibpath_overrides_runpath=yes
20845 case $host_os in
20846 cygwin*)
20847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20851 mingw* | cegcc*)
20852 # MinGW DLLs use traditional 'lib' prefix
20853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20855 pw32*)
20856 # pw32 DLLs use 'pw' prefix rather than 'lib'
20857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20859 esac
20863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20865 esac
20866 dynamic_linker='Win32 ld.exe'
20867 # FIXME: first we should search . and the directory the executable is in
20868 shlibpath_var=PATH
20871 darwin* | rhapsody*)
20872 dynamic_linker="$host_os dyld"
20873 version_type=darwin
20874 need_lib_prefix=no
20875 need_version=no
20876 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20877 soname_spec='${libname}${release}${major}$shared_ext'
20878 shlibpath_overrides_runpath=yes
20879 shlibpath_var=DYLD_LIBRARY_PATH
20880 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20885 dgux*)
20886 version_type=linux
20887 need_lib_prefix=no
20888 need_version=no
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 shlibpath_var=LD_LIBRARY_PATH
20894 freebsd* | dragonfly*)
20895 # DragonFly does not have aout. When/if they implement a new
20896 # versioning mechanism, adjust this.
20897 if test -x /usr/bin/objformat; then
20898 objformat=`/usr/bin/objformat`
20899 else
20900 case $host_os in
20901 freebsd[23].*) objformat=aout ;;
20902 *) objformat=elf ;;
20903 esac
20905 version_type=freebsd-$objformat
20906 case $version_type in
20907 freebsd-elf*)
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20909 need_version=no
20910 need_lib_prefix=no
20912 freebsd-*)
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20914 need_version=yes
20916 esac
20917 shlibpath_var=LD_LIBRARY_PATH
20918 case $host_os in
20919 freebsd2.*)
20920 shlibpath_overrides_runpath=yes
20922 freebsd3.[01]* | freebsdelf3.[01]*)
20923 shlibpath_overrides_runpath=yes
20924 hardcode_into_libs=yes
20926 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20927 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20928 shlibpath_overrides_runpath=no
20929 hardcode_into_libs=yes
20931 *) # from 4.6 on, and DragonFly
20932 shlibpath_overrides_runpath=yes
20933 hardcode_into_libs=yes
20935 esac
20938 gnu*)
20939 version_type=linux
20940 need_lib_prefix=no
20941 need_version=no
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20943 soname_spec='${libname}${release}${shared_ext}$major'
20944 shlibpath_var=LD_LIBRARY_PATH
20945 hardcode_into_libs=yes
20948 haiku*)
20949 version_type=linux
20950 need_lib_prefix=no
20951 need_version=no
20952 dynamic_linker="$host_os runtime_loader"
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20954 soname_spec='${libname}${release}${shared_ext}$major'
20955 shlibpath_var=LIBRARY_PATH
20956 shlibpath_overrides_runpath=yes
20957 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20958 hardcode_into_libs=yes
20961 hpux9* | hpux10* | hpux11*)
20962 # Give a soname corresponding to the major version so that dld.sl refuses to
20963 # link against other versions.
20964 version_type=sunos
20965 need_lib_prefix=no
20966 need_version=no
20967 case $host_cpu in
20968 ia64*)
20969 shrext_cmds='.so'
20970 hardcode_into_libs=yes
20971 dynamic_linker="$host_os dld.so"
20972 shlibpath_var=LD_LIBRARY_PATH
20973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20975 soname_spec='${libname}${release}${shared_ext}$major'
20976 if test "X$HPUX_IA64_MODE" = X32; then
20977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20978 else
20979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20983 hppa*64*)
20984 shrext_cmds='.sl'
20985 hardcode_into_libs=yes
20986 dynamic_linker="$host_os dld.sl"
20987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990 soname_spec='${libname}${release}${shared_ext}$major'
20991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20995 shrext_cmds='.sl'
20996 dynamic_linker="$host_os dld.sl"
20997 shlibpath_var=SHLIB_PATH
20998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 soname_spec='${libname}${release}${shared_ext}$major'
21002 esac
21003 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21004 postinstall_cmds='chmod 555 $lib'
21005 # or fails outright, so override atomically:
21006 install_override_mode=555
21009 interix[3-9]*)
21010 version_type=linux
21011 need_lib_prefix=no
21012 need_version=no
21013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 shlibpath_overrides_runpath=no
21018 hardcode_into_libs=yes
21021 irix5* | irix6* | nonstopux*)
21022 case $host_os in
21023 nonstopux*) version_type=nonstopux ;;
21025 if test "$lt_cv_prog_gnu_ld" = yes; then
21026 version_type=linux
21027 else
21028 version_type=irix
21029 fi ;;
21030 esac
21031 need_lib_prefix=no
21032 need_version=no
21033 soname_spec='${libname}${release}${shared_ext}$major'
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21035 case $host_os in
21036 irix5* | nonstopux*)
21037 libsuff= shlibsuff=
21040 case $LD in # libtool.m4 will add one of these switches to LD
21041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21042 libsuff= shlibsuff= libmagic=32-bit;;
21043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21044 libsuff=32 shlibsuff=N32 libmagic=N32;;
21045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21047 *) libsuff= shlibsuff= libmagic=never-match;;
21048 esac
21050 esac
21051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21052 shlibpath_overrides_runpath=no
21053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21055 hardcode_into_libs=yes
21058 # No shared lib support for Linux oldld, aout, or coff.
21059 linux*oldld* | linux*aout* | linux*coff*)
21060 dynamic_linker=no
21063 # This must be Linux ELF.
21064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21065 version_type=linux
21066 need_lib_prefix=no
21067 need_version=no
21068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21069 soname_spec='${libname}${release}${shared_ext}$major'
21070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21071 shlibpath_var=LD_LIBRARY_PATH
21072 shlibpath_overrides_runpath=no
21074 # Some binutils ld are patched to set DT_RUNPATH
21075 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21077 else
21078 lt_cv_shlibpath_overrides_runpath=no
21079 save_LDFLAGS=$LDFLAGS
21080 save_libdir=$libdir
21081 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21082 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21084 /* end confdefs.h. */
21087 main ()
21091 return 0;
21093 _ACEOF
21094 if ac_fn_cxx_try_link "$LINENO"; then :
21095 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21096 lt_cv_shlibpath_overrides_runpath=yes
21099 rm -f core conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21101 LDFLAGS=$save_LDFLAGS
21102 libdir=$save_libdir
21106 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21108 # This implies no fast_install, which is unacceptable.
21109 # Some rework will be needed to allow for fast_install
21110 # before this can be enabled.
21111 hardcode_into_libs=yes
21113 # Append ld.so.conf contents to the search path
21114 if test -f /etc/ld.so.conf; then
21115 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' ' '`
21116 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21119 # We used to test for /lib/ld.so.1 and disable shared libraries on
21120 # powerpc, because MkLinux only supported shared libraries with the
21121 # GNU dynamic linker. Since this was broken with cross compilers,
21122 # most powerpc-linux boxes support dynamic linking these days and
21123 # people can always --disable-shared, the test was removed, and we
21124 # assume the GNU/Linux dynamic linker is in use.
21125 dynamic_linker='GNU/Linux ld.so'
21128 netbsd*)
21129 version_type=sunos
21130 need_lib_prefix=no
21131 need_version=no
21132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21135 dynamic_linker='NetBSD (a.out) ld.so'
21136 else
21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21138 soname_spec='${libname}${release}${shared_ext}$major'
21139 dynamic_linker='NetBSD ld.elf_so'
21141 shlibpath_var=LD_LIBRARY_PATH
21142 shlibpath_overrides_runpath=yes
21143 hardcode_into_libs=yes
21146 newsos6)
21147 version_type=linux
21148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21149 shlibpath_var=LD_LIBRARY_PATH
21150 shlibpath_overrides_runpath=yes
21153 *nto* | *qnx*)
21154 version_type=qnx
21155 need_lib_prefix=no
21156 need_version=no
21157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21158 soname_spec='${libname}${release}${shared_ext}$major'
21159 shlibpath_var=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath=no
21161 hardcode_into_libs=yes
21162 dynamic_linker='ldqnx.so'
21165 openbsd*)
21166 version_type=sunos
21167 sys_lib_dlsearch_path_spec="/usr/lib"
21168 need_lib_prefix=no
21169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21170 case $host_os in
21171 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21172 *) need_version=no ;;
21173 esac
21174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21178 case $host_os in
21179 openbsd2.[89] | openbsd2.[89].*)
21180 shlibpath_overrides_runpath=no
21183 shlibpath_overrides_runpath=yes
21185 esac
21186 else
21187 shlibpath_overrides_runpath=yes
21191 os2*)
21192 libname_spec='$name'
21193 shrext_cmds=".dll"
21194 need_lib_prefix=no
21195 library_names_spec='$libname${shared_ext} $libname.a'
21196 dynamic_linker='OS/2 ld.exe'
21197 shlibpath_var=LIBPATH
21200 osf3* | osf4* | osf5*)
21201 version_type=osf
21202 need_lib_prefix=no
21203 need_version=no
21204 soname_spec='${libname}${release}${shared_ext}$major'
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 shlibpath_var=LD_LIBRARY_PATH
21207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21211 rdos*)
21212 dynamic_linker=no
21215 solaris*)
21216 version_type=linux
21217 need_lib_prefix=no
21218 need_version=no
21219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21220 soname_spec='${libname}${release}${shared_ext}$major'
21221 shlibpath_var=LD_LIBRARY_PATH
21222 shlibpath_overrides_runpath=yes
21223 hardcode_into_libs=yes
21224 # ldd complains unless libraries are executable
21225 postinstall_cmds='chmod +x $lib'
21228 sunos4*)
21229 version_type=sunos
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 shlibpath_overrides_runpath=yes
21234 if test "$with_gnu_ld" = yes; then
21235 need_lib_prefix=no
21237 need_version=yes
21240 sysv4 | sysv4.3*)
21241 version_type=linux
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243 soname_spec='${libname}${release}${shared_ext}$major'
21244 shlibpath_var=LD_LIBRARY_PATH
21245 case $host_vendor in
21246 sni)
21247 shlibpath_overrides_runpath=no
21248 need_lib_prefix=no
21249 runpath_var=LD_RUN_PATH
21251 siemens)
21252 need_lib_prefix=no
21254 motorola)
21255 need_lib_prefix=no
21256 need_version=no
21257 shlibpath_overrides_runpath=no
21258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21260 esac
21263 sysv4*MP*)
21264 if test -d /usr/nec ;then
21265 version_type=linux
21266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21267 soname_spec='$libname${shared_ext}.$major'
21268 shlibpath_var=LD_LIBRARY_PATH
21272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21273 version_type=freebsd-elf
21274 need_lib_prefix=no
21275 need_version=no
21276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21277 soname_spec='${libname}${release}${shared_ext}$major'
21278 shlibpath_var=LD_LIBRARY_PATH
21279 shlibpath_overrides_runpath=yes
21280 hardcode_into_libs=yes
21281 if test "$with_gnu_ld" = yes; then
21282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21283 else
21284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21285 case $host_os in
21286 sco3.2v5*)
21287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21289 esac
21291 sys_lib_dlsearch_path_spec='/usr/lib'
21294 tpf*)
21295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21296 version_type=linux
21297 need_lib_prefix=no
21298 need_version=no
21299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 shlibpath_var=LD_LIBRARY_PATH
21301 shlibpath_overrides_runpath=no
21302 hardcode_into_libs=yes
21305 uts4*)
21306 version_type=linux
21307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21308 soname_spec='${libname}${release}${shared_ext}$major'
21309 shlibpath_var=LD_LIBRARY_PATH
21313 dynamic_linker=no
21315 esac
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21317 $as_echo "$dynamic_linker" >&6; }
21318 test "$dynamic_linker" = no && can_build_shared=no
21320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21321 if test "$GCC" = yes; then
21322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21371 hardcode_action_CXX=
21372 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21373 test -n "$runpath_var_CXX" ||
21374 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21376 # We can hardcode non-existent directories.
21377 if test "$hardcode_direct_CXX" != no &&
21378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21379 # have to relink, otherwise we might link with an installed library
21380 # when we should be linking with a yet-to-be-installed one
21381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21382 test "$hardcode_minus_L_CXX" != no; then
21383 # Linking always hardcodes the temporary library directory.
21384 hardcode_action_CXX=relink
21385 else
21386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21387 hardcode_action_CXX=immediate
21389 else
21390 # We cannot hardcode anything, or else we can only hardcode existing
21391 # directories.
21392 hardcode_action_CXX=unsupported
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21395 $as_echo "$hardcode_action_CXX" >&6; }
21397 if test "$hardcode_action_CXX" = relink ||
21398 test "$inherit_rpath_CXX" = yes; then
21399 # Fast installation is not supported
21400 enable_fast_install=no
21401 elif test "$shlibpath_overrides_runpath" = yes ||
21402 test "$enable_shared" = no; then
21403 # Fast installation is not necessary
21404 enable_fast_install=needless
21413 fi # test -n "$compiler"
21415 CC=$lt_save_CC
21416 LDCXX=$LD
21417 LD=$lt_save_LD
21418 GCC=$lt_save_GCC
21419 with_gnu_ld=$lt_save_with_gnu_ld
21420 lt_cv_path_LDCXX=$lt_cv_path_LD
21421 lt_cv_path_LD=$lt_save_path_LD
21422 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21423 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21424 fi # test "$_lt_caught_CXX_error" != yes
21426 ac_ext=c
21427 ac_cpp='$CPP $CPPFLAGS'
21428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447 # Only expand once:
21453 # Identify the assembler which will work hand-in-glove with the newly
21454 # built GCC, so that we can examine its features. This is the assembler
21455 # which will be driven by the driver program.
21457 # If build != host, and we aren't building gas in-tree, we identify a
21458 # build->target assembler and hope that it will have the same features
21459 # as the host->target assembler we'll be using.
21460 gcc_cv_gas_major_version=
21461 gcc_cv_gas_minor_version=
21462 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21464 if test "${gcc_cv_as+set}" = set; then :
21466 else
21468 if test -x "$DEFAULT_ASSEMBLER"; then
21469 gcc_cv_as="$DEFAULT_ASSEMBLER"
21470 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21471 && test -f ../gas/Makefile \
21472 && test x$build = x$host; then
21473 gcc_cv_as=../gas/as-new$build_exeext
21474 elif test -x as$build_exeext; then
21475 # Build using assembler in the current directory.
21476 gcc_cv_as=./as$build_exeext
21477 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21478 gcc_cv_as="$AS_FOR_TARGET"
21479 else
21480 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21481 set dummy $AS_FOR_TARGET; ac_word=$2
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21483 $as_echo_n "checking for $ac_word... " >&6; }
21484 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21486 else
21487 case $gcc_cv_as in
21488 [\\/]* | ?:[\\/]*)
21489 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21493 for as_dir in $PATH
21495 IFS=$as_save_IFS
21496 test -z "$as_dir" && as_dir=.
21497 for ac_exec_ext in '' $ac_executable_extensions; do
21498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21499 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21501 break 2
21503 done
21504 done
21505 IFS=$as_save_IFS
21508 esac
21510 gcc_cv_as=$ac_cv_path_gcc_cv_as
21511 if test -n "$gcc_cv_as"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21513 $as_echo "$gcc_cv_as" >&6; }
21514 else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516 $as_echo "no" >&6; }
21523 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21525 case "$ORIGINAL_AS_FOR_TARGET" in
21526 ./as | ./as$build_exeext) ;;
21527 *) ac_config_files="$ac_config_files as:exec-tool.in"
21529 esac
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21532 $as_echo_n "checking what assembler to use... " >&6; }
21533 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21534 # Single tree build which includes gas. We want to prefer it
21535 # over whatever linker top-level may have detected, since
21536 # we'll use what we're building after installation anyway.
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21538 $as_echo "newly built gas" >&6; }
21539 in_tree_gas=yes
21540 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21541 for f in $gcc_cv_as_bfd_srcdir/configure \
21542 $gcc_cv_as_gas_srcdir/configure \
21543 $gcc_cv_as_gas_srcdir/configure.in \
21544 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21545 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21546 if test x$gcc_cv_gas_version != x; then
21547 break
21549 done
21550 case $gcc_cv_gas_version in
21551 VERSION=[0-9]*) ;;
21552 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21553 esac
21554 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21555 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21556 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21557 case $gcc_cv_gas_patch_version in
21558 "") gcc_cv_gas_patch_version="0" ;;
21559 esac
21560 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21561 + $gcc_cv_gas_minor_version \) \* 1000 \
21562 + $gcc_cv_gas_patch_version`
21564 in_tree_gas_is_elf=no
21565 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21566 || (grep 'obj_format = multi' ../gas/Makefile \
21567 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21568 then
21569 in_tree_gas_is_elf=yes
21571 else
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21573 $as_echo "$gcc_cv_as" >&6; }
21574 in_tree_gas=no
21577 # Identify the linker which will work hand-in-glove with the newly
21578 # built GCC, so that we can examine its features. This is the linker
21579 # which will be driven by the driver program.
21581 # If build != host, and we aren't building gas in-tree, we identify a
21582 # build->target linker and hope that it will have the same features
21583 # as the host->target linker we'll be using.
21584 gcc_cv_gld_major_version=
21585 gcc_cv_gld_minor_version=
21586 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21587 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21589 if test "${gcc_cv_ld+set}" = set; then :
21591 else
21593 if test -x "$DEFAULT_LINKER"; then
21594 gcc_cv_ld="$DEFAULT_LINKER"
21595 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21596 && test -f ../ld/Makefile \
21597 && test x$build = x$host; then
21598 gcc_cv_ld=../ld/ld-new$build_exeext
21599 elif test -x collect-ld$build_exeext; then
21600 # Build using linker in the current directory.
21601 gcc_cv_ld=./collect-ld$build_exeext
21602 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21603 gcc_cv_ld="$LD_FOR_TARGET"
21604 else
21605 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21606 set dummy $LD_FOR_TARGET; ac_word=$2
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21608 $as_echo_n "checking for $ac_word... " >&6; }
21609 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21611 else
21612 case $gcc_cv_ld in
21613 [\\/]* | ?:[\\/]*)
21614 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21618 for as_dir in $PATH
21620 IFS=$as_save_IFS
21621 test -z "$as_dir" && as_dir=.
21622 for ac_exec_ext in '' $ac_executable_extensions; do
21623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21624 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21626 break 2
21628 done
21629 done
21630 IFS=$as_save_IFS
21633 esac
21635 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21636 if test -n "$gcc_cv_ld"; then
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21638 $as_echo "$gcc_cv_ld" >&6; }
21639 else
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641 $as_echo "no" >&6; }
21648 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21649 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21650 # if the PLUGIN_LD is set ld-new, just have it as ld
21651 # as that is the installed named.
21652 if test x$PLUGIN_LD_SUFFIX = xld-new \
21653 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21654 PLUGIN_LD_SUFFIX=ld
21657 # Check whether --with-plugin-ld was given.
21658 if test "${with_plugin_ld+set}" = set; then :
21659 withval=$with_plugin_ld; if test x"$withval" != x; then
21660 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21661 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21667 cat >>confdefs.h <<_ACEOF
21668 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21669 _ACEOF
21672 # Check to see if we are using gold instead of ld
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21674 $as_echo_n "checking whether we are using gold... " >&6; }
21675 ld_is_gold=no
21676 if test x$gcc_cv_ld != x; then
21677 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21678 | grep "GNU gold" > /dev/null; then
21679 ld_is_gold=yes
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21683 $as_echo "$ld_is_gold" >&6; }
21685 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21687 case "$ORIGINAL_LD_FOR_TARGET" in
21688 ./collect-ld | ./collect-ld$build_exeext) ;;
21689 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21691 esac
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21694 $as_echo_n "checking what linker to use... " >&6; }
21695 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21696 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21697 # Single tree build which includes ld. We want to prefer it
21698 # over whatever linker top-level may have detected, since
21699 # we'll use what we're building after installation anyway.
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21701 $as_echo "newly built ld" >&6; }
21702 in_tree_ld=yes
21703 in_tree_ld_is_elf=no
21704 if (grep 'EMUL = .*elf' ../ld/Makefile \
21705 || grep 'EMUL = .*linux' ../ld/Makefile \
21706 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21707 in_tree_ld_is_elf=yes
21708 elif test "$ld_is_gold" = yes; then
21709 in_tree_ld_is_elf=yes
21711 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
21713 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21714 if test x$gcc_cv_gld_version != x; then
21715 break
21717 done
21718 case $gcc_cv_gld_version in
21719 VERSION=[0-9]*) ;;
21720 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21721 esac
21722 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21723 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21724 else
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21726 $as_echo "$gcc_cv_ld" >&6; }
21727 in_tree_ld=no
21730 # Figure out what nm we will be using.
21731 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21732 if test "${gcc_cv_nm+set}" = set; then :
21734 else
21736 if test -f $gcc_cv_binutils_srcdir/configure.in \
21737 && test -f ../binutils/Makefile \
21738 && test x$build = x$host; then
21739 gcc_cv_nm=../binutils/nm-new$build_exeext
21740 elif test -x nm$build_exeext; then
21741 gcc_cv_nm=./nm$build_exeext
21742 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21743 gcc_cv_nm="$NM_FOR_TARGET"
21744 else
21745 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21746 set dummy $NM_FOR_TARGET; ac_word=$2
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21748 $as_echo_n "checking for $ac_word... " >&6; }
21749 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21751 else
21752 case $gcc_cv_nm in
21753 [\\/]* | ?:[\\/]*)
21754 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21758 for as_dir in $PATH
21760 IFS=$as_save_IFS
21761 test -z "$as_dir" && as_dir=.
21762 for ac_exec_ext in '' $ac_executable_extensions; do
21763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21764 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21766 break 2
21768 done
21769 done
21770 IFS=$as_save_IFS
21773 esac
21775 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21776 if test -n "$gcc_cv_nm"; then
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21778 $as_echo "$gcc_cv_nm" >&6; }
21779 else
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21781 $as_echo "no" >&6; }
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21789 $as_echo_n "checking what nm to use... " >&6; }
21790 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21791 # Single tree build which includes binutils.
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21793 $as_echo "newly built nm" >&6; }
21794 in_tree_nm=yes
21795 else
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21797 $as_echo "$gcc_cv_nm" >&6; }
21798 in_tree_nm=no
21801 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21803 case "$ORIGINAL_NM_FOR_TARGET" in
21804 ./nm | ./nm$build_exeext) ;;
21805 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21807 esac
21810 # Figure out what objdump we will be using.
21811 if test "${gcc_cv_objdump+set}" = set; then :
21813 else
21815 if test -f $gcc_cv_binutils_srcdir/configure.in \
21816 && test -f ../binutils/Makefile \
21817 && test x$build = x$host; then
21818 # Single tree build which includes binutils.
21819 gcc_cv_objdump=../binutils/objdump$build_exeext
21820 elif test -x objdump$build_exeext; then
21821 gcc_cv_objdump=./objdump$build_exeext
21822 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21823 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21824 else
21825 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21826 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21828 $as_echo_n "checking for $ac_word... " >&6; }
21829 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21830 $as_echo_n "(cached) " >&6
21831 else
21832 case $gcc_cv_objdump in
21833 [\\/]* | ?:[\\/]*)
21834 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21838 for as_dir in $PATH
21840 IFS=$as_save_IFS
21841 test -z "$as_dir" && as_dir=.
21842 for ac_exec_ext in '' $ac_executable_extensions; do
21843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21844 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21846 break 2
21848 done
21849 done
21850 IFS=$as_save_IFS
21853 esac
21855 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21856 if test -n "$gcc_cv_objdump"; then
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21858 $as_echo "$gcc_cv_objdump" >&6; }
21859 else
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21861 $as_echo "no" >&6; }
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21869 $as_echo_n "checking what objdump to use... " >&6; }
21870 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21871 # Single tree build which includes binutils.
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21873 $as_echo "newly built objdump" >&6; }
21874 elif test x$gcc_cv_objdump = x; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21876 $as_echo "not found" >&6; }
21877 else
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21879 $as_echo "$gcc_cv_objdump" >&6; }
21882 # Figure out what readelf we will be using.
21883 if test "${gcc_cv_readelf+set}" = set; then :
21885 else
21887 if test -f $gcc_cv_binutils_srcdir/configure.in \
21888 && test -f ../binutils/Makefile \
21889 && test x$build = x$host; then
21890 # Single tree build which includes binutils.
21891 gcc_cv_readelf=../binutils/readelf$build_exeext
21892 elif test -x readelf$build_exeext; then
21893 gcc_cv_readelf=./readelf$build_exeext
21894 else
21895 # Extract the first word of "readelf", so it can be a program name with args.
21896 set dummy readelf; ac_word=$2
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21898 $as_echo_n "checking for $ac_word... " >&6; }
21899 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21900 $as_echo_n "(cached) " >&6
21901 else
21902 case $gcc_cv_readelf in
21903 [\\/]* | ?:[\\/]*)
21904 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908 for as_dir in $PATH
21910 IFS=$as_save_IFS
21911 test -z "$as_dir" && as_dir=.
21912 for ac_exec_ext in '' $ac_executable_extensions; do
21913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21914 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21916 break 2
21918 done
21919 done
21920 IFS=$as_save_IFS
21923 esac
21925 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21926 if test -n "$gcc_cv_readelf"; then
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21928 $as_echo "$gcc_cv_readelf" >&6; }
21929 else
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21931 $as_echo "no" >&6; }
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21939 $as_echo_n "checking what readelf to use... " >&6; }
21940 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21941 # Single tree build which includes binutils.
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21943 $as_echo "newly built readelf" >&6; }
21944 elif test x$gcc_cv_readelf = x; then
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21946 $as_echo "not found" >&6; }
21947 else
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21949 $as_echo "$gcc_cv_readelf" >&6; }
21952 # Figure out what assembler alignment features are present.
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21954 $as_echo_n "checking assembler flags... " >&6; }
21955 if test "${gcc_cv_as_flags+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21957 else
21958 case "$target" in
21959 i[34567]86-*-linux*)
21960 gcc_cv_as_flags="--32"
21962 powerpc*-*-darwin*)
21963 gcc_cv_as_flags="-arch ppc"
21966 gcc_cv_as_flags=" "
21968 esac
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21971 $as_echo "$gcc_cv_as_flags" >&6; }
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21974 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21975 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21976 $as_echo_n "(cached) " >&6
21977 else
21978 gcc_cv_as_balign_and_p2align=no
21979 if test $in_tree_gas = yes; then
21980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21981 then gcc_cv_as_balign_and_p2align=yes
21983 elif test x$gcc_cv_as != x; then
21984 $as_echo '.balign 4
21985 .p2align 2' > conftest.s
21986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }
21992 then
21993 gcc_cv_as_balign_and_p2align=yes
21994 else
21995 echo "configure: failed program was" >&5
21996 cat conftest.s >&5
21998 rm -f conftest.o conftest.s
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22002 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22003 if test $gcc_cv_as_balign_and_p2align = yes; then
22005 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22010 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22011 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22013 else
22014 gcc_cv_as_max_skip_p2align=no
22015 if test $in_tree_gas = yes; then
22016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22017 then gcc_cv_as_max_skip_p2align=yes
22019 elif test x$gcc_cv_as != x; then
22020 $as_echo '.p2align 4,,7' > conftest.s
22021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22026 test $ac_status = 0; }; }
22027 then
22028 gcc_cv_as_max_skip_p2align=yes
22029 else
22030 echo "configure: failed program was" >&5
22031 cat conftest.s >&5
22033 rm -f conftest.o conftest.s
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22037 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22038 if test $gcc_cv_as_max_skip_p2align = yes; then
22040 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22045 $as_echo_n "checking assembler for .literal16... " >&6; }
22046 if test "${gcc_cv_as_literal16+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
22048 else
22049 gcc_cv_as_literal16=no
22050 if test $in_tree_gas = yes; then
22051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22052 then gcc_cv_as_literal16=yes
22054 elif test x$gcc_cv_as != x; then
22055 $as_echo '.literal16' > conftest.s
22056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; }
22062 then
22063 gcc_cv_as_literal16=yes
22064 else
22065 echo "configure: failed program was" >&5
22066 cat conftest.s >&5
22068 rm -f conftest.o conftest.s
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22072 $as_echo "$gcc_cv_as_literal16" >&6; }
22073 if test $gcc_cv_as_literal16 = yes; then
22075 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22080 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22081 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22084 gcc_cv_as_subsection_m1=no
22085 if test $in_tree_gas = yes; then
22086 if test $in_tree_gas_is_elf = yes \
22087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22088 then gcc_cv_as_subsection_m1=yes
22090 elif test x$gcc_cv_as != x; then
22091 $as_echo 'conftest_label1: .word 0
22092 .subsection -1
22093 conftest_label2: .word 0
22094 .previous' > conftest.s
22095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22101 then
22102 if test x$gcc_cv_nm != x; then
22103 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22104 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22105 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22106 then :
22107 else gcc_cv_as_subsection_m1=yes
22109 rm -f conftest.nm1 conftest.nm2
22111 else
22112 echo "configure: failed program was" >&5
22113 cat conftest.s >&5
22115 rm -f conftest.o conftest.s
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22119 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22120 if test $gcc_cv_as_subsection_m1 = yes; then
22122 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22127 $as_echo_n "checking assembler for .weak... " >&6; }
22128 if test "${gcc_cv_as_weak+set}" = set; then :
22129 $as_echo_n "(cached) " >&6
22130 else
22131 gcc_cv_as_weak=no
22132 if test $in_tree_gas = yes; then
22133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22134 then gcc_cv_as_weak=yes
22136 elif test x$gcc_cv_as != x; then
22137 $as_echo ' .weak foobar' > conftest.s
22138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22140 (eval $ac_try) 2>&5
22141 ac_status=$?
22142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22143 test $ac_status = 0; }; }
22144 then
22145 gcc_cv_as_weak=yes
22146 else
22147 echo "configure: failed program was" >&5
22148 cat conftest.s >&5
22150 rm -f conftest.o conftest.s
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22154 $as_echo "$gcc_cv_as_weak" >&6; }
22155 if test $gcc_cv_as_weak = yes; then
22157 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22162 $as_echo_n "checking assembler for .weakref... " >&6; }
22163 if test "${gcc_cv_as_weakref+set}" = set; then :
22164 $as_echo_n "(cached) " >&6
22165 else
22166 gcc_cv_as_weakref=no
22167 if test $in_tree_gas = yes; then
22168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22169 then gcc_cv_as_weakref=yes
22171 elif test x$gcc_cv_as != x; then
22172 $as_echo ' .weakref foobar, barfnot' > conftest.s
22173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22175 (eval $ac_try) 2>&5
22176 ac_status=$?
22177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22178 test $ac_status = 0; }; }
22179 then
22180 gcc_cv_as_weakref=yes
22181 else
22182 echo "configure: failed program was" >&5
22183 cat conftest.s >&5
22185 rm -f conftest.o conftest.s
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22189 $as_echo "$gcc_cv_as_weakref" >&6; }
22190 if test $gcc_cv_as_weakref = yes; then
22192 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22197 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22198 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22199 $as_echo_n "(cached) " >&6
22200 else
22201 gcc_cv_as_nsubspa_comdat=no
22202 if test $in_tree_gas = yes; then
22203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22204 then gcc_cv_as_nsubspa_comdat=yes
22206 elif test x$gcc_cv_as != x; then
22207 $as_echo ' .SPACE $TEXT$
22208 .NSUBSPA $CODE$,COMDAT' > conftest.s
22209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22214 test $ac_status = 0; }; }
22215 then
22216 gcc_cv_as_nsubspa_comdat=yes
22217 else
22218 echo "configure: failed program was" >&5
22219 cat conftest.s >&5
22221 rm -f conftest.o conftest.s
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22225 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22226 if test $gcc_cv_as_nsubspa_comdat = yes; then
22228 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22232 # .hidden needs to be supported in both the assembler and the linker,
22233 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22234 # This is irritatingly difficult to feature test for; we have to check the
22235 # date string after the version number. If we've got an in-tree
22236 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22237 # to be safe.
22238 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22240 $as_echo_n "checking assembler for .hidden... " >&6; }
22241 if test "${gcc_cv_as_hidden+set}" = set; then :
22242 $as_echo_n "(cached) " >&6
22243 else
22244 gcc_cv_as_hidden=no
22245 if test $in_tree_gas = yes; then
22246 if test $in_tree_gas_is_elf = yes \
22247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22248 then gcc_cv_as_hidden=yes
22250 elif test x$gcc_cv_as != x; then
22251 $as_echo ' .hidden foobar
22252 foobar:' > conftest.s
22253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22258 test $ac_status = 0; }; }
22259 then
22261 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22262 # STV_HIDDEN, so disable .hidden support if so.
22263 case "${target}" in
22264 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22265 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22266 cat > conftest.s <<EOF
22267 .globl hidden
22268 .hidden hidden
22269 hidden:
22270 .globl default
22271 .set default,hidden
22273 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22274 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22275 grep '\.hidden default' > /dev/null; then
22276 gcc_cv_as_hidden=no
22277 else
22278 gcc_cv_as_hidden=yes
22280 else
22281 # Assume bug is present if objdump is missing.
22282 gcc_cv_as_hidden=no
22286 gcc_cv_as_hidden=yes
22288 esac
22289 else
22290 echo "configure: failed program was" >&5
22291 cat conftest.s >&5
22293 rm -f conftest.o conftest.s
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22297 $as_echo "$gcc_cv_as_hidden" >&6; }
22299 case "${target}" in
22300 *-*-darwin*)
22301 # Darwin as has some visibility support, though with a different syntax.
22302 gcc_cv_as_hidden=yes
22304 esac
22306 # gnu_indirect_function type is an extension proposed at
22307 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22308 # selection of function implementation
22309 # Check whether --enable-gnu-indirect-function was given.
22310 if test "${enable_gnu_indirect_function+set}" = set; then :
22311 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22312 yes | no) ;;
22313 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22314 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22315 esac
22316 else
22317 enable_gnu_indirect_function="$default_gnu_indirect_function"
22320 if test x$enable_gnu_indirect_function = xyes; then
22322 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22326 if test $in_tree_ld != yes ; then
22327 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22328 if echo "$ld_ver" | grep GNU > /dev/null; then
22329 if test x"$ld_is_gold" = xyes; then
22330 # GNU gold --version looks like this:
22332 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22334 # We extract the binutils version which is more familiar and specific
22335 # than the gold version.
22336 ld_vers=`echo $ld_ver | sed -n \
22337 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22338 else
22339 # GNU ld --version looks like this:
22341 # GNU ld (GNU Binutils) 2.21.51.20110225
22342 ld_vers=`echo $ld_ver | sed -n \
22343 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22345 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'`
22346 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22347 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22348 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22349 else
22350 case "${target}" in
22351 *-*-solaris2*)
22352 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22353 # format.
22355 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22356 # /usr/ccs/bin/ld has been configured.
22357 ld_ver=`$gcc_cv_ld -V 2>&1`
22358 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22359 ld_vers=`echo $ld_ver | sed -n \
22360 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22361 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22362 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22365 esac
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22370 $as_echo_n "checking linker for .hidden support... " >&6; }
22371 if test "${gcc_cv_ld_hidden+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22373 else
22374 if test $in_tree_ld = yes ; then
22375 gcc_cv_ld_hidden=no
22376 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 \
22377 && test $in_tree_ld_is_elf = yes; then
22378 gcc_cv_ld_hidden=yes
22380 else
22381 gcc_cv_ld_hidden=yes
22382 if test x"$ld_is_gold" = xyes; then
22384 elif echo "$ld_ver" | grep GNU > /dev/null; then
22385 case "${target}" in
22386 mmix-knuth-mmixware)
22387 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22388 gcc_cv_ld_hidden=no
22390 esac
22391 if test 0"$ld_date" -lt 20020404; then
22392 if test -n "$ld_date"; then
22393 # If there was date string, but was earlier than 2002-04-04, fail
22394 gcc_cv_ld_hidden=no
22395 elif test -z "$ld_vers"; then
22396 # If there was no date string nor ld version number, something is wrong
22397 gcc_cv_ld_hidden=no
22398 else
22399 test -z "$ld_vers_patch" && ld_vers_patch=0
22400 if test "$ld_vers_major" -lt 2; then
22401 gcc_cv_ld_hidden=no
22402 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22403 gcc_cv_ld_hidden="no"
22404 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22405 gcc_cv_ld_hidden=no
22409 else
22410 case "${target}" in
22411 *-*-darwin*)
22412 # Darwin ld has some visibility support.
22413 gcc_cv_ld_hidden=yes
22415 hppa64*-*-hpux* | ia64*-*-hpux*)
22416 gcc_cv_ld_hidden=yes
22418 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22419 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22420 # .symbolic was only added in Solaris 9 12/02.
22421 gcc_cv_ld_hidden=yes
22424 gcc_cv_ld_hidden=no
22426 esac
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22431 $as_echo "$gcc_cv_ld_hidden" >&6; }
22432 libgcc_visibility=no
22435 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22436 libgcc_visibility=yes
22438 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22443 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22444 gcc_cv_ld_ro_rw_mix=unknown
22445 if test $in_tree_ld = yes ; then
22446 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 \
22447 && test $in_tree_ld_is_elf = yes; then
22448 gcc_cv_ld_ro_rw_mix=read-write
22450 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22451 echo '.section myfoosect, "a"' > conftest1.s
22452 echo '.section myfoosect, "aw"' > conftest2.s
22453 echo '.byte 1' >> conftest2.s
22454 echo '.section myfoosect, "a"' > conftest3.s
22455 echo '.byte 0' >> conftest3.s
22456 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22457 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22458 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22459 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22460 conftest2.o conftest3.o > /dev/null 2>&1; then
22461 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22462 | sed -e '/myfoosect/!d' -e N`
22463 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22464 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22465 gcc_cv_ld_ro_rw_mix=read-only
22466 else
22467 gcc_cv_ld_ro_rw_mix=read-write
22471 rm -f conftest.* conftest[123].*
22473 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22475 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22479 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22481 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22482 case "${target}" in
22483 *-*-solaris2*)
22485 # Solaris 2 ld -V output looks like this for a regular version:
22487 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22489 # but test versions add stuff at the end:
22491 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22493 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22494 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22495 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22496 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22497 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22498 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22501 esac
22504 # Check whether --enable-initfini-array was given.
22505 if test "${enable_initfini_array+set}" = set; then :
22506 enableval=$enable_initfini_array;
22507 else
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22510 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22511 if test "${gcc_cv_initfini_array+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22513 else
22514 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22515 case "${target}" in
22516 ia64-*)
22517 if test "$cross_compiling" = yes; then :
22518 gcc_cv_initfini_array=no
22519 else
22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h. */
22523 #ifndef __ELF__
22524 #error Not an ELF OS
22525 #endif
22526 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22527 if it can be used. */
22528 static int x = -1;
22529 int main (void) { return x; }
22530 int foo (void) { x = 0; }
22531 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22533 _ACEOF
22534 if ac_fn_c_try_run "$LINENO"; then :
22535 gcc_cv_initfini_array=yes
22536 else
22537 gcc_cv_initfini_array=no
22539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22540 conftest.$ac_objext conftest.beam conftest.$ac_ext
22544 gcc_cv_initfini_array=no
22545 if test $in_tree_ld = yes ; then
22546 if test "$gcc_cv_gld_major_version" -eq 2 \
22547 -a "$gcc_cv_gld_minor_version" -ge 22 \
22548 -o "$gcc_cv_gld_major_version" -gt 2 \
22549 && test $in_tree_ld_is_elf = yes; then
22550 gcc_cv_initfini_array=yes
22552 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22553 cat > conftest.s <<\EOF
22554 .section .dtors,"a",%progbits
22555 .balign 4
22556 .byte 'A', 'A', 'A', 'A'
22557 .section .ctors,"a",%progbits
22558 .balign 4
22559 .byte 'B', 'B', 'B', 'B'
22560 .section .fini_array.65530,"a",%progbits
22561 .balign 4
22562 .byte 'C', 'C', 'C', 'C'
22563 .section .init_array.65530,"a",%progbits
22564 .balign 4
22565 .byte 'D', 'D', 'D', 'D'
22566 .section .dtors.64528,"a",%progbits
22567 .balign 4
22568 .byte 'E', 'E', 'E', 'E'
22569 .section .ctors.64528,"a",%progbits
22570 .balign 4
22571 .byte 'F', 'F', 'F', 'F'
22572 .section .fini_array.01005,"a",%progbits
22573 .balign 4
22574 .byte 'G', 'G', 'G', 'G'
22575 .section .init_array.01005,"a",%progbits
22576 .balign 4
22577 .byte 'H', 'H', 'H', 'H'
22578 .text
22579 .globl _start
22580 _start:
22582 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22583 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22584 && $gcc_cv_objdump -s -j .init_array conftest \
22585 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22586 && $gcc_cv_objdump -s -j .fini_array conftest \
22587 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22588 gcc_cv_initfini_array=yes
22590 rm -f conftest conftest.*
22592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22595 #ifndef __ELF__
22596 # error Not an ELF OS
22597 #endif
22598 #include <stdlib.h>
22599 #if defined __GLIBC_PREREQ
22600 # if __GLIBC_PREREQ (2, 4)
22601 # else
22602 # error GLIBC 2.4 required
22603 # endif
22604 #else
22605 # if defined __sun__ && defined __svr4__
22606 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22607 # else
22608 # error The C library not known to support .init_array/.fini_array
22609 # endif
22610 #endif
22612 _ACEOF
22613 if ac_fn_c_try_cpp "$LINENO"; then :
22615 else
22616 gcc_cv_initfini_array=no
22618 rm -f conftest.err conftest.$ac_ext;;
22619 esac
22620 else
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22622 $as_echo_n "checking cross compile... guessing... " >&6; }
22623 gcc_cv_initfini_array=no
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22627 $as_echo "$gcc_cv_initfini_array" >&6; }
22628 enable_initfini_array=$gcc_cv_initfini_array
22632 if test $enable_initfini_array = yes; then
22634 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22638 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22640 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22641 if test "${gcc_cv_as_leb128+set}" = set; then :
22642 $as_echo_n "(cached) " >&6
22643 else
22644 gcc_cv_as_leb128=no
22645 if test $in_tree_gas = yes; then
22646 if test $in_tree_gas_is_elf = yes \
22647 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22648 then gcc_cv_as_leb128=yes
22650 elif test x$gcc_cv_as != x; then
22651 $as_echo ' .data
22652 .uleb128 L2 - L1
22654 .uleb128 1280
22655 .sleb128 -1010
22656 L2:' > conftest.s
22657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22662 test $ac_status = 0; }; }
22663 then
22664 # GAS versions before 2.11 do not support uleb128,
22665 # despite appearing to.
22666 # ??? There exists an elf-specific test that will crash
22667 # the assembler. Perhaps it's better to figure out whether
22668 # arbitrary sections are supported and try the test.
22669 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22670 if echo "$as_ver" | grep GNU > /dev/null; then
22671 as_vers=`echo $as_ver | sed -n \
22672 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22673 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22674 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22675 if test $as_major -eq 2 && test $as_minor -lt 11
22676 then :
22677 else gcc_cv_as_leb128=yes
22680 else
22681 echo "configure: failed program was" >&5
22682 cat conftest.s >&5
22684 rm -f conftest.o conftest.s
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22688 $as_echo "$gcc_cv_as_leb128" >&6; }
22689 if test $gcc_cv_as_leb128 = yes; then
22691 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22695 # Check if we have assembler support for unwind directives.
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22697 $as_echo_n "checking assembler for cfi directives... " >&6; }
22698 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22699 $as_echo_n "(cached) " >&6
22700 else
22701 gcc_cv_as_cfi_directive=no
22702 if test x$gcc_cv_as != x; then
22703 $as_echo ' .text
22704 .cfi_startproc
22705 .cfi_offset 0, 0
22706 .cfi_same_value 1
22707 .cfi_def_cfa 1, 2
22708 .cfi_escape 1, 2, 3, 4, 5
22709 .cfi_endproc' > conftest.s
22710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }
22716 then
22717 case "$target" in
22718 *-*-solaris*)
22719 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22720 # read-only and read-write sections, we need to make sure that the
22721 # assembler used emits read-write .eh_frame sections.
22722 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22723 if test "x$gcc_cv_objdump" != x; then
22724 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22725 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22726 gcc_cv_as_cfi_directive=no
22727 else
22728 case "$target" in
22729 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22730 # On Solaris/x86, make sure that GCC and gas agree on using
22731 # read-only .eh_frame sections for 64-bit.
22732 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22733 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22734 sed -e /.eh_frame/!d -e N | \
22735 grep READONLY > /dev/null; then
22736 gcc_cv_as_cfi_directive=yes
22737 else
22738 gcc_cv_as_cfi_directive=no
22742 gcc_cv_as_cfi_directive=yes
22744 esac
22746 else
22747 # no objdump, err on the side of caution
22748 gcc_cv_as_cfi_directive=no
22750 else
22751 gcc_cv_as_cfi_directive=yes
22754 *-*-*)
22755 gcc_cv_as_cfi_directive=yes
22757 esac
22758 else
22759 echo "configure: failed program was" >&5
22760 cat conftest.s >&5
22762 rm -f conftest.o conftest.s
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22766 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22768 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22770 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22771 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22773 else
22774 gcc_cv_as_cfi_advance_working=no
22775 if test x$gcc_cv_as != x; then
22776 $as_echo ' .text
22777 .cfi_startproc
22778 .cfi_adjust_cfa_offset 64
22779 .skip 75040, 0
22780 .cfi_adjust_cfa_offset 128
22781 .cfi_endproc' > conftest.s
22782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22788 then
22790 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22791 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22792 gcc_cv_as_cfi_advance_working=yes
22795 else
22796 echo "configure: failed program was" >&5
22797 cat conftest.s >&5
22799 rm -f conftest.o conftest.s
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22803 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22805 else
22806 # no objdump, err on the side of caution
22807 gcc_cv_as_cfi_advance_working=no
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22813 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22814 _ACEOF
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22819 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22820 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22822 else
22823 gcc_cv_as_cfi_personality_directive=no
22824 if test x$gcc_cv_as != x; then
22825 $as_echo ' .text
22826 .cfi_startproc
22827 .cfi_personality 0, symbol
22828 .cfi_endproc' > conftest.s
22829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22835 then
22836 gcc_cv_as_cfi_personality_directive=yes
22837 else
22838 echo "configure: failed program was" >&5
22839 cat conftest.s >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22845 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22848 cat >>confdefs.h <<_ACEOF
22849 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22850 then echo 1; else echo 0; fi`
22851 _ACEOF
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22855 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 gcc_cv_as_cfi_sections_directive=no
22860 if test x$gcc_cv_as != x; then
22861 $as_echo ' .text
22862 .cfi_sections .debug_frame, .eh_frame
22863 .cfi_startproc
22864 .cfi_endproc' > conftest.s
22865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22871 then
22872 case $target_os in
22873 win32 | pe | cygwin* | mingw32* | uwin*)
22874 # Need to check that we generated the correct relocation for the
22875 # .debug_frame section. This was fixed for binutils 2.21.
22876 gcc_cv_as_cfi_sections_directive=no
22877 if test "x$gcc_cv_objdump" != x; then
22878 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22879 grep secrel > /dev/null; then
22880 gcc_cv_as_cfi_sections_directive=yes
22885 gcc_cv_as_cfi_sections_directive=yes
22887 esac
22888 else
22889 echo "configure: failed program was" >&5
22890 cat conftest.s >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22896 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22900 cat >>confdefs.h <<_ACEOF
22901 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22902 then echo 1; else echo 0; fi`
22903 _ACEOF
22906 # GAS versions up to and including 2.11.0 may mis-optimize
22907 # .eh_frame data.
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22909 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22910 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_eh_frame=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22917 then gcc_cv_as_eh_frame=yes
22919 elif test x$gcc_cv_as != x; then
22920 $as_echo ' .text
22921 .LFB1:
22922 .4byte 0
22923 .L1:
22924 .4byte 0
22925 .LFE1:
22926 .section .eh_frame,"aw",@progbits
22927 __FRAME_BEGIN__:
22928 .4byte .LECIE1-.LSCIE1
22929 .LSCIE1:
22930 .4byte 0x0
22931 .byte 0x1
22932 .ascii "z\0"
22933 .byte 0x1
22934 .byte 0x78
22935 .byte 0x1a
22936 .byte 0x0
22937 .byte 0x4
22938 .4byte 1
22939 .p2align 1
22940 .LECIE1:
22941 .LSFDE1:
22942 .4byte .LEFDE1-.LASFDE1
22943 .LASFDE1:
22944 .4byte .LASFDE1-__FRAME_BEGIN__
22945 .4byte .LFB1
22946 .4byte .LFE1-.LFB1
22947 .byte 0x4
22948 .4byte .LFE1-.LFB1
22949 .byte 0x4
22950 .4byte .L1-.LFB1
22951 .LEFDE1:' > conftest.s
22952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22958 then
22959 cat > conftest.lit <<EOF
22960 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22961 0010 01000000 12000000 18000000 00000000 ................
22962 0020 08000000 04080000 0044 .........D
22964 cat > conftest.big <<EOF
22965 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22966 0010 00000001 00000012 00000018 00000000 ................
22967 0020 00000008 04000000 0844 .........D
22969 # If the assembler didn't choke, and we can objdump,
22970 # and we got the correct data, then succeed.
22971 # The text in the here-document typically retains its unix-style line
22972 # endings, while the output of objdump will use host line endings.
22973 # Therefore, use diff -b for the comparisons.
22974 if test x$gcc_cv_objdump != x \
22975 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22976 | tail -3 > conftest.got \
22977 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22978 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22979 then
22980 gcc_cv_as_eh_frame=yes
22981 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }; then
22987 gcc_cv_as_eh_frame=buggy
22988 else
22989 # Uh oh, what do we do now?
22990 gcc_cv_as_eh_frame=no
22992 else
22993 echo "configure: failed program was" >&5
22994 cat conftest.s >&5
22996 rm -f conftest.o conftest.s
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23000 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23003 if test $gcc_cv_as_eh_frame = buggy; then
23005 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23010 $as_echo_n "checking assembler for section merging support... " >&6; }
23011 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23013 else
23014 gcc_cv_as_shf_merge=no
23015 if test $in_tree_gas = yes; then
23016 if test $in_tree_gas_is_elf = yes \
23017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23018 then gcc_cv_as_shf_merge=yes
23020 elif test x$gcc_cv_as != x; then
23021 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23028 then
23029 gcc_cv_as_shf_merge=yes
23030 else
23031 echo "configure: failed program was" >&5
23032 cat conftest.s >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23038 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23040 if test $gcc_cv_as_shf_merge = no; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23042 $as_echo_n "checking assembler for section merging support... " >&6; }
23043 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23045 else
23046 gcc_cv_as_shf_merge=no
23047 if test $in_tree_gas = yes; then
23048 if test $in_tree_gas_is_elf = yes \
23049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23050 then gcc_cv_as_shf_merge=yes
23052 elif test x$gcc_cv_as != x; then
23053 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23059 test $ac_status = 0; }; }
23060 then
23061 gcc_cv_as_shf_merge=yes
23062 else
23063 echo "configure: failed program was" >&5
23064 cat conftest.s >&5
23066 rm -f conftest.o conftest.s
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23070 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23074 cat >>confdefs.h <<_ACEOF
23075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23076 _ACEOF
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23080 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23081 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 gcc_cv_as_comdat_group=no
23085 if test $in_tree_gas = yes; then
23086 if test $in_tree_gas_is_elf = yes \
23087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23088 then gcc_cv_as_comdat_group=yes
23090 elif test x$gcc_cv_as != x; then
23091 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23098 then
23099 gcc_cv_as_comdat_group=yes
23100 else
23101 echo "configure: failed program was" >&5
23102 cat conftest.s >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23108 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23110 if test $gcc_cv_as_comdat_group = yes; then
23111 gcc_cv_as_comdat_group_percent=no
23112 gcc_cv_as_comdat_group_group=no
23113 else
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23115 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23116 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23118 else
23119 gcc_cv_as_comdat_group_percent=no
23120 if test $in_tree_gas = yes; then
23121 if test $in_tree_gas_is_elf = yes \
23122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23123 then gcc_cv_as_comdat_group_percent=yes
23125 elif test x$gcc_cv_as != x; then
23126 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }; }
23133 then
23134 gcc_cv_as_comdat_group_percent=yes
23135 else
23136 echo "configure: failed program was" >&5
23137 cat conftest.s >&5
23139 rm -f conftest.o conftest.s
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23143 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23145 if test $gcc_cv_as_comdat_group_percent = yes; then
23146 gcc_cv_as_comdat_group_group=no
23147 else
23148 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23149 gcc_cv_as_comdat_group_group=no
23151 case "${target}" in
23152 # Sun as uses a completely different syntax.
23153 *-*-solaris2*)
23154 case "${target}" in
23155 sparc*-*-solaris2*)
23156 conftest_s='
23157 .group foo,".text%foo",#comdat
23158 .section ".text%foo", #alloc,#execinstr,#progbits
23159 .globl foo
23160 foo:
23163 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23164 conftest_s='
23165 .group foo,.text%foo,#comdat
23166 .section .text%foo, "ax", @progbits
23167 .globl foo
23168 foo:
23171 esac
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23173 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23174 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23176 else
23177 gcc_cv_as_comdat_group_group=no
23178 if test x$gcc_cv_as != x; then
23179 $as_echo "$conftest_s" > conftest.s
23180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23185 test $ac_status = 0; }; }
23186 then
23187 gcc_cv_as_comdat_group_group=yes
23188 else
23189 echo "configure: failed program was" >&5
23190 cat conftest.s >&5
23192 rm -f conftest.o conftest.s
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23196 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23199 esac
23202 if test x"$ld_is_gold" = xyes; then
23203 comdat_group=yes
23204 elif test $in_tree_ld = yes ; then
23205 comdat_group=no
23206 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 \
23207 && test $in_tree_ld_is_elf = yes; then
23208 comdat_group=yes
23210 elif echo "$ld_ver" | grep GNU > /dev/null; then
23211 comdat_group=yes
23212 if test 0"$ld_date" -lt 20050308; then
23213 if test -n "$ld_date"; then
23214 # If there was date string, but was earlier than 2005-03-08, fail
23215 comdat_group=no
23216 elif test "$ld_vers_major" -lt 2; then
23217 comdat_group=no
23218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23219 comdat_group=no
23222 else
23223 case "${target}" in
23224 *-*-solaris2.1[1-9]*)
23225 comdat_group=no
23226 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23227 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23228 # version 1.688.
23230 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23231 # least ld version 1.2267.
23232 if test "$ld_vers_major" -gt 1; then
23233 comdat_group=yes
23234 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23235 comdat_group=yes
23236 elif test "$ld_vers_minor" -ge 2267; then
23237 comdat_group=yes
23241 # Assume linkers other than GNU ld don't support COMDAT group.
23242 comdat_group=no
23244 esac
23246 # Allow overriding the automatic COMDAT group tests above.
23247 # Check whether --enable-comdat was given.
23248 if test "${enable_comdat+set}" = set; then :
23249 enableval=$enable_comdat; comdat_group="$enable_comdat"
23252 if test $comdat_group = no; then
23253 gcc_cv_as_comdat_group=no
23254 gcc_cv_as_comdat_group_percent=no
23255 gcc_cv_as_comdat_group_group=no
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23260 || test $gcc_cv_as_comdat_group_percent = yes \
23261 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23262 _ACEOF
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23266 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23267 if test "${gcc_cv_as_discriminator+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23269 else
23270 gcc_cv_as_discriminator=no
23271 if test $in_tree_gas = yes; then
23272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23273 then gcc_cv_as_discriminator=yes
23275 elif test x$gcc_cv_as != x; then
23276 $as_echo ' .text
23277 .file 1 "conf.c"
23278 .loc 1 1 0 discriminator 1' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23286 gcc_cv_as_discriminator=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23295 $as_echo "$gcc_cv_as_discriminator" >&6; }
23296 if test $gcc_cv_as_discriminator = yes; then
23298 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23302 # Thread-local storage - the check is heavily parameterized.
23303 conftest_s=
23304 tls_first_major=
23305 tls_first_minor=
23306 tls_as_opt=
23307 case "$target" in
23308 alpha*-*-*)
23309 conftest_s='
23310 .section ".tdata","awT",@progbits
23311 foo: .long 25
23312 .text
23313 ldq $27,__tls_get_addr($29) !literal!1
23314 lda $16,foo($29) !tlsgd!1
23315 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23316 ldq $27,__tls_get_addr($29) !literal!2
23317 lda $16,foo($29) !tlsldm!2
23318 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23319 ldq $1,foo($29) !gotdtprel
23320 ldah $2,foo($29) !dtprelhi
23321 lda $3,foo($2) !dtprello
23322 lda $4,foo($29) !dtprel
23323 ldq $1,foo($29) !gottprel
23324 ldah $2,foo($29) !tprelhi
23325 lda $3,foo($2) !tprello
23326 lda $4,foo($29) !tprel'
23327 tls_first_major=2
23328 tls_first_minor=13
23329 tls_as_opt=--fatal-warnings
23331 cris-*-*|crisv32-*-*)
23332 conftest_s='
23333 .section ".tdata","awT",@progbits
23334 x: .long 25
23335 .text
23336 move.d x:IE,$r10
23337 nop'
23338 tls_first_major=2
23339 tls_first_minor=20
23340 tls_as_opt=--fatal-warnings
23342 frv*-*-*)
23343 conftest_s='
23344 .section ".tdata","awT",@progbits
23345 x: .long 25
23346 .text
23347 call #gettlsoff(x)'
23348 tls_first_major=2
23349 tls_first_minor=14
23351 hppa*-*-linux*)
23352 conftest_s='
23353 t1: .reg %r20
23354 t2: .reg %r21
23355 gp: .reg %r19
23356 .section ".tdata","awT",@progbits
23357 foo: .long 25
23358 .text
23359 .align 4
23360 addil LT%foo-$tls_gdidx$,gp
23361 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23362 b __tls_get_addr
23364 addil LT%foo-$tls_ldidx$,gp
23365 b __tls_get_addr
23366 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23367 addil LR%foo-$tls_dtpoff$,%ret0
23368 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23369 mfctl %cr27,%t1
23370 addil LT%foo-$tls_ieoff$,gp
23371 ldw RT%foo-$tls_ieoff$(%r1),%t2
23372 add %t1,%t2,%t3
23373 mfctl %cr27,%t1
23374 addil LR%foo-$tls_leoff$,%t1
23375 ldo RR%foo-$tls_leoff$(%r1),%t2'
23376 tls_first_major=2
23377 tls_first_minor=15
23378 tls_as_opt=--fatal-warnings
23380 arm*-*-*)
23381 conftest_s='
23382 .section ".tdata","awT",%progbits
23383 foo: .long 25
23384 .text
23385 .word foo(gottpoff)
23386 .word foo(tpoff)
23387 .word foo(tlsgd)
23388 .word foo(tlsldm)
23389 .word foo(tlsldo)'
23390 tls_first_major=2
23391 tls_first_minor=17
23393 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23394 case "$target" in
23395 i[34567]86-*-solaris2.*)
23396 on_solaris=yes
23397 tga_func=___tls_get_addr
23399 x86_64-*-solaris2.1[0-9]*)
23400 on_solaris=yes
23401 tga_func=__tls_get_addr
23404 on_solaris=no
23406 esac
23407 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23408 conftest_s='
23409 .section .tdata,"awt",@progbits'
23410 tls_first_major=0
23411 tls_first_minor=0
23413 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23415 else
23416 conftest_s='
23417 .section ".tdata","awT",@progbits'
23418 tls_first_major=2
23419 tls_first_minor=14
23420 tls_as_opt="--fatal-warnings"
23422 conftest_s="$conftest_s
23423 foo: .long 25
23424 .text
23425 movl %gs:0, %eax
23426 leal foo@tlsgd(,%ebx,1), %eax
23427 leal foo@tlsldm(%ebx), %eax
23428 leal foo@dtpoff(%eax), %edx
23429 movl foo@gottpoff(%ebx), %eax
23430 subl foo@gottpoff(%ebx), %eax
23431 addl foo@gotntpoff(%ebx), %eax
23432 movl foo@indntpoff, %eax
23433 movl \$foo@tpoff, %eax
23434 subl \$foo@tpoff, %eax
23435 leal foo@ntpoff(%ecx), %eax"
23437 x86_64-*-*)
23438 conftest_s='
23439 .section ".tdata","awT",@progbits
23440 foo: .long 25
23441 .text
23442 movq %fs:0, %rax
23443 leaq foo@TLSGD(%rip), %rdi
23444 leaq foo@TLSLD(%rip), %rdi
23445 leaq foo@DTPOFF(%rax), %rdx
23446 movq foo@GOTTPOFF(%rip), %rax
23447 movq $foo@TPOFF, %rax'
23448 tls_first_major=2
23449 tls_first_minor=14
23450 tls_as_opt=--fatal-warnings
23452 ia64-*-*)
23453 conftest_s='
23454 .section ".tdata","awT",@progbits
23455 foo: data8 25
23456 .text
23457 addl r16 = @ltoff(@dtpmod(foo#)), gp
23458 addl r17 = @ltoff(@dtprel(foo#)), gp
23459 addl r18 = @ltoff(@tprel(foo#)), gp
23460 addl r19 = @dtprel(foo#), gp
23461 adds r21 = @dtprel(foo#), r13
23462 movl r23 = @dtprel(foo#)
23463 addl r20 = @tprel(foo#), gp
23464 adds r22 = @tprel(foo#), r13
23465 movl r24 = @tprel(foo#)'
23466 tls_first_major=2
23467 tls_first_minor=13
23468 tls_as_opt=--fatal-warnings
23470 mips*-*-*)
23471 conftest_s='
23472 .section .tdata,"awT",@progbits
23474 .word 2
23475 .text
23476 addiu $4, $28, %tlsgd(x)
23477 addiu $4, $28, %tlsldm(x)
23478 lui $4, %dtprel_hi(x)
23479 addiu $4, $4, %dtprel_lo(x)
23480 lw $4, %gottprel(x)($28)
23481 lui $4, %tprel_hi(x)
23482 addiu $4, $4, %tprel_lo(x)'
23483 tls_first_major=2
23484 tls_first_minor=16
23485 tls_as_opt='-32 --fatal-warnings'
23487 m68k-*-*)
23488 conftest_s='
23489 .section .tdata,"awT",@progbits
23491 .word 2
23492 .text
23493 foo:
23494 move.l x@TLSGD(%a5),%a0
23495 move.l x@TLSLDM(%a5),%a0
23496 move.l x@TLSLDO(%a5),%a0
23497 move.l x@TLSIE(%a5),%a0
23498 move.l x@TLSLE(%a5),%a0'
23499 tls_first_major=2
23500 tls_first_minor=19
23501 tls_as_opt='--fatal-warnings'
23503 aarch64*-*-*)
23504 conftest_s='
23505 .section ".tdata","awT",%progbits
23506 foo: .long 25
23507 .text
23508 adrp x0, :tlsgd:x
23509 add x0, x0, #:tlsgd_lo12:x
23510 bl __tls_get_addr
23511 nop'
23512 tls_first_major=2
23513 tls_first_minor=20
23514 tls_as_opt='--fatal-warnings'
23516 powerpc-ibm-aix*)
23517 conftest_s='
23518 .extern __get_tpointer
23519 .toc
23520 LC..1:
23521 .tc a[TC],a[TL]@le
23522 .csect .text[PR]
23523 .tlstest:
23524 lwz 9,LC..1(2)
23525 bla __get_tpointer
23526 lwzx 3,9,3
23527 .globl a
23528 .csect a[TL],4
23530 .space 4'
23531 tls_first_major=0
23532 tls_first_minor=0
23534 powerpc-*-*)
23535 conftest_s='
23536 .section ".tdata","awT",@progbits
23537 .align 2
23538 ld0: .space 4
23539 ld1: .space 4
23540 x1: .space 4
23541 x2: .space 4
23542 x3: .space 4
23543 .text
23544 addi 3,31,ld0@got@tlsgd
23545 bl __tls_get_addr
23546 addi 3,31,x1@got@tlsld
23547 bl __tls_get_addr
23548 addi 9,3,x1@dtprel
23549 addis 9,3,x2@dtprel@ha
23550 addi 9,9,x2@dtprel@l
23551 lwz 9,x3@got@tprel(31)
23552 add 9,9,x@tls
23553 addi 9,2,x1@tprel
23554 addis 9,2,x2@tprel@ha
23555 addi 9,9,x2@tprel@l'
23556 tls_first_major=2
23557 tls_first_minor=14
23558 tls_as_opt="-a32 --fatal-warnings"
23560 powerpc64-*-*)
23561 conftest_s='
23562 .section ".tdata","awT",@progbits
23563 .align 3
23564 ld0: .space 8
23565 ld1: .space 8
23566 x1: .space 8
23567 x2: .space 8
23568 x3: .space 8
23569 .text
23570 addi 3,2,ld0@got@tlsgd
23571 bl .__tls_get_addr
23573 addi 3,2,ld1@toc
23574 bl .__tls_get_addr
23576 addi 3,2,x1@got@tlsld
23577 bl .__tls_get_addr
23579 addi 9,3,x1@dtprel
23580 bl .__tls_get_addr
23582 addis 9,3,x2@dtprel@ha
23583 addi 9,9,x2@dtprel@l
23584 bl .__tls_get_addr
23586 ld 9,x3@got@dtprel(2)
23587 add 9,9,3
23588 bl .__tls_get_addr
23589 nop'
23590 tls_first_major=2
23591 tls_first_minor=14
23592 tls_as_opt="-a64 --fatal-warnings"
23594 s390-*-*)
23595 conftest_s='
23596 .section ".tdata","awT",@progbits
23597 foo: .long 25
23598 .text
23599 .long foo@TLSGD
23600 .long foo@TLSLDM
23601 .long foo@DTPOFF
23602 .long foo@NTPOFF
23603 .long foo@GOTNTPOFF
23604 .long foo@INDNTPOFF
23605 l %r1,foo@GOTNTPOFF(%r12)
23606 l %r1,0(%r1):tls_load:foo
23607 bas %r14,0(%r1,%r13):tls_gdcall:foo
23608 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23609 tls_first_major=2
23610 tls_first_minor=14
23611 tls_as_opt="-m31 --fatal-warnings"
23613 s390x-*-*)
23614 conftest_s='
23615 .section ".tdata","awT",@progbits
23616 foo: .long 25
23617 .text
23618 .quad foo@TLSGD
23619 .quad foo@TLSLDM
23620 .quad foo@DTPOFF
23621 .quad foo@NTPOFF
23622 .quad foo@GOTNTPOFF
23623 lg %r1,foo@GOTNTPOFF(%r12)
23624 larl %r1,foo@INDNTPOFF
23625 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23626 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23627 tls_first_major=2
23628 tls_first_minor=14
23629 tls_as_opt="-m64 -Aesame --fatal-warnings"
23631 sh-*-* | sh[34]-*-*)
23632 conftest_s='
23633 .section ".tdata","awT",@progbits
23634 foo: .long 25
23635 .text
23636 .long foo@TLSGD
23637 .long foo@TLSLDM
23638 .long foo@DTPOFF
23639 .long foo@GOTTPOFF
23640 .long foo@TPOFF'
23641 tls_first_major=2
23642 tls_first_minor=13
23643 tls_as_opt=--fatal-warnings
23645 sparc*-*-*)
23646 case "$target" in
23647 sparc*-sun-solaris2.*)
23648 on_solaris=yes
23649 tga_func=__tls_get_addr
23652 on_solaris=no
23654 esac
23655 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23656 conftest_s='
23657 .section ".tdata",#alloc,#write,#tls'
23658 tls_first_major=0
23659 tls_first_minor=0
23660 else
23661 conftest_s='
23662 .section ".tdata","awT",@progbits'
23663 tls_first_major=2
23664 tls_first_minor=14
23665 tls_as_opt="-32 --fatal-warnings"
23667 conftest_s="$conftest_s
23668 foo: .long 25
23669 .text
23670 sethi %tgd_hi22(foo), %o0
23671 add %o0, %tgd_lo10(foo), %o1
23672 add %l7, %o1, %o0, %tgd_add(foo)
23673 call __tls_get_addr, %tgd_call(foo)
23674 sethi %tldm_hi22(foo), %l1
23675 add %l1, %tldm_lo10(foo), %l2
23676 add %l7, %l2, %o0, %tldm_add(foo)
23677 call __tls_get_addr, %tldm_call(foo)
23678 sethi %tldo_hix22(foo), %l3
23679 xor %l3, %tldo_lox10(foo), %l4
23680 add %o0, %l4, %l5, %tldo_add(foo)
23681 sethi %tie_hi22(foo), %o3
23682 add %o3, %tie_lo10(foo), %o3
23683 ld [%l7 + %o3], %o2, %tie_ld(foo)
23684 add %g7, %o2, %o4, %tie_add(foo)
23685 sethi %tle_hix22(foo), %l1
23686 xor %l1, %tle_lox10(foo), %o5
23687 ld [%g7 + %o5], %o1"
23689 tilepro*-*-*)
23690 conftest_s='
23691 .section ".tdata","awT",@progbits
23692 foo: .long 25
23693 .text
23694 addli r0, zero, tls_gd(foo)
23695 auli r0, zero, tls_gd_ha16(foo)
23696 addli r0, r0, tls_gd_lo16(foo)
23697 jal __tls_get_addr
23698 addli r0, zero, tls_ie(foo)
23699 auli r0, r0, tls_ie_ha16(foo)
23700 addli r0, r0, tls_ie_lo16(foo)'
23701 tls_first_major=2
23702 tls_first_minor=22
23703 tls_as_opt="--fatal-warnings"
23705 tilegx*-*-*)
23706 conftest_s='
23707 .section ".tdata","awT",@progbits
23708 foo: .long 25
23709 .text
23710 shl16insli r0, zero, hw0_last_tls_gd(foo)
23711 shl16insli r0, zero, hw1_last_tls_gd(foo)
23712 shl16insli r0, r0, hw0_tls_gd(foo)
23713 jal __tls_get_addr
23714 shl16insli r0, zero, hw1_last_tls_ie(foo)
23715 shl16insli r0, r0, hw0_tls_ie(foo)'
23716 tls_first_major=2
23717 tls_first_minor=22
23718 tls_as_opt="--fatal-warnings"
23720 xtensa*-*-*)
23721 conftest_s='
23722 .section ".tdata","awT",@progbits
23723 foo: .long 25
23724 .text
23725 movi a8, foo@TLSFUNC
23726 movi a10, foo@TLSARG
23727 callx8.tls a8, foo@TLSCALL'
23728 tls_first_major=2
23729 tls_first_minor=19
23731 esac
23732 set_have_as_tls=no
23733 if test "x$enable_tls" = xno ; then
23734 : # TLS explicitly disabled.
23735 elif test "x$enable_tls" = xyes ; then
23736 set_have_as_tls=yes # TLS explicitly enabled.
23737 elif test -z "$tls_first_major"; then
23738 : # If we don't have a check, assume no support.
23739 else
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23741 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23742 if test "${gcc_cv_as_tls+set}" = set; then :
23743 $as_echo_n "(cached) " >&6
23744 else
23745 gcc_cv_as_tls=no
23746 if test $in_tree_gas = yes; then
23747 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23748 then gcc_cv_as_tls=yes
23750 elif test x$gcc_cv_as != x; then
23751 $as_echo "$conftest_s" > conftest.s
23752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }
23758 then
23759 gcc_cv_as_tls=yes
23760 else
23761 echo "configure: failed program was" >&5
23762 cat conftest.s >&5
23764 rm -f conftest.o conftest.s
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23768 $as_echo "$gcc_cv_as_tls" >&6; }
23769 if test $gcc_cv_as_tls = yes; then
23770 set_have_as_tls=yes
23773 case "$target" in
23774 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23775 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23776 # Sun style that Sun ld and GCC don't support any longer.
23777 *-*-solaris2.*)
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23779 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23780 ld_tls_support=no
23781 # Check ld and ld.so.1 TLS support.
23782 if echo "$ld_ver" | grep GNU > /dev/null; then
23783 # Assume all interesting versions of GNU ld have TLS support.
23784 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23785 ld_tls_support=yes
23786 else
23787 case "$target" in
23788 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23789 i?86-*-solaris2.9)
23790 min_tls_ld_vers_minor=374
23792 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23793 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23794 min_tls_ld_vers_minor=343
23796 esac
23797 if test "$ld_vers_major" -gt 1 || \
23798 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23799 ld_tls_support=yes
23800 else
23801 set_have_as_tls=no
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23805 $as_echo "$ld_tls_support" >&6; }
23807 save_LIBS="$LIBS"
23808 save_LDFLAGS="$LDFLAGS"
23809 LIBS=
23810 LDFLAGS=
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23813 $as_echo_n "checking library containing $tga_func... " >&6; }
23814 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23815 # (32-bit x86) only lived in libthread, so check for that. Keep
23816 # set_have_as_tls if found, disable if not.
23817 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23819 $as_echo_n "checking for library containing $tga_func... " >&6; }
23820 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23821 $as_echo_n "(cached) " >&6
23822 else
23823 ac_func_search_save_LIBS=$LIBS
23824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23825 /* end confdefs.h. */
23827 /* Override any GCC internal prototype to avoid an error.
23828 Use char because int might match the return type of a GCC
23829 builtin and then its argument prototype would still apply. */
23830 #ifdef __cplusplus
23831 extern "C"
23832 #endif
23833 char $tga_func ();
23835 main ()
23837 return $tga_func ();
23839 return 0;
23841 _ACEOF
23842 for ac_lib in '' thread; do
23843 if test -z "$ac_lib"; then
23844 ac_res="none required"
23845 else
23846 ac_res=-l$ac_lib
23847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23849 if ac_fn_c_try_link "$LINENO"; then :
23850 eval "$as_ac_Search=\$ac_res"
23852 rm -f core conftest.err conftest.$ac_objext \
23853 conftest$ac_exeext
23854 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23855 break
23857 done
23858 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23860 else
23861 eval "$as_ac_Search=no"
23863 rm conftest.$ac_ext
23864 LIBS=$ac_func_search_save_LIBS
23866 eval ac_res=\$$as_ac_Search
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23868 $as_echo "$ac_res" >&6; }
23869 eval ac_res=\$$as_ac_Search
23870 if test "$ac_res" != no; then :
23871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23873 else
23874 set_have_as_tls=no
23877 # Clear LIBS if we cannot support TLS.
23878 if test $set_have_as_tls = no; then
23879 LIBS=
23881 # Always define LIB_TLS_SPEC, even without TLS support.
23883 cat >>confdefs.h <<_ACEOF
23884 #define LIB_TLS_SPEC "$LIBS"
23885 _ACEOF
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23888 $as_echo "$LIBS" >&6; }
23890 LIBS="$save_LIBS"
23891 LDFLAGS="$save_LDFLAGS"
23893 esac
23894 if test $set_have_as_tls = yes ; then
23896 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23900 # Target-specific assembler checks.
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23903 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23904 gcc_cv_ld_static_dynamic=no
23905 gcc_cv_ld_static_option='-Bstatic'
23906 gcc_cv_ld_dynamic_option='-Bdynamic'
23907 if test $in_tree_ld = yes ; then
23908 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
23909 gcc_cv_ld_static_dynamic=yes
23911 elif test x$gcc_cv_ld != x; then
23912 # Check if linker supports -Bstatic/-Bdynamic option
23913 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23914 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23915 gcc_cv_ld_static_dynamic=yes
23916 else
23917 case "$target" in
23918 # HP-UX ld uses -a flags to select between shared and archive.
23919 *-*-hpux*)
23920 if test x"$gnu_ld" = xno; then
23921 gcc_cv_ld_static_dynamic=yes
23922 gcc_cv_ld_static_option="-aarchive_shared"
23923 gcc_cv_ld_dynamic_option="-adefault"
23926 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23927 *-*-solaris2*)
23928 gcc_cv_ld_static_dynamic=yes
23930 esac
23933 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23935 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23938 cat >>confdefs.h <<_ACEOF
23939 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23940 _ACEOF
23943 cat >>confdefs.h <<_ACEOF
23944 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23945 _ACEOF
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23949 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23951 if test x"$demangler_in_ld" = xyes; then
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23953 $as_echo_n "checking linker --demangle support... " >&6; }
23954 gcc_cv_ld_demangle=no
23955 if test $in_tree_ld = yes; then
23956 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 \
23957 gcc_cv_ld_demangle=yes
23959 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23960 # Check if the GNU linker supports --demangle option
23961 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23962 gcc_cv_ld_demangle=yes
23965 if test x"$gcc_cv_ld_demangle" = xyes; then
23967 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23971 $as_echo "$gcc_cv_ld_demangle" >&6; }
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23975 $as_echo_n "checking linker plugin support... " >&6; }
23976 gcc_cv_lto_plugin=0
23977 if test -f liblto_plugin.la; then
23978 save_ld_ver="$ld_ver"
23979 save_ld_vers_major="$ld_vers_major"
23980 save_ld_vers_minor="$ld_vers_minor"
23981 save_ld_is_gold="$ld_is_gold"
23983 ld_is_gold=no
23985 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23986 ld_ver="GNU ld"
23987 # FIXME: ld_is_gold?
23988 ld_vers_major="$gcc_cv_gld_major_version"
23989 ld_vers_minor="$gcc_cv_gld_minor_version"
23990 else
23991 # Determine plugin linker version.
23992 # FIXME: Partial duplicate from above, generalize.
23993 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23994 if echo "$ld_ver" | grep GNU > /dev/null; then
23995 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23996 ld_is_gold=yes
23997 ld_vers=`echo $ld_ver | sed -n \
23998 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23999 else
24000 ld_vers=`echo $ld_ver | sed -n \
24001 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24003 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24004 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24008 # Determine plugin support.
24009 if echo "$ld_ver" | grep GNU > /dev/null; then
24010 # Require GNU ld or gold 2.21+ for plugin support by default.
24011 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24012 gcc_cv_lto_plugin=2
24013 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24014 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24015 gcc_cv_lto_plugin=1
24019 ld_ver="$save_ld_ver"
24020 ld_vers_major="$save_ld_vers_major"
24021 ld_vers_minor="$save_ld_vers_minor"
24022 ld_is_gold="$save_ld_is_gold"
24025 cat >>confdefs.h <<_ACEOF
24026 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24027 _ACEOF
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24030 $as_echo "$gcc_cv_lto_plugin" >&6; }
24032 case "$target" in
24033 # All TARGET_ABI_OSF targets.
24034 alpha*-*-linux* | alpha*-*-*bsd*)
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24036 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24037 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24040 gcc_cv_as_alpha_explicit_relocs=no
24041 if test $in_tree_gas = yes; then
24042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24043 then gcc_cv_as_alpha_explicit_relocs=yes
24045 elif test x$gcc_cv_as != x; then
24046 $as_echo ' .set nomacro
24047 .text
24048 extbl $3, $2, $3 !lituse_bytoff!1
24049 ldq $2, a($29) !literal!1
24050 ldq $4, b($29) !literal!2
24051 ldq_u $3, 0($2) !lituse_base!1
24052 ldq $27, f($29) !literal!5
24053 jsr $26, ($27), f !lituse_jsr!5
24054 ldah $29, 0($26) !gpdisp!3
24055 lda $0, c($29) !gprel
24056 ldah $1, d($29) !gprelhigh
24057 lda $1, d($1) !gprellow
24058 lda $29, 0($29) !gpdisp!3' > conftest.s
24059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24065 then
24066 gcc_cv_as_alpha_explicit_relocs=yes
24067 else
24068 echo "configure: failed program was" >&5
24069 cat conftest.s >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24075 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24076 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24078 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24082 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24083 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24084 $as_echo_n "(cached) " >&6
24085 else
24086 gcc_cv_as_alpha_jsrdirect_relocs=no
24087 if test $in_tree_gas = yes; then
24088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24089 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24091 elif test x$gcc_cv_as != x; then
24092 $as_echo ' .set nomacro
24093 .text
24094 ldq $27, a($29) !literal!1
24095 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098 (eval $ac_try) 2>&5
24099 ac_status=$?
24100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; }
24102 then
24103 gcc_cv_as_alpha_jsrdirect_relocs=yes
24104 else
24105 echo "configure: failed program was" >&5
24106 cat conftest.s >&5
24108 rm -f conftest.o conftest.s
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24112 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24113 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24115 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24120 cris-*-*)
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24122 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24123 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 gcc_cv_as_cris_no_mul_bug=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24129 then gcc_cv_as_cris_no_mul_bug=yes
24131 elif test x$gcc_cv_as != x; then
24132 $as_echo '.text' > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24139 then
24140 gcc_cv_as_cris_no_mul_bug=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24149 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24150 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24152 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24157 sparc*-*-*)
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24159 $as_echo_n "checking assembler for .register... " >&6; }
24160 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24161 $as_echo_n "(cached) " >&6
24162 else
24163 gcc_cv_as_sparc_register_op=no
24164 if test x$gcc_cv_as != x; then
24165 $as_echo '.register %g2, #scratch' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24172 then
24173 gcc_cv_as_sparc_register_op=yes
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24182 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24183 if test $gcc_cv_as_sparc_register_op = yes; then
24185 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24190 $as_echo_n "checking assembler for -relax option... " >&6; }
24191 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24193 else
24194 gcc_cv_as_sparc_relax=no
24195 if test x$gcc_cv_as != x; then
24196 $as_echo '.text' > conftest.s
24197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24202 test $ac_status = 0; }; }
24203 then
24204 gcc_cv_as_sparc_relax=yes
24205 else
24206 echo "configure: failed program was" >&5
24207 cat conftest.s >&5
24209 rm -f conftest.o conftest.s
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24213 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24214 if test $gcc_cv_as_sparc_relax = yes; then
24216 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24221 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24222 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24223 $as_echo_n "(cached) " >&6
24224 else
24225 gcc_cv_as_sparc_gotdata_op=no
24226 if test x$gcc_cv_as != x; then
24227 $as_echo '.text
24228 .align 4
24229 foo:
24231 bar:
24232 sethi %gdop_hix22(foo), %g1
24233 xor %g1, %gdop_lox10(foo), %g1
24234 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24241 then
24242 if test x$gcc_cv_ld != x \
24243 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24244 if test x$gcc_cv_objdump != x; then
24245 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24246 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24247 gcc_cv_as_sparc_gotdata_op=no
24248 else
24249 gcc_cv_as_sparc_gotdata_op=yes
24253 rm -f conftest
24254 else
24255 echo "configure: failed program was" >&5
24256 cat conftest.s >&5
24258 rm -f conftest.o conftest.s
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24262 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24263 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24265 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24270 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24271 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24272 $as_echo_n "(cached) " >&6
24273 else
24274 gcc_cv_as_sparc_ua_pcrel=no
24275 if test x$gcc_cv_as != x; then
24276 $as_echo '.text
24277 foo:
24279 .data
24280 .align 4
24281 .byte 0
24282 .uaword %r_disp32(foo)' > conftest.s
24283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24288 test $ac_status = 0; }; }
24289 then
24290 if test x$gcc_cv_ld != x \
24291 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24292 gcc_cv_as_sparc_ua_pcrel=yes
24294 rm -f conftest
24295 else
24296 echo "configure: failed program was" >&5
24297 cat conftest.s >&5
24299 rm -f conftest.o conftest.s
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24303 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24304 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24306 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24310 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24311 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24312 $as_echo_n "(cached) " >&6
24313 else
24314 gcc_cv_as_sparc_ua_pcrel_hidden=no
24315 if test x$gcc_cv_as != x; then
24316 $as_echo '.data
24317 .align 4
24318 .byte 0x31
24319 .uaword %r_disp32(foo)
24320 .byte 0x32, 0x33, 0x34
24321 .global foo
24322 .hidden foo
24323 foo:
24324 .skip 4' > 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 && test x$gcc_cv_objdump != x \
24333 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24334 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24335 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24336 if $gcc_cv_objdump -R conftest 2> /dev/null \
24337 | grep 'DISP32' > /dev/null 2>&1; then
24339 else
24340 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24343 rm -f conftest
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24348 rm -f conftest.o conftest.s
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24352 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24353 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24355 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24359 fi # unaligned pcrel relocs
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24362 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24363 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24364 $as_echo_n "(cached) " >&6
24365 else
24366 gcc_cv_as_sparc_offsetable_lo10=no
24367 if test x$gcc_cv_as != x; then
24368 $as_echo '.text
24369 or %g1, %lo(ab) + 12, %g1
24370 or %g1, %lo(ab + 12), %g1' > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 if test x$gcc_cv_objdump != x \
24379 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24380 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24381 gcc_cv_as_sparc_offsetable_lo10=yes
24383 else
24384 echo "configure: failed program was" >&5
24385 cat conftest.s >&5
24387 rm -f conftest.o conftest.s
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24391 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24392 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24394 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24399 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24400 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24401 $as_echo_n "(cached) " >&6
24402 else
24403 gcc_cv_as_sparc_fmaf=no
24404 if test x$gcc_cv_as != x; then
24405 $as_echo '.text
24406 .register %g2, #scratch
24407 .register %g3, #scratch
24408 .align 4
24409 fmaddd %f0, %f2, %f4, %f6
24410 addxccc %g1, %g2, %g3
24411 fsrl32 %f2, %f4, %f8
24412 fnaddd %f10, %f12, %f14' > conftest.s
24413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -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 gcc_cv_as_sparc_fmaf=yes
24421 else
24422 echo "configure: failed program was" >&5
24423 cat conftest.s >&5
24425 rm -f conftest.o conftest.s
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24429 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24430 if test $gcc_cv_as_sparc_fmaf = yes; then
24432 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24437 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24438 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24439 $as_echo_n "(cached) " >&6
24440 else
24441 gcc_cv_as_sparc_sparc4=no
24442 if test x$gcc_cv_as != x; then
24443 $as_echo '.text
24444 .register %g2, #scratch
24445 .register %g3, #scratch
24446 .align 4
24447 cxbe %g2, %g3, 1f
24448 1: cwbneg %g2, %g3, 1f
24449 1: sha1
24451 aes_kexpand0 %f4, %f6, %f8
24452 des_round %f38, %f40, %f42, %f44
24453 camellia_f %f54, %f56, %f58, %f60
24454 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -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_sparc4=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_sparc4" >&5
24471 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24472 if test $gcc_cv_as_sparc_sparc4 = yes; then
24474 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24479 i[34567]86-*-* | x86_64-*-*)
24480 case $target_os in
24481 cygwin*)
24482 # Full C++ conformance when using a shared libstdc++-v3 requires some
24483 # support from the Cygwin DLL, which in more recent versions exports
24484 # wrappers to aid in interposing and redirecting operators new, delete,
24485 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24486 # are configuring for a version of Cygwin that exports the wrappers.
24487 if test x$host = x$target; then
24488 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24489 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24490 gcc_ac_cygwin_dll_wrappers=yes
24491 else
24492 gcc_ac_cygwin_dll_wrappers=no
24495 else
24496 # Can't check presence of libc functions during cross-compile, so
24497 # we just have to assume we're building for an up-to-date target.
24498 gcc_ac_cygwin_dll_wrappers=yes
24501 cat >>confdefs.h <<_ACEOF
24502 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24503 _ACEOF
24505 esac
24506 case $target_os in
24507 cygwin* | pe | mingw32* | interix*)
24508 # Recent binutils allows the three-operand form of ".comm" on PE. This
24509 # definition is used unconditionally to initialise the default state of
24510 # the target option variable that governs usage of the feature.
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24512 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24513 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24515 else
24516 gcc_cv_as_comm_has_align=no
24517 if test $in_tree_gas = yes; then
24518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24519 then gcc_cv_as_comm_has_align=yes
24521 elif test x$gcc_cv_as != x; then
24522 $as_echo '.comm foo,1,32' > conftest.s
24523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525 (eval $ac_try) 2>&5
24526 ac_status=$?
24527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528 test $ac_status = 0; }; }
24529 then
24530 gcc_cv_as_comm_has_align=yes
24531 else
24532 echo "configure: failed program was" >&5
24533 cat conftest.s >&5
24535 rm -f conftest.o conftest.s
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24539 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24542 cat >>confdefs.h <<_ACEOF
24543 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24544 _ACEOF
24546 # Used for DWARF 2 in PE
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24548 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24549 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24550 $as_echo_n "(cached) " >&6
24551 else
24552 gcc_cv_as_ix86_pe_secrel32=no
24553 if test $in_tree_gas = yes; then
24554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24555 then gcc_cv_as_ix86_pe_secrel32=yes
24557 elif test x$gcc_cv_as != x; then
24558 $as_echo '.text
24559 foo: nop
24560 .data
24561 .secrel32 foo' > conftest.s
24562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
24566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24567 test $ac_status = 0; }; }
24568 then
24569 if test x$gcc_cv_ld != x \
24570 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24571 gcc_cv_as_ix86_pe_secrel32=yes
24573 rm -f conftest
24574 else
24575 echo "configure: failed program was" >&5
24576 cat conftest.s >&5
24578 rm -f conftest.o conftest.s
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24582 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24583 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24585 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24588 # Test if the assembler supports the extended form of the .section
24589 # directive that specifies section alignment. LTO support uses this,
24590 # but normally only after installation, so we warn but don't fail the
24591 # configure if LTO is enabled but the assembler does not support it.
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24593 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24594 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24596 else
24597 gcc_cv_as_section_has_align=no
24598 if test $in_tree_gas = yes; then
24599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24600 then gcc_cv_as_section_has_align=yes
24602 elif test x$gcc_cv_as != x; then
24603 $as_echo '.section lto_test,"dr0"' > conftest.s
24604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -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 gcc_cv_as_section_has_align=yes
24612 else
24613 echo "configure: failed program was" >&5
24614 cat conftest.s >&5
24616 rm -f conftest.o conftest.s
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24620 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24622 if test x$gcc_cv_as_section_has_align != xyes; then
24623 case ",$enable_languages," in
24624 *,lto,*)
24625 { $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
24626 $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;}
24628 esac
24630 # Test if the assembler supports the section flag 'e' for specifying
24631 # an excluded section.
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24633 $as_echo_n "checking assembler for .section with e... " >&6; }
24634 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_section_has_e=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24640 then gcc_cv_as_section_has_e=yes
24642 elif test x$gcc_cv_as != x; then
24643 $as_echo '.section foo1,"e"
24644 .byte 0,0,0,0' > conftest.s
24645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24651 then
24652 gcc_cv_as_section_has_e=yes
24653 else
24654 echo "configure: failed program was" >&5
24655 cat conftest.s >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24661 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24664 cat >>confdefs.h <<_ACEOF
24665 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24666 _ACEOF
24669 esac
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24672 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24673 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_ix86_filds=no
24677 if test x$gcc_cv_as != x; then
24678 $as_echo 'filds mem; fists mem' > conftest.s
24679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684 test $ac_status = 0; }; }
24685 then
24686 gcc_cv_as_ix86_filds=yes
24687 else
24688 echo "configure: failed program was" >&5
24689 cat conftest.s >&5
24691 rm -f conftest.o conftest.s
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24695 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24696 if test $gcc_cv_as_ix86_filds = yes; then
24698 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24703 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24704 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 gcc_cv_as_ix86_fildq=no
24708 if test x$gcc_cv_as != x; then
24709 $as_echo 'fildq mem; fistpq mem' > conftest.s
24710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24716 then
24717 gcc_cv_as_ix86_fildq=yes
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24726 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24727 if test $gcc_cv_as_ix86_fildq = yes; then
24729 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24734 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24735 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24737 else
24738 gcc_cv_as_ix86_cmov_sun_syntax=no
24739 if test x$gcc_cv_as != x; then
24740 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24747 then
24748 gcc_cv_as_ix86_cmov_sun_syntax=yes
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24757 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24758 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24760 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24765 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24766 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24767 $as_echo_n "(cached) " >&6
24768 else
24769 gcc_cv_as_ix86_ffreep=no
24770 if test x$gcc_cv_as != x; then
24771 $as_echo 'ffreep %st(1)' > conftest.s
24772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777 test $ac_status = 0; }; }
24778 then
24779 gcc_cv_as_ix86_ffreep=yes
24780 else
24781 echo "configure: failed program was" >&5
24782 cat conftest.s >&5
24784 rm -f conftest.o conftest.s
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24788 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24789 if test $gcc_cv_as_ix86_ffreep = yes; then
24791 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24796 $as_echo_n "checking assembler for .quad directive... " >&6; }
24797 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24799 else
24800 gcc_cv_as_ix86_quad=no
24801 if test x$gcc_cv_as != x; then
24802 $as_echo '.quad 0' > conftest.s
24803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24809 then
24810 gcc_cv_as_ix86_quad=yes
24811 else
24812 echo "configure: failed program was" >&5
24813 cat conftest.s >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24819 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24820 if test $gcc_cv_as_ix86_quad = yes; then
24822 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24827 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24828 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24830 else
24831 gcc_cv_as_ix86_sahf=no
24832 if test x$gcc_cv_as != x; then
24833 $as_echo '.code64
24834 sahf' > conftest.s
24835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }
24841 then
24842 gcc_cv_as_ix86_sahf=yes
24843 else
24844 echo "configure: failed program was" >&5
24845 cat conftest.s >&5
24847 rm -f conftest.o conftest.s
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24851 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24852 if test $gcc_cv_as_ix86_sahf = yes; then
24854 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24859 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24860 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 gcc_cv_as_ix86_hle=no
24864 if test x$gcc_cv_as != x; then
24865 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24872 then
24873 gcc_cv_as_ix86_hle=yes
24874 else
24875 echo "configure: failed program was" >&5
24876 cat conftest.s >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24882 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24883 if test $gcc_cv_as_ix86_hle = yes; then
24885 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24890 $as_echo_n "checking assembler for swap suffix... " >&6; }
24891 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24893 else
24894 gcc_cv_as_ix86_swap=no
24895 if test x$gcc_cv_as != x; then
24896 $as_echo 'movl.s %esp, %ebp' > conftest.s
24897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24900 ac_status=$?
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }
24903 then
24904 gcc_cv_as_ix86_swap=yes
24905 else
24906 echo "configure: failed program was" >&5
24907 cat conftest.s >&5
24909 rm -f conftest.o conftest.s
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24913 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24914 if test $gcc_cv_as_ix86_swap = yes; then
24916 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24921 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24922 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24924 else
24925 gcc_cv_as_ix86_diff_sect_delta=no
24926 if test x$gcc_cv_as != x; then
24927 $as_echo '.section .rodata
24928 .L1:
24929 .long .L2-.L1
24930 .long .L3-.L1
24931 .text
24932 .L3: nop
24933 .L2: nop' > conftest.s
24934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24939 test $ac_status = 0; }; }
24940 then
24941 gcc_cv_as_ix86_diff_sect_delta=yes
24942 else
24943 echo "configure: failed program was" >&5
24944 cat conftest.s >&5
24946 rm -f conftest.o conftest.s
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24950 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24951 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24953 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24957 # These two are used unconditionally by i386.[ch]; it is to be defined
24958 # to 1 if the feature is present, 0 otherwise.
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24960 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24961 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964 gcc_cv_as_ix86_gotoff_in_data=no
24965 if test $in_tree_gas = yes; then
24966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24967 then gcc_cv_as_ix86_gotoff_in_data=yes
24969 elif test x$gcc_cv_as != x; then
24970 $as_echo ' .text
24971 .L0:
24973 .data
24974 .long .L0@GOTOFF' > conftest.s
24975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24981 then
24982 gcc_cv_as_ix86_gotoff_in_data=yes
24983 else
24984 echo "configure: failed program was" >&5
24985 cat conftest.s >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24991 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24994 cat >>confdefs.h <<_ACEOF
24995 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24996 _ACEOF
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25000 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25001 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25003 else
25004 gcc_cv_as_ix86_rep_lock_prefix=no
25005 if test x$gcc_cv_as != x; then
25006 $as_echo 'rep movsl
25007 rep ret
25008 rep nop
25009 rep bsf %ecx, %eax
25010 rep bsr %ecx, %eax
25011 lock addl %edi, (%eax,%esi)
25012 lock orl $0, (%esp)' > conftest.s
25013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25015 (eval $ac_try) 2>&5
25016 ac_status=$?
25017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25018 test $ac_status = 0; }; }
25019 then
25020 gcc_cv_as_ix86_rep_lock_prefix=yes
25021 else
25022 echo "configure: failed program was" >&5
25023 cat conftest.s >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25029 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25030 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25032 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25037 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25038 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25040 else
25041 gcc_cv_as_ix86_tlsgdplt=no
25042 if test x$gcc_cv_as != x; then
25043 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25050 then
25051 if test x$gcc_cv_ld != x \
25052 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25053 gcc_cv_as_ix86_tlsgdplt=yes
25055 rm -f conftest
25056 else
25057 echo "configure: failed program was" >&5
25058 cat conftest.s >&5
25060 rm -f conftest.o conftest.s
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25064 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25065 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25067 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25072 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25073 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25075 else
25076 gcc_cv_as_ix86_tlsldmplt=no
25077 if test x$gcc_cv_as != x; then
25078 $as_echo 'tls_ld:
25079 call tls_ld@tlsldmplt' > conftest.s
25080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25086 then
25087 if test x$gcc_cv_ld != x \
25088 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25089 gcc_cv_as_ix86_tlsldmplt=yes
25091 rm -f conftest
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25096 rm -f conftest.o conftest.s
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25100 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25101 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25103 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25109 ia64*-*-*)
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25111 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25112 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25114 else
25115 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25116 if test $in_tree_gas = yes; then
25117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25118 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25120 elif test x$gcc_cv_as != x; then
25121 $as_echo ' .text
25122 addl r15 = @ltoffx(x#), gp
25124 ld8.mov r16 = [r15], x#' > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25131 then
25132 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25133 else
25134 echo "configure: failed program was" >&5
25135 cat conftest.s >&5
25137 rm -f conftest.o conftest.s
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25141 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25142 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25144 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25150 powerpc*-*-*)
25151 case $target in
25152 *-*-aix*) conftest_s=' .machine "pwr5"
25153 .csect .text[PR]
25154 mfcr 3,128';;
25155 *-*-darwin*)
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25157 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25158 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25159 $as_echo_n "(cached) " >&6
25160 else
25161 gcc_cv_as_machine_directive=no
25162 if test x$gcc_cv_as != x; then
25163 $as_echo ' .machine ppc7400' > conftest.s
25164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25170 then
25171 gcc_cv_as_machine_directive=yes
25172 else
25173 echo "configure: failed program was" >&5
25174 cat conftest.s >&5
25176 rm -f conftest.o conftest.s
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25180 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25182 if test x$gcc_cv_as_machine_directive != xyes; then
25183 echo "*** This target requires an assembler supporting \".machine\"" >&2
25184 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25185 test x$build = x$target && exit 1
25187 conftest_s=' .text
25188 mfcr r3,128';;
25189 *) conftest_s=' .machine power4
25190 .text
25191 mfcr 3,128';;
25192 esac
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25195 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25196 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 gcc_cv_as_powerpc_mfcrf=no
25200 if test $in_tree_gas = yes; then
25201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25202 then gcc_cv_as_powerpc_mfcrf=yes
25204 elif test x$gcc_cv_as != x; then
25205 $as_echo "$conftest_s" > 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_powerpc_mfcrf=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_powerpc_mfcrf" >&5
25222 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25223 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25225 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25229 case $target in
25230 *-*-aix*) conftest_s=' .machine "pwr5"
25231 .csect .text[PR]
25232 popcntb 3,3';;
25233 *) conftest_s=' .machine power5
25234 .text
25235 popcntb 3,3';;
25236 esac
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25239 $as_echo_n "checking assembler for popcntb support... " >&6; }
25240 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25241 $as_echo_n "(cached) " >&6
25242 else
25243 gcc_cv_as_powerpc_popcntb=no
25244 if test $in_tree_gas = yes; then
25245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25246 then gcc_cv_as_powerpc_popcntb=yes
25248 elif test x$gcc_cv_as != x; then
25249 $as_echo "$conftest_s" > conftest.s
25250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25256 then
25257 gcc_cv_as_powerpc_popcntb=yes
25258 else
25259 echo "configure: failed program was" >&5
25260 cat conftest.s >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25266 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25267 if test $gcc_cv_as_powerpc_popcntb = yes; then
25269 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25273 case $target in
25274 *-*-aix*) conftest_s=' .machine "pwr5x"
25275 .csect .text[PR]
25276 frin 1,1';;
25277 *) conftest_s=' .machine power5
25278 .text
25279 frin 1,1';;
25280 esac
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25283 $as_echo_n "checking assembler for fp round support... " >&6; }
25284 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25285 $as_echo_n "(cached) " >&6
25286 else
25287 gcc_cv_as_powerpc_fprnd=no
25288 if test $in_tree_gas = yes; then
25289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25290 then gcc_cv_as_powerpc_fprnd=yes
25292 elif test x$gcc_cv_as != x; then
25293 $as_echo "$conftest_s" > conftest.s
25294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25299 test $ac_status = 0; }; }
25300 then
25301 gcc_cv_as_powerpc_fprnd=yes
25302 else
25303 echo "configure: failed program was" >&5
25304 cat conftest.s >&5
25306 rm -f conftest.o conftest.s
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25310 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25311 if test $gcc_cv_as_powerpc_fprnd = yes; then
25313 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25317 case $target in
25318 *-*-aix*) conftest_s=' .machine "pwr6"
25319 .csect .text[PR]
25320 mffgpr 1,3';;
25321 *) conftest_s=' .machine power6
25322 .text
25323 mffgpr 1,3';;
25324 esac
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25327 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25328 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25329 $as_echo_n "(cached) " >&6
25330 else
25331 gcc_cv_as_powerpc_mfpgpr=no
25332 if test $in_tree_gas = yes; then
25333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25334 then gcc_cv_as_powerpc_mfpgpr=yes
25336 elif test x$gcc_cv_as != x; then
25337 $as_echo "$conftest_s" > conftest.s
25338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25343 test $ac_status = 0; }; }
25344 then
25345 gcc_cv_as_powerpc_mfpgpr=yes
25346 else
25347 echo "configure: failed program was" >&5
25348 cat conftest.s >&5
25350 rm -f conftest.o conftest.s
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25354 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25355 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25357 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25361 case $target in
25362 *-*-aix*) conftest_s=' .csect .text[PR]
25363 LCF..0:
25364 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25365 *-*-darwin*)
25366 conftest_s=' .text
25367 LCF0:
25368 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25369 *) conftest_s=' .text
25370 .LCF0:
25371 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25372 esac
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25375 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25376 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25378 else
25379 gcc_cv_as_powerpc_rel16=no
25380 if test $in_tree_gas = yes; then
25381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25382 then gcc_cv_as_powerpc_rel16=yes
25384 elif test x$gcc_cv_as != x; then
25385 $as_echo "$conftest_s" > conftest.s
25386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25392 then
25393 gcc_cv_as_powerpc_rel16=yes
25394 else
25395 echo "configure: failed program was" >&5
25396 cat conftest.s >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25402 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25403 if test $gcc_cv_as_powerpc_rel16 = yes; then
25405 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25409 case $target in
25410 *-*-aix*) conftest_s=' .machine "pwr6"
25411 .csect .text[PR]
25412 cmpb 3,4,5';;
25413 *) conftest_s=' .machine power6
25414 .text
25415 cmpb 3,4,5';;
25416 esac
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25419 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25420 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25422 else
25423 gcc_cv_as_powerpc_cmpb=no
25424 if test $in_tree_gas = yes; then
25425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25426 then gcc_cv_as_powerpc_cmpb=yes
25428 elif test x$gcc_cv_as != x; then
25429 $as_echo "$conftest_s" > conftest.s
25430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25436 then
25437 gcc_cv_as_powerpc_cmpb=yes
25438 else
25439 echo "configure: failed program was" >&5
25440 cat conftest.s >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25446 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25447 if test $gcc_cv_as_powerpc_cmpb = yes; then
25449 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25453 case $target in
25454 *-*-aix*) conftest_s=' .machine "pwr6"
25455 .csect .text[PR]
25456 dadd 1,2,3';;
25457 *) conftest_s=' .machine power6
25458 .text
25459 dadd 1,2,3';;
25460 esac
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25463 $as_echo_n "checking assembler for decimal float support... " >&6; }
25464 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25465 $as_echo_n "(cached) " >&6
25466 else
25467 gcc_cv_as_powerpc_dfp=no
25468 if test $in_tree_gas = yes; then
25469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25470 then gcc_cv_as_powerpc_dfp=yes
25472 elif test x$gcc_cv_as != x; then
25473 $as_echo "$conftest_s" > conftest.s
25474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25480 then
25481 gcc_cv_as_powerpc_dfp=yes
25482 else
25483 echo "configure: failed program was" >&5
25484 cat conftest.s >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25490 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25491 if test $gcc_cv_as_powerpc_dfp = yes; then
25493 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25497 case $target in
25498 *-*-aix*) conftest_s=' .machine "pwr7"
25499 .csect .text[PR]
25500 lxvd2x 1,2,3';;
25501 *) conftest_s=' .machine power7
25502 .text
25503 lxvd2x 1,2,3';;
25504 esac
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25507 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25508 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25509 $as_echo_n "(cached) " >&6
25510 else
25511 gcc_cv_as_powerpc_vsx=no
25512 if test $in_tree_gas = yes; then
25513 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25514 then gcc_cv_as_powerpc_vsx=yes
25516 elif test x$gcc_cv_as != x; then
25517 $as_echo "$conftest_s" > conftest.s
25518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25524 then
25525 gcc_cv_as_powerpc_vsx=yes
25526 else
25527 echo "configure: failed program was" >&5
25528 cat conftest.s >&5
25530 rm -f conftest.o conftest.s
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25534 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25535 if test $gcc_cv_as_powerpc_vsx = yes; then
25537 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25541 case $target in
25542 *-*-aix*) conftest_s=' .machine "pwr7"
25543 .csect .text[PR]
25544 popcntd 3,3';;
25545 *) conftest_s=' .machine power7
25546 .text
25547 popcntd 3,3';;
25548 esac
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25551 $as_echo_n "checking assembler for popcntd support... " >&6; }
25552 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
25554 else
25555 gcc_cv_as_powerpc_popcntd=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25558 then gcc_cv_as_powerpc_popcntd=yes
25560 elif test x$gcc_cv_as != x; then
25561 $as_echo "$conftest_s" > conftest.s
25562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25564 (eval $ac_try) 2>&5
25565 ac_status=$?
25566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25567 test $ac_status = 0; }; }
25568 then
25569 gcc_cv_as_powerpc_popcntd=yes
25570 else
25571 echo "configure: failed program was" >&5
25572 cat conftest.s >&5
25574 rm -f conftest.o conftest.s
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25578 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25579 if test $gcc_cv_as_powerpc_popcntd = yes; then
25581 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25585 case $target in
25586 *-*-aix*) conftest_s=' .machine "pwr8"
25587 .csect .text[PR]';;
25588 *) conftest_s=' .machine power8
25589 .text';;
25590 esac
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25593 $as_echo_n "checking assembler for power8 support... " >&6; }
25594 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_powerpc_power8=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_power8=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_power8=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_power8" >&5
25620 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25621 if test $gcc_cv_as_powerpc_power8 = yes; then
25623 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25627 case $target in
25628 *-*-aix*) conftest_s=' .csect .text[PR]
25629 lwsync';;
25630 *) conftest_s=' .text
25631 lwsync';;
25632 esac
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25635 $as_echo_n "checking assembler for lwsync support... " >&6; }
25636 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25637 $as_echo_n "(cached) " >&6
25638 else
25639 gcc_cv_as_powerpc_lwsync=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_lwsync=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_lwsync=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_lwsync" >&5
25662 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25663 if test $gcc_cv_as_powerpc_lwsync = yes; then
25665 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25669 case $target in
25670 *-*-aix*) conftest_s=' .machine "476"
25671 .csect .text[PR]
25672 dci 0';;
25673 *) conftest_s=' .machine "476"
25674 .text
25675 dci 0';;
25676 esac
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25679 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25680 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25681 $as_echo_n "(cached) " >&6
25682 else
25683 gcc_cv_as_powerpc_dci=no
25684 if test $in_tree_gas = yes; then
25685 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25686 then gcc_cv_as_powerpc_dci=yes
25688 elif test x$gcc_cv_as != x; then
25689 $as_echo "$conftest_s" > conftest.s
25690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 then
25697 gcc_cv_as_powerpc_dci=yes
25698 else
25699 echo "configure: failed program was" >&5
25700 cat conftest.s >&5
25702 rm -f conftest.o conftest.s
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25706 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25707 if test $gcc_cv_as_powerpc_dci = yes; then
25709 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25714 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25715 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25717 else
25718 gcc_cv_as_powerpc_gnu_attribute=no
25719 if test $in_tree_gas = yes; then
25720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25721 then gcc_cv_as_powerpc_gnu_attribute=yes
25723 elif test x$gcc_cv_as != x; then
25724 $as_echo '.gnu_attribute 4,1' > conftest.s
25725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25731 then
25732 gcc_cv_as_powerpc_gnu_attribute=yes
25733 else
25734 echo "configure: failed program was" >&5
25735 cat conftest.s >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25741 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25742 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25744 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25749 $as_echo_n "checking assembler for tls marker support... " >&6; }
25750 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25751 $as_echo_n "(cached) " >&6
25752 else
25753 gcc_cv_as_powerpc_tls_markers=no
25754 if test $in_tree_gas = yes; then
25755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25756 then gcc_cv_as_powerpc_tls_markers=yes
25758 elif test x$gcc_cv_as != x; then
25759 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }
25766 then
25767 gcc_cv_as_powerpc_tls_markers=yes
25768 else
25769 echo "configure: failed program was" >&5
25770 cat conftest.s >&5
25772 rm -f conftest.o conftest.s
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25776 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25777 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25779 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25783 case $target in
25784 *-*-aix*)
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25786 $as_echo_n "checking assembler for .ref support... " >&6; }
25787 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25789 else
25790 gcc_cv_as_aix_ref=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25793 then gcc_cv_as_aix_ref=yes
25795 elif test x$gcc_cv_as != x; then
25796 $as_echo ' .csect stuff[rw]
25797 stuff:
25798 .long 1
25799 .extern sym
25800 .ref sym
25801 ' > 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_aix_ref=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_aix_ref" >&5
25818 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25819 if test $gcc_cv_as_aix_ref = yes; then
25821 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25825 esac
25828 mips*-*-*)
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25830 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25831 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25832 $as_echo_n "(cached) " >&6
25833 else
25834 gcc_cv_as_mips_explicit_relocs=no
25835 if test $in_tree_gas = yes; then
25836 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25837 then gcc_cv_as_mips_explicit_relocs=yes
25839 elif test x$gcc_cv_as != x; then
25840 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25846 test $ac_status = 0; }; }
25847 then
25848 gcc_cv_as_mips_explicit_relocs=yes
25849 else
25850 echo "configure: failed program was" >&5
25851 cat conftest.s >&5
25853 rm -f conftest.o conftest.s
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25857 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25858 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25859 if test x$target_cpu_default = x
25860 then target_cpu_default=MASK_EXPLICIT_RELOCS
25861 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25865 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25866 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_mips_no_shared=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25872 then gcc_cv_as_mips_no_shared=yes
25874 elif test x$gcc_cv_as != x; then
25875 $as_echo 'nop' > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_mips_no_shared=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25892 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25893 if test $gcc_cv_as_mips_no_shared = yes; then
25895 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25900 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25901 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25904 gcc_cv_as_mips_gnu_attribute=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25907 then gcc_cv_as_mips_gnu_attribute=yes
25909 elif test x$gcc_cv_as != x; then
25910 $as_echo '.gnu_attribute 4,1' > conftest.s
25911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25917 then
25918 gcc_cv_as_mips_gnu_attribute=yes
25919 else
25920 echo "configure: failed program was" >&5
25921 cat conftest.s >&5
25923 rm -f conftest.o conftest.s
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25927 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25928 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25930 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25935 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25936 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25938 else
25939 gcc_cv_as_mips_dtprelword=no
25940 if test $in_tree_gas = yes; then
25941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25942 then gcc_cv_as_mips_dtprelword=yes
25944 elif test x$gcc_cv_as != x; then
25945 $as_echo '.section .tdata,"awT",@progbits
25947 .word 2
25948 .text
25949 .dtprelword x+0x8000' > conftest.s
25950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25955 test $ac_status = 0; }; }
25956 then
25957 gcc_cv_as_mips_dtprelword=yes
25958 else
25959 echo "configure: failed program was" >&5
25960 cat conftest.s >&5
25962 rm -f conftest.o conftest.s
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25966 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25967 if test $gcc_cv_as_mips_dtprelword = yes; then
25969 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25974 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25975 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25976 $as_echo_n "(cached) " >&6
25977 else
25978 gcc_cv_as_mips_dspr1_mult=no
25979 if test x$gcc_cv_as != x; then
25980 $as_echo ' .set mips32r2
25981 .set nodspr2
25982 .set dsp
25983 madd $ac3,$4,$5
25984 maddu $ac3,$4,$5
25985 msub $ac3,$4,$5
25986 msubu $ac3,$4,$5
25987 mult $ac3,$4,$5
25988 multu $ac3,$4,$5' > conftest.s
25989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991 (eval $ac_try) 2>&5
25992 ac_status=$?
25993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994 test $ac_status = 0; }; }
25995 then
25996 gcc_cv_as_mips_dspr1_mult=yes
25997 else
25998 echo "configure: failed program was" >&5
25999 cat conftest.s >&5
26001 rm -f conftest.o conftest.s
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26005 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26006 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26008 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26013 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26014 gcc_cv_as_ld_jalr_reloc=no
26015 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26016 if test $in_tree_ld = yes ; then
26017 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 \
26018 && test $in_tree_ld_is_elf = yes; then
26019 gcc_cv_as_ld_jalr_reloc=yes
26021 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26022 echo ' .ent x' > conftest.s
26023 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26024 echo ' ld $25,%call16(y)($28)' >> conftest.s
26025 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26026 echo '1: jalr $25' >> conftest.s
26027 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26028 echo '1: jalr $25' >> conftest.s
26029 echo ' .end x' >> conftest.s
26030 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26031 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26032 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26033 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26034 gcc_cv_as_ld_jalr_reloc=yes
26037 rm -f conftest.*
26040 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26041 if test x$target_cpu_default = x; then
26042 target_cpu_default=MASK_RELAX_PIC_CALLS
26043 else
26044 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26048 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26051 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26052 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26054 else
26055 gcc_cv_ld_mips_personality_relaxation=no
26056 if test $in_tree_ld = yes ; then
26057 if test "$gcc_cv_gld_major_version" -eq 2 \
26058 -a "$gcc_cv_gld_minor_version" -ge 21 \
26059 -o "$gcc_cv_gld_major_version" -gt 2; then
26060 gcc_cv_ld_mips_personality_relaxation=yes
26062 elif test x$gcc_cv_as != x \
26063 -a x$gcc_cv_ld != x \
26064 -a x$gcc_cv_readelf != x ; then
26065 cat > conftest.s <<EOF
26066 .cfi_startproc
26067 .cfi_personality 0x80,indirect_ptr
26068 .ent test
26069 test:
26071 .end test
26072 .cfi_endproc
26074 .section .data,"aw",@progbits
26075 indirect_ptr:
26076 .dc.a personality
26078 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26079 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26080 if $gcc_cv_readelf -d conftest 2>&1 \
26081 | grep TEXTREL > /dev/null 2>&1; then
26083 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26084 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26086 else
26087 gcc_cv_ld_mips_personality_relaxation=yes
26091 rm -f conftest.s conftest.o conftest
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26094 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26095 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26097 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26101 esac
26103 # Mips and HP-UX need the GNU assembler.
26104 # Linux on IA64 might be able to use the Intel assembler.
26106 case "$target" in
26107 mips*-*-* | *-*-hpux* )
26108 if test x$gas_flag = xyes \
26109 || test x"$host" != x"$build" \
26110 || test ! -x "$gcc_cv_as" \
26111 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26113 else
26114 echo "*** This configuration requires the GNU assembler" >&2
26115 exit 1
26118 esac
26120 # ??? Not all targets support dwarf2 debug_line, even within a version
26121 # of gas. Moreover, we need to emit a valid instruction to trigger any
26122 # info to the output file. So, as supported targets are added to gas 2.11,
26123 # add some instruction here to (also) show we expect this might work.
26124 # ??? Once 2.11 is released, probably need to add first known working
26125 # version to the per-target configury.
26126 case "$cpu_type" in
26127 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26128 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26129 insn="nop"
26131 ia64 | s390)
26132 insn="nop 0"
26134 mmix)
26135 insn="swym 0"
26137 esac
26138 if test x"$insn" != x; then
26139 conftest_s="\
26140 .file 1 \"conftest.s\"
26141 .loc 1 3 0
26142 $insn"
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26144 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26145 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26146 $as_echo_n "(cached) " >&6
26147 else
26148 gcc_cv_as_dwarf2_debug_line=no
26149 if test $in_tree_gas = yes; then
26150 if test $in_tree_gas_is_elf = yes \
26151 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26152 then gcc_cv_as_dwarf2_debug_line=yes
26154 elif test x$gcc_cv_as != x; then
26155 $as_echo "$conftest_s" > conftest.s
26156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26158 (eval $ac_try) 2>&5
26159 ac_status=$?
26160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26161 test $ac_status = 0; }; }
26162 then
26163 if test x$gcc_cv_objdump != x \
26164 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26165 | grep debug_line > /dev/null 2>&1; then
26166 gcc_cv_as_dwarf2_debug_line=yes
26168 else
26169 echo "configure: failed program was" >&5
26170 cat conftest.s >&5
26172 rm -f conftest.o conftest.s
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26176 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26179 # The .debug_line file table must be in the exact order that
26180 # we specified the files, since these indices are also used
26181 # by DW_AT_decl_file. Approximate this test by testing if
26182 # the assembler bitches if the same index is assigned twice.
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26184 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26185 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26186 $as_echo_n "(cached) " >&6
26187 else
26188 gcc_cv_as_dwarf2_file_buggy=no
26189 if test x$gcc_cv_as != x; then
26190 $as_echo ' .file 1 "foo.s"
26191 .file 1 "bar.s"' > conftest.s
26192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26197 test $ac_status = 0; }; }
26198 then
26199 gcc_cv_as_dwarf2_file_buggy=yes
26200 else
26201 echo "configure: failed program was" >&5
26202 cat conftest.s >&5
26204 rm -f conftest.o conftest.s
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26208 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26211 if test $gcc_cv_as_dwarf2_debug_line = yes \
26212 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26214 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26219 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26220 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26221 $as_echo_n "(cached) " >&6
26222 else
26223 gcc_cv_as_gdwarf2_flag=no
26224 if test $in_tree_gas = yes; then
26225 if test $in_tree_gas_is_elf = yes \
26226 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26227 then gcc_cv_as_gdwarf2_flag=yes
26229 elif test x$gcc_cv_as != x; then
26230 $as_echo "$insn" > conftest.s
26231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26236 test $ac_status = 0; }; }
26237 then
26238 gcc_cv_as_gdwarf2_flag=yes
26239 else
26240 echo "configure: failed program was" >&5
26241 cat conftest.s >&5
26243 rm -f conftest.o conftest.s
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26247 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26248 if test $gcc_cv_as_gdwarf2_flag = yes; then
26250 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26255 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26256 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26258 else
26259 gcc_cv_as_gstabs_flag=no
26260 if test $in_tree_gas = yes; then
26261 if test $in_tree_gas_is_elf = yes \
26262 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26263 then gcc_cv_as_gstabs_flag=yes
26265 elif test x$gcc_cv_as != x; then
26266 $as_echo "$insn" > conftest.s
26267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26272 test $ac_status = 0; }; }
26273 then
26274 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26275 # and warns about it, but still exits successfully. So check for
26276 # this.
26277 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26279 (eval $ac_try) 2>&5
26280 ac_status=$?
26281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26282 test $ac_status = 0; }; }
26283 then :
26284 else gcc_cv_as_gstabs_flag=yes
26286 else
26287 echo "configure: failed program was" >&5
26288 cat conftest.s >&5
26290 rm -f conftest.o conftest.s
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26294 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26295 if test $gcc_cv_as_gstabs_flag = yes; then
26297 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26302 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26303 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26305 else
26306 gcc_cv_as_debug_prefix_map_flag=no
26307 if test $in_tree_gas = yes; then
26308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26309 then gcc_cv_as_debug_prefix_map_flag=yes
26311 elif test x$gcc_cv_as != x; then
26312 $as_echo "$insn" > conftest.s
26313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26319 then
26320 gcc_cv_as_debug_prefix_map_flag=yes
26321 else
26322 echo "configure: failed program was" >&5
26323 cat conftest.s >&5
26325 rm -f conftest.o conftest.s
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26329 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26330 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26332 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26338 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26339 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26340 $as_echo_n "(cached) " >&6
26341 else
26342 gcc_cv_as_lcomm_with_alignment=no
26343 if test x$gcc_cv_as != x; then
26344 $as_echo '.lcomm bar,4,16' > conftest.s
26345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26351 then
26352 gcc_cv_as_lcomm_with_alignment=yes
26353 else
26354 echo "configure: failed program was" >&5
26355 cat conftest.s >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26361 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26362 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26364 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26368 # Check whether --enable-gnu-unique-object was given.
26369 if test "${enable_gnu_unique_object+set}" = set; then :
26370 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26371 yes | no) ;;
26372 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26373 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26374 esac
26375 else
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26377 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26378 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26379 $as_echo_n "(cached) " >&6
26380 else
26381 gcc_cv_as_gnu_unique_object=no
26382 if test $in_tree_gas = yes; then
26383 if test $in_tree_gas_is_elf = yes \
26384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26385 then gcc_cv_as_gnu_unique_object=yes
26387 elif test x$gcc_cv_as != x; then
26388 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26395 then
26396 gcc_cv_as_gnu_unique_object=yes
26397 else
26398 echo "configure: failed program was" >&5
26399 cat conftest.s >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26405 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26406 if test $gcc_cv_as_gnu_unique_object = yes; then
26407 # We need to unquote above to to use the definition from config.gcc.
26408 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26409 if test x$host = x$build -a x$host = x$target &&
26410 ldd --version 2>/dev/null &&
26411 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26412 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26413 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26414 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26415 if test "$glibcnum" -ge 2011 ; then
26416 enable_gnu_unique_object=yes
26422 if test x$enable_gnu_unique_object = xyes; then
26424 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26429 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26430 if test "${gcc_cv_as_line_zero+set}" = set; then :
26431 $as_echo_n "(cached) " >&6
26432 else
26433 gcc_cv_as_line_zero=no
26434 if test $in_tree_gas = yes; then
26435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26436 then gcc_cv_as_line_zero=yes
26438 elif test "x$gcc_cv_as" != x; then
26439 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26440 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; } &&
26446 test "x`cat conftest.out`" = x
26447 then
26448 gcc_cv_as_line_zero=yes
26449 else
26450 echo "configure: failed program was" >&5
26451 cat conftest.s >&5
26452 echo "configure: error output was" >&5
26453 cat conftest.out >&5
26455 rm -f conftest.o conftest.s conftest.out
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26459 $as_echo "$gcc_cv_as_line_zero" >&6; }
26460 if test "x$gcc_cv_as_line_zero" = xyes; then
26462 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26467 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26468 gcc_cv_ld_eh_frame_hdr=no
26469 if test $in_tree_ld = yes ; then
26470 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 \
26471 && test $in_tree_ld_is_elf = yes; then
26472 gcc_cv_ld_eh_frame_hdr=yes
26474 elif test x$gcc_cv_ld != x; then
26475 if echo "$ld_ver" | grep GNU > /dev/null; then
26476 # Check if linker supports --eh-frame-hdr option
26477 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26478 gcc_cv_ld_eh_frame_hdr=yes
26480 else
26481 case "$target" in
26482 *-*-solaris2*)
26483 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26484 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26485 gcc_cv_ld_eh_frame_hdr=yes
26488 esac
26492 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26494 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26498 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26501 $as_echo_n "checking linker position independent executable support... " >&6; }
26502 gcc_cv_ld_pie=no
26503 if test $in_tree_ld = yes ; then
26504 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 \
26505 && test $in_tree_ld_is_elf = yes; then
26506 gcc_cv_ld_pie=yes
26508 elif test x$gcc_cv_ld != x; then
26509 # Check if linker supports -pie option
26510 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26511 gcc_cv_ld_pie=yes
26514 if test x"$gcc_cv_ld_pie" = xyes; then
26516 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26520 $as_echo "$gcc_cv_ld_pie" >&6; }
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26523 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26524 gcc_cv_ld_eh_gc_sections=no
26525 if test $in_tree_ld = yes ; then
26526 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 \
26527 && test $in_tree_ld_is_elf = yes; then
26528 gcc_cv_ld_eh_gc_sections=yes
26530 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26531 cat > conftest.s <<EOF
26532 .section .text
26533 .globl _start
26534 .type _start, @function
26535 _start:
26536 .long foo
26537 .size _start, .-_start
26538 .section .text.foo,"ax",@progbits
26539 .type foo, @function
26540 foo:
26541 .long 0
26542 .size foo, .-foo
26543 .section .gcc_except_table.foo,"a",@progbits
26544 .L0:
26545 .long 0
26546 .section .eh_frame,"a",@progbits
26547 .long .L0
26549 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26550 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26551 | grep "gc-sections option ignored" > /dev/null; then
26552 gcc_cv_ld_eh_gc_sections=no
26553 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26554 | grep gcc_except_table > /dev/null; then
26555 gcc_cv_ld_eh_gc_sections=yes
26556 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26557 if test x$gcc_cv_as_comdat_group != xyes; then
26558 gcc_cv_ld_eh_gc_sections=no
26559 cat > conftest.s <<EOF
26560 .section .text
26561 .globl _start
26562 .type _start, @function
26563 _start:
26564 .long foo
26565 .size _start, .-_start
26566 .section .gnu.linkonce.t.foo,"ax",@progbits
26567 .type foo, @function
26568 foo:
26569 .long 0
26570 .size foo, .-foo
26571 .section .gcc_except_table.foo,"a",@progbits
26572 .L0:
26573 .long 0
26574 .section .eh_frame,"a",@progbits
26575 .long .L0
26577 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26578 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26579 | grep "gc-sections option ignored" > /dev/null; then
26580 gcc_cv_ld_eh_gc_sections=no
26581 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26582 | grep gcc_except_table > /dev/null; then
26583 gcc_cv_ld_eh_gc_sections=yes
26589 rm -f conftest.s conftest.o conftest
26591 case "$target" in
26592 hppa*-*-linux*)
26593 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26594 gcc_cv_ld_eh_gc_sections=no
26596 esac
26597 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26599 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26603 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26606 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26607 gcc_cv_ld_eh_gc_sections_bug=no
26608 if test $in_tree_ld = yes ; then
26609 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 \
26610 && test $in_tree_ld_is_elf = yes; then
26611 gcc_cv_ld_eh_gc_sections_bug=yes
26613 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
26614 gcc_cv_ld_eh_gc_sections_bug=yes
26615 cat > conftest.s <<EOF
26616 .section .text
26617 .globl _start
26618 .type _start, @function
26619 _start:
26620 .long foo
26621 .size _start, .-_start
26622 .section .text.startup.foo,"ax",@progbits
26623 .type foo, @function
26624 foo:
26625 .long 0
26626 .size foo, .-foo
26627 .section .gcc_except_table.foo,"a",@progbits
26628 .L0:
26629 .long 0
26630 .section .eh_frame,"a",@progbits
26631 .long .L0
26633 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26634 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26635 | grep "gc-sections option ignored" > /dev/null; then
26637 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26638 | grep gcc_except_table > /dev/null; then
26639 gcc_cv_ld_eh_gc_sections_bug=no
26642 rm -f conftest.s conftest.o conftest
26644 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26646 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26650 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26652 # --------
26653 # UNSORTED
26654 # --------
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26657 $as_echo_n "checking linker --as-needed support... " >&6; }
26658 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26660 else
26661 gcc_cv_ld_as_needed=no
26662 if test $in_tree_ld = yes ; then
26663 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 \
26664 && test $in_tree_ld_is_elf = yes; then
26665 gcc_cv_ld_as_needed=yes
26667 elif test x$gcc_cv_ld != x; then
26668 # Check if linker supports --as-needed and --no-as-needed options
26669 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26670 gcc_cv_ld_as_needed=yes
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26676 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26677 if test x"$gcc_cv_ld_as_needed" = xyes; then
26679 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26683 case "$target:$tm_file" in
26684 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26685 case "$target" in
26686 *-*-linux*)
26687 emul_name="-melf64ppc"
26689 *-*-freebsd*)
26690 emul_name="-melf64ppc_fbsd"
26692 esac
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26694 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26695 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26696 $as_echo_n "(cached) " >&6
26697 else
26698 gcc_cv_ld_no_dot_syms=no
26699 if test x"$ld_is_gold" = xyes; then
26700 gcc_cv_ld_no_dot_syms=yes
26701 elif test $in_tree_ld = yes ; then
26702 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
26703 gcc_cv_ld_no_dot_syms=yes
26705 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26706 cat > conftest1.s <<EOF
26707 .text
26708 bl .foo
26710 cat > conftest2.s <<EOF
26711 .section ".opd","aw"
26712 .align 3
26713 .globl foo
26714 .type foo,@function
26715 foo:
26716 .quad .LEfoo,.TOC.@tocbase,0
26717 .text
26718 .LEfoo:
26720 .size foo,.-.LEfoo
26722 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26723 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26724 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26725 gcc_cv_ld_no_dot_syms=yes
26727 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26732 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26733 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26735 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26740 $as_echo_n "checking linker large toc support... " >&6; }
26741 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26742 $as_echo_n "(cached) " >&6
26743 else
26744 gcc_cv_ld_large_toc=no
26745 if test x"$ld_is_gold" = xyes; then
26746 gcc_cv_ld_large_toc=yes
26747 elif test $in_tree_ld = yes ; then
26748 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
26749 gcc_cv_ld_large_toc=yes
26751 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26752 cat > conftest.s <<EOF
26753 .section ".tbss","awT",@nobits
26754 .align 3
26755 ie0: .space 8
26756 .global _start
26757 .text
26758 _start:
26759 addis 9,13,ie0@got@tprel@ha
26760 ld 9,ie0@got@tprel@l(9)
26762 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26763 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26764 gcc_cv_ld_large_toc=yes
26766 rm -f conftest conftest.o conftest.s
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26771 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26772 if test x"$gcc_cv_ld_large_toc" = xyes; then
26774 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26778 esac
26780 case "$target" in
26781 *-*-aix*)
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26783 $as_echo_n "checking linker large toc support... " >&6; }
26784 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26785 $as_echo_n "(cached) " >&6
26786 else
26787 gcc_cv_ld_large_toc=no
26788 if test x$gcc_cv_as != x ; then
26789 cat > conftest.s <<EOF
26790 .toc
26791 LC..1:
26792 .tc a[TC],a[RW]
26793 .extern a[RW]
26794 .csect .text[PR]
26795 .largetoctest:
26796 addis 9,LC..1@u(2)
26797 ld 3,LC..1@l(9)
26799 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26800 gcc_cv_ld_large_toc=yes
26802 rm -f conftest conftest.o conftest.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26807 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26808 if test x"$gcc_cv_ld_large_toc" = xyes; then
26810 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26814 esac
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26817 $as_echo_n "checking linker --build-id support... " >&6; }
26818 if test "${gcc_cv_ld_buildid+set}" = set; then :
26819 $as_echo_n "(cached) " >&6
26820 else
26821 gcc_cv_ld_buildid=no
26822 if test $in_tree_ld = yes ; then
26823 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26824 "$gcc_cv_gld_minor_version" -ge 18 -o \
26825 "$gcc_cv_gld_major_version" -gt 2 \
26826 && test $in_tree_ld_is_elf = yes; then
26827 gcc_cv_ld_buildid=yes
26829 elif test x$gcc_cv_ld != x; then
26830 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26831 gcc_cv_ld_buildid=yes
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26836 $as_echo "$gcc_cv_ld_buildid" >&6; }
26837 if test x"$gcc_cv_ld_buildid" = xyes; then
26839 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26843 # Check whether --enable-linker-build-id was given.
26844 if test "${enable_linker_build_id+set}" = set; then :
26845 enableval=$enable_linker_build_id;
26846 else
26847 enable_linker_build_id=no
26851 if test x"$enable_linker_build_id" = xyes; then
26852 if test x"$gcc_cv_ld_buildid" = xyes; then
26854 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26856 else
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26858 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26862 # In binutils 2.21, GNU ld gained support for new emulations fully
26863 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26865 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26866 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_ld_sol2_emulation=no
26870 if test $in_tree_ld = yes ; then
26871 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26872 "$gcc_cv_gld_minor_version" -ge 21 -o \
26873 "$gcc_cv_gld_major_version" -gt 2 \
26874 && test $in_tree_ld_is_elf = yes; then
26875 gcc_cv_ld_sol2_emulation=yes
26877 elif test x$gcc_cv_ld != x; then
26878 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26879 grep _sol2 > /dev/null; then
26880 gcc_cv_ld_sol2_emulation=yes
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26885 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26886 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26888 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26893 $as_echo_n "checking linker --sysroot support... " >&6; }
26894 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26895 $as_echo_n "(cached) " >&6
26896 else
26897 gcc_cv_ld_sysroot=no
26898 if test $in_tree_ld = yes ; then
26899 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
26900 gcc_cv_ld_sysroot=yes
26902 elif test x$gcc_cv_ld != x; then
26903 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26904 gcc_cv_ld_sysroot=yes
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26909 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26910 if test x"$gcc_cv_ld_sysroot" = xyes; then
26912 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26916 if test x$with_sysroot = x && test x$host = x$target \
26917 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26918 && test "$prefix" != "NONE"; then
26920 cat >>confdefs.h <<_ACEOF
26921 #define PREFIX_INCLUDE_DIR "$prefix/include"
26922 _ACEOF
26926 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26927 if test "x$with_headers" != x; then
26928 target_header_dir=$with_headers
26929 elif test "x$with_sysroot" = x; then
26930 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26931 elif test "x$with_build_sysroot" != "x"; then
26932 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26933 elif test "x$with_sysroot" = xyes; then
26934 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26935 else
26936 target_header_dir="${with_sysroot}${native_system_header_dir}"
26938 else
26939 target_header_dir=${native_system_header_dir}
26942 # Test for stack protector support in target C library.
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26944 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26945 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26946 $as_echo_n "(cached) " >&6
26947 else
26948 gcc_cv_libc_provides_ssp=no
26949 case "$target" in
26950 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26951 # glibc 2.4 and later provides __stack_chk_fail and
26952 # either __stack_chk_guard, or TLS access to stack guard canary.
26953 if test -f $target_header_dir/features.h \
26954 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26955 $target_header_dir/features.h > /dev/null; then
26956 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26957 $target_header_dir/features.h > /dev/null; then
26958 gcc_cv_libc_provides_ssp=yes
26959 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26960 $target_header_dir/features.h > /dev/null \
26961 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26962 $target_header_dir/features.h > /dev/null; then
26963 gcc_cv_libc_provides_ssp=yes
26964 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26965 $target_header_dir/features.h > /dev/null && \
26966 test -f $target_header_dir/bits/uClibc_config.h && \
26967 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26968 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26969 gcc_cv_libc_provides_ssp=yes
26971 # all versions of Bionic support stack protector
26972 elif test -f $target_header_dir/sys/cdefs.h \
26973 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26974 $target_header_dir/sys/cdefs.h > /dev/null; then
26975 gcc_cv_libc_provides_ssp=yes
26978 *-*-gnu*)
26979 # Avoid complicated tests (see
26980 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26981 # simply assert that glibc does provide this, which is true for all
26982 # realistically usable GNU/Hurd configurations.
26983 gcc_cv_libc_provides_ssp=yes;;
26984 *-*-darwin* | *-*-freebsd*)
26985 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26986 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26987 gcc_cv_libc_provides_ssp=yes
26988 else
26989 echo "no __stack_chk_fail on this target"
26993 *) gcc_cv_libc_provides_ssp=no ;;
26994 esac
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26997 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26999 if test x$gcc_cv_libc_provides_ssp = xyes; then
27001 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27005 # Test for <sys/sdt.h> on the target.
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27008 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27009 have_sys_sdt_h=no
27010 if test -f $target_header_dir/sys/sdt.h; then
27011 have_sys_sdt_h=yes
27013 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27017 $as_echo "$have_sys_sdt_h" >&6; }
27019 # Check if TFmode long double should be used by default or not.
27020 # Some glibc targets used DFmode long double, but with glibc 2.4
27021 # and later they can use TFmode.
27022 case "$target" in
27023 powerpc*-*-linux* | \
27024 sparc*-*-linux* | \
27025 s390*-*-linux* | \
27026 alpha*-*-linux*)
27028 # Check whether --with-long-double-128 was given.
27029 if test "${with_long_double_128+set}" = set; then :
27030 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27031 else
27032 gcc_cv_target_ldbl128=no
27033 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27034 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27035 && gcc_cv_target_ldbl128=yes
27040 esac
27041 if test x$gcc_cv_target_ldbl128 = xyes; then
27043 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27048 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27049 gcc_cv_target_dl_iterate_phdr=unknown
27050 case "$target" in
27051 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27052 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27053 # libdl there, both complicating its use and breaking compatibility
27054 # between Solaris 10 updates.
27055 *-*-solaris2.1[1-9]*)
27056 # <link.h> needs both a dl_iterate_phdr declaration and support for
27057 # compilation with largefile support.
27058 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27059 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27060 gcc_cv_target_dl_iterate_phdr=yes
27061 else
27062 gcc_cv_target_dl_iterate_phdr=no
27065 esac
27067 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27069 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27073 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27075 # Find out what GC implementation we want, or may, use.
27077 # Check whether --with-gc was given.
27078 if test "${with_gc+set}" = set; then :
27079 withval=$with_gc; case "$withval" in
27080 page)
27081 GGC=ggc-$withval
27083 zone)
27084 GGC=ggc-$withval
27086 $as_echo "#define GGC_ZONE 1" >>confdefs.h
27090 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
27092 esac
27093 else
27094 GGC=ggc-page
27098 echo "Using $GGC for garbage collection."
27100 # Libraries to use on the host. This will normally be set by the top
27101 # level Makefile. Here we simply capture the value for our Makefile.
27102 if test -z "${HOST_LIBS+set}"; then
27103 HOST_LIBS=
27107 # Use the system's zlib library.
27108 zlibdir=-L../zlib
27109 zlibinc="-I\$(srcdir)/../zlib"
27111 # Check whether --with-system-zlib was given.
27112 if test "${with_system_zlib+set}" = set; then :
27113 withval=$with_system_zlib; zlibdir=
27114 zlibinc=
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27123 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27124 # Check whether --enable-maintainer-mode was given.
27125 if test "${enable_maintainer_mode+set}" = set; then :
27126 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27127 else
27128 maintainer_mode=no
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27133 $as_echo "$maintainer_mode" >&6; }
27135 if test "$maintainer_mode" = "yes"; then
27136 MAINT=''
27137 else
27138 MAINT='#'
27141 # --------------
27142 # Language hooks
27143 # --------------
27145 # Make empty files to contain the specs and options for each language.
27146 # Then add #include lines to for a compiler that has specs and/or options.
27148 subdirs=
27149 lang_opt_files=
27150 lang_specs_files=
27151 lang_tree_files=
27152 # These (without "all_") are set in each config-lang.in.
27153 # `language' must be a single word so is spelled singularly.
27154 all_languages=
27155 all_compilers=
27156 all_outputs='Makefile'
27157 # List of language makefile fragments.
27158 all_lang_makefrags=
27159 # Additional files for gengtype
27160 all_gtfiles="$target_gtfiles"
27162 # These are the languages that are set in --enable-languages,
27163 # and are available in the GCC tree.
27164 all_selected_languages=
27166 # Add the language fragments.
27167 # Languages are added via two mechanisms. Some information must be
27168 # recorded in makefile variables, these are defined in config-lang.in.
27169 # We accumulate them and plug them into the main Makefile.
27170 # The other mechanism is a set of hooks for each of the main targets
27171 # like `clean', `install', etc.
27173 language_hooks="Make-hooks"
27175 for lang in ${srcdir}/*/config-lang.in
27177 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27179 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27180 if test "x$lang_alias" = x
27181 then
27182 echo "$lang doesn't set \$language." 1>&2
27183 exit 1
27185 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27186 subdirs="$subdirs $subdir"
27188 # $gcc_subdir is where the gcc integration files are to be found
27189 # for a language, both for internal compiler purposes (compiler
27190 # sources implementing front-end to GCC tree converters), and for
27191 # build infrastructure purposes (Make-lang.in, etc.)
27193 # This will be <subdir> (relative to $srcdir) if a line like
27194 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27195 # is found in <langdir>/config-lang.in, and will remain <langdir>
27196 # otherwise.
27198 # Except for the language alias (fetched above), the regular
27199 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27200 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27201 # only this and the language alias.
27203 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27204 if [ "$gcc_subdir" = "" ]; then
27205 gcc_subdir="$subdir"
27208 case ",$enable_languages," in
27209 *,$lang_alias,*)
27210 all_selected_languages="$all_selected_languages $lang_alias"
27211 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27212 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27215 esac
27217 language=
27218 boot_language=
27219 compilers=
27220 outputs=
27221 gtfiles=
27222 subdir_requires=
27223 . ${srcdir}/$gcc_subdir/config-lang.in
27224 if test "x$language" = x
27225 then
27226 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27227 exit 1
27230 ok=:
27231 case ",$enable_languages," in
27232 *,$lang_alias,*) ;;
27234 for i in $subdir_requires; do
27235 test -f "${srcdir}/$i/config-lang.in" && continue
27236 ok=false
27237 break
27238 done
27240 esac
27241 $ok || continue
27243 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27244 if test -f $srcdir/$gcc_subdir/lang.opt; then
27245 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27246 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27248 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27249 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27251 all_languages="$all_languages $language"
27252 all_compilers="$all_compilers $compilers"
27253 all_outputs="$all_outputs $outputs"
27254 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27255 case ",$enable_languages," in
27256 *,lto,*)
27258 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27260 enable_lto=yes
27263 *) ;;
27264 esac
27265 done
27267 check_languages=
27268 for language in $all_selected_languages
27270 check_languages="$check_languages check-$language"
27271 done
27273 # We link each language in with a set of hooks, reached indirectly via
27274 # lang.${target}. Only do so for selected languages.
27276 rm -f Make-hooks
27277 touch Make-hooks
27278 target_list="all.cross start.encap rest.encap tags \
27279 install-common install-man install-info install-pdf install-html dvi \
27280 pdf html uninstall info man srcextra srcman srcinfo \
27281 mostlyclean clean distclean maintainer-clean install-plugin"
27283 for t in $target_list
27286 for lang in $all_selected_languages
27288 x="$x $lang.$t"
27289 done
27290 echo "lang.$t: $x" >> Make-hooks
27291 done
27293 # --------
27294 # Option include files
27295 # --------
27297 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27298 option_includes="option-includes.mk"
27301 # --------
27302 # UNSORTED
27303 # --------
27305 # Create .gdbinit.
27307 echo "dir ." > .gdbinit
27308 echo "dir ${srcdir}" >> .gdbinit
27309 if test x$gdb_needs_out_file_path = xyes
27310 then
27311 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27313 if test "x$subdirs" != x; then
27314 for s in $subdirs
27316 echo "dir ${srcdir}/$s" >> .gdbinit
27317 done
27319 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27321 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27325 # Find a directory in which to install a shared libgcc.
27327 # Check whether --enable-version-specific-runtime-libs was given.
27328 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27329 enableval=$enable_version_specific_runtime_libs;
27333 # Substitute configuration variables
27396 # Echo link setup.
27397 if test x${build} = x${host} ; then
27398 if test x${host} = x${target} ; then
27399 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27400 else
27401 echo "Links are now set up to build a cross-compiler" 1>&2
27402 echo " from ${host} to ${target}." 1>&2
27404 else
27405 if test x${host} = x${target} ; then
27406 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27407 echo " for ${target}." 1>&2
27408 else
27409 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27410 echo " from ${host} to ${target}." 1>&2
27422 if test "x${CLOOGLIBS}" != "x" ; then
27424 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27428 # Check for plugin support
27429 # Check whether --enable-plugin was given.
27430 if test "${enable_plugin+set}" = set; then :
27431 enableval=$enable_plugin; enable_plugin=$enableval
27432 else
27433 enable_plugin=yes; default_plugin=yes
27437 pluginlibs=
27439 case "${host}" in
27440 *-*-darwin*)
27441 if test x$build = x$host; then
27442 export_sym_check="nm${exeext} -g"
27443 elif test x$host = x$target; then
27444 export_sym_check="$gcc_cv_nm -g"
27445 else
27446 export_sym_check=
27450 if test x$build = x$host; then
27451 export_sym_check="objdump${exeext} -T"
27452 elif test x$host = x$target; then
27453 export_sym_check="$gcc_cv_objdump -T"
27454 else
27455 export_sym_check=
27458 esac
27460 if test x"$enable_plugin" = x"yes"; then
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27463 $as_echo_n "checking for exported symbols... " >&6; }
27464 if test "x$export_sym_check" != x; then
27465 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27466 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27467 if $export_sym_check conftest | grep foobar > /dev/null; then
27468 : # No need to use a flag
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27470 $as_echo "yes" >&6; }
27471 else
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27473 $as_echo "yes" >&6; }
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27475 $as_echo_n "checking for -rdynamic... " >&6; }
27476 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27477 if $export_sym_check conftest | grep foobar > /dev/null; then
27478 plugin_rdynamic=yes
27479 pluginlibs="-rdynamic"
27480 else
27481 plugin_rdynamic=no
27482 enable_plugin=no
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27485 $as_echo "$plugin_rdynamic" >&6; }
27487 else
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27489 $as_echo "unable to check" >&6; }
27492 # Check -ldl
27493 saved_LIBS="$LIBS"
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27495 $as_echo_n "checking for library containing dlopen... " >&6; }
27496 if test "${ac_cv_search_dlopen+set}" = set; then :
27497 $as_echo_n "(cached) " >&6
27498 else
27499 ac_func_search_save_LIBS=$LIBS
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27503 /* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27506 #ifdef __cplusplus
27507 extern "C"
27508 #endif
27509 char dlopen ();
27511 main ()
27513 return dlopen ();
27515 return 0;
27517 _ACEOF
27518 for ac_lib in '' dl; do
27519 if test -z "$ac_lib"; then
27520 ac_res="none required"
27521 else
27522 ac_res=-l$ac_lib
27523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27525 if ac_fn_c_try_link "$LINENO"; then :
27526 ac_cv_search_dlopen=$ac_res
27528 rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext
27530 if test "${ac_cv_search_dlopen+set}" = set; then :
27531 break
27533 done
27534 if test "${ac_cv_search_dlopen+set}" = set; then :
27536 else
27537 ac_cv_search_dlopen=no
27539 rm conftest.$ac_ext
27540 LIBS=$ac_func_search_save_LIBS
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27543 $as_echo "$ac_cv_search_dlopen" >&6; }
27544 ac_res=$ac_cv_search_dlopen
27545 if test "$ac_res" != no; then :
27546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27550 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27551 pluginlibs="$pluginlibs -ldl"
27553 LIBS="$saved_LIBS"
27555 # Check that we can build shared objects with -fPIC -shared
27556 saved_LDFLAGS="$LDFLAGS"
27557 saved_CFLAGS="$CFLAGS"
27558 case "${host}" in
27559 *-*-darwin*)
27560 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27561 CFLAGS="$CFLAGS -fPIC"
27562 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27565 CFLAGS="$CFLAGS -fPIC"
27566 LDFLAGS="$LDFLAGS -fPIC -shared"
27568 esac
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27570 $as_echo_n "checking for -fPIC -shared... " >&6; }
27571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27572 /* end confdefs.h. */
27573 extern int X;
27575 main ()
27577 return X == 0;
27579 return 0;
27581 _ACEOF
27582 if ac_fn_c_try_link "$LINENO"; then :
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27584 $as_echo "yes" >&6; }; have_pic_shared=yes
27585 else
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27587 $as_echo "no" >&6; }; have_pic_shared=no
27589 rm -f core conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
27591 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27592 pluginlibs=
27593 enable_plugin=no
27595 LDFLAGS="$saved_LDFLAGS"
27596 CFLAGS="$saved_CFLAGS"
27598 # If plugin support had been requested but not available, fail.
27599 if test x"$enable_plugin" = x"no" ; then
27600 if test x"$default_plugin" != x"yes"; then
27601 as_fn_error "
27602 Building GCC with plugin support requires a host that supports
27603 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27610 if test x"$enable_plugin" = x"yes"; then
27612 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27617 # Check whether --enable-libquadmath-support was given.
27618 if test "${enable_libquadmath_support+set}" = set; then :
27619 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27620 else
27621 ENABLE_LIBQUADMATH_SUPPORT=yes
27624 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27626 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27631 # Specify what hash style to use by default.
27633 # Check whether --with-linker-hash-style was given.
27634 if test "${with_linker_hash_style+set}" = set; then :
27635 withval=$with_linker_hash_style; case x"$withval" in
27636 xsysv)
27637 LINKER_HASH_STYLE=sysv
27639 xgnu)
27640 LINKER_HASH_STYLE=gnu
27642 xboth)
27643 LINKER_HASH_STYLE=both
27646 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27648 esac
27649 else
27650 LINKER_HASH_STYLE=''
27653 if test x"${LINKER_HASH_STYLE}" != x; then
27655 cat >>confdefs.h <<_ACEOF
27656 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27657 _ACEOF
27661 # Configure the subdirectories
27662 # AC_CONFIG_SUBDIRS($subdirs)
27664 # Create the Makefile
27665 # and configure language subdirectories
27666 ac_config_files="$ac_config_files $all_outputs"
27669 ac_config_commands="$ac_config_commands default"
27671 cat >confcache <<\_ACEOF
27672 # This file is a shell script that caches the results of configure
27673 # tests run on this system so they can be shared between configure
27674 # scripts and configure runs, see configure's option --config-cache.
27675 # It is not useful on other systems. If it contains results you don't
27676 # want to keep, you may remove or edit it.
27678 # config.status only pays attention to the cache file if you give it
27679 # the --recheck option to rerun configure.
27681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27683 # following values.
27685 _ACEOF
27687 # The following way of writing the cache mishandles newlines in values,
27688 # but we know of no workaround that is simple, portable, and efficient.
27689 # So, we kill variables containing newlines.
27690 # Ultrix sh set writes to stderr and can't be redirected directly,
27691 # and sets the high bit in the cache file unless we assign to the vars.
27693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27694 eval ac_val=\$$ac_var
27695 case $ac_val in #(
27696 *${as_nl}*)
27697 case $ac_var in #(
27698 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27699 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27700 esac
27701 case $ac_var in #(
27702 _ | IFS | as_nl) ;; #(
27703 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27704 *) { eval $ac_var=; unset $ac_var;} ;;
27705 esac ;;
27706 esac
27707 done
27709 (set) 2>&1 |
27710 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27711 *${as_nl}ac_space=\ *)
27712 # `set' does not quote correctly, so add quotes: double-quote
27713 # substitution turns \\\\ into \\, and sed turns \\ into \.
27714 sed -n \
27715 "s/'/'\\\\''/g;
27716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27717 ;; #(
27719 # `set' quotes correctly as required by POSIX, so do not add quotes.
27720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27722 esac |
27723 sort
27725 sed '
27726 /^ac_cv_env_/b end
27727 t clear
27728 :clear
27729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27730 t end
27731 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27732 :end' >>confcache
27733 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27734 if test -w "$cache_file"; then
27735 test "x$cache_file" != "x/dev/null" &&
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27737 $as_echo "$as_me: updating cache $cache_file" >&6;}
27738 cat confcache >$cache_file
27739 else
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27744 rm -f confcache
27746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27747 # Let make expand exec_prefix.
27748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27750 DEFS=-DHAVE_CONFIG_H
27752 ac_libobjs=
27753 ac_ltlibobjs=
27754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27755 # 1. Remove the extension, and $U if already installed.
27756 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27757 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27759 # will be set to the directory where LIBOBJS objects are built.
27760 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27761 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27762 done
27763 LIBOBJS=$ac_libobjs
27765 LTLIBOBJS=$ac_ltlibobjs
27770 : ${CONFIG_STATUS=./config.status}
27771 ac_write_fail=0
27772 ac_clean_files_save=$ac_clean_files
27773 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27775 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27776 as_write_fail=0
27777 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27778 #! $SHELL
27779 # Generated by $as_me.
27780 # Run this file to recreate the current configuration.
27781 # Compiler output produced by configure, useful for debugging
27782 # configure, is in config.log if it exists.
27784 debug=false
27785 ac_cs_recheck=false
27786 ac_cs_silent=false
27788 SHELL=\${CONFIG_SHELL-$SHELL}
27789 export SHELL
27790 _ASEOF
27791 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27792 ## -------------------- ##
27793 ## M4sh Initialization. ##
27794 ## -------------------- ##
27796 # Be more Bourne compatible
27797 DUALCASE=1; export DUALCASE # for MKS sh
27798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27799 emulate sh
27800 NULLCMD=:
27801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27802 # is contrary to our usage. Disable this feature.
27803 alias -g '${1+"$@"}'='"$@"'
27804 setopt NO_GLOB_SUBST
27805 else
27806 case `(set -o) 2>/dev/null` in #(
27807 *posix*) :
27808 set -o posix ;; #(
27809 *) :
27811 esac
27815 as_nl='
27817 export as_nl
27818 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27819 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27822 # Prefer a ksh shell builtin over an external printf program on Solaris,
27823 # but without wasting forks for bash or zsh.
27824 if test -z "$BASH_VERSION$ZSH_VERSION" \
27825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27826 as_echo='print -r --'
27827 as_echo_n='print -rn --'
27828 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27829 as_echo='printf %s\n'
27830 as_echo_n='printf %s'
27831 else
27832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27834 as_echo_n='/usr/ucb/echo -n'
27835 else
27836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27837 as_echo_n_body='eval
27838 arg=$1;
27839 case $arg in #(
27840 *"$as_nl"*)
27841 expr "X$arg" : "X\\(.*\\)$as_nl";
27842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27843 esac;
27844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27846 export as_echo_n_body
27847 as_echo_n='sh -c $as_echo_n_body as_echo'
27849 export as_echo_body
27850 as_echo='sh -c $as_echo_body as_echo'
27853 # The user is always right.
27854 if test "${PATH_SEPARATOR+set}" != set; then
27855 PATH_SEPARATOR=:
27856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27858 PATH_SEPARATOR=';'
27863 # IFS
27864 # We need space, tab and new line, in precisely that order. Quoting is
27865 # there to prevent editors from complaining about space-tab.
27866 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27867 # splitting by setting IFS to empty value.)
27868 IFS=" "" $as_nl"
27870 # Find who we are. Look in the path if we contain no directory separator.
27871 case $0 in #((
27872 *[\\/]* ) as_myself=$0 ;;
27873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27874 for as_dir in $PATH
27876 IFS=$as_save_IFS
27877 test -z "$as_dir" && as_dir=.
27878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27879 done
27880 IFS=$as_save_IFS
27883 esac
27884 # We did not find ourselves, most probably we were run as `sh COMMAND'
27885 # in which case we are not to be found in the path.
27886 if test "x$as_myself" = x; then
27887 as_myself=$0
27889 if test ! -f "$as_myself"; then
27890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27891 exit 1
27894 # Unset variables that we do not need and which cause bugs (e.g. in
27895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27896 # suppresses any "Segmentation fault" message there. '((' could
27897 # trigger a bug in pdksh 5.2.14.
27898 for as_var in BASH_ENV ENV MAIL MAILPATH
27899 do eval test x\${$as_var+set} = xset \
27900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27901 done
27902 PS1='$ '
27903 PS2='> '
27904 PS4='+ '
27906 # NLS nuisances.
27907 LC_ALL=C
27908 export LC_ALL
27909 LANGUAGE=C
27910 export LANGUAGE
27912 # CDPATH.
27913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27916 # as_fn_error ERROR [LINENO LOG_FD]
27917 # ---------------------------------
27918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27920 # script with status $?, using 1 if that was 0.
27921 as_fn_error ()
27923 as_status=$?; test $as_status -eq 0 && as_status=1
27924 if test "$3"; then
27925 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27928 $as_echo "$as_me: error: $1" >&2
27929 as_fn_exit $as_status
27930 } # as_fn_error
27933 # as_fn_set_status STATUS
27934 # -----------------------
27935 # Set $? to STATUS, without forking.
27936 as_fn_set_status ()
27938 return $1
27939 } # as_fn_set_status
27941 # as_fn_exit STATUS
27942 # -----------------
27943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27944 as_fn_exit ()
27946 set +e
27947 as_fn_set_status $1
27948 exit $1
27949 } # as_fn_exit
27951 # as_fn_unset VAR
27952 # ---------------
27953 # Portably unset VAR.
27954 as_fn_unset ()
27956 { eval $1=; unset $1;}
27958 as_unset=as_fn_unset
27959 # as_fn_append VAR VALUE
27960 # ----------------------
27961 # Append the text in VALUE to the end of the definition contained in VAR. Take
27962 # advantage of any shell optimizations that allow amortized linear growth over
27963 # repeated appends, instead of the typical quadratic growth present in naive
27964 # implementations.
27965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27966 eval 'as_fn_append ()
27968 eval $1+=\$2
27970 else
27971 as_fn_append ()
27973 eval $1=\$$1\$2
27975 fi # as_fn_append
27977 # as_fn_arith ARG...
27978 # ------------------
27979 # Perform arithmetic evaluation on the ARGs, and store the result in the
27980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27981 # must be portable across $(()) and expr.
27982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27983 eval 'as_fn_arith ()
27985 as_val=$(( $* ))
27987 else
27988 as_fn_arith ()
27990 as_val=`expr "$@" || test $? -eq 1`
27992 fi # as_fn_arith
27995 if expr a : '\(a\)' >/dev/null 2>&1 &&
27996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27997 as_expr=expr
27998 else
27999 as_expr=false
28002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28003 as_basename=basename
28004 else
28005 as_basename=false
28008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28009 as_dirname=dirname
28010 else
28011 as_dirname=false
28014 as_me=`$as_basename -- "$0" ||
28015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28016 X"$0" : 'X\(//\)$' \| \
28017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28018 $as_echo X/"$0" |
28019 sed '/^.*\/\([^/][^/]*\)\/*$/{
28020 s//\1/
28023 /^X\/\(\/\/\)$/{
28024 s//\1/
28027 /^X\/\(\/\).*/{
28028 s//\1/
28031 s/.*/./; q'`
28033 # Avoid depending upon Character Ranges.
28034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28037 as_cr_digits='0123456789'
28038 as_cr_alnum=$as_cr_Letters$as_cr_digits
28040 ECHO_C= ECHO_N= ECHO_T=
28041 case `echo -n x` in #(((((
28042 -n*)
28043 case `echo 'xy\c'` in
28044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28045 xy) ECHO_C='\c';;
28046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28047 ECHO_T=' ';;
28048 esac;;
28050 ECHO_N='-n';;
28051 esac
28053 rm -f conf$$ conf$$.exe conf$$.file
28054 if test -d conf$$.dir; then
28055 rm -f conf$$.dir/conf$$.file
28056 else
28057 rm -f conf$$.dir
28058 mkdir conf$$.dir 2>/dev/null
28060 if (echo >conf$$.file) 2>/dev/null; then
28061 if ln -s conf$$.file conf$$ 2>/dev/null; then
28062 as_ln_s='ln -s'
28063 # ... but there are two gotchas:
28064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28066 # In both cases, we have to default to `cp -p'.
28067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28068 as_ln_s='cp -p'
28069 elif ln conf$$.file conf$$ 2>/dev/null; then
28070 as_ln_s=ln
28071 else
28072 as_ln_s='cp -p'
28074 else
28075 as_ln_s='cp -p'
28077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28078 rmdir conf$$.dir 2>/dev/null
28081 # as_fn_mkdir_p
28082 # -------------
28083 # Create "$as_dir" as a directory, including parents if necessary.
28084 as_fn_mkdir_p ()
28087 case $as_dir in #(
28088 -*) as_dir=./$as_dir;;
28089 esac
28090 test -d "$as_dir" || eval $as_mkdir_p || {
28091 as_dirs=
28092 while :; do
28093 case $as_dir in #(
28094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28095 *) as_qdir=$as_dir;;
28096 esac
28097 as_dirs="'$as_qdir' $as_dirs"
28098 as_dir=`$as_dirname -- "$as_dir" ||
28099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28100 X"$as_dir" : 'X\(//\)[^/]' \| \
28101 X"$as_dir" : 'X\(//\)$' \| \
28102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28103 $as_echo X"$as_dir" |
28104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28105 s//\1/
28108 /^X\(\/\/\)[^/].*/{
28109 s//\1/
28112 /^X\(\/\/\)$/{
28113 s//\1/
28116 /^X\(\/\).*/{
28117 s//\1/
28120 s/.*/./; q'`
28121 test -d "$as_dir" && break
28122 done
28123 test -z "$as_dirs" || eval "mkdir $as_dirs"
28124 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28127 } # as_fn_mkdir_p
28128 if mkdir -p . 2>/dev/null; then
28129 as_mkdir_p='mkdir -p "$as_dir"'
28130 else
28131 test -d ./-p && rmdir ./-p
28132 as_mkdir_p=false
28135 if test -x / >/dev/null 2>&1; then
28136 as_test_x='test -x'
28137 else
28138 if ls -dL / >/dev/null 2>&1; then
28139 as_ls_L_option=L
28140 else
28141 as_ls_L_option=
28143 as_test_x='
28144 eval sh -c '\''
28145 if test -d "$1"; then
28146 test -d "$1/.";
28147 else
28148 case $1 in #(
28149 -*)set "./$1";;
28150 esac;
28151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28152 ???[sx]*):;;*)false;;esac;fi
28153 '\'' sh
28156 as_executable_p=$as_test_x
28158 # Sed expression to map a string onto a valid CPP name.
28159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28161 # Sed expression to map a string onto a valid variable name.
28162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28165 exec 6>&1
28166 ## ----------------------------------- ##
28167 ## Main body of $CONFIG_STATUS script. ##
28168 ## ----------------------------------- ##
28169 _ASEOF
28170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28173 # Save the log message, to keep $0 and so on meaningful, and to
28174 # report actual input values of CONFIG_FILES etc. instead of their
28175 # values after options handling.
28176 ac_log="
28177 This file was extended by $as_me, which was
28178 generated by GNU Autoconf 2.64. Invocation command line was
28180 CONFIG_FILES = $CONFIG_FILES
28181 CONFIG_HEADERS = $CONFIG_HEADERS
28182 CONFIG_LINKS = $CONFIG_LINKS
28183 CONFIG_COMMANDS = $CONFIG_COMMANDS
28184 $ $0 $@
28186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28189 _ACEOF
28191 case $ac_config_files in *"
28192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28193 esac
28195 case $ac_config_headers in *"
28196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28197 esac
28200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28201 # Files that config.status was made for.
28202 config_files="$ac_config_files"
28203 config_headers="$ac_config_headers"
28204 config_commands="$ac_config_commands"
28206 _ACEOF
28208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28209 ac_cs_usage="\
28210 \`$as_me' instantiates files and other configuration actions
28211 from templates according to the current configuration. Unless the files
28212 and actions are specified as TAGs, all are instantiated by default.
28214 Usage: $0 [OPTION]... [TAG]...
28216 -h, --help print this help, then exit
28217 -V, --version print version number and configuration settings, then exit
28218 -q, --quiet, --silent
28219 do not print progress messages
28220 -d, --debug don't remove temporary files
28221 --recheck update $as_me by reconfiguring in the same conditions
28222 --file=FILE[:TEMPLATE]
28223 instantiate the configuration file FILE
28224 --header=FILE[:TEMPLATE]
28225 instantiate the configuration header FILE
28227 Configuration files:
28228 $config_files
28230 Configuration headers:
28231 $config_headers
28233 Configuration commands:
28234 $config_commands
28236 Report bugs to the package provider."
28238 _ACEOF
28239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28240 ac_cs_version="\\
28241 config.status
28242 configured by $0, generated by GNU Autoconf 2.64,
28243 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28245 Copyright (C) 2009 Free Software Foundation, Inc.
28246 This config.status script is free software; the Free Software Foundation
28247 gives unlimited permission to copy, distribute and modify it."
28249 ac_pwd='$ac_pwd'
28250 srcdir='$srcdir'
28251 AWK='$AWK'
28252 test -n "\$AWK" || AWK=awk
28253 _ACEOF
28255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28256 # The default lists apply if the user does not specify any file.
28257 ac_need_defaults=:
28258 while test $# != 0
28260 case $1 in
28261 --*=*)
28262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28264 ac_shift=:
28267 ac_option=$1
28268 ac_optarg=$2
28269 ac_shift=shift
28271 esac
28273 case $ac_option in
28274 # Handling of the options.
28275 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28276 ac_cs_recheck=: ;;
28277 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28278 $as_echo "$ac_cs_version"; exit ;;
28279 --debug | --debu | --deb | --de | --d | -d )
28280 debug=: ;;
28281 --file | --fil | --fi | --f )
28282 $ac_shift
28283 case $ac_optarg in
28284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28285 esac
28286 as_fn_append CONFIG_FILES " '$ac_optarg'"
28287 ac_need_defaults=false;;
28288 --header | --heade | --head | --hea )
28289 $ac_shift
28290 case $ac_optarg in
28291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28292 esac
28293 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28294 ac_need_defaults=false;;
28295 --he | --h)
28296 # Conflict between --help and --header
28297 as_fn_error "ambiguous option: \`$1'
28298 Try \`$0 --help' for more information.";;
28299 --help | --hel | -h )
28300 $as_echo "$ac_cs_usage"; exit ;;
28301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28303 ac_cs_silent=: ;;
28305 # This is an error.
28306 -*) as_fn_error "unrecognized option: \`$1'
28307 Try \`$0 --help' for more information." ;;
28309 *) as_fn_append ac_config_targets " $1"
28310 ac_need_defaults=false ;;
28312 esac
28313 shift
28314 done
28316 ac_configure_extra_args=
28318 if $ac_cs_silent; then
28319 exec 6>/dev/null
28320 ac_configure_extra_args="$ac_configure_extra_args --silent"
28323 _ACEOF
28324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28325 if \$ac_cs_recheck; then
28326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28327 shift
28328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28329 CONFIG_SHELL='$SHELL'
28330 export CONFIG_SHELL
28331 exec "\$@"
28334 _ACEOF
28335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28336 exec 5>>config.log
28338 echo
28339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28340 ## Running $as_me. ##
28341 _ASBOX
28342 $as_echo "$ac_log"
28343 } >&5
28345 _ACEOF
28346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28348 # INIT-COMMANDS
28350 subdirs='$subdirs'
28352 _ACEOF
28354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28356 # Handling of arguments.
28357 for ac_config_target in $ac_config_targets
28359 case $ac_config_target in
28360 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28361 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28362 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28363 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28364 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28365 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28367 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28368 esac
28369 done
28372 # If the user did not use the arguments to specify the items to instantiate,
28373 # then the envvar interface is used. Set only those that are not.
28374 # We use the long form for the default assignment because of an extremely
28375 # bizarre bug on SunOS 4.1.3.
28376 if $ac_need_defaults; then
28377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28382 # Have a temporary directory for convenience. Make it in the build tree
28383 # simply because there is no reason against having it here, and in addition,
28384 # creating and moving files from /tmp can sometimes cause problems.
28385 # Hook for its removal unless debugging.
28386 # Note that there is a small window in which the directory will not be cleaned:
28387 # after its creation but before its name has been assigned to `$tmp'.
28388 $debug ||
28390 tmp=
28391 trap 'exit_status=$?
28392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28394 trap 'as_fn_exit 1' 1 2 13 15
28396 # Create a (secure) tmp directory for tmp files.
28399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28400 test -n "$tmp" && test -d "$tmp"
28401 } ||
28403 tmp=./conf$$-$RANDOM
28404 (umask 077 && mkdir "$tmp")
28405 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28407 # Set up the scripts for CONFIG_FILES section.
28408 # No need to generate them if there are no CONFIG_FILES.
28409 # This happens for instance with `./config.status config.h'.
28410 if test -n "$CONFIG_FILES"; then
28412 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28413 ac_cs_awk_getline=:
28414 ac_cs_awk_pipe_init=
28415 ac_cs_awk_read_file='
28416 while ((getline aline < (F[key])) > 0)
28417 print(aline)
28418 close(F[key])'
28419 ac_cs_awk_pipe_fini=
28420 else
28421 ac_cs_awk_getline=false
28422 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28423 ac_cs_awk_read_file='
28424 print "|#_!!_#|"
28425 print "cat " F[key] " &&"
28426 '$ac_cs_awk_pipe_init
28427 # The final `:' finishes the AND list.
28428 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28430 ac_cr=`echo X | tr X '\015'`
28431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28432 # But we know of no other shell where ac_cr would be empty at this
28433 # point, so we can use a bashism as a fallback.
28434 if test "x$ac_cr" = x; then
28435 eval ac_cr=\$\'\\r\'
28437 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28439 ac_cs_awk_cr='\r'
28440 else
28441 ac_cs_awk_cr=$ac_cr
28444 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28445 _ACEOF
28447 # Create commands to substitute file output variables.
28449 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28450 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28451 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28452 echo "_ACAWK" &&
28453 echo "_ACEOF"
28454 } >conf$$files.sh &&
28455 . ./conf$$files.sh ||
28456 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28457 rm -f conf$$files.sh
28460 echo "cat >conf$$subs.awk <<_ACEOF" &&
28461 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28462 echo "_ACEOF"
28463 } >conf$$subs.sh ||
28464 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28465 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28466 ac_delim='%!_!# '
28467 for ac_last_try in false false false false false :; do
28468 . ./conf$$subs.sh ||
28469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28471 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28472 if test $ac_delim_n = $ac_delim_num; then
28473 break
28474 elif $ac_last_try; then
28475 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28476 else
28477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28479 done
28480 rm -f conf$$subs.sh
28482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28483 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28484 _ACEOF
28485 sed -n '
28487 s/^/S["/; s/!.*/"]=/
28490 s/^[^!]*!//
28491 :repl
28492 t repl
28493 s/'"$ac_delim"'$//
28494 t delim
28497 s/\(.\{148\}\).*/\1/
28498 t more1
28499 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28502 b repl
28503 :more1
28504 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28507 s/.\{148\}//
28508 t nl
28509 :delim
28511 s/\(.\{148\}\).*/\1/
28512 t more2
28513 s/["\\]/\\&/g; s/^/"/; s/$/"/
28516 :more2
28517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28520 s/.\{148\}//
28521 t delim
28522 ' <conf$$subs.awk | sed '
28523 /^[^""]/{
28525 s/\n//
28527 ' >>$CONFIG_STATUS || ac_write_fail=1
28528 rm -f conf$$subs.awk
28529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28530 _ACAWK
28531 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28532 for (key in S) S_is_set[key] = 1
28533 FS = "\a"
28534 \$ac_cs_awk_pipe_init
28537 line = $ 0
28538 nfields = split(line, field, "@")
28539 substed = 0
28540 len = length(field[1])
28541 for (i = 2; i < nfields; i++) {
28542 key = field[i]
28543 keylen = length(key)
28544 if (S_is_set[key]) {
28545 value = S[key]
28546 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28547 len += length(value) + length(field[++i])
28548 substed = 1
28549 } else
28550 len += 1 + keylen
28552 if (nfields == 3 && !substed) {
28553 key = field[2]
28554 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28555 \$ac_cs_awk_read_file
28556 next
28559 print line
28561 \$ac_cs_awk_pipe_fini
28562 _ACAWK
28563 _ACEOF
28564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28567 else
28569 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28570 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28571 _ACEOF
28573 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28574 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28575 # trailing colons and then remove the whole line if VPATH becomes empty
28576 # (actually we leave an empty line to preserve line numbers).
28577 if test "x$srcdir" = x.; then
28578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28579 s/:*\$(srcdir):*/:/
28580 s/:*\${srcdir}:*/:/
28581 s/:*@srcdir@:*/:/
28582 s/^\([^=]*=[ ]*\):*/\1/
28583 s/:*$//
28584 s/^[^=]*=[ ]*$//
28588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28589 fi # test -n "$CONFIG_FILES"
28591 # Set up the scripts for CONFIG_HEADERS section.
28592 # No need to generate them if there are no CONFIG_HEADERS.
28593 # This happens for instance with `./config.status Makefile'.
28594 if test -n "$CONFIG_HEADERS"; then
28595 cat >"$tmp/defines.awk" <<\_ACAWK ||
28596 BEGIN {
28597 _ACEOF
28599 # Transform confdefs.h into an awk script `defines.awk', embedded as
28600 # here-document in config.status, that substitutes the proper values into
28601 # config.h.in to produce config.h.
28603 # Create a delimiter string that does not exist in confdefs.h, to ease
28604 # handling of long lines.
28605 ac_delim='%!_!# '
28606 for ac_last_try in false false :; do
28607 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28608 if test -z "$ac_t"; then
28609 break
28610 elif $ac_last_try; then
28611 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28612 else
28613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28615 done
28617 # For the awk script, D is an array of macro values keyed by name,
28618 # likewise P contains macro parameters if any. Preserve backslash
28619 # newline sequences.
28621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28622 sed -n '
28623 s/.\{148\}/&'"$ac_delim"'/g
28624 t rset
28625 :rset
28626 s/^[ ]*#[ ]*define[ ][ ]*/ /
28627 t def
28629 :def
28630 s/\\$//
28631 t bsnl
28632 s/["\\]/\\&/g
28633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28634 D["\1"]=" \3"/p
28635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28637 :bsnl
28638 s/["\\]/\\&/g
28639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28640 D["\1"]=" \3\\\\\\n"\\/p
28641 t cont
28642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28643 t cont
28645 :cont
28647 s/.\{148\}/&'"$ac_delim"'/g
28648 t clear
28649 :clear
28650 s/\\$//
28651 t bsnlc
28652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28654 :bsnlc
28655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28656 b cont
28657 ' <confdefs.h | sed '
28658 s/'"$ac_delim"'/"\\\
28659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28662 for (key in D) D_is_set[key] = 1
28663 FS = "\a"
28665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28666 line = \$ 0
28667 split(line, arg, " ")
28668 if (arg[1] == "#") {
28669 defundef = arg[2]
28670 mac1 = arg[3]
28671 } else {
28672 defundef = substr(arg[1], 2)
28673 mac1 = arg[2]
28675 split(mac1, mac2, "(") #)
28676 macro = mac2[1]
28677 prefix = substr(line, 1, index(line, defundef) - 1)
28678 if (D_is_set[macro]) {
28679 # Preserve the white space surrounding the "#".
28680 print prefix "define", macro P[macro] D[macro]
28681 next
28682 } else {
28683 # Replace #undef with comments. This is necessary, for example,
28684 # in the case of _POSIX_SOURCE, which is predefined and required
28685 # on some systems where configure will not decide to define it.
28686 if (defundef == "undef") {
28687 print "/*", prefix defundef, macro, "*/"
28688 next
28692 { print }
28693 _ACAWK
28694 _ACEOF
28695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28696 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28697 fi # test -n "$CONFIG_HEADERS"
28700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28701 shift
28702 for ac_tag
28704 case $ac_tag in
28705 :[FHLC]) ac_mode=$ac_tag; continue;;
28706 esac
28707 case $ac_mode$ac_tag in
28708 :[FHL]*:*);;
28709 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28710 :[FH]-) ac_tag=-:-;;
28711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28712 esac
28713 ac_save_IFS=$IFS
28714 IFS=:
28715 set x $ac_tag
28716 IFS=$ac_save_IFS
28717 shift
28718 ac_file=$1
28719 shift
28721 case $ac_mode in
28722 :L) ac_source=$1;;
28723 :[FH])
28724 ac_file_inputs=
28725 for ac_f
28727 case $ac_f in
28728 -) ac_f="$tmp/stdin";;
28729 *) # Look for the file first in the build tree, then in the source tree
28730 # (if the path is not absolute). The absolute path cannot be DOS-style,
28731 # because $ac_f cannot contain `:'.
28732 test -f "$ac_f" ||
28733 case $ac_f in
28734 [\\/$]*) false;;
28735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28736 esac ||
28737 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28738 esac
28739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28740 as_fn_append ac_file_inputs " '$ac_f'"
28741 done
28743 # Let's still pretend it is `configure' which instantiates (i.e., don't
28744 # use $as_me), people would be surprised to read:
28745 # /* config.h. Generated by config.status. */
28746 configure_input='Generated from '`
28747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28748 `' by configure.'
28749 if test x"$ac_file" != x-; then
28750 configure_input="$ac_file. $configure_input"
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28752 $as_echo "$as_me: creating $ac_file" >&6;}
28754 # Neutralize special characters interpreted by sed in replacement strings.
28755 case $configure_input in #(
28756 *\&* | *\|* | *\\* )
28757 ac_sed_conf_input=`$as_echo "$configure_input" |
28758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28759 *) ac_sed_conf_input=$configure_input;;
28760 esac
28762 case $ac_tag in
28763 *:-:* | *:-) cat >"$tmp/stdin" \
28764 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28765 esac
28767 esac
28769 ac_dir=`$as_dirname -- "$ac_file" ||
28770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28771 X"$ac_file" : 'X\(//\)[^/]' \| \
28772 X"$ac_file" : 'X\(//\)$' \| \
28773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28774 $as_echo X"$ac_file" |
28775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28776 s//\1/
28779 /^X\(\/\/\)[^/].*/{
28780 s//\1/
28783 /^X\(\/\/\)$/{
28784 s//\1/
28787 /^X\(\/\).*/{
28788 s//\1/
28791 s/.*/./; q'`
28792 as_dir="$ac_dir"; as_fn_mkdir_p
28793 ac_builddir=.
28795 case "$ac_dir" in
28796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28799 # A ".." for each directory in $ac_dir_suffix.
28800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28801 case $ac_top_builddir_sub in
28802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28804 esac ;;
28805 esac
28806 ac_abs_top_builddir=$ac_pwd
28807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28808 # for backward compatibility:
28809 ac_top_builddir=$ac_top_build_prefix
28811 case $srcdir in
28812 .) # We are building in place.
28813 ac_srcdir=.
28814 ac_top_srcdir=$ac_top_builddir_sub
28815 ac_abs_top_srcdir=$ac_pwd ;;
28816 [\\/]* | ?:[\\/]* ) # Absolute name.
28817 ac_srcdir=$srcdir$ac_dir_suffix;
28818 ac_top_srcdir=$srcdir
28819 ac_abs_top_srcdir=$srcdir ;;
28820 *) # Relative name.
28821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28822 ac_top_srcdir=$ac_top_build_prefix$srcdir
28823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28824 esac
28825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28828 case $ac_mode in
28831 # CONFIG_FILE
28834 _ACEOF
28836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28837 # If the template does not know about datarootdir, expand it.
28838 # FIXME: This hack should be removed a few years after 2.60.
28839 ac_datarootdir_hack=; ac_datarootdir_seen=
28840 ac_sed_dataroot='
28841 /datarootdir/ {
28845 /@datadir@/p
28846 /@docdir@/p
28847 /@infodir@/p
28848 /@localedir@/p
28849 /@mandir@/p'
28850 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28851 *datarootdir*) ac_datarootdir_seen=yes;;
28852 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28854 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28855 _ACEOF
28856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28857 ac_datarootdir_hack='
28858 s&@datadir@&$datadir&g
28859 s&@docdir@&$docdir&g
28860 s&@infodir@&$infodir&g
28861 s&@localedir@&$localedir&g
28862 s&@mandir@&$mandir&g
28863 s&\\\${datarootdir}&$datarootdir&g' ;;
28864 esac
28865 _ACEOF
28867 # Neutralize VPATH when `$srcdir' = `.'.
28868 # Shell code in configure.ac might set extrasub.
28869 # FIXME: do we really want to maintain this feature?
28870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28871 ac_sed_extra="$ac_vpsub
28872 $extrasub
28873 _ACEOF
28874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28877 s|@configure_input@|$ac_sed_conf_input|;t t
28878 s&@top_builddir@&$ac_top_builddir_sub&;t t
28879 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28880 s&@srcdir@&$ac_srcdir&;t t
28881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28882 s&@top_srcdir@&$ac_top_srcdir&;t t
28883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28884 s&@builddir@&$ac_builddir&;t t
28885 s&@abs_builddir@&$ac_abs_builddir&;t t
28886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28887 $ac_datarootdir_hack
28889 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28890 if $ac_cs_awk_getline; then
28891 $AWK -f "$tmp/subs.awk"
28892 else
28893 $AWK -f "$tmp/subs.awk" | $SHELL
28894 fi >$tmp/out \
28895 || as_fn_error "could not create $ac_file" "$LINENO" 5
28897 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28898 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28899 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28901 which seems to be undefined. Please make sure it is defined." >&5
28902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28903 which seems to be undefined. Please make sure it is defined." >&2;}
28905 rm -f "$tmp/stdin"
28906 case $ac_file in
28907 -) cat "$tmp/out" && rm -f "$tmp/out";;
28908 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28909 esac \
28910 || as_fn_error "could not create $ac_file" "$LINENO" 5
28914 # CONFIG_HEADER
28916 if test x"$ac_file" != x-; then
28918 $as_echo "/* $configure_input */" \
28919 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28920 } >"$tmp/config.h" \
28921 || as_fn_error "could not create $ac_file" "$LINENO" 5
28922 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28925 else
28926 rm -f "$ac_file"
28927 mv "$tmp/config.h" "$ac_file" \
28928 || as_fn_error "could not create $ac_file" "$LINENO" 5
28930 else
28931 $as_echo "/* $configure_input */" \
28932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28933 || as_fn_error "could not create -" "$LINENO" 5
28937 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28938 $as_echo "$as_me: executing $ac_file commands" >&6;}
28940 esac
28943 case $ac_file$ac_mode in
28944 "as":F) chmod +x as ;;
28945 "collect-ld":F) chmod +x collect-ld ;;
28946 "nm":F) chmod +x nm ;;
28947 "default":C)
28948 case ${CONFIG_HEADERS} in
28949 *auto-host.h:config.in*)
28950 echo > cstamp-h ;;
28951 esac
28952 # Make sure all the subdirs exist.
28953 for d in $subdirs doc build common c-family
28955 test -d $d || mkdir $d
28956 done
28959 esac
28960 done # for ac_tag
28963 as_fn_exit 0
28964 _ACEOF
28965 ac_clean_files=$ac_clean_files_save
28967 test $ac_write_fail = 0 ||
28968 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28971 # configure is writing to config.log, and then calls config.status.
28972 # config.status does its own redirection, appending to config.log.
28973 # Unfortunately, on DOS this fails, as config.log is still kept open
28974 # by configure, so config.status won't be able to write to it; its
28975 # output is simply discarded. So we exec the FD to /dev/null,
28976 # effectively closing config.log, so it can be properly (re)opened and
28977 # appended to by config.status. When coming back to configure, we
28978 # need to make the FD available again.
28979 if test "$no_create" != yes; then
28980 ac_cs_success=:
28981 ac_config_status_args=
28982 test "$silent" = yes &&
28983 ac_config_status_args="$ac_config_status_args --quiet"
28984 exec 5>/dev/null
28985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28986 exec 5>>config.log
28987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28988 # would make configure fail if this is the last instruction.
28989 $ac_cs_success || as_fn_exit $?
28991 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28993 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}