name-lookup.c (lookup_arg_dependent): Use conditional timevars.
[official-gcc.git] / gcc / configure
blobb1dd57b6ff48fb37479d526aa393045560892fbe
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
705 FGREP
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 EXTRA_GCC_LIBS
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 CXXCPP
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
757 LN_S
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
787 PICFLAG_FOR_TARGET
788 OUTPUT_OPTION
789 NO_MINUS_C_MINUS_O
790 GNATMAKE
791 GNATBIND
792 ac_ct_CXX
793 CXXFLAGS
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
802 GENINSRC
803 target_subdir
804 host_subdir
805 build_subdir
806 build_libsubdir
807 target_noncanonical
808 target_os
809 target_vendor
810 target_cpu
811 target
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files='option_includes
859 language_hooks'
860 ac_user_opts='
861 enable_option_checking
862 with_build_libsubdir
863 with_local_prefix
864 with_gxx_include_dir
865 with_cpp_install_dir
866 enable_generated_files_in_srcdir
867 with_gnu_ld
868 with_ld
869 with_demangler_in_ld
870 with_gnu_as
871 with_as
872 enable_largefile
873 enable_werror_always
874 enable_checking
875 enable_coverage
876 enable_gather_detailed_mem_stats
877 enable_build_with_cxx
878 with_stabs
879 enable_multilib
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_dwarf2
887 enable_shared
888 with_build_sysroot
889 with_sysroot
890 with_specs
891 with_pkgversion
892 with_bugurl
893 enable_languages
894 with_multilib_list
895 enable_rpath
896 with_libiconv_prefix
897 enable_initfini_array
898 enable_sjlj_exceptions
899 enable_secureplt
900 enable_leading_mingw64_underscores
901 enable_cld
902 enable_frame_pointer
903 enable_win32_registry
904 enable_static
905 with_pic
906 enable_fast_install
907 enable_libtool_lock
908 with_plugin_ld
909 enable_gnu_indirect_function
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 with_slibdir
919 enable_plugin
920 enable_libquadmath_support
921 with_linker_hash_style
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
932 CXXFLAGS
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 PPLLIBS
939 PPLINC
940 CLOOGLIBS
941 CLOOGINC'
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
992 ac_prev=
993 ac_dashdash=
994 for ac_option
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1012 ac_dashdash=yes ;;
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 esac
1349 done
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error "missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1435 /^X\(\/\/\)$/{
1436 s//\1/
1439 /^X\(\/\).*/{
1440 s//\1/
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1448 else
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 --target=TARGET configure for building compilers for TARGET [HOST]
1549 _ACEOF
1552 if test -n "$ac_init_help"; then
1554 cat <<\_ACEOF
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files in source dir intended
1562 for creating source tarballs for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST]
1567 enable expensive run-time checks. With LIST, enable
1568 only specific categories of checks. Categories are:
1569 yes,no,all,none,release. Flags are:
1570 assert,df,fold,gc,gcac,gimple,misc,
1571 rtlflag,rtl,runtime,tree,valgrind,types
1572 --enable-coverage[=LEVEL]
1573 enable compiler's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid'
1584 or 'dpd' choses which decimal floating point format
1585 to use
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 package
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1607 on Windows hosts
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1611 of the registry key
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1619 glibc systems
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1636 Optional Packages:
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1664 both]
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 the compiler
1670 --with-system-zlib use installed libz
1671 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1672 --with-linker-hash-style={sysv,gnu,both}
1673 specify the linker hash style
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CXX C++ compiler command
1684 CXXFLAGS C++ compiler flags
1685 CPP C preprocessor
1686 CXXCPP C++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to find CLOOG include files
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=1
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1885 } # ac_fn_c_try_cpp
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915 else
1916 ac_header_compiler=no
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931 else
1932 ac_header_preproc=no
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 esac
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=\$ac_header_compiler"
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1989 ac_status=$?
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
1999 ac_status=$?
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 ac_retval=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 return $ac_retval
2014 } # ac_fn_c_try_run
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$3=yes"
2035 else
2036 eval "$3=no"
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2067 return 0;
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=0 ac_mid=0
2072 while :; do
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid; break
2088 else
2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090 if test $ac_lo -le $ac_mid; then
2091 ac_lo= ac_hi=
2092 break
2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=-1 ac_mid=-1
2114 while :; do
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 main ()
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2130 else
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2133 ac_lo= ac_hi=
2134 break
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 else
2141 ac_lo= ac_hi=
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=$ac_mid
2164 else
2165 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2182 main ()
2185 FILE *f = fopen ("conftest.val", "w");
2186 if (! f)
2187 return 1;
2188 if (($2) < 0)
2190 long int i = longval ();
2191 if (i != ($2))
2192 return 1;
2193 fprintf (f, "%ld", i);
2195 else
2197 unsigned long int i = ulongval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%lu", i);
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2207 return 0;
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213 ac_retval=1
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216 conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 return $ac_retval
2223 } # ac_fn_c_compute_int
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 eval "$3=no"
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 main ()
2244 if (sizeof ($2))
2245 return 0;
2247 return 0;
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 if (sizeof (($2)))
2258 return 0;
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2265 else
2266 eval "$3=yes"
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_type
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 eval "$3=no"
2292 for ac_type in int$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2298 main ()
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2304 return 0;
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2312 main ()
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2324 else
2325 case $ac_type in #(
2326 int$2_t) :
2327 eval "$3=yes" ;; #(
2328 *) :
2329 eval "$3=\$ac_type" ;;
2330 esac
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 eval as_val=\$$3
2336 if test "x$as_val" = x""no; then :
2338 else
2339 break
2341 done
2343 eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 } # ac_fn_c_find_intX_t
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2365 ac_status=$?
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2378 }; then :
2379 ac_retval=0
2380 else
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2384 ac_retval=1
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 return $ac_retval
2394 } # ac_fn_c_try_link
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 eval "$3=no"
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2415 main ()
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2421 return 0;
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 case $ac_type in #(
2426 uint$2_t) :
2427 eval "$3=yes" ;; #(
2428 *) :
2429 eval "$3=\$ac_type" ;;
2430 esac
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 eval as_val=\$$3
2434 if test "x$as_val" = x""no; then :
2436 else
2437 break
2439 done
2441 eval ac_res=\$$3
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 } # ac_fn_c_find_uintX_t
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464 eval "$3=yes"
2465 else
2466 eval "$3=no"
2468 rm -f conftest.err conftest.$ac_ext
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_c_check_header_preproc
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 ac_status=$?
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev/null && {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2501 }; then :
2502 ac_retval=0
2503 else
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 ac_retval=1
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 return $ac_retval
2512 } # ac_fn_cxx_try_cpp
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530 eval "$3=yes"
2531 else
2532 eval "$3=no"
2534 rm -f conftest.err conftest.$ac_ext
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_cxx_check_header_preproc
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2571 #undef $2
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2588 main ()
2590 return $2 ();
2592 return 0;
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596 eval "$3=yes"
2597 else
2598 eval "$3=no"
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 } # ac_fn_c_check_func
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2625 ac_status=$?
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2638 }; then :
2639 ac_retval=0
2640 else
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2644 ac_retval=1
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 return $ac_retval
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2662 $ $0 $@
2664 _ACEOF
2665 exec 5>>config.log
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2689 _ASUNAME
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2697 done
2698 IFS=$as_save_IFS
2700 } >&5
2702 cat >&5 <<_ACEOF
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2709 _ACEOF
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2723 for ac_arg
2725 case $ac_arg in
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2729 continue ;;
2730 *\'*)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 esac
2733 case $ac_pass in
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2739 else
2740 case $ac_arg in
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 esac
2749 -* ) ac_must_keep_next=true ;;
2750 esac
2752 as_fn_append ac_configure_args " '$ac_arg'"
2754 esac
2755 done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2768 echo
2770 cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775 echo
2776 # The following way of writing the cache mishandles newlines in values,
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2780 case $ac_val in #(
2781 *${as_nl}*)
2782 case $ac_var in #(
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 esac
2786 case $ac_var in #(
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2790 esac ;;
2791 esac
2792 done
2793 (set) 2>&1 |
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2796 sed -n \
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 ;; #(
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2803 esac |
2804 sort
2806 echo
2808 cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813 echo
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2817 case $ac_val in
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 esac
2820 $as_echo "$ac_var='\''$ac_val'\''"
2821 done | sort
2822 echo
2824 if test -n "$ac_subst_files"; then
2825 cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830 echo
2831 for ac_var in $ac_subst_files
2833 eval ac_val=\$$ac_var
2834 case $ac_val in
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 esac
2837 $as_echo "$ac_var='\''$ac_val'\''"
2838 done | sort
2839 echo
2842 if test -s confdefs.h; then
2843 cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848 echo
2849 cat confdefs.h
2850 echo
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2855 } >&5
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 exit $exit_status
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2906 else
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2917 . "$ac_site_file"
2919 done
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 case $cache_file in
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2930 esac
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935 >$cache_file
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2947 set,)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2951 ,set)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2955 ,);;
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x $ac_old_val`
2960 ac_new_val_w=`echo x $ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964 ac_cache_corrupted=:
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 fi;;
2975 esac
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2978 case $ac_new_val in
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2981 esac
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985 esac
2987 done
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013 gcc_version=`cat $srcdir/BASE-VER`
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3020 ac_aux_dir=$ac_dir
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3022 break 2
3024 done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3084 else
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3117 else
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3147 NONENONEs,x,x, &&
3148 program_prefix=${target_alias}-
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3154 esac
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3159 esac
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3164 esac
3169 # Determine the target- and build-specific subdirectories
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187 build_libsubdir="$build_subdir"
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3194 else
3195 host_subdir=.
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3228 library_path_setting="ok"
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory"
3254 gcc_exec_prefix_setting="ok"
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3266 # -----------
3267 # Directories
3268 # -----------
3270 # Specify the local prefix
3271 local_prefix=
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no) ;;
3278 *) local_prefix=$with_local_prefix ;;
3279 esac
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no) ;;
3299 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306 if test x${enable_version_specific_runtime_libs} = xyes; then
3307 gcc_gxx_include_dir='${libsubdir}/include/c++'
3308 else
3309 libstdcxx_incdir='include/c++/$(version)'
3310 if test x$host != x$target; then
3311 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3313 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323 cpp_install_dir=$withval
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340 generated_files_in_srcdir=no
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348 GENINSRC=''
3349 else
3350 GENINSRC='#'
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3358 # With GNU ld
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364 gnu_ld_flag=no
3368 # With pre-defined ld
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379 gnu_ld_flag=yes
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 # With demangler in GNU ld
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416 demangler_in_ld=yes
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3424 # With GNU as
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430 gas_flag=no
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444 gas_flag=yes
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463 if test x"$gas_flag" = x"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3582 else
3583 CC="$ac_cv_prog_CC"
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3725 done
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3769 done
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3821 main ()
3825 return 0;
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3893 else
3894 ac_file=''
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 ac_exeext=$ac_cv_exeext
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 cross_compiling=no
3928 else
3929 if test "$cross_compiling" = maybe; then
3930 cross_compiling=yes
3931 else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 break;;
3975 * ) break;;
3976 esac
3977 done
3978 else
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4000 main ()
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 main ()
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4058 return 0;
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 main ()
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4111 return 0;
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 main ()
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4177 return p[i];
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4210 main ()
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4214 return 0;
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4270 main ()
4274 return 0;
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4302 then
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 rm -f conftest2.*
4319 if { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4336 ac_status=$?
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4339 then
4340 # cc works too.
4342 else
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4348 else
4349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 rm -f core conftest*
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC="$am_aux_dir/compile $CC"
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4390 CXX=$CCC
4391 else
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$CXX" && break
4433 done
4435 if test -z "$CXX"; then
4436 ac_ct_CXX=$CXX
4437 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$ac_ct_CXX" && break
4477 done
4479 if test "x$ac_ct_CXX" = x; then
4480 CXX="g++"
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488 CXX=$ac_ct_CXX
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499 { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 ac_status=$?
4508 if test -s conftest.err; then
4509 sed '10a\
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4517 done
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4528 main ()
4530 #ifndef __GNUC__
4531 choke me
4532 #endif
4535 return 0;
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539 ac_compiler_gnu=yes
4540 else
4541 ac_compiler_gnu=no
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550 GXX=yes
4551 else
4552 GXX=
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4563 ac_cv_prog_cxx_g=no
4564 CXXFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4569 main ()
4573 return 0;
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4578 else
4579 CXXFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 main ()
4588 return 0;
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 else
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 CXXFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4600 main ()
4604 return 0;
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4623 CXXFLAGS="-g -O2"
4624 else
4625 CXXFLAGS="-g"
4627 else
4628 if test "$GXX" = yes; then
4629 CXXFLAGS="-O2"
4630 else
4631 CXXFLAGS=
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4665 done
4666 done
4667 IFS=$as_save_IFS
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4720 if test "x$ac_ct_GNATBIND" = x; then
4721 GNATBIND="no"
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 GNATBIND=$ac_ct_GNATBIND
4731 else
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_GNATMAKE" = x; then
4813 GNATMAKE="no"
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 GNATMAKE=$ac_ct_GNATMAKE
4823 else
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4848 rm -f conftest.*
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854 have_gnat=yes
4855 else
4856 have_gnat=no
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4863 else
4864 OUTPUT_OPTION='-o $@'
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4877 # Determine PICFLAG for target gnatlib.
4882 case "${target}" in
4883 # PIC is the default on some targets or must not be used.
4884 *-*-darwin*)
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4889 alpha*-dec-osf5*)
4890 # PIC is the default.
4892 hppa*64*-*-hpux*)
4893 # PIC is the default for 64-bit PA HP-UX.
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897 i[34567]86-*-interix3*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 # it will coredump.
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4909 ia64*-*-hpux*)
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4914 mips-sgi-irix6*)
4915 # PIC is the default.
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 # FIXME: Why?
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4926 m68k-*-*)
4927 PICFLAG_FOR_TARGET=-fpic
4929 s390*-*-*)
4930 PICFLAG_FOR_TARGET=-fpic
4932 # FIXME: Override -fPIC default in libgcc only?
4933 sh-*-linux* | sh[2346lbe]*-*-linux*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Simplify to sh*-*-netbsd*?
4937 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938 sh64-*-netbsd* | sh64l*-*-netbsd*)
4939 PICFLAG_FOR_TARGET=-fpic
4941 # Default to -fPIC unless specified otherwise.
4943 PICFLAG_FOR_TARGET=-fPIC
4945 esac
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4949 *-fpic*)
4950 PICFLAG_FOR_TARGET=-fpic
4952 *-fPIC*)
4953 PICFLAG_FOR_TARGET=-fPIC
4955 esac
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4973 CPP=
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998 Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5002 else
5003 # Broken: fails on valid input.
5004 continue
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5016 continue
5017 else
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5022 rm -f conftest.err conftest.$ac_ext
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5028 break
5031 done
5032 ac_cv_prog_CPP=$CPP
5035 CPP=$ac_cv_prog_CPP
5036 else
5037 ac_cv_prog_CPP=$CPP
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5041 ac_preproc_ok=false
5042 for ac_c_preproc_warn_flag in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057 Syntax error
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5061 else
5062 # Broken: fails on valid input.
5063 continue
5065 rm -f conftest.err conftest.$ac_ext
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074 # Broken: success on invalid input.
5075 continue
5076 else
5077 # Passes both tests.
5078 ac_preproc_ok=:
5079 break
5081 rm -f conftest.err conftest.$ac_ext
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then :
5088 else
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in grep ggrep; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5122 *GNU*)
5123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5125 ac_count=0
5126 $as_echo_n 0123456789 >"conftest.in"
5127 while :
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP="$ac_path_GREP"
5139 ac_path_GREP_max=$ac_count
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5147 $ac_path_GREP_found && break 3
5148 done
5149 done
5150 done
5151 IFS=$as_save_IFS
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155 else
5156 ac_cv_path_GREP=$GREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP="$ac_cv_path_GREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5172 else
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in egrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5188 *GNU*)
5189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP="$ac_path_EGREP"
5205 ac_path_EGREP_max=$ac_count
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5209 done
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 esac
5213 $ac_path_EGREP_found && break 3
5214 done
5215 done
5216 done
5217 IFS=$as_save_IFS
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 else
5222 ac_cv_path_EGREP=$EGREP
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP="$ac_cv_path_EGREP"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5245 main ()
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_header_stdc=yes
5254 else
5255 ac_cv_header_stdc=no
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <string.h>
5265 _ACEOF
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev/null 2>&1; then :
5269 else
5270 ac_cv_header_stdc=no
5272 rm -f conftest*
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <stdlib.h>
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev/null 2>&1; then :
5286 else
5287 ac_cv_header_stdc=no
5289 rm -f conftest*
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #include <stdlib.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 main ()
5317 int i;
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5321 return 2;
5322 return 0;
5324 _ACEOF
5325 if ac_fn_c_try_run "$LINENO"; then :
5327 else
5328 ac_cv_header_stdc=no
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5331 conftest.$ac_objext conftest.beam conftest.$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346 inttypes.h stdint.h unistd.h
5347 do :
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5351 eval as_val=\$$as_ac_Header
5352 if test "x$as_val" = x""yes; then :
5353 cat >>confdefs.h <<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 _ACEOF
5359 done
5363 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5365 MINIX=yes
5366 else
5367 MINIX=
5371 if test "$MINIX" = yes; then
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5395 main ()
5399 return 0;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_safe_to_define___extensions__=yes
5404 else
5405 ac_cv_safe_to_define___extensions__=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411 test $ac_cv_safe_to_define___extensions__ = yes &&
5412 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5414 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5418 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5420 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5432 CPP=
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 # Double quotes because CPP needs to be expanded
5439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441 ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifdef __STDC__
5453 # include <limits.h>
5454 #else
5455 # include <assert.h>
5456 #endif
5457 Syntax error
5458 _ACEOF
5459 if ac_fn_c_try_cpp "$LINENO"; then :
5461 else
5462 # Broken: fails on valid input.
5463 continue
5465 rm -f conftest.err conftest.$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5472 _ACEOF
5473 if ac_fn_c_try_cpp "$LINENO"; then :
5474 # Broken: success on invalid input.
5475 continue
5476 else
5477 # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5481 rm -f conftest.err conftest.$ac_ext
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then :
5487 break
5490 done
5491 ac_cv_prog_CPP=$CPP
5494 CPP=$ac_cv_prog_CPP
5495 else
5496 ac_cv_prog_CPP=$CPP
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_c_preproc_warn_flag in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516 Syntax error
5517 _ACEOF
5518 if ac_fn_c_try_cpp "$LINENO"; then :
5520 else
5521 # Broken: fails on valid input.
5522 continue
5524 rm -f conftest.err conftest.$ac_ext
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5531 _ACEOF
5532 if ac_fn_c_try_cpp "$LINENO"; then :
5533 # Broken: success on invalid input.
5534 continue
5535 else
5536 # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5540 rm -f conftest.err conftest.$ac_ext
5542 done
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.$ac_ext
5545 if $ac_preproc_ok; then :
5547 else
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 ac_cv_c_inline=no
5566 for ac_kw in inline __inline__ __inline; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #ifndef __cplusplus
5570 typedef int foo_t;
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5573 #endif
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_c_inline=$ac_kw
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 test "$ac_cv_c_inline" != no && break
5581 done
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5587 case $ac_cv_c_inline in
5588 inline | yes) ;;
5590 case $ac_cv_c_inline in
5591 no) ac_val=;;
5592 *) ac_val=$ac_cv_c_inline;;
5593 esac
5594 cat >>confdefs.h <<_ACEOF
5595 #ifndef __cplusplus
5596 #define inline $ac_val
5597 #endif
5598 _ACEOF
5600 esac
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605 enableval=$enable_largefile;
5608 if test "$enable_largefile" != no; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_cv_sys_largefile_CC=no
5616 if test "$GCC" != yes; then
5617 ac_save_CC=$CC
5618 while :; do
5619 # IRIX 6.2 and later do not support large files by default,
5620 # so use the C compiler's -n32 option if that helps.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5631 ? 1 : -1];
5633 main ()
5637 return 0;
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 break
5643 rm -f core conftest.err conftest.$ac_objext
5644 CC="$CC -n32"
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 ac_cv_sys_largefile_CC=' -n32'; break
5648 rm -f core conftest.err conftest.$ac_objext
5649 break
5650 done
5651 CC=$ac_save_CC
5652 rm -f conftest.$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657 if test "$ac_cv_sys_largefile_CC" != no; then
5658 CC=$CC$ac_cv_sys_largefile_CC
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 while :; do
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5679 main ()
5683 return 0;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 ac_cv_sys_file_offset_bits=no; break
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #define _FILE_OFFSET_BITS 64
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5701 ? 1 : -1];
5703 main ()
5707 return 0;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 ac_cv_sys_file_offset_bits=64; break
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_cv_sys_file_offset_bits=unknown
5715 break
5716 done
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5721 no | unknown) ;;
5723 cat >>confdefs.h <<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5725 _ACEOF
5727 esac
5728 rm -rf conftest*
5729 if test $ac_cv_sys_file_offset_bits = unknown; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 while :; do
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5748 main ()
5752 return 0;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 ac_cv_sys_large_files=no; break
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #define _LARGE_FILES 1
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5770 ? 1 : -1];
5772 main ()
5776 return 0;
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 ac_cv_sys_large_files=1; break
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 ac_cv_sys_large_files=unknown
5784 break
5785 done
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5790 no | unknown) ;;
5792 cat >>confdefs.h <<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5794 _ACEOF
5796 esac
5797 rm -rf conftest*
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5814 else
5815 if test "$ac_cv_type_void_p" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_void_p=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 _ACEOF
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5848 else
5849 if test "$ac_cv_type_short" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status 77
5853 as_fn_error "cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5855 else
5856 ac_cv_sizeof_short=0
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5866 cat >>confdefs.h <<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 _ACEOF
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5882 else
5883 if test "$ac_cv_type_int" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status 77
5887 as_fn_error "cannot compute sizeof (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5889 else
5890 ac_cv_sizeof_int=0
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5900 cat >>confdefs.h <<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5902 _ACEOF
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5916 else
5917 if test "$ac_cv_type_long" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923 else
5924 ac_cv_sizeof_long=0
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 _ACEOF
5939 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x""yes; then :
5942 cat >>confdefs.h <<_ACEOF
5943 #define HAVE_LONG_LONG 1
5944 _ACEOF
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5957 else
5958 if test "$ac_cv_type_long_long" = yes; then
5959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status 77
5962 as_fn_error "cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5964 else
5965 ac_cv_sizeof_long_long=0
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5977 _ACEOF
5982 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x""yes; then :
5985 cat >>confdefs.h <<_ACEOF
5986 #define HAVE___INT64 1
5987 _ACEOF
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6000 else
6001 if test "$ac_cv_type___int64" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof___int64=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6020 _ACEOF
6025 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6027 no|yes) ;; #(
6030 cat >>confdefs.h <<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6032 _ACEOF
6034 esac
6036 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6038 no|yes) ;; #(
6041 cat >>confdefs.h <<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6043 _ACEOF
6045 esac
6047 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6049 no|yes) ;; #(
6052 cat >>confdefs.h <<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6054 _ACEOF
6056 esac
6058 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6060 no|yes) ;; #(
6063 cat >>confdefs.h <<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6065 _ACEOF
6067 esac
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 /* For now, do not test the preprocessor; as of 2007 there are too many
6079 implementations with broken preprocessors. Perhaps this can
6080 be revisited in 2012. In the meantime, code should not expect
6081 #if to work with literals wider than 32 bits. */
6082 /* Test literals. */
6083 long long int ll = 9223372036854775807ll;
6084 long long int nll = -9223372036854775807LL;
6085 unsigned long long int ull = 18446744073709551615ULL;
6086 /* Test constant expressions. */
6087 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 ? 1 : -1)];
6089 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6090 ? 1 : -1)];
6091 int i = 63;
6093 main ()
6095 /* Test availability of runtime routines for shift and division. */
6096 long long int llmax = 9223372036854775807ll;
6097 unsigned long long int ullmax = 18446744073709551615ull;
6098 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099 | (llmax / ll) | (llmax % ll)
6100 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101 | (ullmax / ull) | (ullmax % ull));
6103 return 0;
6106 _ACEOF
6107 if ac_fn_c_try_link "$LINENO"; then :
6108 if test "$cross_compiling" = yes; then :
6109 ac_cv_type_long_long_int=yes
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <limits.h>
6114 #ifndef LLONG_MAX
6115 # define HALF \
6116 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117 # define LLONG_MAX (HALF - 1 + HALF)
6118 #endif
6120 main ()
6122 long long int n = 1;
6123 int i;
6124 for (i = 0; ; i++)
6126 long long int m = n << i;
6127 if (m >> i != n)
6128 return 1;
6129 if (LLONG_MAX / 2 < m)
6130 break;
6132 return 0;
6134 return 0;
6136 _ACEOF
6137 if ac_fn_c_try_run "$LINENO"; then :
6138 ac_cv_type_long_long_int=yes
6139 else
6140 ac_cv_type_long_long_int=no
6142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6143 conftest.$ac_objext conftest.beam conftest.$ac_ext
6146 else
6147 ac_cv_type_long_long_int=no
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154 if test $ac_cv_type_long_long_int = yes; then
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6162 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6167 else
6168 test $ac_cv_type_long_long_int = yes \
6169 && ac_type='long long int' \
6170 || ac_type='long int'
6172 cat >>confdefs.h <<_ACEOF
6173 #define intmax_t $ac_type
6174 _ACEOF
6180 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6185 else
6186 for ac_type in 'int' 'long int' 'long long int'; do
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 $ac_includes_default
6191 main ()
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6194 test_array [0] = 0
6197 return 0;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6202 cat >>confdefs.h <<_ACEOF
6203 #define intptr_t $ac_type
6204 _ACEOF
6206 ac_type=
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 test -z "$ac_type" && break
6210 done
6214 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6216 no|yes) ;; #(
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6222 cat >>confdefs.h <<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6224 _ACEOF
6226 esac
6228 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6230 no|yes) ;; #(
6234 cat >>confdefs.h <<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6236 _ACEOF
6238 esac
6240 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6242 no|yes) ;; #(
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6248 cat >>confdefs.h <<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6250 _ACEOF
6252 esac
6254 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6256 no|yes) ;; #(
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6262 cat >>confdefs.h <<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6264 _ACEOF
6266 esac
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6277 /* For now, do not test the preprocessor; as of 2007 there are too many
6278 implementations with broken preprocessors. Perhaps this can
6279 be revisited in 2012. In the meantime, code should not expect
6280 #if to work with literals wider than 32 bits. */
6281 /* Test literals. */
6282 long long int ll = 9223372036854775807ll;
6283 long long int nll = -9223372036854775807LL;
6284 unsigned long long int ull = 18446744073709551615ULL;
6285 /* Test constant expressions. */
6286 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 ? 1 : -1)];
6288 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6289 ? 1 : -1)];
6290 int i = 63;
6292 main ()
6294 /* Test availability of runtime routines for shift and division. */
6295 long long int llmax = 9223372036854775807ll;
6296 unsigned long long int ullmax = 18446744073709551615ull;
6297 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298 | (llmax / ll) | (llmax % ll)
6299 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300 | (ullmax / ull) | (ullmax % ull));
6302 return 0;
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"; then :
6307 ac_cv_type_unsigned_long_long_int=yes
6308 else
6309 ac_cv_type_unsigned_long_long_int=no
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316 if test $ac_cv_type_unsigned_long_long_int = yes; then
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6324 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6329 else
6330 test $ac_cv_type_unsigned_long_long_int = yes \
6331 && ac_type='unsigned long long int' \
6332 || ac_type='unsigned long int'
6334 cat >>confdefs.h <<_ACEOF
6335 #define uintmax_t $ac_type
6336 _ACEOF
6342 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6347 else
6348 for ac_type in 'unsigned int' 'unsigned long int' \
6349 'unsigned long long int'; do
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 $ac_includes_default
6354 main ()
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6357 test_array [0] = 0
6360 return 0;
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6365 cat >>confdefs.h <<_ACEOF
6366 #define uintptr_t $ac_type
6367 _ACEOF
6369 ac_type=
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 test -z "$ac_type" && break
6373 done
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6396 # * 'long long'
6397 # * variadic macros
6398 # * overlong strings
6399 # So, we only use -pedantic if we can disable those warnings.
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6404 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 CFLAGS="$option"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6416 main ()
6420 return 0;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6425 else
6426 eval "$as_acx_Woption=no"
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 eval ac_res=\$$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn="$loose_warn${loose_warn:+ }$option"
6437 done
6438 CFLAGS="$save_CFLAGS"
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 CFLAGS="$option"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6455 main ()
6459 return 0;
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6464 else
6465 eval "$as_acx_Woption=no"
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 eval ac_res=\$$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6476 done
6477 CFLAGS="$save_CFLAGS"
6479 strict_warn=
6480 save_CFLAGS="$CFLAGS"
6481 for option in -Wmissing-format-attribute; do
6482 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 CFLAGS="$option"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6494 main ()
6498 return 0;
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6503 else
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 eval ac_res=\$$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn="$strict_warn${strict_warn:+ }$option"
6515 done
6516 CFLAGS="$save_CFLAGS"
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for option in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 CFLAGS="$option"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6533 main ()
6537 return 0;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6542 else
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 eval ac_res=\$$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6554 done
6555 CFLAGS="$save_CFLAGS"
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 save_CFLAGS="$CFLAGS"
6564 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6569 main ()
6573 return 0;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 else
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 CFLAGS="$save_CFLAGS"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval=$enable_werror_always;
6595 else
6596 enable_werror_always=no
6599 if test $enable_werror_always = yes; then :
6600 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6608 warn_cflags=
6609 warn_cxxflags=
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6617 # Enable expensive internal checks
6618 is_release=
6619 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6620 is_release=yes
6623 # Check whether --enable-checking was given.
6624 if test "${enable_checking+set}" = set; then :
6625 enableval=$enable_checking; ac_checking_flags="${enableval}"
6626 else
6628 # Determine the default checks.
6629 if test x$is_release = x ; then
6630 ac_checking_flags=yes
6631 else
6632 ac_checking_flags=release
6636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6637 for check in release $ac_checking_flags
6639 case $check in
6640 # these set all the flags to specific states
6641 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6642 ac_fold_checking= ; ac_gc_checking=1 ;
6643 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6644 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6645 ac_tree_checking=1 ; ac_valgrind_checking= ;
6646 ac_types_checking=1 ;;
6647 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6648 ac_fold_checking= ; ac_gc_checking= ;
6649 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6650 ac_rtlflag_checking= ; ac_runtime_checking= ;
6651 ac_tree_checking= ; ac_valgrind_checking= ;
6652 ac_types_checking= ;;
6653 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6654 ac_fold_checking=1 ; ac_gc_checking=1 ;
6655 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6656 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6657 ac_tree_checking=1 ; ac_valgrind_checking= ;
6658 ac_types_checking=1 ;;
6659 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6660 ac_fold_checking= ; ac_gc_checking= ;
6661 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6662 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6663 ac_tree_checking= ; ac_valgrind_checking= ;
6664 ac_types_checking= ;;
6665 # these enable particular checks
6666 assert) ac_assert_checking=1 ;;
6667 df) ac_df_checking=1 ;;
6668 fold) ac_fold_checking=1 ;;
6669 gc) ac_gc_checking=1 ;;
6670 gcac) ac_gc_always_collect=1 ;;
6671 gimple) ac_gimple_checking=1 ;;
6672 misc) ac_checking=1 ;;
6673 rtl) ac_rtl_checking=1 ;;
6674 rtlflag) ac_rtlflag_checking=1 ;;
6675 runtime) ac_runtime_checking=1 ;;
6676 tree) ac_tree_checking=1 ;;
6677 types) ac_types_checking=1 ;;
6678 valgrind) ac_valgrind_checking=1 ;;
6679 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6680 esac
6681 done
6682 IFS="$ac_save_IFS"
6684 nocommon_flag=""
6685 if test x$ac_checking != x ; then
6687 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6689 nocommon_flag=-fno-common
6692 if test x$ac_df_checking != x ; then
6694 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6697 if test x$ac_assert_checking != x ; then
6699 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6702 if test x$ac_gimple_checking != x ; then
6704 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6708 if test x$ac_runtime_checking != x ; then
6710 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6713 if test x$ac_tree_checking != x ; then
6715 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6717 TREEBROWSER=tree-browser.o
6719 if test x$ac_types_checking != x ; then
6721 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6725 if test x$ac_rtl_checking != x ; then
6727 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6730 if test x$ac_rtlflag_checking != x ; then
6732 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6735 if test x$ac_gc_checking != x ; then
6737 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6740 if test x$ac_gc_always_collect != x ; then
6742 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6745 if test x$ac_fold_checking != x ; then
6747 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6750 valgrind_path_defines=
6751 valgrind_command=
6753 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6754 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6755 have_valgrind_h=yes
6756 else
6757 have_valgrind_h=no
6762 if test x$ac_valgrind_checking != x ; then
6763 # It is certainly possible that there's valgrind but no valgrind.h.
6764 # GCC relies on making annotations so we must have both.
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6766 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6772 #endif
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6775 gcc_cv_header_valgrind_memcheck_h=yes
6776 else
6777 gcc_cv_header_valgrind_memcheck_h=no
6779 rm -f conftest.err conftest.$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6781 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6783 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <memcheck.h>
6787 #ifndef VALGRIND_DISCARD
6788 #error VALGRIND_DISCARD not defined
6789 #endif
6790 _ACEOF
6791 if ac_fn_c_try_cpp "$LINENO"; then :
6792 gcc_cv_header_memcheck_h=yes
6793 else
6794 gcc_cv_header_memcheck_h=no
6796 rm -f conftest.err conftest.$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6798 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6800 # Prepare PATH_SEPARATOR.
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803 echo "#! /bin/sh" >conf$$.sh
6804 echo "exit 0" >>conf$$.sh
6805 chmod +x conf$$.sh
6806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6807 PATH_SEPARATOR=';'
6808 else
6809 PATH_SEPARATOR=:
6811 rm -f conf$$.sh
6814 # Find out how to test for executable files. Don't use a zero-byte file,
6815 # as systems may use methods other than mode bits to determine executability.
6816 cat >conf$$.file <<_ASEOF
6817 #! /bin/sh
6818 exit 0
6819 _ASEOF
6820 chmod +x conf$$.file
6821 if test -x conf$$.file >/dev/null 2>&1; then
6822 ac_executable_p="test -x"
6823 else
6824 ac_executable_p="test -f"
6826 rm -f conf$$.file
6828 # Extract the first word of "valgrind", so it can be a program name with args.
6829 set dummy valgrind; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 case "$valgrind_path" in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6840 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6841 for ac_dir in $PATH; do
6842 IFS="$ac_save_IFS"
6843 test -z "$ac_dir" && ac_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6846 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6847 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6848 break 2
6851 done
6852 done
6853 IFS="$ac_save_IFS"
6855 esac
6857 valgrind_path="$ac_cv_path_valgrind_path"
6858 if test -n "$valgrind_path"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6860 $as_echo "$valgrind_path" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6866 if test "x$valgrind_path" = "x" \
6867 || (test $have_valgrind_h = no \
6868 && test $gcc_cv_header_memcheck_h = no \
6869 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6870 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6872 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873 valgrind_command="$valgrind_path -q"
6875 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6882 if test $gcc_cv_header_memcheck_h = yes; then
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6891 # Enable code coverage collection
6892 # Check whether --enable-coverage was given.
6893 if test "${enable_coverage+set}" = set; then :
6894 enableval=$enable_coverage; case "${enableval}" in
6895 yes|noopt)
6896 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6898 opt)
6899 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6902 # a.k.a. --disable-coverage
6903 coverage_flags=""
6906 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6908 esac
6909 else
6910 coverage_flags=""
6915 # Check whether --enable-gather-detailed-mem-stats was given.
6916 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6917 enableval=$enable_gather_detailed_mem_stats;
6918 else
6919 enable_gather_detailed_mem_stats=no
6922 if test x$enable_gather_detailed_mem_stats = xyes ; then
6924 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6928 # -------------------------------
6929 # Miscenalleous configure options
6930 # -------------------------------
6932 # See if we are building gcc with C++.
6933 # Check whether --enable-build-with-cxx was given.
6934 if test "${enable_build_with_cxx+set}" = set; then :
6935 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6936 else
6937 ENABLE_BUILD_WITH_CXX=no
6941 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6943 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6947 # With stabs
6949 # Check whether --with-stabs was given.
6950 if test "${with_stabs+set}" = set; then :
6951 withval=$with_stabs; stabs="$with_stabs"
6952 else
6953 stabs=no
6957 # Determine whether or not multilibs are enabled.
6958 # Check whether --enable-multilib was given.
6959 if test "${enable_multilib+set}" = set; then :
6960 enableval=$enable_multilib;
6961 else
6962 enable_multilib=yes
6967 # Enable __cxa_atexit for C++.
6968 # Check whether --enable-__cxa_atexit was given.
6969 if test "${enable___cxa_atexit+set}" = set; then :
6970 enableval=$enable___cxa_atexit;
6974 # Enable C extension for decimal float if target supports it.
6976 # Check whether --enable-decimal-float was given.
6977 if test "${enable_decimal_float+set}" = set; then :
6978 enableval=$enable_decimal_float;
6979 case $enable_decimal_float in
6980 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6981 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6982 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6983 esac
6985 else
6987 case $target in
6988 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6989 i?86*-*-mingw* | x86_64*-*-mingw* | \
6990 i?86*-*-cygwin*)
6991 enable_decimal_float=yes
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6995 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6996 enable_decimal_float=no
6998 esac
7003 # x86's use BID format instead of DPD
7004 case x$enable_decimal_float in
7005 xyes)
7006 case $target in
7007 i?86*-*-* | x86_64*-*-*)
7008 enable_decimal_float=bid
7011 enable_decimal_float=dpd
7013 esac
7014 default_decimal_float=$enable_decimal_float
7016 xno)
7017 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7018 # dependency on libdecnumber.
7019 default_decimal_float=dpd
7021 esac
7026 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7028 cat >>confdefs.h <<_ACEOF
7029 #define ENABLE_DECIMAL_FLOAT $dfp
7030 _ACEOF
7033 # Use default_decimal_float for dependency.
7034 enable_decimal_float=$default_decimal_float
7036 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7038 cat >>confdefs.h <<_ACEOF
7039 #define ENABLE_DECIMAL_BID_FORMAT $bid
7040 _ACEOF
7043 # Enable C extension for fixed-point arithmetic.
7044 # Check whether --enable-fixed-point was given.
7045 if test "${enable_fixed_point+set}" = set; then :
7046 enableval=$enable_fixed_point;
7047 else
7049 case $target in
7050 arm*)
7051 enable_fixed_point=yes
7054 mips*-*-*)
7055 case $host in
7056 mips*-sgi-irix*)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7058 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7059 enable_fixed_point=no
7062 enable_fixed_point=yes
7064 esac
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7069 enable_fixed_point=no
7071 esac
7077 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7079 cat >>confdefs.h <<_ACEOF
7080 #define ENABLE_FIXED_POINT $fixedpoint
7081 _ACEOF
7084 # Enable threads
7085 # Pass with no value to take the default
7086 # Pass with a value to specify a thread package
7087 # Check whether --enable-threads was given.
7088 if test "${enable_threads+set}" = set; then :
7089 enableval=$enable_threads;
7090 else
7091 enable_threads=''
7095 # Check whether --enable-tls was given.
7096 if test "${enable_tls+set}" = set; then :
7097 enableval=$enable_tls;
7098 case $enable_tls in
7099 yes | no) ;;
7100 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7102 esac
7104 else
7105 enable_tls=''
7109 # Check whether --enable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then :
7111 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7112 objc_boehm_gc=''
7113 else
7114 objc_boehm_gc=1
7116 else
7117 objc_boehm_gc=''
7122 # Check whether --with-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then :
7124 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7125 else
7126 dwarf2=no
7130 # Check whether --enable-shared was given.
7131 if test "${enable_shared+set}" = set; then :
7132 enableval=$enable_shared;
7133 case $enable_shared in
7134 yes | no) ;;
7136 enable_shared=no
7137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7138 for pkg in $enableval; do
7139 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7140 enable_shared=yes
7142 done
7143 IFS="$ac_save_ifs"
7145 esac
7147 else
7148 enable_shared=yes
7154 # Check whether --with-build-sysroot was given.
7155 if test "${with_build_sysroot+set}" = set; then :
7156 withval=$with_build_sysroot;
7161 # Check whether --with-sysroot was given.
7162 if test "${with_sysroot+set}" = set; then :
7163 withval=$with_sysroot;
7164 case ${with_sysroot} in
7165 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7166 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7167 esac
7169 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7170 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7172 if test "x$prefix" = xNONE; then
7173 test_prefix=/usr/local
7174 else
7175 test_prefix=$prefix
7177 if test "x$exec_prefix" = xNONE; then
7178 test_exec_prefix=$test_prefix
7179 else
7180 test_exec_prefix=$exec_prefix
7182 case ${TARGET_SYSTEM_ROOT} in
7183 "${test_prefix}"|"${test_prefix}/"*|\
7184 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7185 '${prefix}'|'${prefix}/'*|\
7186 '${exec_prefix}'|'${exec_prefix}/'*)
7187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188 TARGET_SYSTEM_ROOT_DEFINE="$t"
7190 esac
7192 else
7194 TARGET_SYSTEM_ROOT=
7195 TARGET_SYSTEM_ROOT_DEFINE=
7196 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7205 # Check whether --with-specs was given.
7206 if test "${with_specs+set}" = set; then :
7207 withval=$with_specs; CONFIGURE_SPECS=$withval
7208 else
7209 CONFIGURE_SPECS=
7217 # Check whether --with-pkgversion was given.
7218 if test "${with_pkgversion+set}" = set; then :
7219 withval=$with_pkgversion; case "$withval" in
7220 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7221 no) PKGVERSION= ;;
7222 *) PKGVERSION="($withval) " ;;
7223 esac
7224 else
7225 PKGVERSION="(GCC) "
7233 # Check whether --with-bugurl was given.
7234 if test "${with_bugurl+set}" = set; then :
7235 withval=$with_bugurl; case "$withval" in
7236 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7237 no) BUGURL=
7239 *) BUGURL="$withval"
7241 esac
7242 else
7243 BUGURL="http://gcc.gnu.org/bugs.html"
7247 case ${BUGURL} in
7249 REPORT_BUGS_TO=
7250 REPORT_BUGS_TEXI=
7253 REPORT_BUGS_TO="<$BUGURL>"
7254 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7256 esac;
7261 # Sanity check enable_languages in case someone does not run the toplevel
7262 # configure # script.
7263 # Check whether --enable-languages was given.
7264 if test "${enable_languages+set}" = set; then :
7265 enableval=$enable_languages; case ,${enable_languages}, in
7266 ,,|,yes,)
7267 # go safe -- we cannot be much sure without the toplevel
7268 # configure's
7269 # analysis of which target libs are present and usable
7270 enable_languages=c
7272 *,all,*)
7273 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7275 *,c,*)
7278 enable_languages=c,${enable_languages}
7280 esac
7281 else
7282 enable_languages=c
7287 # Check whether --with-multilib-list was given.
7288 if test "${with_multilib_list+set}" = set; then :
7289 withval=$with_multilib_list; :
7290 else
7291 with_multilib_list=default
7295 # -------------------------
7296 # Checks for other programs
7297 # -------------------------
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7301 set x ${MAKE-make}
7302 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7303 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat >conftest.make <<\_ACEOF
7307 SHELL = /bin/sh
7308 all:
7309 @echo '@@@%%%=$(MAKE)=@@@%%%'
7310 _ACEOF
7311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7313 *@@@%%%=?*=@@@%%%*)
7314 eval ac_cv_prog_make_${ac_make}_set=yes;;
7316 eval ac_cv_prog_make_${ac_make}_set=no;;
7317 esac
7318 rm -f conftest.make
7320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }
7323 SET_MAKE=
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 SET_MAKE="MAKE=${MAKE-make}"
7331 # Find some useful tools
7332 for ac_prog in gawk mawk nawk awk
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AWK+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$AWK"; then
7342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_AWK="$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 AWK=$ac_cv_prog_AWK
7362 if test -n "$AWK"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7364 $as_echo "$AWK" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7371 test -n "$AWK" && break
7372 done
7374 # We need awk to create options.c and options.h.
7375 # Bail out if it's missing.
7376 case ${AWK} in
7377 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7378 esac
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7381 $as_echo_n "checking whether ln -s works... " >&6; }
7382 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 rm -f conftestdata_t
7386 echo >conftestdata_f
7387 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7388 then
7389 gcc_cv_prog_LN_S="ln -s"
7390 else
7391 if ln conftestdata_f conftestdata_t 2>/dev/null
7392 then
7393 gcc_cv_prog_LN_S=ln
7394 else
7395 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7396 then
7397 gcc_cv_prog_LN_S="cp -p"
7398 else
7399 gcc_cv_prog_LN_S=cp
7403 rm -f conftestdata_f conftestdata_t
7406 LN_S="$gcc_cv_prog_LN_S"
7407 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410 else
7411 if test "$gcc_cv_prog_LN_S" = "ln"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7413 $as_echo "no, using ln" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7416 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7421 $as_echo_n "checking whether ln works... " >&6; }
7422 if test "${acx_cv_prog_LN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 rm -f conftestdata_t
7426 echo >conftestdata_f
7427 if ln conftestdata_f conftestdata_t 2>/dev/null
7428 then
7429 acx_cv_prog_LN=ln
7430 else
7431 acx_cv_prog_LN=no
7433 rm -f conftestdata_f conftestdata_t
7436 if test $acx_cv_prog_LN = no; then
7437 LN="$LN_S"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7439 $as_echo "no, using $LN" >&6; }
7440 else
7441 LN="$acx_cv_prog_LN"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$RANLIB"; then
7455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7468 done
7469 done
7470 IFS=$as_save_IFS
7474 RANLIB=$ac_cv_prog_RANLIB
7475 if test -n "$RANLIB"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7477 $as_echo "$RANLIB" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7485 if test -z "$ac_cv_prog_RANLIB"; then
7486 ac_ct_RANLIB=$RANLIB
7487 # Extract the first word of "ranlib", so it can be a program name with args.
7488 set dummy ranlib; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_RANLIB"; then
7495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_RANLIB="ranlib"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7510 IFS=$as_save_IFS
7514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7515 if test -n "$ac_ct_RANLIB"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7517 $as_echo "$ac_ct_RANLIB" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7523 if test "x$ac_ct_RANLIB" = x; then
7524 RANLIB=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 RANLIB=$ac_ct_RANLIB
7534 else
7535 RANLIB="$ac_cv_prog_RANLIB"
7538 case "${host}" in
7539 *-*-darwin*)
7540 # By default, the Darwin ranlib will not treat common symbols as
7541 # definitions when building the archive table of contents. Other
7542 # ranlibs do that; pass an option to the Darwin ranlib that makes
7543 # it behave similarly.
7544 ranlib_flags="-c"
7547 ranlib_flags=""
7548 esac
7551 # Find a good install program. We prefer a C program (faster),
7552 # so one script is as good as another. But avoid the broken or
7553 # incompatible versions:
7554 # SysV /etc/install, /usr/sbin/install
7555 # SunOS /usr/etc/install
7556 # IRIX /sbin/install
7557 # AIX /bin/install
7558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7560 # ./install, which can be erroneously created by make from ./install.sh.
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7562 $as_echo_n "checking for a BSD compatible install... " >&6; }
7563 if test -z "$INSTALL"; then
7564 if test "${ac_cv_path_install+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7568 for ac_dir in $PATH; do
7569 # Account for people who put trailing slashes in PATH elements.
7570 case "$ac_dir/" in
7571 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7573 # OSF1 and SCO ODT 3.0 have their own names for install.
7574 for ac_prog in ginstall scoinst install; do
7575 if test -f $ac_dir/$ac_prog; then
7576 if test $ac_prog = install &&
7577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7578 # AIX install. It has an incompatible calling convention.
7579 # OSF/1 installbsd also uses dspmsg, but is usable.
7581 else
7582 ac_cv_path_install="$ac_dir/$ac_prog -c"
7583 break 2
7586 done
7588 esac
7589 done
7590 IFS="$ac_save_IFS"
7593 if test "${ac_cv_path_install+set}" = set; then
7594 INSTALL="$ac_cv_path_install"
7595 else
7596 # As a last resort, use the slow shell script. We don't cache a
7597 # path for INSTALL within a source directory, because that will
7598 # break other packages using the cache if that directory is
7599 # removed, or if the path is relative.
7600 INSTALL="$ac_install_sh"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7604 $as_echo "$INSTALL" >&6; }
7606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7607 # It thinks the first close brace ends the variable substitution.
7608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7613 # See if cmp has --ignore-initial.
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7615 $as_echo_n "checking for cmp's capabilities... " >&6; }
7616 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 echo abfoo >t1
7620 echo cdfoo >t2
7621 gcc_cv_prog_cmp_skip=slowcompare
7622 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7623 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7625 else
7626 gcc_cv_prog_cmp_skip=gnucompare
7629 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7630 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7631 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7633 else
7634 gcc_cv_prog_cmp_skip=fastcompare
7638 rm t1 t2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7642 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7643 make_compare_target=$gcc_cv_prog_cmp_skip
7647 # See if we have the mktemp command.
7648 # Extract the first word of "mktemp", so it can be a program name with args.
7649 set dummy mktemp; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$have_mktemp_command"; then
7656 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665 ac_cv_prog_have_mktemp_command="yes"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7669 done
7670 done
7671 IFS=$as_save_IFS
7673 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7676 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7677 if test -n "$have_mktemp_command"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7679 $as_echo "$have_mktemp_command" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7687 # See if makeinfo has been installed and is modern enough
7688 # that we can use it.
7690 # Extract the first word of "makeinfo", so it can be a program name with args.
7691 set dummy makeinfo; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$MAKEINFO"; then
7698 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_MAKEINFO="makeinfo"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7711 done
7712 done
7713 IFS=$as_save_IFS
7717 MAKEINFO=$ac_cv_prog_MAKEINFO
7718 if test -n "$MAKEINFO"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7720 $as_echo "$MAKEINFO" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7727 if test -n "$MAKEINFO"; then
7728 # Found it, now check the version.
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7730 $as_echo_n "checking for modern makeinfo... " >&6; }
7731 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7735 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7737 case $ac_prog_version in
7738 '') gcc_cv_prog_makeinfo_modern=no;;
7739 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7740 *) gcc_cv_prog_makeinfo_modern=no;;
7741 esac
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7745 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7746 else
7747 gcc_cv_prog_makeinfo_modern=no
7749 if test $gcc_cv_prog_makeinfo_modern = no; then
7750 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7753 if test $gcc_cv_prog_makeinfo_modern = no; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7755 *** Makeinfo is missing or too old.
7756 *** Info documentation will not be built." >&5
7757 $as_echo "$as_me: WARNING:
7758 *** Makeinfo is missing or too old.
7759 *** Info documentation will not be built." >&2;}
7760 BUILD_INFO=
7761 else
7762 BUILD_INFO=info
7766 # Is pod2man recent enough to regenerate manpages?
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7768 $as_echo_n "checking for recent Pod::Man... " >&6; }
7769 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771 $as_echo "yes" >&6; }
7772 GENERATED_MANPAGES=generated-manpages
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 GENERATED_MANPAGES=
7780 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7782 # How about lex?
7783 for ac_prog in flex
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_FLEX+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$FLEX"; then
7793 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_FLEX="$ac_prog"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7806 done
7807 done
7808 IFS=$as_save_IFS
7812 FLEX=$ac_cv_prog_FLEX
7813 if test -n "$FLEX"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7815 $as_echo "$FLEX" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7822 test -n "$FLEX" && break
7823 done
7824 test -n "$FLEX" || FLEX="$MISSING flex"
7827 # Bison?
7828 for ac_prog in bison
7830 # Extract the first word of "$ac_prog", so it can be a program name with args.
7831 set dummy $ac_prog; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_BISON+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$BISON"; then
7838 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_BISON="$ac_prog"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 BISON=$ac_cv_prog_BISON
7858 if test -n "$BISON"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7860 $as_echo "$BISON" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7867 test -n "$BISON" && break
7868 done
7869 test -n "$BISON" || BISON="$MISSING bison"
7872 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7873 # check for build == host before using them.
7875 # NM
7876 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7877 && test -d ../binutils ; then
7878 NM='${objdir}/../binutils/nm-new'
7879 else
7880 # Extract the first word of "nm", so it can be a program name with args.
7881 set dummy nm; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_NM+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 if test -n "$NM"; then
7888 ac_cv_prog_NM="$NM" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_prog_NM="nm"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7901 done
7902 done
7903 IFS=$as_save_IFS
7905 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7908 NM=$ac_cv_prog_NM
7909 if test -n "$NM"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7911 $as_echo "$NM" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7920 # AR
7921 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7922 && test -d ../binutils ; then
7923 AR='${objdir}/../binutils/ar'
7924 else
7925 # Extract the first word of "ar", so it can be a program name with args.
7926 set dummy ar; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_AR+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$AR"; then
7933 ac_cv_prog_AR="$AR" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_AR="ar"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7950 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7953 AR=$ac_cv_prog_AR
7954 if test -n "$AR"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7956 $as_echo "$AR" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7966 # --------------------
7967 # Checks for C headers
7968 # --------------------
7970 # Need to reject headers which give warnings, so that the -Werror bootstrap
7971 # works later. *sigh* This needs to come before all header checks.
7973 ac_c_preproc_warn_flag=yes
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7976 $as_echo_n "checking for ANSI C header files... " >&6; }
7977 if test "${ac_cv_header_stdc+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <stdlib.h>
7983 #include <stdarg.h>
7984 #include <string.h>
7985 #include <float.h>
7988 main ()
7992 return 0;
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"; then :
7996 ac_cv_header_stdc=yes
7997 else
7998 ac_cv_header_stdc=no
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 if test $ac_cv_header_stdc = yes; then
8003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <string.h>
8008 _ACEOF
8009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8010 $EGREP "memchr" >/dev/null 2>&1; then :
8012 else
8013 ac_cv_header_stdc=no
8015 rm -f conftest*
8019 if test $ac_cv_header_stdc = yes; then
8020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 #include <stdlib.h>
8025 _ACEOF
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "free" >/dev/null 2>&1; then :
8029 else
8030 ac_cv_header_stdc=no
8032 rm -f conftest*
8036 if test $ac_cv_header_stdc = yes; then
8037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8038 if test "$cross_compiling" = yes; then :
8040 else
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #include <ctype.h>
8044 #include <stdlib.h>
8045 #if ((' ' & 0x0FF) == 0x020)
8046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8048 #else
8049 # define ISLOWER(c) \
8050 (('a' <= (c) && (c) <= 'i') \
8051 || ('j' <= (c) && (c) <= 'r') \
8052 || ('s' <= (c) && (c) <= 'z'))
8053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8054 #endif
8056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8058 main ()
8060 int i;
8061 for (i = 0; i < 256; i++)
8062 if (XOR (islower (i), ISLOWER (i))
8063 || toupper (i) != TOUPPER (i))
8064 return 2;
8065 return 0;
8067 _ACEOF
8068 if ac_fn_c_try_run "$LINENO"; then :
8070 else
8071 ac_cv_header_stdc=no
8073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8074 conftest.$ac_objext conftest.beam conftest.$ac_ext
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8080 $as_echo "$ac_cv_header_stdc" >&6; }
8081 if test $ac_cv_header_stdc = yes; then
8083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8088 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8089 if test "${ac_cv_header_time+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <sys/types.h>
8095 #include <sys/time.h>
8096 #include <time.h>
8099 main ()
8101 if ((struct tm *) 0)
8102 return 0;
8104 return 0;
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 ac_cv_header_time=yes
8109 else
8110 ac_cv_header_time=no
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8115 $as_echo "$ac_cv_header_time" >&6; }
8116 if test $ac_cv_header_time = yes; then
8118 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8123 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8124 if test "${gcc_cv_header_string+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <string.h>
8130 #include <strings.h>
8132 main ()
8136 return 0;
8138 _ACEOF
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140 gcc_cv_header_string=yes
8141 else
8142 gcc_cv_header_string=no
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8147 $as_echo "$gcc_cv_header_string" >&6; }
8148 if test $gcc_cv_header_string = yes; then
8150 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8155 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8156 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <sys/wait.h>
8163 #ifndef WEXITSTATUS
8164 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8165 #endif
8166 #ifndef WIFEXITED
8167 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8168 #endif
8171 main ()
8173 int s;
8174 wait (&s);
8175 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8177 return 0;
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 ac_cv_header_sys_wait_h=yes
8182 else
8183 ac_cv_header_sys_wait_h=no
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8188 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8189 if test $ac_cv_header_sys_wait_h = yes; then
8191 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8195 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8196 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8197 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8198 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8199 do :
8200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8201 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8202 eval as_val=\$$as_ac_Header
8203 if test "x$as_val" = x""yes; then :
8204 cat >>confdefs.h <<_ACEOF
8205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8206 _ACEOF
8209 done
8212 # Check for thread headers.
8213 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8214 if test "x$ac_cv_header_thread_h" = x""yes; then :
8215 have_thread_h=yes
8216 else
8217 have_thread_h=
8220 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8221 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8222 have_pthread_h=yes
8223 else
8224 have_pthread_h=
8228 # These tests can't be done till we know if we have limits.h.
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8230 $as_echo_n "checking for CHAR_BIT... " >&6; }
8231 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #ifdef HAVE_LIMITS_H
8237 #include <limits.h>
8238 #endif
8239 #ifdef CHAR_BIT
8240 found
8241 #endif
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "found" >/dev/null 2>&1; then :
8245 gcc_cv_decl_char_bit=yes
8246 else
8247 gcc_cv_decl_char_bit=no
8249 rm -f conftest*
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8254 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8255 if test $gcc_cv_decl_char_bit = no; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8257 $as_echo_n "checking number of bits in a byte... " >&6; }
8258 if test "${gcc_cv_c_nbby+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8262 gcc_cv_c_nbby=
8263 while test $i -lt 65; do
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8268 main ()
8270 switch(0) {
8271 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8272 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 gcc_cv_c_nbby=$i; break
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 i=`expr $i + 1`
8283 done
8284 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8288 $as_echo "$gcc_cv_c_nbby" >&6; }
8289 if test $gcc_cv_c_nbby = failed; then
8290 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8291 else
8293 cat >>confdefs.h <<_ACEOF
8294 #define CHAR_BIT $gcc_cv_c_nbby
8295 _ACEOF
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8300 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8301 if test "${ac_cv_c_bigendian+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 ac_cv_c_bigendian=unknown
8305 # See if we're dealing with a universal compiler.
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #ifndef __APPLE_CC__
8309 not a universal capable compiler
8310 #endif
8311 typedef int dummy;
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8316 # Check for potential -arch flags. It is not universal unless
8317 # there are at least two -arch flags with different values.
8318 ac_arch=
8319 ac_prev=
8320 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8321 if test -n "$ac_prev"; then
8322 case $ac_word in
8323 i?86 | x86_64 | ppc | ppc64)
8324 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8325 ac_arch=$ac_word
8326 else
8327 ac_cv_c_bigendian=universal
8328 break
8331 esac
8332 ac_prev=
8333 elif test "x$ac_word" = "x-arch"; then
8334 ac_prev=arch
8336 done
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 if test $ac_cv_c_bigendian = unknown; then
8340 # See if sys/param.h defines the BYTE_ORDER macro.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <sys/types.h>
8344 #include <sys/param.h>
8347 main ()
8349 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8350 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8351 && LITTLE_ENDIAN)
8352 bogus endian macros
8353 #endif
8356 return 0;
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 # It does; now see whether it defined to BIG_ENDIAN or not.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <sys/param.h>
8367 main ()
8369 #if BYTE_ORDER != BIG_ENDIAN
8370 not big endian
8371 #endif
8374 return 0;
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378 ac_cv_c_bigendian=yes
8379 else
8380 ac_cv_c_bigendian=no
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 if test $ac_cv_c_bigendian = unknown; then
8387 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <limits.h>
8393 main ()
8395 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8396 bogus endian macros
8397 #endif
8400 return 0;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 # It does; now see whether it defined to _BIG_ENDIAN or not.
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 #include <limits.h>
8410 main ()
8412 #ifndef _BIG_ENDIAN
8413 not big endian
8414 #endif
8417 return 0;
8419 _ACEOF
8420 if ac_fn_c_try_compile "$LINENO"; then :
8421 ac_cv_c_bigendian=yes
8422 else
8423 ac_cv_c_bigendian=no
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 if test $ac_cv_c_bigendian = unknown; then
8430 # Compile a test program.
8431 if test "$cross_compiling" = yes; then :
8432 # Try to guess by grepping values from an object file.
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 short int ascii_mm[] =
8436 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8437 short int ascii_ii[] =
8438 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8439 int use_ascii (int i) {
8440 return ascii_mm[i] + ascii_ii[i];
8442 short int ebcdic_ii[] =
8443 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8444 short int ebcdic_mm[] =
8445 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8446 int use_ebcdic (int i) {
8447 return ebcdic_mm[i] + ebcdic_ii[i];
8449 extern int foo;
8452 main ()
8454 return use_ascii (foo) == use_ebcdic (foo);
8456 return 0;
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8461 ac_cv_c_bigendian=yes
8463 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8464 if test "$ac_cv_c_bigendian" = unknown; then
8465 ac_cv_c_bigendian=no
8466 else
8467 # finding both strings is unlikely to happen, but who knows?
8468 ac_cv_c_bigendian=unknown
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 $ac_includes_default
8478 main ()
8481 /* Are we little or big endian? From Harbison&Steele. */
8482 union
8484 long int l;
8485 char c[sizeof (long int)];
8486 } u;
8487 u.l = 1;
8488 return u.c[sizeof (long int) - 1] == 1;
8491 return 0;
8493 _ACEOF
8494 if ac_fn_c_try_run "$LINENO"; then :
8495 ac_cv_c_bigendian=no
8496 else
8497 ac_cv_c_bigendian=yes
8499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8500 conftest.$ac_objext conftest.beam conftest.$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8506 $as_echo "$ac_cv_c_bigendian" >&6; }
8507 case $ac_cv_c_bigendian in #(
8508 yes)
8509 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8510 ;; #(
8512 ;; #(
8513 universal)
8515 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8517 ;; #(
8519 as_fn_error "unknown endianness
8520 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8521 esac
8524 # ----------------------
8525 # Checks for C++ headers
8526 # ----------------------
8528 ac_ext=cpp
8529 ac_cpp='$CXXCPP $CPPFLAGS'
8530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8534 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8535 if test -z "$CXXCPP"; then
8536 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 # Double quotes because CXXCPP needs to be expanded
8540 for CXXCPP in "$CXX -E" "/lib/cpp"
8542 ac_preproc_ok=false
8543 for ac_cxx_preproc_warn_flag in '' yes
8545 # Use a header file that comes with gcc, so configuring glibc
8546 # with a fresh cross-compiler works.
8547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548 # <limits.h> exists even on freestanding compilers.
8549 # On the NeXT, cc -E runs the code through the compiler's parser,
8550 # not just through cpp. "Syntax error" is here to catch this case.
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8558 Syntax error
8559 _ACEOF
8560 if ac_fn_cxx_try_cpp "$LINENO"; then :
8562 else
8563 # Broken: fails on valid input.
8564 continue
8566 rm -f conftest.err conftest.$ac_ext
8568 # OK, works on sane cases. Now check whether nonexistent headers
8569 # can be detected and how.
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <ac_nonexistent.h>
8573 _ACEOF
8574 if ac_fn_cxx_try_cpp "$LINENO"; then :
8575 # Broken: success on invalid input.
8576 continue
8577 else
8578 # Passes both tests.
8579 ac_preproc_ok=:
8580 break
8582 rm -f conftest.err conftest.$ac_ext
8584 done
8585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8586 rm -f conftest.err conftest.$ac_ext
8587 if $ac_preproc_ok; then :
8588 break
8591 done
8592 ac_cv_prog_CXXCPP=$CXXCPP
8595 CXXCPP=$ac_cv_prog_CXXCPP
8596 else
8597 ac_cv_prog_CXXCPP=$CXXCPP
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8600 $as_echo "$CXXCPP" >&6; }
8601 ac_preproc_ok=false
8602 for ac_cxx_preproc_warn_flag in '' yes
8604 # Use a header file that comes with gcc, so configuring glibc
8605 # with a fresh cross-compiler works.
8606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8607 # <limits.h> exists even on freestanding compilers.
8608 # On the NeXT, cc -E runs the code through the compiler's parser,
8609 # not just through cpp. "Syntax error" is here to catch this case.
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8617 Syntax error
8618 _ACEOF
8619 if ac_fn_cxx_try_cpp "$LINENO"; then :
8621 else
8622 # Broken: fails on valid input.
8623 continue
8625 rm -f conftest.err conftest.$ac_ext
8627 # OK, works on sane cases. Now check whether nonexistent headers
8628 # can be detected and how.
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 #include <ac_nonexistent.h>
8632 _ACEOF
8633 if ac_fn_cxx_try_cpp "$LINENO"; then :
8634 # Broken: success on invalid input.
8635 continue
8636 else
8637 # Passes both tests.
8638 ac_preproc_ok=:
8639 break
8641 rm -f conftest.err conftest.$ac_ext
8643 done
8644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8645 rm -f conftest.err conftest.$ac_ext
8646 if $ac_preproc_ok; then :
8648 else
8649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8652 See \`config.log' for more details." >&5
8653 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8654 See \`config.log' for more details." >&2;}; }
8657 ac_ext=c
8658 ac_cpp='$CPP $CPPFLAGS'
8659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664 ac_ext=cpp
8665 ac_cpp='$CXXCPP $CPPFLAGS'
8666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8673 for ac_header in unordered_map
8674 do :
8675 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8676 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8677 cat >>confdefs.h <<_ACEOF
8678 #define HAVE_UNORDERED_MAP 1
8679 _ACEOF
8682 done
8684 for ac_header in tr1/unordered_map
8685 do :
8686 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8687 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8688 cat >>confdefs.h <<_ACEOF
8689 #define HAVE_TR1_UNORDERED_MAP 1
8690 _ACEOF
8693 done
8695 for ac_header in ext/hash_map
8696 do :
8697 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8698 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8699 cat >>confdefs.h <<_ACEOF
8700 #define HAVE_EXT_HASH_MAP 1
8701 _ACEOF
8704 done
8707 ac_ext=c
8708 ac_cpp='$CPP $CPPFLAGS'
8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8714 # --------
8715 # UNSORTED
8716 # --------
8719 # These libraries may be used by collect2.
8720 # We may need a special search path to get them linked.
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8722 $as_echo_n "checking for collect2 libraries... " >&6; }
8723 if test "${gcc_cv_collect2_libs+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 save_LIBS="$LIBS"
8727 for libs in '' -lld -lmld \
8728 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8729 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8731 LIBS="$libs"
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8735 /* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char ldopen ();
8743 main ()
8745 return ldopen ();
8747 return 0;
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"; then :
8751 gcc_cv_collect2_libs="$libs"; break
8753 rm -f core conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 done
8756 LIBS="$save_LIBS"
8757 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8760 $as_echo "$gcc_cv_collect2_libs" >&6; }
8761 case $gcc_cv_collect2_libs in
8762 "none required") ;;
8763 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8764 esac
8767 # When building Ada code on Alpha, we need exc_resume which is usually in
8768 # -lexc. So test for it.
8769 save_LIBS="$LIBS"
8770 LIBS=
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8772 $as_echo_n "checking for library containing exc_resume... " >&6; }
8773 if test "${ac_cv_search_exc_resume+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 ac_func_search_save_LIBS=$LIBS
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 char exc_resume ();
8788 main ()
8790 return exc_resume ();
8792 return 0;
8794 _ACEOF
8795 for ac_lib in '' exc; do
8796 if test -z "$ac_lib"; then
8797 ac_res="none required"
8798 else
8799 ac_res=-l$ac_lib
8800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8802 if ac_fn_c_try_link "$LINENO"; then :
8803 ac_cv_search_exc_resume=$ac_res
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext
8807 if test "${ac_cv_search_exc_resume+set}" = set; then :
8808 break
8810 done
8811 if test "${ac_cv_search_exc_resume+set}" = set; then :
8813 else
8814 ac_cv_search_exc_resume=no
8816 rm conftest.$ac_ext
8817 LIBS=$ac_func_search_save_LIBS
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8820 $as_echo "$ac_cv_search_exc_resume" >&6; }
8821 ac_res=$ac_cv_search_exc_resume
8822 if test "$ac_res" != no; then :
8823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8827 GNAT_LIBEXC="$LIBS"
8828 LIBS="$save_LIBS"
8831 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8832 save_LIBS="$LIBS"
8833 LIBS=
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8835 $as_echo_n "checking for library containing kstat_open... " >&6; }
8836 if test "${ac_cv_search_kstat_open+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 ac_func_search_save_LIBS=$LIBS
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char kstat_open ();
8851 main ()
8853 return kstat_open ();
8855 return 0;
8857 _ACEOF
8858 for ac_lib in '' kstat; do
8859 if test -z "$ac_lib"; then
8860 ac_res="none required"
8861 else
8862 ac_res=-l$ac_lib
8863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 ac_cv_search_kstat_open=$ac_res
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext
8870 if test "${ac_cv_search_kstat_open+set}" = set; then :
8871 break
8873 done
8874 if test "${ac_cv_search_kstat_open+set}" = set; then :
8876 else
8877 ac_cv_search_kstat_open=no
8879 rm conftest.$ac_ext
8880 LIBS=$ac_func_search_save_LIBS
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8883 $as_echo "$ac_cv_search_kstat_open" >&6; }
8884 ac_res=$ac_cv_search_kstat_open
8885 if test "$ac_res" != no; then :
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8890 EXTRA_GCC_LIBS="$LIBS"
8891 LIBS="$save_LIBS"
8894 # Some systems put ldexp and frexp in libm instead of libc; assume
8895 # they're both in the same place. jcf-dump needs them.
8896 save_LIBS="$LIBS"
8897 LIBS=
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8899 $as_echo_n "checking for library containing ldexp... " >&6; }
8900 if test "${ac_cv_search_ldexp+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 ac_func_search_save_LIBS=$LIBS
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8907 /* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 char ldexp ();
8915 main ()
8917 return ldexp ();
8919 return 0;
8921 _ACEOF
8922 for ac_lib in '' m; do
8923 if test -z "$ac_lib"; then
8924 ac_res="none required"
8925 else
8926 ac_res=-l$ac_lib
8927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8929 if ac_fn_c_try_link "$LINENO"; then :
8930 ac_cv_search_ldexp=$ac_res
8932 rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext
8934 if test "${ac_cv_search_ldexp+set}" = set; then :
8935 break
8937 done
8938 if test "${ac_cv_search_ldexp+set}" = set; then :
8940 else
8941 ac_cv_search_ldexp=no
8943 rm conftest.$ac_ext
8944 LIBS=$ac_func_search_save_LIBS
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8947 $as_echo "$ac_cv_search_ldexp" >&6; }
8948 ac_res=$ac_cv_search_ldexp
8949 if test "$ac_res" != no; then :
8950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8954 LDEXP_LIB="$LIBS"
8955 LIBS="$save_LIBS"
8958 # Use <inttypes.h> only if it exists,
8959 # doesn't clash with <sys/types.h>, and declares intmax_t.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8961 $as_echo_n "checking for inttypes.h... " >&6; }
8962 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 #include <inttypes.h>
8970 main ()
8972 intmax_t i = -1;
8974 return 0;
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978 gcc_cv_header_inttypes_h=yes
8979 else
8980 gcc_cv_header_inttypes_h=no
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8986 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8987 if test $gcc_cv_header_inttypes_h = yes; then
8989 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8995 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8996 sysconf strsignal getrusage nl_langinfo \
8997 gettimeofday mbstowcs wcswidth mmap setlocale \
8998 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
8999 do :
9000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9002 eval as_val=\$$as_ac_var
9003 if test "x$as_val" = x""yes; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9006 _ACEOF
9009 done
9012 if test x$ac_cv_func_mbstowcs = xyes; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9014 $as_echo_n "checking whether mbstowcs works... " >&6; }
9015 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test "$cross_compiling" = yes; then :
9019 gcc_cv_func_mbstowcs_works=yes
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <stdlib.h>
9024 int main()
9026 mbstowcs(0, "", 0);
9027 return 0;
9029 _ACEOF
9030 if ac_fn_c_try_run "$LINENO"; then :
9031 gcc_cv_func_mbstowcs_works=yes
9032 else
9033 gcc_cv_func_mbstowcs_works=no
9035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9036 conftest.$ac_objext conftest.beam conftest.$ac_ext
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9041 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9042 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9044 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9049 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9050 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9052 else
9054 cat >>confdefs.h <<_ACEOF
9055 #define ssize_t int
9056 _ACEOF
9060 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9061 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9063 else
9065 cat >>confdefs.h <<_ACEOF
9066 #define caddr_t char *
9067 _ACEOF
9073 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9074 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9075 gcc_header_sys_mman_h=yes
9076 else
9077 gcc_header_sys_mman_h=no
9080 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9081 if test "x$ac_cv_func_mmap" = x""yes; then :
9082 gcc_func_mmap=yes
9083 else
9084 gcc_func_mmap=no
9087 if test "$gcc_header_sys_mman_h" != yes \
9088 || test "$gcc_func_mmap" != yes; then
9089 gcc_cv_func_mmap_file=no
9090 gcc_cv_func_mmap_dev_zero=no
9091 gcc_cv_func_mmap_anon=no
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9094 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9095 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 # Add a system to this blacklist if
9099 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9100 # memory area containing the same data that you'd get if you applied
9101 # read() to the same fd. The only system known to have a problem here
9102 # is VMS, where text files have record structure.
9103 case "$host_os" in
9104 vms* | ultrix*)
9105 gcc_cv_func_mmap_file=no ;;
9107 gcc_cv_func_mmap_file=yes;;
9108 esac
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9111 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9113 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9114 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 # Add a system to this blacklist if it has mmap() but /dev/zero
9118 # does not exist, or if mmapping /dev/zero does not give anonymous
9119 # zeroed pages with both the following properties:
9120 # 1. If you map N consecutive pages in with one call, and then
9121 # unmap any subset of those pages, the pages that were not
9122 # explicitly unmapped remain accessible.
9123 # 2. If you map two adjacent blocks of memory and then unmap them
9124 # both at once, they must both go away.
9125 # Systems known to be in this category are Windows (all variants),
9126 # VMS, and Darwin.
9127 case "$host_os" in
9128 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9129 gcc_cv_func_mmap_dev_zero=no ;;
9131 gcc_cv_func_mmap_dev_zero=yes;;
9132 esac
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9135 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9137 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9139 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9140 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 #include <sys/types.h>
9146 #include <sys/mman.h>
9147 #include <unistd.h>
9149 #ifndef MAP_ANONYMOUS
9150 #define MAP_ANONYMOUS MAP_ANON
9151 #endif
9154 main ()
9156 int n = MAP_ANONYMOUS;
9158 return 0;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 gcc_cv_decl_map_anon=yes
9163 else
9164 gcc_cv_decl_map_anon=no
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9169 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9171 if test $gcc_cv_decl_map_anon = no; then
9172 gcc_cv_func_mmap_anon=no
9173 else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9175 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9176 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9180 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9181 # doesn't give anonymous zeroed pages with the same properties listed
9182 # above for use of /dev/zero.
9183 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9184 case "$host_os" in
9185 vms* | cygwin* | pe | mingw* | sco* | udk* )
9186 gcc_cv_func_mmap_anon=no ;;
9188 gcc_cv_func_mmap_anon=yes;;
9189 esac
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9192 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9196 if test $gcc_cv_func_mmap_file = yes; then
9198 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9201 if test $gcc_cv_func_mmap_dev_zero = yes; then
9203 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9206 if test $gcc_cv_func_mmap_anon = yes; then
9208 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9213 case "${host}" in
9214 *-*-*vms*)
9215 # Under VMS, vfork works very differently than on Unix. The standard test
9216 # won't work, and it isn't easily adaptable. It makes more sense to
9217 # just force it.
9218 ac_cv_func_vfork_works=yes
9220 esac
9221 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_pid_t" = x""yes; then :
9224 else
9226 cat >>confdefs.h <<_ACEOF
9227 #define pid_t int
9228 _ACEOF
9232 for ac_header in vfork.h
9233 do :
9234 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9235 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_VFORK_H 1
9238 _ACEOF
9241 done
9243 for ac_func in fork vfork
9244 do :
9245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9247 eval as_val=\$$as_ac_var
9248 if test "x$as_val" = x""yes; then :
9249 cat >>confdefs.h <<_ACEOF
9250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9251 _ACEOF
9254 done
9256 if test "x$ac_cv_func_fork" = xyes; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9258 $as_echo_n "checking for working fork... " >&6; }
9259 if test "${ac_cv_func_fork_works+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 if test "$cross_compiling" = yes; then :
9263 ac_cv_func_fork_works=cross
9264 else
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267 $ac_includes_default
9269 main ()
9272 /* By Ruediger Kuhlmann. */
9273 return fork () < 0;
9276 return 0;
9278 _ACEOF
9279 if ac_fn_c_try_run "$LINENO"; then :
9280 ac_cv_func_fork_works=yes
9281 else
9282 ac_cv_func_fork_works=no
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9285 conftest.$ac_objext conftest.beam conftest.$ac_ext
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9290 $as_echo "$ac_cv_func_fork_works" >&6; }
9292 else
9293 ac_cv_func_fork_works=$ac_cv_func_fork
9295 if test "x$ac_cv_func_fork_works" = xcross; then
9296 case $host in
9297 *-*-amigaos* | *-*-msdosdjgpp*)
9298 # Override, as these systems have only a dummy fork() stub
9299 ac_cv_func_fork_works=no
9302 ac_cv_func_fork_works=yes
9304 esac
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9306 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9308 ac_cv_func_vfork_works=$ac_cv_func_vfork
9309 if test "x$ac_cv_func_vfork" = xyes; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9311 $as_echo_n "checking for working vfork... " >&6; }
9312 if test "${ac_cv_func_vfork_works+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_vfork_works=cross
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 /* Thanks to Paul Eggert for this test. */
9321 $ac_includes_default
9322 #include <sys/wait.h>
9323 #ifdef HAVE_VFORK_H
9324 # include <vfork.h>
9325 #endif
9326 /* On some sparc systems, changes by the child to local and incoming
9327 argument registers are propagated back to the parent. The compiler
9328 is told about this with #include <vfork.h>, but some compilers
9329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9330 static variable whose address is put into a register that is
9331 clobbered by the vfork. */
9332 static void
9333 #ifdef __cplusplus
9334 sparc_address_test (int arg)
9335 # else
9336 sparc_address_test (arg) int arg;
9337 #endif
9339 static pid_t child;
9340 if (!child) {
9341 child = vfork ();
9342 if (child < 0) {
9343 perror ("vfork");
9344 _exit(2);
9346 if (!child) {
9347 arg = getpid();
9348 write(-1, "", 0);
9349 _exit (arg);
9355 main ()
9357 pid_t parent = getpid ();
9358 pid_t child;
9360 sparc_address_test (0);
9362 child = vfork ();
9364 if (child == 0) {
9365 /* Here is another test for sparc vfork register problems. This
9366 test uses lots of local variables, at least as many local
9367 variables as main has allocated so far including compiler
9368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9370 reuse the register of parent for one of the local variables,
9371 since it will think that parent can't possibly be used any more
9372 in this routine. Assigning to the local variable will thus
9373 munge parent in the parent process. */
9374 pid_t
9375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9377 /* Convince the compiler that p..p7 are live; otherwise, it might
9378 use the same hardware register for all 8 local variables. */
9379 if (p != p1 || p != p2 || p != p3 || p != p4
9380 || p != p5 || p != p6 || p != p7)
9381 _exit(1);
9383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9384 from child file descriptors. If the child closes a descriptor
9385 before it execs or exits, this munges the parent's descriptor
9386 as well. Test for this by closing stdout in the child. */
9387 _exit(close(fileno(stdout)) != 0);
9388 } else {
9389 int status;
9390 struct stat st;
9392 while (wait(&status) != child)
9394 return (
9395 /* Was there some problem with vforking? */
9396 child < 0
9398 /* Did the child fail? (This shouldn't happen.) */
9399 || status
9401 /* Did the vfork/compiler bug occur? */
9402 || parent != getpid()
9404 /* Did the file descriptor bug occur? */
9405 || fstat(fileno(stdout), &st) != 0
9409 _ACEOF
9410 if ac_fn_c_try_run "$LINENO"; then :
9411 ac_cv_func_vfork_works=yes
9412 else
9413 ac_cv_func_vfork_works=no
9415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9416 conftest.$ac_objext conftest.beam conftest.$ac_ext
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9421 $as_echo "$ac_cv_func_vfork_works" >&6; }
9424 if test "x$ac_cv_func_fork_works" = xcross; then
9425 ac_cv_func_vfork_works=$ac_cv_func_vfork
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9427 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9430 if test "x$ac_cv_func_vfork_works" = xyes; then
9432 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9434 else
9436 $as_echo "#define vfork fork" >>confdefs.h
9439 if test "x$ac_cv_func_fork_works" = xyes; then
9441 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9446 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9447 # iconv() prototype.
9449 if test "X$prefix" = "XNONE"; then
9450 acl_final_prefix="$ac_default_prefix"
9451 else
9452 acl_final_prefix="$prefix"
9454 if test "X$exec_prefix" = "XNONE"; then
9455 acl_final_exec_prefix='${prefix}'
9456 else
9457 acl_final_exec_prefix="$exec_prefix"
9459 acl_save_prefix="$prefix"
9460 prefix="$acl_final_prefix"
9461 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9462 prefix="$acl_save_prefix"
9465 # Check whether --with-gnu-ld was given.
9466 if test "${with_gnu_ld+set}" = set; then :
9467 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9468 else
9469 with_gnu_ld=no
9472 # Prepare PATH_SEPARATOR.
9473 # The user is always right.
9474 if test "${PATH_SEPARATOR+set}" != set; then
9475 echo "#! /bin/sh" >conf$$.sh
9476 echo "exit 0" >>conf$$.sh
9477 chmod +x conf$$.sh
9478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9479 PATH_SEPARATOR=';'
9480 else
9481 PATH_SEPARATOR=:
9483 rm -f conf$$.sh
9485 ac_prog=ld
9486 if test "$GCC" = yes; then
9487 # Check if gcc -print-prog-name=ld gives a path.
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9489 $as_echo_n "checking for ld used by GCC... " >&6; }
9490 case $host in
9491 *-*-mingw*)
9492 # gcc leaves a trailing carriage return which upsets mingw
9493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9496 esac
9497 case $ac_prog in
9498 # Accept absolute paths.
9499 [\\/]* | [A-Za-z]:[\\/]*)
9500 re_direlt='/[^/][^/]*/\.\./'
9501 # Canonicalize the path of ld
9502 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9503 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9504 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9505 done
9506 test -z "$LD" && LD="$ac_prog"
9509 # If it fails, then pretend we aren't using GCC.
9510 ac_prog=ld
9513 # If it is relative, then search for the first ld in PATH.
9514 with_gnu_ld=unknown
9516 esac
9517 elif test "$with_gnu_ld" = yes; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9519 $as_echo_n "checking for GNU ld... " >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9522 $as_echo_n "checking for non-GNU ld... " >&6; }
9524 if test "${acl_cv_path_LD+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 if test -z "$LD"; then
9528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9529 for ac_dir in $PATH; do
9530 test -z "$ac_dir" && ac_dir=.
9531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532 acl_cv_path_LD="$ac_dir/$ac_prog"
9533 # Check to see if the program is GNU ld. I'd rather use --version,
9534 # but apparently some GNU ld's only accept -v.
9535 # Break only if it was the GNU/non-GNU ld that we prefer.
9536 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9537 test "$with_gnu_ld" != no && break
9538 else
9539 test "$with_gnu_ld" != yes && break
9542 done
9543 IFS="$ac_save_ifs"
9544 else
9545 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9549 LD="$acl_cv_path_LD"
9550 if test -n "$LD"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9552 $as_echo "$LD" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9557 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9560 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9565 acl_cv_prog_gnu_ld=yes
9566 else
9567 acl_cv_prog_gnu_ld=no
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9571 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9572 with_gnu_ld=$acl_cv_prog_gnu_ld
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9577 $as_echo_n "checking for shared library run path origin... " >&6; }
9578 if test "${acl_cv_rpath+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9582 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9583 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9584 . ./conftest.sh
9585 rm -f ./conftest.sh
9586 acl_cv_rpath=done
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9590 $as_echo "$acl_cv_rpath" >&6; }
9591 wl="$acl_cv_wl"
9592 libext="$acl_cv_libext"
9593 shlibext="$acl_cv_shlibext"
9594 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9595 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9596 hardcode_direct="$acl_cv_hardcode_direct"
9597 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9598 # Check whether --enable-rpath was given.
9599 if test "${enable_rpath+set}" = set; then :
9600 enableval=$enable_rpath; :
9601 else
9602 enable_rpath=yes
9612 use_additional=yes
9614 acl_save_prefix="$prefix"
9615 prefix="$acl_final_prefix"
9616 acl_save_exec_prefix="$exec_prefix"
9617 exec_prefix="$acl_final_exec_prefix"
9619 eval additional_includedir=\"$includedir\"
9620 eval additional_libdir=\"$libdir\"
9622 exec_prefix="$acl_save_exec_prefix"
9623 prefix="$acl_save_prefix"
9626 # Check whether --with-libiconv-prefix was given.
9627 if test "${with_libiconv_prefix+set}" = set; then :
9628 withval=$with_libiconv_prefix;
9629 if test "X$withval" = "Xno"; then
9630 use_additional=no
9631 else
9632 if test "X$withval" = "X"; then
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9639 eval additional_includedir=\"$includedir\"
9640 eval additional_libdir=\"$libdir\"
9642 exec_prefix="$acl_save_exec_prefix"
9643 prefix="$acl_save_prefix"
9645 else
9646 additional_includedir="$withval/include"
9647 additional_libdir="$withval/lib"
9653 LIBICONV=
9654 LTLIBICONV=
9655 INCICONV=
9656 rpathdirs=
9657 ltrpathdirs=
9658 names_already_handled=
9659 names_next_round='iconv '
9660 while test -n "$names_next_round"; do
9661 names_this_round="$names_next_round"
9662 names_next_round=
9663 for name in $names_this_round; do
9664 already_handled=
9665 for n in $names_already_handled; do
9666 if test "$n" = "$name"; then
9667 already_handled=yes
9668 break
9670 done
9671 if test -z "$already_handled"; then
9672 names_already_handled="$names_already_handled $name"
9673 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9674 eval value=\"\$HAVE_LIB$uppername\"
9675 if test -n "$value"; then
9676 if test "$value" = yes; then
9677 eval value=\"\$LIB$uppername\"
9678 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9679 eval value=\"\$LTLIB$uppername\"
9680 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9681 else
9684 else
9685 found_dir=
9686 found_la=
9687 found_so=
9688 found_a=
9689 if test $use_additional = yes; then
9690 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9691 found_dir="$additional_libdir"
9692 found_so="$additional_libdir/lib$name.$shlibext"
9693 if test -f "$additional_libdir/lib$name.la"; then
9694 found_la="$additional_libdir/lib$name.la"
9696 else
9697 if test -f "$additional_libdir/lib$name.$libext"; then
9698 found_dir="$additional_libdir"
9699 found_a="$additional_libdir/lib$name.$libext"
9700 if test -f "$additional_libdir/lib$name.la"; then
9701 found_la="$additional_libdir/lib$name.la"
9706 if test "X$found_dir" = "X"; then
9707 for x in $LDFLAGS $LTLIBICONV; do
9709 acl_save_prefix="$prefix"
9710 prefix="$acl_final_prefix"
9711 acl_save_exec_prefix="$exec_prefix"
9712 exec_prefix="$acl_final_exec_prefix"
9713 eval x=\"$x\"
9714 exec_prefix="$acl_save_exec_prefix"
9715 prefix="$acl_save_prefix"
9717 case "$x" in
9718 -L*)
9719 dir=`echo "X$x" | sed -e 's/^X-L//'`
9720 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9721 found_dir="$dir"
9722 found_so="$dir/lib$name.$shlibext"
9723 if test -f "$dir/lib$name.la"; then
9724 found_la="$dir/lib$name.la"
9726 else
9727 if test -f "$dir/lib$name.$libext"; then
9728 found_dir="$dir"
9729 found_a="$dir/lib$name.$libext"
9730 if test -f "$dir/lib$name.la"; then
9731 found_la="$dir/lib$name.la"
9736 esac
9737 if test "X$found_dir" != "X"; then
9738 break
9740 done
9742 if test "X$found_dir" != "X"; then
9743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9744 if test "X$found_so" != "X"; then
9745 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9747 else
9748 haveit=
9749 for x in $ltrpathdirs; do
9750 if test "X$x" = "X$found_dir"; then
9751 haveit=yes
9752 break
9754 done
9755 if test -z "$haveit"; then
9756 ltrpathdirs="$ltrpathdirs $found_dir"
9758 if test "$hardcode_direct" = yes; then
9759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9760 else
9761 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9763 haveit=
9764 for x in $rpathdirs; do
9765 if test "X$x" = "X$found_dir"; then
9766 haveit=yes
9767 break
9769 done
9770 if test -z "$haveit"; then
9771 rpathdirs="$rpathdirs $found_dir"
9773 else
9774 haveit=
9775 for x in $LDFLAGS $LIBICONV; do
9777 acl_save_prefix="$prefix"
9778 prefix="$acl_final_prefix"
9779 acl_save_exec_prefix="$exec_prefix"
9780 exec_prefix="$acl_final_exec_prefix"
9781 eval x=\"$x\"
9782 exec_prefix="$acl_save_exec_prefix"
9783 prefix="$acl_save_prefix"
9785 if test "X$x" = "X-L$found_dir"; then
9786 haveit=yes
9787 break
9789 done
9790 if test -z "$haveit"; then
9791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9793 if test "$hardcode_minus_L" != no; then
9794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9795 else
9796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9801 else
9802 if test "X$found_a" != "X"; then
9803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9804 else
9805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9808 additional_includedir=
9809 case "$found_dir" in
9810 */lib | */lib/)
9811 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9812 additional_includedir="$basedir/include"
9814 esac
9815 if test "X$additional_includedir" != "X"; then
9816 if test "X$additional_includedir" != "X/usr/include"; then
9817 haveit=
9818 if test "X$additional_includedir" = "X/usr/local/include"; then
9819 if test -n "$GCC"; then
9820 case $host_os in
9821 linux*) haveit=yes;;
9822 esac
9825 if test -z "$haveit"; then
9826 for x in $CPPFLAGS $INCICONV; do
9828 acl_save_prefix="$prefix"
9829 prefix="$acl_final_prefix"
9830 acl_save_exec_prefix="$exec_prefix"
9831 exec_prefix="$acl_final_exec_prefix"
9832 eval x=\"$x\"
9833 exec_prefix="$acl_save_exec_prefix"
9834 prefix="$acl_save_prefix"
9836 if test "X$x" = "X-I$additional_includedir"; then
9837 haveit=yes
9838 break
9840 done
9841 if test -z "$haveit"; then
9842 if test -d "$additional_includedir"; then
9843 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9849 if test -n "$found_la"; then
9850 save_libdir="$libdir"
9851 case "$found_la" in
9852 */* | *\\*) . "$found_la" ;;
9853 *) . "./$found_la" ;;
9854 esac
9855 libdir="$save_libdir"
9856 for dep in $dependency_libs; do
9857 case "$dep" in
9858 -L*)
9859 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9860 if test "X$additional_libdir" != "X/usr/lib"; then
9861 haveit=
9862 if test "X$additional_libdir" = "X/usr/local/lib"; then
9863 if test -n "$GCC"; then
9864 case $host_os in
9865 linux*) haveit=yes;;
9866 esac
9869 if test -z "$haveit"; then
9870 haveit=
9871 for x in $LDFLAGS $LIBICONV; do
9873 acl_save_prefix="$prefix"
9874 prefix="$acl_final_prefix"
9875 acl_save_exec_prefix="$exec_prefix"
9876 exec_prefix="$acl_final_exec_prefix"
9877 eval x=\"$x\"
9878 exec_prefix="$acl_save_exec_prefix"
9879 prefix="$acl_save_prefix"
9881 if test "X$x" = "X-L$additional_libdir"; then
9882 haveit=yes
9883 break
9885 done
9886 if test -z "$haveit"; then
9887 if test -d "$additional_libdir"; then
9888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9891 haveit=
9892 for x in $LDFLAGS $LTLIBICONV; do
9894 acl_save_prefix="$prefix"
9895 prefix="$acl_final_prefix"
9896 acl_save_exec_prefix="$exec_prefix"
9897 exec_prefix="$acl_final_exec_prefix"
9898 eval x=\"$x\"
9899 exec_prefix="$acl_save_exec_prefix"
9900 prefix="$acl_save_prefix"
9902 if test "X$x" = "X-L$additional_libdir"; then
9903 haveit=yes
9904 break
9906 done
9907 if test -z "$haveit"; then
9908 if test -d "$additional_libdir"; then
9909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9915 -R*)
9916 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9917 if test "$enable_rpath" != no; then
9918 haveit=
9919 for x in $rpathdirs; do
9920 if test "X$x" = "X$dir"; then
9921 haveit=yes
9922 break
9924 done
9925 if test -z "$haveit"; then
9926 rpathdirs="$rpathdirs $dir"
9928 haveit=
9929 for x in $ltrpathdirs; do
9930 if test "X$x" = "X$dir"; then
9931 haveit=yes
9932 break
9934 done
9935 if test -z "$haveit"; then
9936 ltrpathdirs="$ltrpathdirs $dir"
9940 -l*)
9941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9943 *.la)
9944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9950 esac
9951 done
9953 else
9954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9959 done
9960 done
9961 if test "X$rpathdirs" != "X"; then
9962 if test -n "$hardcode_libdir_separator"; then
9963 alldirs=
9964 for found_dir in $rpathdirs; do
9965 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9966 done
9967 acl_save_libdir="$libdir"
9968 libdir="$alldirs"
9969 eval flag=\"$hardcode_libdir_flag_spec\"
9970 libdir="$acl_save_libdir"
9971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9972 else
9973 for found_dir in $rpathdirs; do
9974 acl_save_libdir="$libdir"
9975 libdir="$found_dir"
9976 eval flag=\"$hardcode_libdir_flag_spec\"
9977 libdir="$acl_save_libdir"
9978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9979 done
9982 if test "X$ltrpathdirs" != "X"; then
9983 for found_dir in $ltrpathdirs; do
9984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9985 done
9989 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9990 ac_ext=cpp
9991 ac_cpp='$CXXCPP $CPPFLAGS'
9992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10001 am_save_CPPFLAGS="$CPPFLAGS"
10003 for element in $INCICONV; do
10004 haveit=
10005 for x in $CPPFLAGS; do
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10011 eval x=\"$x\"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10015 if test "X$x" = "X$element"; then
10016 haveit=yes
10017 break
10019 done
10020 if test -z "$haveit"; then
10021 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10023 done
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10027 $as_echo_n "checking for iconv... " >&6; }
10028 if test "${am_cv_func_iconv+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10032 am_cv_func_iconv="no, consider installing GNU libiconv"
10033 am_cv_lib_iconv=no
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036 #include <stdlib.h>
10037 #include <iconv.h>
10039 main ()
10041 iconv_t cd = iconv_open("","");
10042 iconv(cd,NULL,NULL,NULL,NULL);
10043 iconv_close(cd);
10045 return 0;
10047 _ACEOF
10048 if ac_fn_cxx_try_link "$LINENO"; then :
10049 am_cv_func_iconv=yes
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 if test "$am_cv_func_iconv" != yes; then
10054 am_save_LIBS="$LIBS"
10055 LIBS="$LIBS $LIBICONV"
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 #include <stdlib.h>
10059 #include <iconv.h>
10061 main ()
10063 iconv_t cd = iconv_open("","");
10064 iconv(cd,NULL,NULL,NULL,NULL);
10065 iconv_close(cd);
10067 return 0;
10069 _ACEOF
10070 if ac_fn_cxx_try_link "$LINENO"; then :
10071 am_cv_lib_iconv=yes
10072 am_cv_func_iconv=yes
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS="$am_save_LIBS"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10081 $as_echo "$am_cv_func_iconv" >&6; }
10082 if test "$am_cv_func_iconv" = yes; then
10084 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10087 if test "$am_cv_lib_iconv" = yes; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10089 $as_echo_n "checking how to link with libiconv... " >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10091 $as_echo "$LIBICONV" >&6; }
10092 else
10093 CPPFLAGS="$am_save_CPPFLAGS"
10094 LIBICONV=
10095 LTLIBICONV=
10100 if test "$am_cv_func_iconv" = yes; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10102 $as_echo_n "checking for iconv declaration... " >&6; }
10103 if test "${am_cv_proto_iconv+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10110 #include <stdlib.h>
10111 #include <iconv.h>
10112 extern
10113 #ifdef __cplusplus
10115 #endif
10116 #if defined(__STDC__) || defined(__cplusplus)
10117 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10118 #else
10119 size_t iconv();
10120 #endif
10123 main ()
10127 return 0;
10129 _ACEOF
10130 if ac_fn_cxx_try_compile "$LINENO"; then :
10131 am_cv_proto_iconv_arg1=""
10132 else
10133 am_cv_proto_iconv_arg1="const"
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 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);"
10139 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10141 }$am_cv_proto_iconv" >&5
10142 $as_echo "${ac_t:-
10143 }$am_cv_proto_iconv" >&6; }
10145 cat >>confdefs.h <<_ACEOF
10146 #define ICONV_CONST $am_cv_proto_iconv_arg1
10147 _ACEOF
10151 ac_ext=c
10152 ac_cpp='$CPP $CPPFLAGS'
10153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10157 else
10163 am_save_CPPFLAGS="$CPPFLAGS"
10165 for element in $INCICONV; do
10166 haveit=
10167 for x in $CPPFLAGS; do
10169 acl_save_prefix="$prefix"
10170 prefix="$acl_final_prefix"
10171 acl_save_exec_prefix="$exec_prefix"
10172 exec_prefix="$acl_final_exec_prefix"
10173 eval x=\"$x\"
10174 exec_prefix="$acl_save_exec_prefix"
10175 prefix="$acl_save_prefix"
10177 if test "X$x" = "X$element"; then
10178 haveit=yes
10179 break
10181 done
10182 if test -z "$haveit"; then
10183 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10185 done
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10189 $as_echo_n "checking for iconv... " >&6; }
10190 if test "${am_cv_func_iconv+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10194 am_cv_func_iconv="no, consider installing GNU libiconv"
10195 am_cv_lib_iconv=no
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #include <stdlib.h>
10199 #include <iconv.h>
10201 main ()
10203 iconv_t cd = iconv_open("","");
10204 iconv(cd,NULL,NULL,NULL,NULL);
10205 iconv_close(cd);
10207 return 0;
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 am_cv_func_iconv=yes
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 if test "$am_cv_func_iconv" != yes; then
10216 am_save_LIBS="$LIBS"
10217 LIBS="$LIBS $LIBICONV"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #include <stdlib.h>
10221 #include <iconv.h>
10223 main ()
10225 iconv_t cd = iconv_open("","");
10226 iconv(cd,NULL,NULL,NULL,NULL);
10227 iconv_close(cd);
10229 return 0;
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 am_cv_lib_iconv=yes
10234 am_cv_func_iconv=yes
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS="$am_save_LIBS"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10243 $as_echo "$am_cv_func_iconv" >&6; }
10244 if test "$am_cv_func_iconv" = yes; then
10246 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10249 if test "$am_cv_lib_iconv" = yes; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10251 $as_echo_n "checking how to link with libiconv... " >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10253 $as_echo "$LIBICONV" >&6; }
10254 else
10255 CPPFLAGS="$am_save_CPPFLAGS"
10256 LIBICONV=
10257 LTLIBICONV=
10262 if test "$am_cv_func_iconv" = yes; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10264 $as_echo_n "checking for iconv declaration... " >&6; }
10265 if test "${am_cv_proto_iconv+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10272 #include <stdlib.h>
10273 #include <iconv.h>
10274 extern
10275 #ifdef __cplusplus
10277 #endif
10278 #if defined(__STDC__) || defined(__cplusplus)
10279 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10280 #else
10281 size_t iconv();
10282 #endif
10285 main ()
10289 return 0;
10291 _ACEOF
10292 if ac_fn_c_try_compile "$LINENO"; then :
10293 am_cv_proto_iconv_arg1=""
10294 else
10295 am_cv_proto_iconv_arg1="const"
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 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);"
10301 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10303 }$am_cv_proto_iconv" >&5
10304 $as_echo "${ac_t:-
10305 }$am_cv_proto_iconv" >&6; }
10307 cat >>confdefs.h <<_ACEOF
10308 #define ICONV_CONST $am_cv_proto_iconv_arg1
10309 _ACEOF
10315 # Until we have in-tree GNU iconv:
10316 LIBICONV_DEP=
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10321 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <locale.h>
10329 main ()
10331 return LC_MESSAGES
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 am_cv_val_LC_MESSAGES=yes
10338 else
10339 am_cv_val_LC_MESSAGES=no
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10345 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10346 if test $am_cv_val_LC_MESSAGES = yes; then
10348 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10355 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10356 if test "${am_cv_langinfo_codeset+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 #include <langinfo.h>
10363 main ()
10365 char* cs = nl_langinfo(CODESET);
10367 return 0;
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371 am_cv_langinfo_codeset=yes
10372 else
10373 am_cv_langinfo_codeset=no
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10380 $as_echo "$am_cv_langinfo_codeset" >&6; }
10381 if test $am_cv_langinfo_codeset = yes; then
10383 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10388 # We will need to find libiberty.h and ansidecl.h
10389 saved_CFLAGS="$CFLAGS"
10390 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10391 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10392 strsignal strstr strverscmp \
10393 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10394 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10396 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10398 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10399 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #undef $ac_tr_decl
10405 #define $ac_tr_decl 1
10407 #include "ansidecl.h"
10408 #include "system.h"
10411 main ()
10413 #ifndef $ac_func
10414 char *(*pfn) = (char *(*)) $ac_func ;
10415 #endif
10417 return 0;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"; then :
10421 eval "gcc_cv_have_decl_$ac_func=yes"
10422 else
10423 eval "gcc_cv_have_decl_$ac_func=no"
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10431 #define $ac_tr_decl 1
10432 _ACEOF
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10437 #define $ac_tr_decl 0
10438 _ACEOF
10442 done
10445 for ac_func in getrlimit setrlimit getrusage
10447 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10450 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 #undef $ac_tr_decl
10456 #define $ac_tr_decl 1
10458 #include "ansidecl.h"
10459 #include "system.h"
10460 #ifdef HAVE_SYS_RESOURCE_H
10461 #include <sys/resource.h>
10462 #endif
10466 main ()
10468 #ifndef $ac_func
10469 char *(*pfn) = (char *(*)) $ac_func ;
10470 #endif
10472 return 0;
10474 _ACEOF
10475 if ac_fn_c_try_compile "$LINENO"; then :
10476 eval "gcc_cv_have_decl_$ac_func=yes"
10477 else
10478 eval "gcc_cv_have_decl_$ac_func=no"
10480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10486 #define $ac_tr_decl 1
10487 _ACEOF
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10492 #define $ac_tr_decl 0
10493 _ACEOF
10497 done
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10503 #include "ansidecl.h"
10504 #include "system.h"
10505 #ifdef HAVE_SYS_RESOURCE_H
10506 #include <sys/resource.h>
10507 #endif
10510 main ()
10512 rlim_t l = 0;
10514 return 0;
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10519 else
10521 $as_echo "#define rlim_t long" >>confdefs.h
10524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10527 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10528 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10529 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10530 for ac_func in ldgetname
10532 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10534 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10535 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #undef $ac_tr_decl
10541 #define $ac_tr_decl 1
10543 #include "ansidecl.h"
10544 #include "system.h"
10545 #ifdef HAVE_LDFCN_H
10546 #undef FREAD
10547 #undef FWRITE
10548 #include <ldfcn.h>
10549 #endif
10553 main ()
10555 #ifndef $ac_func
10556 char *(*pfn) = (char *(*)) $ac_func ;
10557 #endif
10559 return 0;
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"; then :
10563 eval "gcc_cv_have_decl_$ac_func=yes"
10564 else
10565 eval "gcc_cv_have_decl_$ac_func=no"
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 1
10574 _ACEOF
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 0
10580 _ACEOF
10584 done
10587 for ac_func in times
10589 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10591 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10592 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #undef $ac_tr_decl
10598 #define $ac_tr_decl 1
10600 #include "ansidecl.h"
10601 #include "system.h"
10602 #ifdef HAVE_SYS_TIMES_H
10603 #include <sys/times.h>
10604 #endif
10608 main ()
10610 #ifndef $ac_func
10611 char *(*pfn) = (char *(*)) $ac_func ;
10612 #endif
10614 return 0;
10616 _ACEOF
10617 if ac_fn_c_try_compile "$LINENO"; then :
10618 eval "gcc_cv_have_decl_$ac_func=yes"
10619 else
10620 eval "gcc_cv_have_decl_$ac_func=no"
10622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10628 #define $ac_tr_decl 1
10629 _ACEOF
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10634 #define $ac_tr_decl 0
10635 _ACEOF
10639 done
10642 for ac_func in sigaltstack
10644 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #undef $ac_tr_decl
10653 #define $ac_tr_decl 1
10655 #include "ansidecl.h"
10656 #include "system.h"
10657 #include <signal.h>
10661 main ()
10663 #ifndef $ac_func
10664 char *(*pfn) = (char *(*)) $ac_func ;
10665 #endif
10667 return 0;
10669 _ACEOF
10670 if ac_fn_c_try_compile "$LINENO"; then :
10671 eval "gcc_cv_have_decl_$ac_func=yes"
10672 else
10673 eval "gcc_cv_have_decl_$ac_func=no"
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10681 #define $ac_tr_decl 1
10682 _ACEOF
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10687 #define $ac_tr_decl 0
10688 _ACEOF
10692 done
10695 # More time-related stuff.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10697 $as_echo_n "checking for struct tms... " >&6; }
10698 if test "${ac_cv_struct_tms+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10705 #include "ansidecl.h"
10706 #include "system.h"
10707 #ifdef HAVE_SYS_TIMES_H
10708 #include <sys/times.h>
10709 #endif
10712 main ()
10714 struct tms tms;
10716 return 0;
10718 _ACEOF
10719 if ac_fn_c_try_compile "$LINENO"; then :
10720 ac_cv_struct_tms=yes
10721 else
10722 ac_cv_struct_tms=no
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10727 $as_echo "$ac_cv_struct_tms" >&6; }
10728 if test $ac_cv_struct_tms = yes; then
10730 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10734 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10735 # revisit after autoconf 2.50.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10737 $as_echo_n "checking for clock_t... " >&6; }
10738 if test "${gcc_cv_type_clock_t+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #include "ansidecl.h"
10746 #include "system.h"
10749 main ()
10751 clock_t x;
10753 return 0;
10755 _ACEOF
10756 if ac_fn_c_try_compile "$LINENO"; then :
10757 gcc_cv_type_clock_t=yes
10758 else
10759 gcc_cv_type_clock_t=no
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10764 $as_echo "$gcc_cv_type_clock_t" >&6; }
10765 if test $gcc_cv_type_clock_t = yes; then
10767 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10771 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10772 CFLAGS="$saved_CFLAGS"
10774 # Check whether --enable-initfini-array was given.
10775 if test "${enable_initfini_array+set}" = set; then :
10776 enableval=$enable_initfini_array;
10777 else
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10780 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10781 if test "${gcc_cv_initfini_array+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10785 if test "$cross_compiling" = yes; then :
10786 gcc_cv_initfini_array=no
10787 else
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10791 #ifndef __ELF__
10792 #error Not an ELF OS
10793 #endif
10794 #ifdef __ia64__
10795 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10796 if it can be used. */
10797 static int x = -1;
10798 int main (void) { return x; }
10799 int foo (void) { x = 0; }
10800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10801 #else
10802 extern void abort ();
10803 static int count;
10805 static void
10806 init1005 ()
10808 if (count != 0)
10809 abort ();
10810 count = 1005;
10812 void (*const init_array1005) ()
10813 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10814 = { init1005 };
10815 static void
10816 fini1005 ()
10818 if (count != 1005)
10819 abort ();
10821 void (*const fini_array1005) ()
10822 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10823 = { fini1005 };
10825 static void
10826 ctor1007 ()
10828 if (count != 1005)
10829 abort ();
10830 count = 1007;
10832 void (*const ctors1007) ()
10833 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10834 = { ctor1007 };
10835 static void
10836 dtor1007 ()
10838 if (count != 1007)
10839 abort ();
10840 count = 1005;
10842 void (*const dtors1007) ()
10843 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10844 = { dtor1007 };
10846 static void
10847 init65530 ()
10849 if (count != 1007)
10850 abort ();
10851 count = 65530;
10853 void (*const init_array65530) ()
10854 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10855 = { init65530 };
10856 static void
10857 fini65530 ()
10859 if (count != 65530)
10860 abort ();
10861 count = 1007;
10863 void (*const fini_array65530) ()
10864 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10865 = { fini65530 };
10867 static void
10868 ctor65535 ()
10870 if (count != 65530)
10871 abort ();
10872 count = 65535;
10874 void (*const ctors65535) ()
10875 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10876 = { ctor65535 };
10877 static void
10878 dtor65535 ()
10880 if (count != 65535)
10881 abort ();
10882 count = 65530;
10884 void (*const dtors65535) ()
10885 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10886 = { dtor65535 };
10889 main ()
10891 if (count != 65535)
10892 abort ();
10893 return 0;
10895 #endif
10897 _ACEOF
10898 if ac_fn_c_try_run "$LINENO"; then :
10899 gcc_cv_initfini_array=yes
10900 else
10901 gcc_cv_initfini_array=no
10903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10904 conftest.$ac_objext conftest.beam conftest.$ac_ext
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10909 $as_echo_n "checking cross compile... guessing... " >&6; }
10910 gcc_cv_initfini_array=no
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10914 $as_echo "$gcc_cv_initfini_array" >&6; }
10915 enable_initfini_array=$gcc_cv_initfini_array
10919 if test $enable_initfini_array = yes; then
10921 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10925 # mkdir takes a single argument on some systems.
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10927 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10928 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 #include <sys/types.h>
10935 #ifdef HAVE_SYS_STAT_H
10936 # include <sys/stat.h>
10937 #endif
10938 #ifdef HAVE_UNISTD_H
10939 # include <unistd.h>
10940 #endif
10941 #ifdef HAVE_DIRECT_H
10942 # include <direct.h>
10943 #endif
10945 main ()
10947 mkdir ("foo", 0);
10949 return 0;
10951 _ACEOF
10952 if ac_fn_c_try_compile "$LINENO"; then :
10953 gcc_cv_mkdir_takes_one_arg=no
10954 else
10955 gcc_cv_mkdir_takes_one_arg=yes
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10960 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10961 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10963 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10968 # File extensions
10969 manext='.1'
10970 objext='.o'
10974 # With Setjmp/Longjmp based exception handling.
10975 # Check whether --enable-sjlj-exceptions was given.
10976 if test "${enable_sjlj_exceptions+set}" = set; then :
10977 enableval=$enable_sjlj_exceptions; case $target in
10978 *-*-hpux10*)
10979 if test $enableval != yes; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10981 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10982 enableval=yes
10985 esac
10986 force_sjlj_exceptions=yes
10987 else
10988 case $target in
10989 *-*-hpux10*)
10990 force_sjlj_exceptions=yes
10991 enableval=yes
10994 force_sjlj_exceptions=no
10996 esac
10999 if test $force_sjlj_exceptions = yes; then
11000 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11002 cat >>confdefs.h <<_ACEOF
11003 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11004 _ACEOF
11008 # --------------------------------------------------------
11009 # Build, host, and target specific configuration fragments
11010 # --------------------------------------------------------
11012 # Collect build-machine-specific information.
11013 . ${srcdir}/config.build
11015 # Collect host-machine-specific information.
11016 . ${srcdir}/config.host
11018 target_gtfiles=
11020 # Collect target-machine-specific information.
11021 . ${srcdir}/config.gcc
11023 extra_objs="${host_extra_objs} ${extra_objs}"
11024 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11026 # Default the target-machine variables that were not explicitly set.
11027 if test x"$tm_file" = x
11028 then tm_file=$cpu_type/$cpu_type.h; fi
11030 if test x"$extra_headers" = x
11031 then extra_headers=; fi
11033 if test x$md_file = x
11034 then md_file=$cpu_type/$cpu_type.md; fi
11036 if test x$out_file = x
11037 then out_file=$cpu_type/$cpu_type.c; fi
11039 if test x"$tmake_file" = x
11040 then tmake_file=$cpu_type/t-$cpu_type
11043 if test x"$dwarf2" = xyes
11044 then tm_file="$tm_file tm-dwarf2.h"
11047 # Say what files are being used for the output code and MD file.
11048 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11049 echo "Using \`$srcdir/config/$md_file' as machine description file."
11051 # If any of the xm_file variables contain nonexistent files, warn
11052 # about them and drop them.
11055 for x in $build_xm_file; do
11056 if test -f $srcdir/config/$x
11057 then bx="$bx $x"
11058 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11059 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11061 done
11062 build_xm_file="$bx"
11065 for x in $host_xm_file; do
11066 if test -f $srcdir/config/$x
11067 then hx="$hx $x"
11068 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11069 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11071 done
11072 host_xm_file="$hx"
11075 for x in $xm_file; do
11076 if test -f $srcdir/config/$x
11077 then tx="$tx $x"
11078 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11079 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11081 done
11082 xm_file="$tx"
11084 count=a
11085 for f in $tm_file; do
11086 count=${count}x
11087 done
11088 if test $count = ax; then
11089 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11090 else
11091 echo "Using the following target machine macro files:"
11092 for f in $tm_file; do
11093 echo " $srcdir/config/$f"
11094 done
11097 if test x$need_64bit_hwint = xyes; then
11099 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11103 if test x$use_long_long_for_widest_fast_int = xyes; then
11105 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11109 count=a
11110 for f in $host_xm_file; do
11111 count=${count}x
11112 done
11113 if test $count = a; then
11115 elif test $count = ax; then
11116 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11117 else
11118 echo "Using the following host machine macro files:"
11119 for f in $host_xm_file; do
11120 echo " $srcdir/config/$f"
11121 done
11123 echo "Using ${out_host_hook_obj} for host machine hooks."
11125 if test "$host_xm_file" != "$build_xm_file"; then
11126 count=a
11127 for f in $build_xm_file; do
11128 count=${count}x
11129 done
11130 if test $count = a; then
11132 elif test $count = ax; then
11133 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11134 else
11135 echo "Using the following build machine macro files:"
11136 for f in $build_xm_file; do
11137 echo " $srcdir/config/$f"
11138 done
11142 case ${host} in
11143 powerpc*-*-darwin*)
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11145 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11146 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 #include <sys/cdefs.h>
11153 #include <sys/signal.h>
11154 #include <ucontext.h>
11155 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11157 _ACEOF
11158 if ac_fn_c_try_compile "$LINENO"; then :
11159 gcc_cv_mcontext_underscores=no
11160 else
11161 gcc_cv_mcontext_underscores=yes
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11166 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11167 if test $gcc_cv_mcontext_underscores = yes; then
11169 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11173 esac
11175 # ---------
11176 # Threading
11177 # ---------
11179 # Check if a valid thread package
11180 case ${enable_threads} in
11181 "" | no)
11182 # No threads
11183 target_thread_file='single'
11185 yes)
11186 # default
11187 target_thread_file='single'
11189 aix | dce | lynx | mipssde | posix | rtems | \
11190 single | tpf | vxworks | win32)
11191 target_thread_file=${enable_threads}
11194 echo "${enable_threads} is an unknown thread package" 1>&2
11195 exit 1
11197 esac
11199 if test x${thread_file} = x; then
11200 # No thread file set by target-specific clauses in config.gcc,
11201 # so use file chosen by default logic above
11202 thread_file=${target_thread_file}
11205 # Make gthr-default.h if we have a thread file.
11206 gthread_flags=
11207 if test $thread_file != single; then
11208 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11209 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11210 rm -f gthr-default.h-t
11211 else
11212 mv -f gthr-default.h-t gthr-default.h
11214 gthread_flags=-DHAVE_GTHR_DEFAULT
11218 # --------
11219 # UNSORTED
11220 # --------
11222 use_cxa_atexit=no
11223 if test x$enable___cxa_atexit = xyes || \
11224 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11225 if test x$host = x$target; then
11226 case $host in
11227 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11228 # keyed to flag_use_cxa_atexit
11229 *-*-mingw32*)
11230 use_cxa_atexit=yes
11233 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11234 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11235 use_cxa_atexit=yes
11236 else
11237 echo "__cxa_atexit can't be enabled on this target"
11241 esac
11242 else
11243 # We can't check for __cxa_atexit when building a cross, so assume
11244 # it is available
11245 use_cxa_atexit=yes
11247 if test x$use_cxa_atexit = xyes; then
11249 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11254 # Look for a file containing extra machine modes.
11255 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11256 extra_modes_file='$(srcdir)'/config/${extra_modes}
11259 cat >>confdefs.h <<_ACEOF
11260 #define EXTRA_MODES_FILE "config/$extra_modes"
11261 _ACEOF
11265 # Convert extra_options into a form suitable for Makefile use.
11266 extra_opt_files=
11267 all_opt_files=
11268 for f in $extra_options; do
11269 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11270 all_opt_files="$all_opt_files $srcdir/config/$f"
11271 done
11274 # auto-host.h is the file containing items generated by autoconf and is
11275 # the first file included by config.h.
11276 # If host=build, it is correct to have bconfig include auto-host.h
11277 # as well. If host!=build, we are in error and need to do more
11278 # work to find out the build config parameters.
11279 if test x$host = x$build
11280 then
11281 build_auto=auto-host.h
11282 else
11283 # We create a subdir, then run autoconf in the subdir.
11284 # To prevent recursion we set host and build for the new
11285 # invocation of configure to the build for this invocation
11286 # of configure.
11287 tempdir=build.$$
11288 rm -rf $tempdir
11289 mkdir $tempdir
11290 cd $tempdir
11291 case ${srcdir} in
11292 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11293 *) realsrcdir=../${srcdir};;
11294 esac
11295 saved_CFLAGS="${CFLAGS}"
11296 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11297 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11298 ${realsrcdir}/configure \
11299 --enable-languages=${enable_languages-all} \
11300 --target=$target_alias --host=$build_alias --build=$build_alias
11301 CFLAGS="${saved_CFLAGS}"
11303 # We just finished tests for the build machine, so rename
11304 # the file auto-build.h in the gcc directory.
11305 mv auto-host.h ../auto-build.h
11306 cd ..
11307 rm -rf $tempdir
11308 build_auto=auto-build.h
11312 tm_file="${tm_file} defaults.h"
11313 tm_p_file="${tm_p_file} tm-preds.h"
11314 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11315 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11316 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11317 # put this back in temporarily.
11318 xm_file="auto-host.h ansidecl.h ${xm_file}"
11320 # --------
11321 # UNSORTED
11322 # --------
11324 # Compile in configure arguments.
11325 if test -f configargs.h ; then
11326 # Being re-configured.
11327 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11328 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11329 else
11330 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11333 # Double all backslashes and backslash all quotes to turn
11334 # gcc_config_arguments into a C string.
11335 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11336 $gcc_config_arguments
11338 gcc_config_arguments_str=`cat conftest.out`
11339 rm -f conftest.out
11341 cat > configargs.h <<EOF
11342 /* Generated automatically. */
11343 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11344 static const char thread_model[] = "$thread_file";
11346 static const struct {
11347 const char *name, *value;
11348 } configure_default_options[] = $configure_default_options;
11351 gcc_BASEVER=`cat $srcdir/BASE-VER`
11352 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11353 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11354 if test -f $srcdir/REVISION ; then
11355 gcc_REVISION=`cat $srcdir/REVISION`
11356 else
11357 gcc_REVISION=""
11359 cat > plugin-version.h <<EOF
11360 #include "configargs.h"
11362 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11363 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11364 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11365 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11367 static char basever[] = "$gcc_BASEVER";
11368 static char datestamp[] = "$gcc_DATESTAMP";
11369 static char devphase[] = "$gcc_DEVPHASE";
11370 static char revision[] = "$gcc_REVISION";
11372 /* FIXME plugins: We should make the version information more precise.
11373 One way to do is to add a checksum. */
11375 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11376 devphase, revision,
11377 configuration_arguments};
11380 # Internationalization
11381 # If we haven't got the data from the intl directory,
11382 # assume NLS is disabled.
11383 USE_NLS=no
11384 LIBINTL=
11385 LIBINTL_DEP=
11386 INCINTL=
11387 XGETTEXT=
11388 GMSGFMT=
11389 POSUB=
11391 if test -f ../intl/config.intl; then
11392 . ../intl/config.intl
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11395 $as_echo_n "checking whether NLS is requested... " >&6; }
11396 if test x"$USE_NLS" != xyes; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11403 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11407 $as_echo_n "checking for catalogs to be installed... " >&6; }
11408 # Look for .po and .gmo files in the source directory.
11409 CATALOGS=
11410 XLINGUAS=
11411 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11412 # If there aren't any .gmo files the shell will give us the
11413 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11414 # weeded out.
11415 case "$cat" in *\**)
11416 continue;;
11417 esac
11418 # The quadruple backslash is collapsed to a double backslash
11419 # by the backticks, then collapsed again by the double quotes,
11420 # leaving us with one backslash in the sed expression (right
11421 # before the dot that mustn't act as a wildcard).
11422 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11423 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11424 # The user is allowed to set LINGUAS to a list of languages to
11425 # install catalogs for. If it's empty that means "all of them."
11426 if test "x$LINGUAS" = x; then
11427 CATALOGS="$CATALOGS $cat"
11428 XLINGUAS="$XLINGUAS $lang"
11429 else
11430 case "$LINGUAS" in *$lang*)
11431 CATALOGS="$CATALOGS $cat"
11432 XLINGUAS="$XLINGUAS $lang"
11434 esac
11436 done
11437 LINGUAS="$XLINGUAS"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11439 $as_echo "$LINGUAS" >&6; }
11442 DATADIRNAME=share
11444 INSTOBJEXT=.mo
11446 GENCAT=gencat
11448 CATOBJEXT=.gmo
11452 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11453 # -liconv on the link line twice.
11454 case "$LIBINTL" in *$LIBICONV*)
11455 LIBICONV= ;;
11456 esac
11458 # Check whether --enable-secureplt was given.
11459 if test "${enable_secureplt+set}" = set; then :
11460 enableval=$enable_secureplt;
11464 # Check whether --enable-leading-mingw64-underscores was given.
11465 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11466 enableval=$enable_leading_mingw64_underscores;
11469 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11471 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11475 # Check whether --enable-cld was given.
11476 if test "${enable_cld+set}" = set; then :
11477 enableval=$enable_cld;
11478 else
11479 enable_cld=no
11483 # Check whether --enable-frame-pointer was given.
11484 if test "${enable_frame_pointer+set}" = set; then :
11485 enableval=$enable_frame_pointer;
11486 else
11488 case $target_os in
11489 linux* | darwin[8912]*)
11490 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11491 # DWARF2.
11492 enable_frame_pointer=no
11495 enable_frame_pointer=yes
11497 esac
11502 # Windows32 Registry support for specifying GCC installation paths.
11503 # Check whether --enable-win32-registry was given.
11504 if test "${enable_win32_registry+set}" = set; then :
11505 enableval=$enable_win32_registry;
11509 case $host_os in
11510 win32 | pe | cygwin* | mingw32* | uwin*)
11511 if test "x$enable_win32_registry" != xno; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11513 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11514 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_func_search_save_LIBS=$LIBS
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char RegOpenKeyExA ();
11529 main ()
11531 return RegOpenKeyExA ();
11533 return 0;
11535 _ACEOF
11536 for ac_lib in '' advapi32; do
11537 if test -z "$ac_lib"; then
11538 ac_res="none required"
11539 else
11540 ac_res=-l$ac_lib
11541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ac_cv_search_RegOpenKeyExA=$ac_res
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext
11548 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11549 break
11551 done
11552 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11554 else
11555 ac_cv_search_RegOpenKeyExA=no
11557 rm conftest.$ac_ext
11558 LIBS=$ac_func_search_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11561 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11562 ac_res=$ac_cv_search_RegOpenKeyExA
11563 if test "$ac_res" != no; then :
11564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11566 else
11567 enable_win32_registry=no
11572 if test "x$enable_win32_registry" != xno; then
11574 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11577 if test "x$enable_win32_registry" != xyes \
11578 && test "x$enable_win32_registry" != x; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11582 _ACEOF
11587 esac
11589 # Get an absolute path to the GCC top-level source directory
11590 holddir=`${PWDCMD-pwd}`
11591 cd $srcdir
11592 topdir=`${PWDCMD-pwd}`
11593 cd $holddir
11595 # Conditionalize the makefile for this host machine.
11596 xmake_file=
11597 for f in ${host_xmake_file}
11599 if test -f ${srcdir}/config/$f
11600 then
11601 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11603 done
11605 # Conditionalize the makefile for this target machine.
11606 tmake_file_=
11607 for f in ${tmake_file}
11609 if test -f ${srcdir}/config/$f
11610 then
11611 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11613 done
11614 tmake_file="${tmake_file_}"
11616 out_object_file=`basename $out_file .c`.o
11617 common_out_object_file=`basename $common_out_file .c`.o
11619 tm_file_list="options.h"
11620 tm_include_list="options.h insn-constants.h"
11621 for f in $tm_file; do
11622 case $f in
11623 ./* )
11624 f=`echo $f | sed 's/^..//'`
11625 tm_file_list="${tm_file_list} $f"
11626 tm_include_list="${tm_include_list} $f"
11628 defaults.h )
11629 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11630 tm_include_list="${tm_include_list} $f"
11633 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11634 tm_include_list="${tm_include_list} config/$f"
11636 esac
11637 done
11639 libgcc_tm_file_list=
11640 libgcc_tm_include_list=
11641 for f in $libgcc_tm_file; do
11642 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11643 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11644 done
11646 tm_p_file_list=
11647 tm_p_include_list=
11648 for f in $tm_p_file; do
11649 case $f in
11650 tm-preds.h )
11651 tm_p_file_list="${tm_p_file_list} $f"
11652 tm_p_include_list="${tm_p_include_list} $f"
11655 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11656 tm_p_include_list="${tm_p_include_list} config/$f"
11657 esac
11658 done
11660 xm_file_list=
11661 xm_include_list=
11662 for f in $xm_file; do
11663 case $f in
11664 ansidecl.h )
11665 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11666 xm_include_list="${xm_include_list} $f"
11668 auto-host.h )
11669 xm_file_list="${xm_file_list} $f"
11670 xm_include_list="${xm_include_list} $f"
11673 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11674 xm_include_list="${xm_include_list} config/$f"
11676 esac
11677 done
11679 host_xm_file_list=
11680 host_xm_include_list=
11681 for f in $host_xm_file; do
11682 case $f in
11683 ansidecl.h )
11684 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11685 host_xm_include_list="${host_xm_include_list} $f"
11687 auto-host.h )
11688 host_xm_file_list="${host_xm_file_list} $f"
11689 host_xm_include_list="${host_xm_include_list} $f"
11692 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11693 host_xm_include_list="${host_xm_include_list} config/$f"
11695 esac
11696 done
11698 build_xm_file_list=
11699 for f in $build_xm_file; do
11700 case $f in
11701 ansidecl.h )
11702 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11703 build_xm_include_list="${build_xm_include_list} $f"
11705 auto-build.h | auto-host.h )
11706 build_xm_file_list="${build_xm_file_list} $f"
11707 build_xm_include_list="${build_xm_include_list} $f"
11710 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11711 build_xm_include_list="${build_xm_include_list} config/$f"
11713 esac
11714 done
11716 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11717 # cross-compiler which does not use the native headers and libraries.
11718 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11719 CROSS=
11720 ALL=all.internal
11721 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11723 if test "x$with_build_sysroot" != x; then
11724 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11725 else
11726 # This value is used, even on a native system, because
11727 # CROSS_SYSTEM_HEADER_DIR is just
11728 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11729 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11732 if test x$host != x$target
11733 then
11734 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11735 ALL=all.cross
11736 SYSTEM_HEADER_DIR=$build_system_header_dir
11737 case "$host","$target" in
11738 # Darwin crosses can use the host system's libraries and headers,
11739 # because of the fat library support. Of course, it must be the
11740 # same version of Darwin on both sides. Allow the user to
11741 # just say --target=foo-darwin without a version number to mean
11742 # "the version on this system".
11743 *-*-darwin*,*-*-darwin*)
11744 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11745 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11746 if test $hostos = $targetos -o $targetos = darwin ; then
11747 CROSS=
11748 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11749 with_headers=yes
11753 i?86-*-*,x86_64-*-* \
11754 | powerpc*-*-*,powerpc64*-*-*)
11755 CROSS="$CROSS -DNATIVE_CROSS" ;;
11756 esac
11758 case $target in
11759 *-*-mingw*)
11760 if test "x$with_headers" = x; then
11761 with_headers=yes
11766 esac
11767 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11768 SYSTEM_HEADER_DIR=$build_system_header_dir
11771 # If this is a cross-compiler that does not
11772 # have its own set of headers then define
11773 # inhibit_libc
11775 # If this is using newlib, without having the headers available now,
11776 # then define inhibit_libc in LIBGCC2_CFLAGS.
11777 # This prevents libgcc2 from containing any code which requires libc
11778 # support.
11779 : ${inhibit_libc=false}
11780 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11781 test x$with_newlib = xyes ; } &&
11782 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11783 inhibit_libc=true
11787 # When building gcc with a cross-compiler, we need to adjust things so
11788 # that the generator programs are still built with the native compiler.
11789 # Also, we cannot run fixincludes.
11791 # These are the normal (build=host) settings:
11792 CC_FOR_BUILD='$(CC)'
11793 BUILD_CFLAGS='$(ALL_CFLAGS)'
11794 BUILD_LDFLAGS='$(LDFLAGS)'
11795 STMP_FIXINC=stmp-fixinc
11797 # And these apply if build != host, or we are generating coverage data
11798 if test x$build != x$host || test "x$coverage_flags" != x
11799 then
11800 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11801 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11804 # Expand extra_headers to include complete path.
11805 # This substitutes for lots of t-* files.
11806 extra_headers_list=
11807 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11808 for file in ${extra_headers} ; do
11809 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11810 done
11812 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11813 if test x"$use_gcc_tgmath" = xyes
11814 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11817 # Define collect2 in Makefile.
11818 case $host_can_use_collect2 in
11819 no) collect2= ;;
11820 *) collect2='collect2$(exeext)' ;;
11821 esac
11824 # Add a definition of USE_COLLECT2 if system wants one.
11825 case $use_collect2 in
11826 no) use_collect2= ;;
11827 "") ;;
11829 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11830 xm_defines="${xm_defines} USE_COLLECT2"
11831 case $host_can_use_collect2 in
11833 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11835 esac
11837 esac
11840 cat >>confdefs.h <<_ACEOF
11841 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11842 _ACEOF
11845 # ---------------------------
11846 # Assembler & linker features
11847 # ---------------------------
11849 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11850 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11851 # However when ld-new is first executed from the build tree, libtool will
11852 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11853 # to the build tree. While doing this we need to use the previous-stage
11854 # linker, or we have an infinite loop. The presence of a shell script as
11855 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11856 # the gcc/collect-ld script. So we need to know how libtool works, or
11857 # exec-tool will fail.
11860 case `pwd` in
11861 *\ * | *\ *)
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11863 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11864 esac
11868 macro_version='2.2.7a'
11869 macro_revision='1.3134'
11883 ltmain="$ac_aux_dir/ltmain.sh"
11885 # Backslashify metacharacters that are still active within
11886 # double-quoted strings.
11887 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11889 # Same as above, but do not quote variable references.
11890 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11892 # Sed substitution to delay expansion of an escaped shell variable in a
11893 # double_quote_subst'ed string.
11894 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11896 # Sed substitution to delay expansion of an escaped single quote.
11897 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11899 # Sed substitution to avoid accidental globbing in evaled expressions
11900 no_glob_subst='s/\*/\\\*/g'
11902 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11904 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11907 $as_echo_n "checking how to print strings... " >&6; }
11908 # Test print first, because it will be a builtin if present.
11909 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11910 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11911 ECHO='print -r --'
11912 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11913 ECHO='printf %s\n'
11914 else
11915 # Use this function as a fallback that always works.
11916 func_fallback_echo ()
11918 eval 'cat <<_LTECHO_EOF
11920 _LTECHO_EOF'
11922 ECHO='func_fallback_echo'
11925 # func_echo_all arg...
11926 # Invoke $ECHO with all args, space-separated.
11927 func_echo_all ()
11929 $ECHO ""
11932 case "$ECHO" in
11933 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11934 $as_echo "printf" >&6; } ;;
11935 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11936 $as_echo "print -r" >&6; } ;;
11937 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11938 $as_echo "cat" >&6; } ;;
11939 esac
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11955 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11956 if test "${ac_cv_path_SED+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11960 for ac_i in 1 2 3 4 5 6 7; do
11961 ac_script="$ac_script$as_nl$ac_script"
11962 done
11963 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11964 { ac_script=; unset ac_script;}
11965 if test -z "$SED"; then
11966 ac_path_SED_found=false
11967 # Loop through the user's path and test for each of PROGNAME-LIST
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_prog in sed gsed; do
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11976 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11977 # Check for GNU ac_path_SED and select it if it is found.
11978 # Check for GNU $ac_path_SED
11979 case `"$ac_path_SED" --version 2>&1` in
11980 *GNU*)
11981 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11983 ac_count=0
11984 $as_echo_n 0123456789 >"conftest.in"
11985 while :
11987 cat "conftest.in" "conftest.in" >"conftest.tmp"
11988 mv "conftest.tmp" "conftest.in"
11989 cp "conftest.in" "conftest.nl"
11990 $as_echo '' >> "conftest.nl"
11991 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11993 as_fn_arith $ac_count + 1 && ac_count=$as_val
11994 if test $ac_count -gt ${ac_path_SED_max-0}; then
11995 # Best one so far, save it but keep looking for a better one
11996 ac_cv_path_SED="$ac_path_SED"
11997 ac_path_SED_max=$ac_count
11999 # 10*(2^10) chars as input seems more than enough
12000 test $ac_count -gt 10 && break
12001 done
12002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12003 esac
12005 $ac_path_SED_found && break 3
12006 done
12007 done
12008 done
12009 IFS=$as_save_IFS
12010 if test -z "$ac_cv_path_SED"; then
12011 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12013 else
12014 ac_cv_path_SED=$SED
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12019 $as_echo "$ac_cv_path_SED" >&6; }
12020 SED="$ac_cv_path_SED"
12021 rm -f conftest.sed
12023 test -z "$SED" && SED=sed
12024 Xsed="$SED -e 1s/^X//"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12037 $as_echo_n "checking for fgrep... " >&6; }
12038 if test "${ac_cv_path_FGREP+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12042 then ac_cv_path_FGREP="$GREP -F"
12043 else
12044 if test -z "$FGREP"; then
12045 ac_path_FGREP_found=false
12046 # Loop through the user's path and test for each of PROGNAME-LIST
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_prog in fgrep; do
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12055 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12056 # Check for GNU ac_path_FGREP and select it if it is found.
12057 # Check for GNU $ac_path_FGREP
12058 case `"$ac_path_FGREP" --version 2>&1` in
12059 *GNU*)
12060 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12062 ac_count=0
12063 $as_echo_n 0123456789 >"conftest.in"
12064 while :
12066 cat "conftest.in" "conftest.in" >"conftest.tmp"
12067 mv "conftest.tmp" "conftest.in"
12068 cp "conftest.in" "conftest.nl"
12069 $as_echo 'FGREP' >> "conftest.nl"
12070 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12072 as_fn_arith $ac_count + 1 && ac_count=$as_val
12073 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12074 # Best one so far, save it but keep looking for a better one
12075 ac_cv_path_FGREP="$ac_path_FGREP"
12076 ac_path_FGREP_max=$ac_count
12078 # 10*(2^10) chars as input seems more than enough
12079 test $ac_count -gt 10 && break
12080 done
12081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12082 esac
12084 $ac_path_FGREP_found && break 3
12085 done
12086 done
12087 done
12088 IFS=$as_save_IFS
12089 if test -z "$ac_cv_path_FGREP"; then
12090 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12092 else
12093 ac_cv_path_FGREP=$FGREP
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12099 $as_echo "$ac_cv_path_FGREP" >&6; }
12100 FGREP="$ac_cv_path_FGREP"
12103 test -z "$GREP" && GREP=grep
12123 # Check whether --with-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then :
12125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12126 else
12127 with_gnu_ld=no
12130 ac_prog=ld
12131 if test "$GCC" = yes; then
12132 # Check if gcc -print-prog-name=ld gives a path.
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12134 $as_echo_n "checking for ld used by $CC... " >&6; }
12135 case $host in
12136 *-*-mingw*)
12137 # gcc leaves a trailing carriage return which upsets mingw
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12141 esac
12142 case $ac_prog in
12143 # Accept absolute paths.
12144 [\\/]* | ?:[\\/]*)
12145 re_direlt='/[^/][^/]*/\.\./'
12146 # Canonicalize the pathname of ld
12147 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12148 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12149 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12150 done
12151 test -z "$LD" && LD="$ac_prog"
12154 # If it fails, then pretend we aren't using GCC.
12155 ac_prog=ld
12158 # If it is relative, then search for the first ld in PATH.
12159 with_gnu_ld=unknown
12161 esac
12162 elif test "$with_gnu_ld" = yes; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12164 $as_echo_n "checking for GNU ld... " >&6; }
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12167 $as_echo_n "checking for non-GNU ld... " >&6; }
12169 if test "${lt_cv_path_LD+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -z "$LD"; then
12173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12174 for ac_dir in $PATH; do
12175 IFS="$lt_save_ifs"
12176 test -z "$ac_dir" && ac_dir=.
12177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178 lt_cv_path_LD="$ac_dir/$ac_prog"
12179 # Check to see if the program is GNU ld. I'd rather use --version,
12180 # but apparently some variants of GNU ld only accept -v.
12181 # Break only if it was the GNU/non-GNU ld that we prefer.
12182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184 test "$with_gnu_ld" != no && break
12187 test "$with_gnu_ld" != yes && break
12189 esac
12191 done
12192 IFS="$lt_save_ifs"
12193 else
12194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12198 LD="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12201 $as_echo "$LD" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12206 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12209 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12213 case `$LD -v 2>&1 </dev/null` in
12214 *GNU* | *'with BFD'*)
12215 lt_cv_prog_gnu_ld=yes
12218 lt_cv_prog_gnu_ld=no
12220 esac
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12223 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12224 with_gnu_ld=$lt_cv_prog_gnu_ld
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12235 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12236 if test "${lt_cv_path_NM+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 if test -n "$NM"; then
12240 # Let the user override the test.
12241 lt_cv_path_NM="$NM"
12242 else
12243 lt_nm_to_check="${ac_tool_prefix}nm"
12244 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12245 lt_nm_to_check="$lt_nm_to_check nm"
12247 for lt_tmp_nm in $lt_nm_to_check; do
12248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12249 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12250 IFS="$lt_save_ifs"
12251 test -z "$ac_dir" && ac_dir=.
12252 tmp_nm="$ac_dir/$lt_tmp_nm"
12253 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12254 # Check to see if the nm accepts a BSD-compat flag.
12255 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12256 # nm: unknown option "B" ignored
12257 # Tru64's nm complains that /dev/null is an invalid object file
12258 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12259 */dev/null* | *'Invalid file or object type'*)
12260 lt_cv_path_NM="$tmp_nm -B"
12261 break
12264 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12265 */dev/null*)
12266 lt_cv_path_NM="$tmp_nm -p"
12267 break
12270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12271 continue # so that we can try to find one that supports BSD flags
12273 esac
12275 esac
12277 done
12278 IFS="$lt_save_ifs"
12279 done
12280 : ${lt_cv_path_NM=no}
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12284 $as_echo "$lt_cv_path_NM" >&6; }
12285 if test "$lt_cv_path_NM" != "no"; then
12286 NM="$lt_cv_path_NM"
12287 else
12288 # Didn't find any BSD compatible name lister, look for dumpbin.
12289 if test -n "$DUMPBIN"; then :
12290 # Let the user override the test.
12291 else
12292 if test -n "$ac_tool_prefix"; then
12293 for ac_prog in dumpbin "link -dump"
12295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 if test -n "$DUMPBIN"; then
12303 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12304 else
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12316 done
12317 done
12318 IFS=$as_save_IFS
12322 DUMPBIN=$ac_cv_prog_DUMPBIN
12323 if test -n "$DUMPBIN"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12325 $as_echo "$DUMPBIN" >&6; }
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12332 test -n "$DUMPBIN" && break
12333 done
12335 if test -z "$DUMPBIN"; then
12336 ac_ct_DUMPBIN=$DUMPBIN
12337 for ac_prog in dumpbin "link -dump"
12339 # Extract the first word of "$ac_prog", so it can be a program name with args.
12340 set dummy $ac_prog; ac_word=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 if test -n "$ac_ct_DUMPBIN"; then
12347 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12348 else
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12360 done
12361 done
12362 IFS=$as_save_IFS
12366 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12367 if test -n "$ac_ct_DUMPBIN"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12369 $as_echo "$ac_ct_DUMPBIN" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12376 test -n "$ac_ct_DUMPBIN" && break
12377 done
12379 if test "x$ac_ct_DUMPBIN" = x; then
12380 DUMPBIN=":"
12381 else
12382 case $cross_compiling:$ac_tool_warned in
12383 yes:)
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12386 ac_tool_warned=yes ;;
12387 esac
12388 DUMPBIN=$ac_ct_DUMPBIN
12392 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12393 *COFF*)
12394 DUMPBIN="$DUMPBIN -symbols"
12397 DUMPBIN=:
12399 esac
12402 if test "$DUMPBIN" != ":"; then
12403 NM="$DUMPBIN"
12406 test -z "$NM" && NM=nm
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12414 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12415 if test "${lt_cv_nm_interface+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 lt_cv_nm_interface="BSD nm"
12419 echo "int some_variable = 0;" > conftest.$ac_ext
12420 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12421 (eval "$ac_compile" 2>conftest.err)
12422 cat conftest.err >&5
12423 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12424 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12425 cat conftest.err >&5
12426 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12427 cat conftest.out >&5
12428 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12429 lt_cv_nm_interface="MS dumpbin"
12431 rm -f conftest*
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12434 $as_echo "$lt_cv_nm_interface" >&6; }
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12437 $as_echo_n "checking whether ln -s works... " >&6; }
12438 LN_S=$as_ln_s
12439 if test "$LN_S" = "ln -s"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12444 $as_echo "no, using $LN_S" >&6; }
12447 # find the maximum length of command line arguments
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12449 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12450 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12454 teststring="ABCD"
12456 case $build_os in
12457 msdosdjgpp*)
12458 # On DJGPP, this test can blow up pretty badly due to problems in libc
12459 # (any single argument exceeding 2000 bytes causes a buffer overrun
12460 # during glob expansion). Even if it were fixed, the result of this
12461 # check would be larger than it should be.
12462 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12465 gnu*)
12466 # Under GNU Hurd, this test is not required because there is
12467 # no limit to the length of command line arguments.
12468 # Libtool will interpret -1 as no limit whatsoever
12469 lt_cv_sys_max_cmd_len=-1;
12472 cygwin* | mingw* | cegcc*)
12473 # On Win9x/ME, this test blows up -- it succeeds, but takes
12474 # about 5 minutes as the teststring grows exponentially.
12475 # Worse, since 9x/ME are not pre-emptively multitasking,
12476 # you end up with a "frozen" computer, even though with patience
12477 # the test eventually succeeds (with a max line length of 256k).
12478 # Instead, let's just punt: use the minimum linelength reported by
12479 # all of the supported platforms: 8192 (on NT/2K/XP).
12480 lt_cv_sys_max_cmd_len=8192;
12483 mint*)
12484 # On MiNT this can take a long time and run out of memory.
12485 lt_cv_sys_max_cmd_len=8192;
12488 amigaos*)
12489 # On AmigaOS with pdksh, this test takes hours, literally.
12490 # So we just punt and use a minimum line length of 8192.
12491 lt_cv_sys_max_cmd_len=8192;
12494 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12495 # This has been around since 386BSD, at least. Likely further.
12496 if test -x /sbin/sysctl; then
12497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12498 elif test -x /usr/sbin/sysctl; then
12499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12500 else
12501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12503 # And add a safety zone
12504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12508 interix*)
12509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12510 lt_cv_sys_max_cmd_len=196608
12513 osf*)
12514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12516 # nice to cause kernel panics so lets avoid the loop below.
12517 # First set a reasonable default.
12518 lt_cv_sys_max_cmd_len=16384
12520 if test -x /sbin/sysconfig; then
12521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12522 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12523 esac
12526 sco3.2v5*)
12527 lt_cv_sys_max_cmd_len=102400
12529 sysv5* | sco5v6* | sysv4.2uw2*)
12530 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12531 if test -n "$kargmax"; then
12532 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12533 else
12534 lt_cv_sys_max_cmd_len=32768
12538 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12539 if test -n "$lt_cv_sys_max_cmd_len"; then
12540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12542 else
12543 # Make teststring a little bigger before we do anything with it.
12544 # a 1K string should be a reasonable start.
12545 for i in 1 2 3 4 5 6 7 8 ; do
12546 teststring=$teststring$teststring
12547 done
12548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12549 # If test is not a shell built-in, we'll probably end up computing a
12550 # maximum length that is only half of the actual maximum length, but
12551 # we can't tell.
12552 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12553 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12554 test $i != 17 # 1/2 MB should be enough
12556 i=`expr $i + 1`
12557 teststring=$teststring$teststring
12558 done
12559 # Only check the string length outside the loop.
12560 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12561 teststring=
12562 # Add a significant safety factor because C++ compilers can tack on
12563 # massive amounts of additional arguments before passing them to the
12564 # linker. It appears as though 1/2 is a usable value.
12565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12568 esac
12572 if test -n $lt_cv_sys_max_cmd_len ; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12574 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12577 $as_echo "none" >&6; }
12579 max_cmd_len=$lt_cv_sys_max_cmd_len
12586 : ${CP="cp -f"}
12587 : ${MV="mv -f"}
12588 : ${RM="rm -f"}
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12591 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12592 # Try some XSI features
12593 xsi_shell=no
12594 ( _lt_dummy="a/b/c"
12595 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12596 = c,a/b,, \
12597 && eval 'test $(( 1 + 1 )) -eq 2 \
12598 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12599 && xsi_shell=yes
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12601 $as_echo "$xsi_shell" >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12605 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12606 lt_shell_append=no
12607 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12608 >/dev/null 2>&1 \
12609 && lt_shell_append=yes
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12611 $as_echo "$lt_shell_append" >&6; }
12614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12615 lt_unset=unset
12616 else
12617 lt_unset=false
12624 # test EBCDIC or ASCII
12625 case `echo X|tr X '\101'` in
12626 A) # ASCII based system
12627 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12628 lt_SP2NL='tr \040 \012'
12629 lt_NL2SP='tr \015\012 \040\040'
12631 *) # EBCDIC based system
12632 lt_SP2NL='tr \100 \n'
12633 lt_NL2SP='tr \r\n \100\100'
12635 esac
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12646 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12647 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 lt_cv_ld_reload_flag='-r'
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12653 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12654 reload_flag=$lt_cv_ld_reload_flag
12655 case $reload_flag in
12656 "" | " "*) ;;
12657 *) reload_flag=" $reload_flag" ;;
12658 esac
12659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12660 case $host_os in
12661 darwin*)
12662 if test "$GCC" = yes; then
12663 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12664 else
12665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12668 esac
12678 if test -n "$ac_tool_prefix"; then
12679 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12680 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 if test -n "$OBJDUMP"; then
12687 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12688 else
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12700 done
12701 done
12702 IFS=$as_save_IFS
12706 OBJDUMP=$ac_cv_prog_OBJDUMP
12707 if test -n "$OBJDUMP"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12709 $as_echo "$OBJDUMP" >&6; }
12710 else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12717 if test -z "$ac_cv_prog_OBJDUMP"; then
12718 ac_ct_OBJDUMP=$OBJDUMP
12719 # Extract the first word of "objdump", so it can be a program name with args.
12720 set dummy objdump; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 if test -n "$ac_ct_OBJDUMP"; then
12727 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12740 done
12741 done
12742 IFS=$as_save_IFS
12746 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12747 if test -n "$ac_ct_OBJDUMP"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12749 $as_echo "$ac_ct_OBJDUMP" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12755 if test "x$ac_ct_OBJDUMP" = x; then
12756 OBJDUMP="false"
12757 else
12758 case $cross_compiling:$ac_tool_warned in
12759 yes:)
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12762 ac_tool_warned=yes ;;
12763 esac
12764 OBJDUMP=$ac_ct_OBJDUMP
12766 else
12767 OBJDUMP="$ac_cv_prog_OBJDUMP"
12770 test -z "$OBJDUMP" && OBJDUMP=objdump
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12781 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12782 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 lt_cv_file_magic_cmd='$MAGIC_CMD'
12786 lt_cv_file_magic_test_file=
12787 lt_cv_deplibs_check_method='unknown'
12788 # Need to set the preceding variable on all platforms that support
12789 # interlibrary dependencies.
12790 # 'none' -- dependencies not supported.
12791 # `unknown' -- same as none, but documents that we really don't know.
12792 # 'pass_all' -- all dependencies passed with no checks.
12793 # 'test_compile' -- check by making test program.
12794 # 'file_magic [[regex]]' -- check by looking for files in library path
12795 # which responds to the $file_magic_cmd with a given extended regex.
12796 # If you have `file' or equivalent on your system and you're not sure
12797 # whether `pass_all' will *always* work, you probably want this one.
12799 case $host_os in
12800 aix[4-9]*)
12801 lt_cv_deplibs_check_method=pass_all
12804 beos*)
12805 lt_cv_deplibs_check_method=pass_all
12808 bsdi[45]*)
12809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12810 lt_cv_file_magic_cmd='/usr/bin/file -L'
12811 lt_cv_file_magic_test_file=/shlib/libc.so
12814 cygwin*)
12815 # func_win32_libid is a shell function defined in ltmain.sh
12816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12817 lt_cv_file_magic_cmd='func_win32_libid'
12820 mingw* | pw32*)
12821 # Base MSYS/MinGW do not provide the 'file' command needed by
12822 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12823 # unless we find 'file', for example because we are cross-compiling.
12824 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12825 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12826 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12827 lt_cv_file_magic_cmd='func_win32_libid'
12828 else
12829 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12830 lt_cv_file_magic_cmd='$OBJDUMP -f'
12834 cegcc*)
12835 # use the weaker test based on 'objdump'. See mingw*.
12836 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12837 lt_cv_file_magic_cmd='$OBJDUMP -f'
12840 darwin* | rhapsody*)
12841 lt_cv_deplibs_check_method=pass_all
12844 freebsd* | dragonfly*)
12845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12846 case $host_cpu in
12847 i*86 )
12848 # Not sure whether the presence of OpenBSD here was a mistake.
12849 # Let's accept both of them until this is cleared up.
12850 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12851 lt_cv_file_magic_cmd=/usr/bin/file
12852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12854 esac
12855 else
12856 lt_cv_deplibs_check_method=pass_all
12860 gnu*)
12861 lt_cv_deplibs_check_method=pass_all
12864 haiku*)
12865 lt_cv_deplibs_check_method=pass_all
12868 hpux10.20* | hpux11*)
12869 lt_cv_file_magic_cmd=/usr/bin/file
12870 case $host_cpu in
12871 ia64*)
12872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12875 hppa*64*)
12876 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]'
12877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12883 esac
12886 interix[3-9]*)
12887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12891 irix5* | irix6* | nonstopux*)
12892 case $LD in
12893 *-32|*"-32 ") libmagic=32-bit;;
12894 *-n32|*"-n32 ") libmagic=N32;;
12895 *-64|*"-64 ") libmagic=64-bit;;
12896 *) libmagic=never-match;;
12897 esac
12898 lt_cv_deplibs_check_method=pass_all
12901 # This must be Linux ELF.
12902 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12903 lt_cv_deplibs_check_method=pass_all
12906 netbsd*)
12907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12909 else
12910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12914 newos6*)
12915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12916 lt_cv_file_magic_cmd=/usr/bin/file
12917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12920 *nto* | *qnx*)
12921 lt_cv_deplibs_check_method=pass_all
12924 openbsd*)
12925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12927 else
12928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12932 osf3* | osf4* | osf5*)
12933 lt_cv_deplibs_check_method=pass_all
12936 rdos*)
12937 lt_cv_deplibs_check_method=pass_all
12940 solaris*)
12941 lt_cv_deplibs_check_method=pass_all
12944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12945 lt_cv_deplibs_check_method=pass_all
12948 sysv4 | sysv4.3*)
12949 case $host_vendor in
12950 motorola)
12951 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]'
12952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12954 ncr)
12955 lt_cv_deplibs_check_method=pass_all
12957 sequent)
12958 lt_cv_file_magic_cmd='/bin/file'
12959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12961 sni)
12962 lt_cv_file_magic_cmd='/bin/file'
12963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12964 lt_cv_file_magic_test_file=/lib/libc.so
12966 siemens)
12967 lt_cv_deplibs_check_method=pass_all
12970 lt_cv_deplibs_check_method=pass_all
12972 esac
12975 tpf*)
12976 lt_cv_deplibs_check_method=pass_all
12978 esac
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12982 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12983 file_magic_cmd=$lt_cv_file_magic_cmd
12984 deplibs_check_method=$lt_cv_deplibs_check_method
12985 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12998 if test -n "$ac_tool_prefix"; then
12999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13000 set dummy ${ac_tool_prefix}ar; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002 $as_echo_n "checking for $ac_word... " >&6; }
13003 if test "${ac_cv_prog_AR+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 if test -n "$AR"; then
13007 ac_cv_prog_AR="$AR" # Let the user override the test.
13008 else
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016 ac_cv_prog_AR="${ac_tool_prefix}ar"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13020 done
13021 done
13022 IFS=$as_save_IFS
13026 AR=$ac_cv_prog_AR
13027 if test -n "$AR"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13029 $as_echo "$AR" >&6; }
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13037 if test -z "$ac_cv_prog_AR"; then
13038 ac_ct_AR=$AR
13039 # Extract the first word of "ar", so it can be a program name with args.
13040 set dummy ar; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test -n "$ac_ct_AR"; then
13047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13048 else
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13056 ac_cv_prog_ac_ct_AR="ar"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13060 done
13061 done
13062 IFS=$as_save_IFS
13066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13067 if test -n "$ac_ct_AR"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13069 $as_echo "$ac_ct_AR" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13075 if test "x$ac_ct_AR" = x; then
13076 AR="false"
13077 else
13078 case $cross_compiling:$ac_tool_warned in
13079 yes:)
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13082 ac_tool_warned=yes ;;
13083 esac
13084 AR=$ac_ct_AR
13086 else
13087 AR="$ac_cv_prog_AR"
13090 test -z "$AR" && AR=ar
13091 test -z "$AR_FLAGS" && AR_FLAGS=cru
13103 if test -n "$ac_tool_prefix"; then
13104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13105 set dummy ${ac_tool_prefix}strip; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if test "${ac_cv_prog_STRIP+set}" = set; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 if test -n "$STRIP"; then
13112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13113 else
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13117 IFS=$as_save_IFS
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 break 2
13125 done
13126 done
13127 IFS=$as_save_IFS
13131 STRIP=$ac_cv_prog_STRIP
13132 if test -n "$STRIP"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13134 $as_echo "$STRIP" >&6; }
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test -z "$ac_cv_prog_STRIP"; then
13143 ac_ct_STRIP=$STRIP
13144 # Extract the first word of "strip", so it can be a program name with args.
13145 set dummy strip; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
13150 else
13151 if test -n "$ac_ct_STRIP"; then
13152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13153 else
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13157 IFS=$as_save_IFS
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13161 ac_cv_prog_ac_ct_STRIP="strip"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 break 2
13165 done
13166 done
13167 IFS=$as_save_IFS
13171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13172 if test -n "$ac_ct_STRIP"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13174 $as_echo "$ac_ct_STRIP" >&6; }
13175 else
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13180 if test "x$ac_ct_STRIP" = x; then
13181 STRIP=":"
13182 else
13183 case $cross_compiling:$ac_tool_warned in
13184 yes:)
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13187 ac_tool_warned=yes ;;
13188 esac
13189 STRIP=$ac_ct_STRIP
13191 else
13192 STRIP="$ac_cv_prog_STRIP"
13195 test -z "$STRIP" && STRIP=:
13202 if test -n "$ac_tool_prefix"; then
13203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 if test -n "$RANLIB"; then
13211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13216 IFS=$as_save_IFS
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 break 2
13224 done
13225 done
13226 IFS=$as_save_IFS
13230 RANLIB=$ac_cv_prog_RANLIB
13231 if test -n "$RANLIB"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13233 $as_echo "$RANLIB" >&6; }
13234 else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13241 if test -z "$ac_cv_prog_RANLIB"; then
13242 ac_ct_RANLIB=$RANLIB
13243 # Extract the first word of "ranlib", so it can be a program name with args.
13244 set dummy ranlib; ac_word=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 if test -n "$ac_ct_RANLIB"; then
13251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13252 else
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260 ac_cv_prog_ac_ct_RANLIB="ranlib"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13264 done
13265 done
13266 IFS=$as_save_IFS
13270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13271 if test -n "$ac_ct_RANLIB"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13273 $as_echo "$ac_ct_RANLIB" >&6; }
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13279 if test "x$ac_ct_RANLIB" = x; then
13280 RANLIB=":"
13281 else
13282 case $cross_compiling:$ac_tool_warned in
13283 yes:)
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13286 ac_tool_warned=yes ;;
13287 esac
13288 RANLIB=$ac_ct_RANLIB
13290 else
13291 RANLIB="$ac_cv_prog_RANLIB"
13294 test -z "$RANLIB" && RANLIB=:
13301 # Determine commands to create old-style static archives.
13302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13303 old_postinstall_cmds='chmod 644 $oldlib'
13304 old_postuninstall_cmds=
13306 if test -n "$RANLIB"; then
13307 case $host_os in
13308 openbsd*)
13309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13314 esac
13315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13318 case $host_os in
13319 darwin*)
13320 lock_old_archive_extraction=yes ;;
13322 lock_old_archive_extraction=no ;;
13323 esac
13363 # If no C compiler was specified, use CC.
13364 LTCC=${LTCC-"$CC"}
13366 # If no C compiler flags were specified, use CFLAGS.
13367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13369 # Allow CC to be a program name with arguments.
13370 compiler=$CC
13373 # Check for command to grab the raw symbol name followed by C symbol from nm.
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13375 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13376 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13380 # These are sane defaults that work on at least a few old systems.
13381 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13383 # Character class describing NM global symbol codes.
13384 symcode='[BCDEGRST]'
13386 # Regexp to match symbols that can be accessed directly from C.
13387 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13389 # Define system-specific variables.
13390 case $host_os in
13391 aix*)
13392 symcode='[BCDT]'
13394 cygwin* | mingw* | pw32* | cegcc*)
13395 symcode='[ABCDGISTW]'
13397 hpux*)
13398 if test "$host_cpu" = ia64; then
13399 symcode='[ABCDEGRST]'
13402 irix* | nonstopux*)
13403 symcode='[BCDEGRST]'
13405 osf*)
13406 symcode='[BCDEGQRST]'
13408 solaris*)
13409 symcode='[BDRT]'
13411 sco3.2v5*)
13412 symcode='[DT]'
13414 sysv4.2uw2*)
13415 symcode='[DT]'
13417 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13418 symcode='[ABDT]'
13420 sysv4)
13421 symcode='[DFNSTU]'
13423 esac
13425 # If we're using GNU nm, then use its standard symbol codes.
13426 case `$NM -V 2>&1` in
13427 *GNU* | *'with BFD'*)
13428 symcode='[ABCDGIRSTW]' ;;
13429 esac
13431 # Transform an extracted symbol line into a proper C declaration.
13432 # Some systems (esp. on ia64) link data and code symbols differently,
13433 # so use this general approach.
13434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13436 # Transform an extracted symbol line into symbol name and symbol address
13437 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13438 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'"
13440 # Handle CRLF in mingw tool chain
13441 opt_cr=
13442 case $build_os in
13443 mingw*)
13444 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13446 esac
13448 # Try without a prefix underscore, then with it.
13449 for ac_symprfx in "" "_"; do
13451 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13452 symxfrm="\\1 $ac_symprfx\\2 \\2"
13454 # Write the raw and C identifiers.
13455 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13456 # Fake it for dumpbin and say T for any non-static function
13457 # and D for any global variable.
13458 # Also find C++ and __fastcall symbols from MSVC++,
13459 # which start with @ or ?.
13460 lt_cv_sys_global_symbol_pipe="$AWK '"\
13461 " {last_section=section; section=\$ 3};"\
13462 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13463 " \$ 0!~/External *\|/{next};"\
13464 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13465 " {if(hide[section]) next};"\
13466 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13467 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13468 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13469 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13470 " ' prfx=^$ac_symprfx"
13471 else
13472 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13475 # Check to see that the pipe works correctly.
13476 pipe_works=no
13478 rm -f conftest*
13479 cat > conftest.$ac_ext <<_LT_EOF
13480 #ifdef __cplusplus
13481 extern "C" {
13482 #endif
13483 char nm_test_var;
13484 void nm_test_func(void);
13485 void nm_test_func(void){}
13486 #ifdef __cplusplus
13488 #endif
13489 int main(){nm_test_var='a';nm_test_func();return(0);}
13490 _LT_EOF
13492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13493 (eval $ac_compile) 2>&5
13494 ac_status=$?
13495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496 test $ac_status = 0; }; then
13497 # Now try to grab the symbols.
13498 nlist=conftest.nm
13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13500 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13501 ac_status=$?
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; } && test -s "$nlist"; then
13504 # Try sorting and uniquifying the output.
13505 if sort "$nlist" | uniq > "$nlist"T; then
13506 mv -f "$nlist"T "$nlist"
13507 else
13508 rm -f "$nlist"T
13511 # Make sure that we snagged all the symbols we need.
13512 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13513 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13514 cat <<_LT_EOF > conftest.$ac_ext
13515 #ifdef __cplusplus
13516 extern "C" {
13517 #endif
13519 _LT_EOF
13520 # Now generate the symbol file.
13521 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13523 cat <<_LT_EOF >> conftest.$ac_ext
13525 /* The mapping between symbol names and symbols. */
13526 const struct {
13527 const char *name;
13528 void *address;
13530 lt__PROGRAM__LTX_preloaded_symbols[] =
13532 { "@PROGRAM@", (void *) 0 },
13533 _LT_EOF
13534 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13535 cat <<\_LT_EOF >> conftest.$ac_ext
13536 {0, (void *) 0}
13539 /* This works around a problem in FreeBSD linker */
13540 #ifdef FREEBSD_WORKAROUND
13541 static const void *lt_preloaded_setup() {
13542 return lt__PROGRAM__LTX_preloaded_symbols;
13544 #endif
13546 #ifdef __cplusplus
13548 #endif
13549 _LT_EOF
13550 # Now try linking the two files.
13551 mv conftest.$ac_objext conftstm.$ac_objext
13552 lt_save_LIBS="$LIBS"
13553 lt_save_CFLAGS="$CFLAGS"
13554 LIBS="conftstm.$ac_objext"
13555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13557 (eval $ac_link) 2>&5
13558 ac_status=$?
13559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13560 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13561 pipe_works=yes
13563 LIBS="$lt_save_LIBS"
13564 CFLAGS="$lt_save_CFLAGS"
13565 else
13566 echo "cannot find nm_test_func in $nlist" >&5
13568 else
13569 echo "cannot find nm_test_var in $nlist" >&5
13571 else
13572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13574 else
13575 echo "$progname: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13578 rm -rf conftest* conftst*
13580 # Do not use the global_symbol_pipe unless it works.
13581 if test "$pipe_works" = yes; then
13582 break
13583 else
13584 lt_cv_sys_global_symbol_pipe=
13586 done
13590 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13591 lt_cv_sys_global_symbol_to_cdecl=
13593 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13595 $as_echo "failed" >&6; }
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13598 $as_echo "ok" >&6; }
13622 # Check whether --enable-libtool-lock was given.
13623 if test "${enable_libtool_lock+set}" = set; then :
13624 enableval=$enable_libtool_lock;
13627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13629 # Some flags need to be propagated to the compiler or linker for good
13630 # libtool support.
13631 case $host in
13632 ia64-*-hpux*)
13633 # Find out which ABI we are using.
13634 echo 'int i;' > conftest.$ac_ext
13635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13636 (eval $ac_compile) 2>&5
13637 ac_status=$?
13638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13639 test $ac_status = 0; }; then
13640 case `/usr/bin/file conftest.$ac_objext` in
13641 *ELF-32*)
13642 HPUX_IA64_MODE="32"
13644 *ELF-64*)
13645 HPUX_IA64_MODE="64"
13647 esac
13649 rm -rf conftest*
13651 *-*-irix6*)
13652 # Find out which ABI we are using.
13653 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13655 (eval $ac_compile) 2>&5
13656 ac_status=$?
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658 test $ac_status = 0; }; then
13659 if test "$lt_cv_prog_gnu_ld" = yes; then
13660 case `/usr/bin/file conftest.$ac_objext` in
13661 *32-bit*)
13662 LD="${LD-ld} -melf32bsmip"
13664 *N32*)
13665 LD="${LD-ld} -melf32bmipn32"
13667 *64-bit*)
13668 LD="${LD-ld} -melf64bmip"
13670 esac
13671 else
13672 case `/usr/bin/file conftest.$ac_objext` in
13673 *32-bit*)
13674 LD="${LD-ld} -32"
13676 *N32*)
13677 LD="${LD-ld} -n32"
13679 *64-bit*)
13680 LD="${LD-ld} -64"
13682 esac
13685 rm -rf conftest*
13688 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13689 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13690 # Find out which ABI we are using.
13691 echo 'int i;' > conftest.$ac_ext
13692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13693 (eval $ac_compile) 2>&5
13694 ac_status=$?
13695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13696 test $ac_status = 0; }; then
13697 case `/usr/bin/file conftest.o` in
13698 *32-bit*)
13699 case $host in
13700 x86_64-*kfreebsd*-gnu)
13701 LD="${LD-ld} -m elf_i386_fbsd"
13703 x86_64-*linux*)
13704 LD="${LD-ld} -m elf_i386"
13706 ppc64-*linux*|powerpc64-*linux*)
13707 LD="${LD-ld} -m elf32ppclinux"
13709 s390x-*linux*)
13710 LD="${LD-ld} -m elf_s390"
13712 sparc64-*linux*)
13713 LD="${LD-ld} -m elf32_sparc"
13715 esac
13717 *64-bit*)
13718 case $host in
13719 x86_64-*kfreebsd*-gnu)
13720 LD="${LD-ld} -m elf_x86_64_fbsd"
13722 x86_64-*linux*)
13723 LD="${LD-ld} -m elf_x86_64"
13725 ppc*-*linux*|powerpc*-*linux*)
13726 LD="${LD-ld} -m elf64ppc"
13728 s390*-*linux*|s390*-*tpf*)
13729 LD="${LD-ld} -m elf64_s390"
13731 sparc*-*linux*)
13732 LD="${LD-ld} -m elf64_sparc"
13734 esac
13736 esac
13738 rm -rf conftest*
13741 *-*-sco3.2v5*)
13742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13743 SAVE_CFLAGS="$CFLAGS"
13744 CFLAGS="$CFLAGS -belf"
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13746 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13747 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 ac_ext=c
13751 ac_cpp='$CPP $CPPFLAGS'
13752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13760 main ()
13764 return 0;
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 lt_cv_cc_needs_belf=yes
13769 else
13770 lt_cv_cc_needs_belf=no
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13774 ac_ext=c
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13785 CFLAGS="$SAVE_CFLAGS"
13788 sparc*-*solaris*)
13789 # Find out which ABI we are using.
13790 echo 'int i;' > conftest.$ac_ext
13791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792 (eval $ac_compile) 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 case `/usr/bin/file conftest.o` in
13797 *64-bit*)
13798 case $lt_cv_prog_gnu_ld in
13799 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13802 LD="${LD-ld} -64"
13805 esac
13807 esac
13809 rm -rf conftest*
13811 esac
13813 need_locks="$enable_libtool_lock"
13816 case $host_os in
13817 rhapsody* | darwin*)
13818 if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 if test -n "$DSYMUTIL"; then
13827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13840 done
13841 done
13842 IFS=$as_save_IFS
13846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13847 if test -n "$DSYMUTIL"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13849 $as_echo "$DSYMUTIL" >&6; }
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13857 if test -z "$ac_cv_prog_DSYMUTIL"; then
13858 ac_ct_DSYMUTIL=$DSYMUTIL
13859 # Extract the first word of "dsymutil", so it can be a program name with args.
13860 set dummy dsymutil; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 if test -n "$ac_ct_DSYMUTIL"; then
13867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13868 else
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 break 2
13880 done
13881 done
13882 IFS=$as_save_IFS
13886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13887 if test -n "$ac_ct_DSYMUTIL"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13890 else
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13895 if test "x$ac_ct_DSYMUTIL" = x; then
13896 DSYMUTIL=":"
13897 else
13898 case $cross_compiling:$ac_tool_warned in
13899 yes:)
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13902 ac_tool_warned=yes ;;
13903 esac
13904 DSYMUTIL=$ac_ct_DSYMUTIL
13906 else
13907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13910 if test -n "$ac_tool_prefix"; then
13911 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 if test -n "$NMEDIT"; then
13919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13932 done
13933 done
13934 IFS=$as_save_IFS
13938 NMEDIT=$ac_cv_prog_NMEDIT
13939 if test -n "$NMEDIT"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13941 $as_echo "$NMEDIT" >&6; }
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13949 if test -z "$ac_cv_prog_NMEDIT"; then
13950 ac_ct_NMEDIT=$NMEDIT
13951 # Extract the first word of "nmedit", so it can be a program name with args.
13952 set dummy nmedit; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13954 $as_echo_n "checking for $ac_word... " >&6; }
13955 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 if test -n "$ac_ct_NMEDIT"; then
13959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13960 else
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13964 IFS=$as_save_IFS
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13968 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 break 2
13972 done
13973 done
13974 IFS=$as_save_IFS
13978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13979 if test -n "$ac_ct_NMEDIT"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13981 $as_echo "$ac_ct_NMEDIT" >&6; }
13982 else
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984 $as_echo "no" >&6; }
13987 if test "x$ac_ct_NMEDIT" = x; then
13988 NMEDIT=":"
13989 else
13990 case $cross_compiling:$ac_tool_warned in
13991 yes:)
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13994 ac_tool_warned=yes ;;
13995 esac
13996 NMEDIT=$ac_ct_NMEDIT
13998 else
13999 NMEDIT="$ac_cv_prog_NMEDIT"
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if test "${ac_cv_prog_LIPO+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 if test -n "$LIPO"; then
14011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14024 done
14025 done
14026 IFS=$as_save_IFS
14030 LIPO=$ac_cv_prog_LIPO
14031 if test -n "$LIPO"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14033 $as_echo "$LIPO" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14041 if test -z "$ac_cv_prog_LIPO"; then
14042 ac_ct_LIPO=$LIPO
14043 # Extract the first word of "lipo", so it can be a program name with args.
14044 set dummy lipo; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 if test -n "$ac_ct_LIPO"; then
14051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_ac_ct_LIPO="lipo"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14064 done
14065 done
14066 IFS=$as_save_IFS
14070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14071 if test -n "$ac_ct_LIPO"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14073 $as_echo "$ac_ct_LIPO" >&6; }
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14079 if test "x$ac_ct_LIPO" = x; then
14080 LIPO=":"
14081 else
14082 case $cross_compiling:$ac_tool_warned in
14083 yes:)
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14086 ac_tool_warned=yes ;;
14087 esac
14088 LIPO=$ac_ct_LIPO
14090 else
14091 LIPO="$ac_cv_prog_LIPO"
14094 if test -n "$ac_tool_prefix"; then
14095 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}otool; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if test -n "$OTOOL"; then
14103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14116 done
14117 done
14118 IFS=$as_save_IFS
14122 OTOOL=$ac_cv_prog_OTOOL
14123 if test -n "$OTOOL"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14125 $as_echo "$OTOOL" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14133 if test -z "$ac_cv_prog_OTOOL"; then
14134 ac_ct_OTOOL=$OTOOL
14135 # Extract the first word of "otool", so it can be a program name with args.
14136 set dummy otool; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14138 $as_echo_n "checking for $ac_word... " >&6; }
14139 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 if test -n "$ac_ct_OTOOL"; then
14143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14148 IFS=$as_save_IFS
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_ac_ct_OTOOL="otool"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14154 break 2
14156 done
14157 done
14158 IFS=$as_save_IFS
14162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14163 if test -n "$ac_ct_OTOOL"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14165 $as_echo "$ac_ct_OTOOL" >&6; }
14166 else
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14171 if test "x$ac_ct_OTOOL" = x; then
14172 OTOOL=":"
14173 else
14174 case $cross_compiling:$ac_tool_warned in
14175 yes:)
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14178 ac_tool_warned=yes ;;
14179 esac
14180 OTOOL=$ac_ct_OTOOL
14182 else
14183 OTOOL="$ac_cv_prog_OTOOL"
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$OTOOL64"; then
14195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14208 done
14209 done
14210 IFS=$as_save_IFS
14214 OTOOL64=$ac_cv_prog_OTOOL64
14215 if test -n "$OTOOL64"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14217 $as_echo "$OTOOL64" >&6; }
14218 else
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14225 if test -z "$ac_cv_prog_OTOOL64"; then
14226 ac_ct_OTOOL64=$OTOOL64
14227 # Extract the first word of "otool64", so it can be a program name with args.
14228 set dummy otool64; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230 $as_echo_n "checking for $ac_word... " >&6; }
14231 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 if test -n "$ac_ct_OTOOL64"; then
14235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14236 else
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14240 IFS=$as_save_IFS
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244 ac_cv_prog_ac_ct_OTOOL64="otool64"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14246 break 2
14248 done
14249 done
14250 IFS=$as_save_IFS
14254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14255 if test -n "$ac_ct_OTOOL64"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14257 $as_echo "$ac_ct_OTOOL64" >&6; }
14258 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14263 if test "x$ac_ct_OTOOL64" = x; then
14264 OTOOL64=":"
14265 else
14266 case $cross_compiling:$ac_tool_warned in
14267 yes:)
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14270 ac_tool_warned=yes ;;
14271 esac
14272 OTOOL64=$ac_ct_OTOOL64
14274 else
14275 OTOOL64="$ac_cv_prog_OTOOL64"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14305 $as_echo_n "checking for -single_module linker flag... " >&6; }
14306 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14308 else
14309 lt_cv_apple_cc_single_mod=no
14310 if test -z "${LT_MULTI_MODULE}"; then
14311 # By default we will add the -single_module flag. You can override
14312 # by either setting the environment variable LT_MULTI_MODULE
14313 # non-empty at configure time, or by adding -multi_module to the
14314 # link flags.
14315 rm -rf libconftest.dylib*
14316 echo "int foo(void){return 1;}" > conftest.c
14317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c" >&5
14319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14321 _lt_result=$?
14322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14323 lt_cv_apple_cc_single_mod=yes
14324 else
14325 cat conftest.err >&5
14327 rm -rf libconftest.dylib*
14328 rm -f conftest.*
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14334 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14335 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 lt_cv_ld_exported_symbols_list=no
14339 save_LDFLAGS=$LDFLAGS
14340 echo "_main" > conftest.sym
14341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14346 main ()
14350 return 0;
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 lt_cv_ld_exported_symbols_list=yes
14355 else
14356 lt_cv_ld_exported_symbols_list=no
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LDFLAGS="$save_LDFLAGS"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14366 $as_echo_n "checking for -force_load linker flag... " >&6; }
14367 if test "${lt_cv_ld_force_load+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 lt_cv_ld_force_load=no
14371 cat > conftest.c << _LT_EOF
14372 int forced_loaded() { return 2;}
14373 _LT_EOF
14374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14376 echo "$AR cru libconftest.a conftest.o" >&5
14377 $AR cru libconftest.a conftest.o 2>&5
14378 cat > conftest.c << _LT_EOF
14379 int main() { return 0;}
14380 _LT_EOF
14381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14383 _lt_result=$?
14384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14385 lt_cv_ld_force_load=yes
14386 else
14387 cat conftest.err >&5
14389 rm -f conftest.err libconftest.a conftest conftest.c
14390 rm -rf conftest.dSYM
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14394 $as_echo "$lt_cv_ld_force_load" >&6; }
14395 case $host_os in
14396 rhapsody* | darwin1.[012])
14397 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14398 darwin1.*)
14399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14400 darwin*) # darwin 5.x on
14401 # if running on 10.5 or later, the deployment target defaults
14402 # to the OS version, if on x86, and 10.4, the deployment
14403 # target defaults to 10.4. Don't you love it?
14404 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14405 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14407 10.[012]*)
14408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14409 10.*)
14410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14411 esac
14413 esac
14414 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14415 _lt_dar_single_mod='$single_module'
14417 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14418 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14419 else
14420 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14422 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14423 _lt_dsymutil='~$DSYMUTIL $lib || :'
14424 else
14425 _lt_dsymutil=
14428 esac
14430 for ac_header in dlfcn.h
14431 do :
14432 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14433 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_DLFCN_H 1
14436 _ACEOF
14439 done
14445 # Set options
14449 enable_dlopen=no
14452 enable_win32_dll=no
14455 # Check whether --enable-shared was given.
14456 if test "${enable_shared+set}" = set; then :
14457 enableval=$enable_shared; p=${PACKAGE-default}
14458 case $enableval in
14459 yes) enable_shared=yes ;;
14460 no) enable_shared=no ;;
14462 enable_shared=no
14463 # Look at the argument we got. We use all the common list separators.
14464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14465 for pkg in $enableval; do
14466 IFS="$lt_save_ifs"
14467 if test "X$pkg" = "X$p"; then
14468 enable_shared=yes
14470 done
14471 IFS="$lt_save_ifs"
14473 esac
14474 else
14475 enable_shared=yes
14486 # Check whether --enable-static was given.
14487 if test "${enable_static+set}" = set; then :
14488 enableval=$enable_static; p=${PACKAGE-default}
14489 case $enableval in
14490 yes) enable_static=yes ;;
14491 no) enable_static=no ;;
14493 enable_static=no
14494 # Look at the argument we got. We use all the common list separators.
14495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496 for pkg in $enableval; do
14497 IFS="$lt_save_ifs"
14498 if test "X$pkg" = "X$p"; then
14499 enable_static=yes
14501 done
14502 IFS="$lt_save_ifs"
14504 esac
14505 else
14506 enable_static=yes
14518 # Check whether --with-pic was given.
14519 if test "${with_pic+set}" = set; then :
14520 withval=$with_pic; pic_mode="$withval"
14521 else
14522 pic_mode=default
14526 test -z "$pic_mode" && pic_mode=default
14534 # Check whether --enable-fast-install was given.
14535 if test "${enable_fast_install+set}" = set; then :
14536 enableval=$enable_fast_install; p=${PACKAGE-default}
14537 case $enableval in
14538 yes) enable_fast_install=yes ;;
14539 no) enable_fast_install=no ;;
14541 enable_fast_install=no
14542 # Look at the argument we got. We use all the common list separators.
14543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14544 for pkg in $enableval; do
14545 IFS="$lt_save_ifs"
14546 if test "X$pkg" = "X$p"; then
14547 enable_fast_install=yes
14549 done
14550 IFS="$lt_save_ifs"
14552 esac
14553 else
14554 enable_fast_install=yes
14567 # This can be used to rebuild libtool when needed
14568 LIBTOOL_DEPS="$ltmain"
14570 # Always use our own libtool.
14571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14598 test -z "$LN_S" && LN_S="ln -s"
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14618 $as_echo_n "checking for objdir... " >&6; }
14619 if test "${lt_cv_objdir+set}" = set; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 rm -f .libs 2>/dev/null
14623 mkdir .libs 2>/dev/null
14624 if test -d .libs; then
14625 lt_cv_objdir=.libs
14626 else
14627 # MS-DOS does not allow filenames that begin with a dot.
14628 lt_cv_objdir=_libs
14630 rmdir .libs 2>/dev/null
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14633 $as_echo "$lt_cv_objdir" >&6; }
14634 objdir=$lt_cv_objdir
14640 cat >>confdefs.h <<_ACEOF
14641 #define LT_OBJDIR "$lt_cv_objdir/"
14642 _ACEOF
14647 case $host_os in
14648 aix3*)
14649 # AIX sometimes has problems with the GCC collect2 program. For some
14650 # reason, if we set the COLLECT_NAMES environment variable, the problems
14651 # vanish in a puff of smoke.
14652 if test "X${COLLECT_NAMES+set}" != Xset; then
14653 COLLECT_NAMES=
14654 export COLLECT_NAMES
14657 esac
14659 # Global variables:
14660 ofile=libtool
14661 can_build_shared=yes
14663 # All known linkers require a `.a' archive for static linking (except MSVC,
14664 # which needs '.lib').
14665 libext=a
14667 with_gnu_ld="$lt_cv_prog_gnu_ld"
14669 old_CC="$CC"
14670 old_CFLAGS="$CFLAGS"
14672 # Set sane defaults for various variables
14673 test -z "$CC" && CC=cc
14674 test -z "$LTCC" && LTCC=$CC
14675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14676 test -z "$LD" && LD=ld
14677 test -z "$ac_objext" && ac_objext=o
14679 for cc_temp in $compiler""; do
14680 case $cc_temp in
14681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14683 \-*) ;;
14684 *) break;;
14685 esac
14686 done
14687 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14690 # Only perform the check for file, if the check method requires it
14691 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14692 case $deplibs_check_method in
14693 file_magic*)
14694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14696 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 case $MAGIC_CMD in
14701 [\\/*] | ?:[\\/]*)
14702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705 lt_save_MAGIC_CMD="$MAGIC_CMD"
14706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14708 for ac_dir in $ac_dummy; do
14709 IFS="$lt_save_ifs"
14710 test -z "$ac_dir" && ac_dir=.
14711 if test -f $ac_dir/${ac_tool_prefix}file; then
14712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14713 if test -n "$file_magic_test_file"; then
14714 case $deplibs_check_method in
14715 "file_magic "*)
14716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14719 $EGREP "$file_magic_regex" > /dev/null; then
14721 else
14722 cat <<_LT_EOF 1>&2
14724 *** Warning: the command libtool uses to detect shared libraries,
14725 *** $file_magic_cmd, produces output that libtool cannot recognize.
14726 *** The result is that libtool may fail to recognize shared libraries
14727 *** as such. This will affect the creation of libtool libraries that
14728 *** depend on shared libraries, but programs linked with such libtool
14729 *** libraries will work regardless of this problem. Nevertheless, you
14730 *** may want to report the problem to your system manager and/or to
14731 *** bug-libtool@gnu.org
14733 _LT_EOF
14734 fi ;;
14735 esac
14737 break
14739 done
14740 IFS="$lt_save_ifs"
14741 MAGIC_CMD="$lt_save_MAGIC_CMD"
14743 esac
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if test -n "$MAGIC_CMD"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14749 $as_echo "$MAGIC_CMD" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14759 if test -z "$lt_cv_path_MAGIC_CMD"; then
14760 if test -n "$ac_tool_prefix"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14762 $as_echo_n "checking for file... " >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 case $MAGIC_CMD in
14767 [\\/*] | ?:[\\/]*)
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14775 IFS="$lt_save_ifs"
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14781 "file_magic "*)
14782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14787 else
14788 cat <<_LT_EOF 1>&2
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such. This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem. Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14799 _LT_EOF
14800 fi ;;
14801 esac
14803 break
14805 done
14806 IFS="$lt_save_ifs"
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14809 esac
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14815 $as_echo "$MAGIC_CMD" >&6; }
14816 else
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14822 else
14823 MAGIC_CMD=:
14829 esac
14831 # Use C for the default configuration in the libtool script
14833 lt_save_CC="$CC"
14834 ac_ext=c
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14841 # Source file extension for C test sources.
14842 ac_ext=c
14844 # Object file extension for compiled C test sources.
14845 objext=o
14846 objext=$objext
14848 # Code to be used in simple compile tests
14849 lt_simple_compile_test_code="int some_variable = 0;"
14851 # Code to be used in simple link tests
14852 lt_simple_link_test_code='int main(){return(0);}'
14860 # If no C compiler was specified, use CC.
14861 LTCC=${LTCC-"$CC"}
14863 # If no C compiler flags were specified, use CFLAGS.
14864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14866 # Allow CC to be a program name with arguments.
14867 compiler=$CC
14869 # Save the default compiler, since it gets overwritten when the other
14870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14871 compiler_DEFAULT=$CC
14873 # save warnings/boilerplate of simple test code
14874 ac_outfile=conftest.$ac_objext
14875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14877 _lt_compiler_boilerplate=`cat conftest.err`
14878 $RM conftest*
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_linker_boilerplate=`cat conftest.err`
14884 $RM -r conftest*
14887 ## CAVEAT EMPTOR:
14888 ## There is no encapsulation within the following macros, do not change
14889 ## the running order or otherwise move them around unless you know exactly
14890 ## what you are doing...
14891 if test -n "$compiler"; then
14893 lt_prog_compiler_no_builtin_flag=
14895 if test "$GCC" = yes; then
14896 case $cc_basename in
14897 nvcc*)
14898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14901 esac
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14904 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 lt_cv_prog_compiler_rtti_exceptions=no
14909 ac_outfile=conftest.$ac_objext
14910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14911 lt_compiler_flag="-fno-rtti -fno-exceptions"
14912 # Insert the option either (1) after the last *FLAGS variable, or
14913 # (2) before a word containing "conftest.", or (3) at the end.
14914 # Note that $ac_compile itself does not contain backslashes and begins
14915 # with a dollar sign (not a hyphen), so the echo should work correctly.
14916 # The option is referenced via a variable to avoid confusing sed.
14917 lt_compile=`echo "$ac_compile" | $SED \
14918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14920 -e 's:$: $lt_compiler_flag:'`
14921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14922 (eval "$lt_compile" 2>conftest.err)
14923 ac_status=$?
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 if (exit $ac_status) && test -s "$ac_outfile"; then
14927 # The compiler can only warn and ignore the option if not recognized
14928 # So say no if there are warnings other than the usual output.
14929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14932 lt_cv_prog_compiler_rtti_exceptions=yes
14935 $RM conftest*
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14939 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14943 else
14954 lt_prog_compiler_wl=
14955 lt_prog_compiler_pic=
14956 lt_prog_compiler_static=
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14959 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14961 if test "$GCC" = yes; then
14962 lt_prog_compiler_wl='-Wl,'
14963 lt_prog_compiler_static='-static'
14965 case $host_os in
14966 aix*)
14967 # All AIX code is PIC.
14968 if test "$host_cpu" = ia64; then
14969 # AIX 5 now supports IA64 processor
14970 lt_prog_compiler_static='-Bstatic'
14974 amigaos*)
14975 case $host_cpu in
14976 powerpc)
14977 # see comment about AmigaOS4 .so support
14978 lt_prog_compiler_pic='-fPIC'
14980 m68k)
14981 # FIXME: we need at least 68020 code to build shared libraries, but
14982 # adding the `-m68020' flag to GCC prevents building anything better,
14983 # like `-m68040'.
14984 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14986 esac
14989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14990 # PIC is the default for these OSes.
14993 mingw* | cygwin* | pw32* | os2* | cegcc*)
14994 # This hack is so that the source file can tell whether it is being
14995 # built for inclusion in a dll (and should export symbols for example).
14996 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14997 # (--disable-auto-import) libraries
14998 lt_prog_compiler_pic='-DDLL_EXPORT'
15001 darwin* | rhapsody*)
15002 # PIC is the default on this platform
15003 # Common symbols not allowed in MH_DYLIB files
15004 lt_prog_compiler_pic='-fno-common'
15007 haiku*)
15008 # PIC is the default for Haiku.
15009 # The "-static" flag exists, but is broken.
15010 lt_prog_compiler_static=
15013 hpux*)
15014 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15015 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15016 # sets the default TLS model and affects inlining.
15017 case $host_cpu in
15018 hppa*64*)
15019 # +Z the default
15022 lt_prog_compiler_pic='-fPIC'
15024 esac
15027 interix[3-9]*)
15028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15029 # Instead, we relocate shared libraries at runtime.
15032 msdosdjgpp*)
15033 # Just because we use GCC doesn't mean we suddenly get shared libraries
15034 # on systems that don't support them.
15035 lt_prog_compiler_can_build_shared=no
15036 enable_shared=no
15039 *nto* | *qnx*)
15040 # QNX uses GNU C++, but need to define -shared option too, otherwise
15041 # it will coredump.
15042 lt_prog_compiler_pic='-fPIC -shared'
15045 sysv4*MP*)
15046 if test -d /usr/nec; then
15047 lt_prog_compiler_pic=-Kconform_pic
15052 lt_prog_compiler_pic='-fPIC'
15054 esac
15056 case $cc_basename in
15057 nvcc*) # Cuda Compiler Driver 2.2
15058 lt_prog_compiler_wl='-Xlinker '
15059 lt_prog_compiler_pic='-Xcompiler -fPIC'
15061 esac
15062 else
15063 # PORTME Check for flag to pass linker flags through the system compiler.
15064 case $host_os in
15065 aix*)
15066 lt_prog_compiler_wl='-Wl,'
15067 if test "$host_cpu" = ia64; then
15068 # AIX 5 now supports IA64 processor
15069 lt_prog_compiler_static='-Bstatic'
15070 else
15071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15075 mingw* | cygwin* | pw32* | os2* | cegcc*)
15076 # This hack is so that the source file can tell whether it is being
15077 # built for inclusion in a dll (and should export symbols for example).
15078 lt_prog_compiler_pic='-DDLL_EXPORT'
15081 hpux9* | hpux10* | hpux11*)
15082 lt_prog_compiler_wl='-Wl,'
15083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15084 # not for PA HP-UX.
15085 case $host_cpu in
15086 hppa*64*|ia64*)
15087 # +Z the default
15090 lt_prog_compiler_pic='+Z'
15092 esac
15093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15094 lt_prog_compiler_static='${wl}-a ${wl}archive'
15097 irix5* | irix6* | nonstopux*)
15098 lt_prog_compiler_wl='-Wl,'
15099 # PIC (with -KPIC) is the default.
15100 lt_prog_compiler_static='-non_shared'
15103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15104 case $cc_basename in
15105 # old Intel for x86_64 which still supported -KPIC.
15106 ecc*)
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-static'
15111 # icc used to be incompatible with GCC.
15112 # ICC 10 doesn't accept -KPIC any more.
15113 icc* | ifort*)
15114 lt_prog_compiler_wl='-Wl,'
15115 lt_prog_compiler_pic='-fPIC'
15116 lt_prog_compiler_static='-static'
15118 # Lahey Fortran 8.1.
15119 lf95*)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='--shared'
15122 lt_prog_compiler_static='--static'
15124 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15125 # Portland Group compilers (*not* the Pentium gcc compiler,
15126 # which looks to be a dead project)
15127 lt_prog_compiler_wl='-Wl,'
15128 lt_prog_compiler_pic='-fpic'
15129 lt_prog_compiler_static='-Bstatic'
15131 ccc*)
15132 lt_prog_compiler_wl='-Wl,'
15133 # All Alpha code is PIC.
15134 lt_prog_compiler_static='-non_shared'
15136 xl* | bgxl* | bgf* | mpixl*)
15137 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_pic='-qpic'
15140 lt_prog_compiler_static='-qstaticlink'
15143 case `$CC -V 2>&1 | sed 5q` in
15144 *Sun\ F* | *Sun*Fortran*)
15145 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15146 lt_prog_compiler_pic='-KPIC'
15147 lt_prog_compiler_static='-Bstatic'
15148 lt_prog_compiler_wl=''
15150 *Sun\ C*)
15151 # Sun C 5.9
15152 lt_prog_compiler_pic='-KPIC'
15153 lt_prog_compiler_static='-Bstatic'
15154 lt_prog_compiler_wl='-Wl,'
15156 esac
15158 esac
15161 newsos6)
15162 lt_prog_compiler_pic='-KPIC'
15163 lt_prog_compiler_static='-Bstatic'
15166 *nto* | *qnx*)
15167 # QNX uses GNU C++, but need to define -shared option too, otherwise
15168 # it will coredump.
15169 lt_prog_compiler_pic='-fPIC -shared'
15172 osf3* | osf4* | osf5*)
15173 lt_prog_compiler_wl='-Wl,'
15174 # All OSF/1 code is PIC.
15175 lt_prog_compiler_static='-non_shared'
15178 rdos*)
15179 lt_prog_compiler_static='-non_shared'
15182 solaris*)
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15185 case $cc_basename in
15186 f77* | f90* | f95*)
15187 lt_prog_compiler_wl='-Qoption ld ';;
15189 lt_prog_compiler_wl='-Wl,';;
15190 esac
15193 sunos4*)
15194 lt_prog_compiler_wl='-Qoption ld '
15195 lt_prog_compiler_pic='-PIC'
15196 lt_prog_compiler_static='-Bstatic'
15199 sysv4 | sysv4.2uw2* | sysv4.3*)
15200 lt_prog_compiler_wl='-Wl,'
15201 lt_prog_compiler_pic='-KPIC'
15202 lt_prog_compiler_static='-Bstatic'
15205 sysv4*MP*)
15206 if test -d /usr/nec ;then
15207 lt_prog_compiler_pic='-Kconform_pic'
15208 lt_prog_compiler_static='-Bstatic'
15212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15213 lt_prog_compiler_wl='-Wl,'
15214 lt_prog_compiler_pic='-KPIC'
15215 lt_prog_compiler_static='-Bstatic'
15218 unicos*)
15219 lt_prog_compiler_wl='-Wl,'
15220 lt_prog_compiler_can_build_shared=no
15223 uts4*)
15224 lt_prog_compiler_pic='-pic'
15225 lt_prog_compiler_static='-Bstatic'
15229 lt_prog_compiler_can_build_shared=no
15231 esac
15234 case $host_os in
15235 # For platforms which do not support PIC, -DPIC is meaningless:
15236 *djgpp*)
15237 lt_prog_compiler_pic=
15240 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15242 esac
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15244 $as_echo "$lt_prog_compiler_pic" >&6; }
15252 # Check to make sure the PIC flag actually works.
15254 if test -n "$lt_prog_compiler_pic"; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15257 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15260 lt_cv_prog_compiler_pic_works=no
15261 ac_outfile=conftest.$ac_objext
15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 # The option is referenced via a variable to avoid confusing sed.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>conftest.err)
15275 ac_status=$?
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 if (exit $ac_status) && test -s "$ac_outfile"; then
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings other than the usual output.
15281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15284 lt_cv_prog_compiler_pic_works=yes
15287 $RM conftest*
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15291 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15293 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15294 case $lt_prog_compiler_pic in
15295 "" | " "*) ;;
15296 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15297 esac
15298 else
15299 lt_prog_compiler_pic=
15300 lt_prog_compiler_can_build_shared=no
15311 # Check to make sure the static flag actually works.
15313 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15315 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15316 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 lt_cv_prog_compiler_static_works=no
15320 save_LDFLAGS="$LDFLAGS"
15321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15324 # The linker can only warn and ignore the option if not recognized
15325 # So say no if there are warnings
15326 if test -s conftest.err; then
15327 # Append any errors to the config.log.
15328 cat conftest.err 1>&5
15329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15331 if diff conftest.exp conftest.er2 >/dev/null; then
15332 lt_cv_prog_compiler_static_works=yes
15334 else
15335 lt_cv_prog_compiler_static_works=yes
15338 $RM -r conftest*
15339 LDFLAGS="$save_LDFLAGS"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15343 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15345 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15347 else
15348 lt_prog_compiler_static=
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15359 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 lt_cv_prog_compiler_c_o=no
15363 $RM -r conftest 2>/dev/null
15364 mkdir conftest
15365 cd conftest
15366 mkdir out
15367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15369 lt_compiler_flag="-o out/conftest2.$ac_objext"
15370 # Insert the option either (1) after the last *FLAGS variable, or
15371 # (2) before a word containing "conftest.", or (3) at the end.
15372 # Note that $ac_compile itself does not contain backslashes and begins
15373 # with a dollar sign (not a hyphen), so the echo should work correctly.
15374 lt_compile=`echo "$ac_compile" | $SED \
15375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15377 -e 's:$: $lt_compiler_flag:'`
15378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15379 (eval "$lt_compile" 2>out/conftest.err)
15380 ac_status=$?
15381 cat out/conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15384 then
15385 # The compiler can only warn and ignore the option if not recognized
15386 # So say no if there are warnings
15387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15390 lt_cv_prog_compiler_c_o=yes
15393 chmod u+w . 2>&5
15394 $RM conftest*
15395 # SGI C++ compiler will create directory out/ii_files/ for
15396 # template instantiation
15397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15398 $RM out/* && rmdir out
15399 cd ..
15400 $RM -r conftest
15401 $RM conftest*
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15414 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 lt_cv_prog_compiler_c_o=no
15418 $RM -r conftest 2>/dev/null
15419 mkdir conftest
15420 cd conftest
15421 mkdir out
15422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424 lt_compiler_flag="-o out/conftest2.$ac_objext"
15425 # Insert the option either (1) after the last *FLAGS variable, or
15426 # (2) before a word containing "conftest.", or (3) at the end.
15427 # Note that $ac_compile itself does not contain backslashes and begins
15428 # with a dollar sign (not a hyphen), so the echo should work correctly.
15429 lt_compile=`echo "$ac_compile" | $SED \
15430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432 -e 's:$: $lt_compiler_flag:'`
15433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15434 (eval "$lt_compile" 2>out/conftest.err)
15435 ac_status=$?
15436 cat out/conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439 then
15440 # The compiler can only warn and ignore the option if not recognized
15441 # So say no if there are warnings
15442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler_c_o=yes
15448 chmod u+w . 2>&5
15449 $RM conftest*
15450 # SGI C++ compiler will create directory out/ii_files/ for
15451 # template instantiation
15452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15453 $RM out/* && rmdir out
15454 cd ..
15455 $RM -r conftest
15456 $RM conftest*
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15460 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15465 hard_links="nottested"
15466 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15467 # do not overwrite the value of need_locks provided by the user
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15469 $as_echo_n "checking if we can lock with hard links... " >&6; }
15470 hard_links=yes
15471 $RM conftest*
15472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15473 touch conftest.a
15474 ln conftest.a conftest.b 2>&5 || hard_links=no
15475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15477 $as_echo "$hard_links" >&6; }
15478 if test "$hard_links" = no; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15480 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15481 need_locks=warn
15483 else
15484 need_locks=no
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15495 runpath_var=
15496 allow_undefined_flag=
15497 always_export_symbols=no
15498 archive_cmds=
15499 archive_expsym_cmds=
15500 compiler_needs_object=no
15501 enable_shared_with_static_runtimes=no
15502 export_dynamic_flag_spec=
15503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15504 hardcode_automatic=no
15505 hardcode_direct=no
15506 hardcode_direct_absolute=no
15507 hardcode_libdir_flag_spec=
15508 hardcode_libdir_flag_spec_ld=
15509 hardcode_libdir_separator=
15510 hardcode_minus_L=no
15511 hardcode_shlibpath_var=unsupported
15512 inherit_rpath=no
15513 link_all_deplibs=unknown
15514 module_cmds=
15515 module_expsym_cmds=
15516 old_archive_from_new_cmds=
15517 old_archive_from_expsyms_cmds=
15518 thread_safe_flag_spec=
15519 whole_archive_flag_spec=
15520 # include_expsyms should be a list of space-separated symbols to be *always*
15521 # included in the symbol list
15522 include_expsyms=
15523 # exclude_expsyms can be an extended regexp of symbols to exclude
15524 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15525 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15526 # as well as any symbol that contains `d'.
15527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15529 # platforms (ab)use it in PIC code, but their linkers get confused if
15530 # the symbol is explicitly referenced. Since portable code cannot
15531 # rely on this symbol name, it's probably fine to never include it in
15532 # preloaded symbol tables.
15533 # Exclude shared library initialization/finalization symbols.
15534 extract_expsyms_cmds=
15536 case $host_os in
15537 cygwin* | mingw* | pw32* | cegcc*)
15538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539 # When not using gcc, we currently assume that we are using
15540 # Microsoft Visual C++.
15541 if test "$GCC" != yes; then
15542 with_gnu_ld=no
15545 interix*)
15546 # we just hope/assume this is gcc and not c89 (= MSVC++)
15547 with_gnu_ld=yes
15549 openbsd*)
15550 with_gnu_ld=no
15552 esac
15554 ld_shlibs=yes
15556 # On some targets, GNU ld is compatible enough with the native linker
15557 # that we're better off using the native interface for both.
15558 lt_use_gnu_ld_interface=no
15559 if test "$with_gnu_ld" = yes; then
15560 case $host_os in
15561 aix*)
15562 # The AIX port of GNU ld has always aspired to compatibility
15563 # with the native linker. However, as the warning in the GNU ld
15564 # block says, versions before 2.19.5* couldn't really create working
15565 # shared libraries, regardless of the interface used.
15566 case `$LD -v 2>&1` in
15567 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15568 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15569 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15571 lt_use_gnu_ld_interface=yes
15573 esac
15576 lt_use_gnu_ld_interface=yes
15578 esac
15581 if test "$lt_use_gnu_ld_interface" = yes; then
15582 # If archive_cmds runs LD, not CC, wlarc should be empty
15583 wlarc='${wl}'
15585 # Set some defaults for GNU ld with shared library support. These
15586 # are reset later if shared libraries are not supported. Putting them
15587 # here allows them to be overridden if necessary.
15588 runpath_var=LD_RUN_PATH
15589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15590 export_dynamic_flag_spec='${wl}--export-dynamic'
15591 # ancient GNU ld didn't support --whole-archive et. al.
15592 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15593 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15594 else
15595 whole_archive_flag_spec=
15597 supports_anon_versioning=no
15598 case `$LD -v 2>&1` in
15599 *GNU\ gold*) supports_anon_versioning=yes ;;
15600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15603 *\ 2.11.*) ;; # other 2.11 versions
15604 *) supports_anon_versioning=yes ;;
15605 esac
15607 # See if GNU ld supports shared libraries.
15608 case $host_os in
15609 aix[3-9]*)
15610 # On AIX/PPC, the GNU linker is very broken
15611 if test "$host_cpu" != ia64; then
15612 ld_shlibs=no
15613 cat <<_LT_EOF 1>&2
15615 *** Warning: the GNU linker, at least up to release 2.19, is reported
15616 *** to be unable to reliably create shared libraries on AIX.
15617 *** Therefore, libtool is disabling shared libraries support. If you
15618 *** really care for shared libraries, you may want to install binutils
15619 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15620 *** You will then need to restart the configuration process.
15622 _LT_EOF
15626 amigaos*)
15627 case $host_cpu in
15628 powerpc)
15629 # see comment about AmigaOS4 .so support
15630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631 archive_expsym_cmds=''
15633 m68k)
15634 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)'
15635 hardcode_libdir_flag_spec='-L$libdir'
15636 hardcode_minus_L=yes
15638 esac
15641 beos*)
15642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15643 allow_undefined_flag=unsupported
15644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15645 # support --undefined. This deserves some investigation. FIXME
15646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647 else
15648 ld_shlibs=no
15652 cygwin* | mingw* | pw32* | cegcc*)
15653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15654 # as there is no search path for DLLs.
15655 hardcode_libdir_flag_spec='-L$libdir'
15656 export_dynamic_flag_spec='${wl}--export-all-symbols'
15657 allow_undefined_flag=unsupported
15658 always_export_symbols=no
15659 enable_shared_with_static_runtimes=yes
15660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15664 # If the export-symbols file already is a .def file (1st line
15665 # is EXPORTS), use it as is; otherwise, prepend...
15666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15667 cp $export_symbols $output_objdir/$soname.def;
15668 else
15669 echo EXPORTS > $output_objdir/$soname.def;
15670 cat $export_symbols >> $output_objdir/$soname.def;
15672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15673 else
15674 ld_shlibs=no
15678 haiku*)
15679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 link_all_deplibs=yes
15683 interix[3-9]*)
15684 hardcode_direct=no
15685 hardcode_shlibpath_var=no
15686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15687 export_dynamic_flag_spec='${wl}-E'
15688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15689 # Instead, shared libraries are loaded at an image base (0x10000000 by
15690 # default) and relocated if they conflict, which is a slow very memory
15691 # consuming and fragmenting process. To avoid this, we pick a random,
15692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15695 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'
15698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15699 tmp_diet=no
15700 if test "$host_os" = linux-dietlibc; then
15701 case $cc_basename in
15702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15703 esac
15705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15706 && test "$tmp_diet" = no
15707 then
15708 tmp_addflag=
15709 tmp_sharedflag='-shared'
15710 case $cc_basename,$host_cpu in
15711 pgcc*) # Portland Group C compiler
15712 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'
15713 tmp_addflag=' $pic_flag'
15715 pgf77* | pgf90* | pgf95* | pgfortran*)
15716 # Portland Group f77 and f90 compilers
15717 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'
15718 tmp_addflag=' $pic_flag -Mnomain' ;;
15719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15720 tmp_addflag=' -i_dynamic' ;;
15721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15722 tmp_addflag=' -i_dynamic -nofor_main' ;;
15723 ifc* | ifort*) # Intel Fortran compiler
15724 tmp_addflag=' -nofor_main' ;;
15725 lf95*) # Lahey Fortran 8.1
15726 whole_archive_flag_spec=
15727 tmp_sharedflag='--shared' ;;
15728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15729 tmp_sharedflag='-qmkshrobj'
15730 tmp_addflag= ;;
15731 nvcc*) # Cuda Compiler Driver 2.2
15732 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'
15733 compiler_needs_object=yes
15735 esac
15736 case `$CC -V 2>&1 | sed 5q` in
15737 *Sun\ C*) # Sun C 5.9
15738 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'
15739 compiler_needs_object=yes
15740 tmp_sharedflag='-G' ;;
15741 *Sun\ F*) # Sun Fortran 8.3
15742 tmp_sharedflag='-G' ;;
15743 esac
15744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746 if test "x$supports_anon_versioning" = xyes; then
15747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15749 echo "local: *; };" >> $output_objdir/$libname.ver~
15750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15753 case $cc_basename in
15754 xlf* | bgf* | bgxlf* | mpixlf*)
15755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15757 hardcode_libdir_flag_spec=
15758 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15759 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15760 if test "x$supports_anon_versioning" = xyes; then
15761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15763 echo "local: *; };" >> $output_objdir/$libname.ver~
15764 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15767 esac
15768 else
15769 ld_shlibs=no
15773 netbsd*)
15774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15776 wlarc=
15777 else
15778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15783 solaris*)
15784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15785 ld_shlibs=no
15786 cat <<_LT_EOF 1>&2
15788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15789 *** create shared libraries on Solaris systems. Therefore, libtool
15790 *** is disabling shared libraries support. We urge you to upgrade GNU
15791 *** binutils to release 2.9.1 or newer. Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15795 _LT_EOF
15796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15799 else
15800 ld_shlibs=no
15804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15805 case `$LD -v 2>&1` in
15806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15807 ld_shlibs=no
15808 cat <<_LT_EOF 1>&2
15810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15811 *** reliably create shared libraries on SCO systems. Therefore, libtool
15812 *** is disabling shared libraries support. We urge you to upgrade GNU
15813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15814 *** your PATH or compiler configuration so that the native linker is
15815 *** used, and then restart.
15817 _LT_EOF
15820 # For security reasons, it is highly recommended that you always
15821 # use absolute paths for naming shared libraries, and exclude the
15822 # DT_RUNPATH tag from executables and libraries. But doing so
15823 # requires that you compile everything twice, which is a pain.
15824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15828 else
15829 ld_shlibs=no
15832 esac
15835 sunos4*)
15836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15837 wlarc=
15838 hardcode_direct=yes
15839 hardcode_shlibpath_var=no
15843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15846 else
15847 ld_shlibs=no
15850 esac
15852 if test "$ld_shlibs" = no; then
15853 runpath_var=
15854 hardcode_libdir_flag_spec=
15855 export_dynamic_flag_spec=
15856 whole_archive_flag_spec=
15858 else
15859 # PORTME fill in a description of your system's linker (not GNU ld)
15860 case $host_os in
15861 aix3*)
15862 allow_undefined_flag=unsupported
15863 always_export_symbols=yes
15864 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'
15865 # Note: this linker hardcodes the directories in LIBPATH if there
15866 # are no directories specified by -L.
15867 hardcode_minus_L=yes
15868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15869 # Neither direct hardcoding nor static linking is supported with a
15870 # broken collect2.
15871 hardcode_direct=unsupported
15875 aix[4-9]*)
15876 if test "$host_cpu" = ia64; then
15877 # On IA64, the linker does run time linking by default, so we don't
15878 # have to do anything special.
15879 aix_use_runtimelinking=no
15880 exp_sym_flag='-Bexport'
15881 no_entry_flag=""
15882 else
15883 # If we're using GNU nm, then we don't want the "-C" option.
15884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15885 # Also, AIX nm treats weak defined symbols like other global
15886 # defined symbols, whereas GNU nm marks them as "W".
15887 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15888 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'
15889 else
15890 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'
15892 aix_use_runtimelinking=no
15894 # Test if we are trying to use run time linking or normal
15895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15896 # need to do runtime linking.
15897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15898 for ld_flag in $LDFLAGS; do
15899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15900 aix_use_runtimelinking=yes
15901 break
15903 done
15905 esac
15907 exp_sym_flag='-bexport'
15908 no_entry_flag='-bnoentry'
15911 # When large executables or shared objects are built, AIX ld can
15912 # have problems creating the table of contents. If linking a library
15913 # or program results in "error TOC overflow" add -mminimal-toc to
15914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15917 archive_cmds=''
15918 hardcode_direct=yes
15919 hardcode_direct_absolute=yes
15920 hardcode_libdir_separator=':'
15921 link_all_deplibs=yes
15922 file_list_spec='${wl}-f,'
15924 if test "$GCC" = yes; then
15925 case $host_os in aix4.[012]|aix4.[012].*)
15926 # We only want to do this on AIX 4.2 and lower, the check
15927 # below for broken collect2 doesn't work under 4.3+
15928 collect2name=`${CC} -print-prog-name=collect2`
15929 if test -f "$collect2name" &&
15930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15931 then
15932 # We have reworked collect2
15934 else
15935 # We have old collect2
15936 hardcode_direct=unsupported
15937 # It fails to find uninstalled libraries when the uninstalled
15938 # path is not listed in the libpath. Setting hardcode_minus_L
15939 # to unsupported forces relinking
15940 hardcode_minus_L=yes
15941 hardcode_libdir_flag_spec='-L$libdir'
15942 hardcode_libdir_separator=
15945 esac
15946 shared_flag='-shared'
15947 if test "$aix_use_runtimelinking" = yes; then
15948 shared_flag="$shared_flag "'${wl}-G'
15950 else
15951 # not using gcc
15952 if test "$host_cpu" = ia64; then
15953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15954 # chokes on -Wl,-G. The following line is correct:
15955 shared_flag='-G'
15956 else
15957 if test "$aix_use_runtimelinking" = yes; then
15958 shared_flag='${wl}-G'
15959 else
15960 shared_flag='${wl}-bM:SRE'
15965 export_dynamic_flag_spec='${wl}-bexpall'
15966 # It seems that -bexpall does not export symbols beginning with
15967 # underscore (_), so it is better to generate a list of symbols to export.
15968 always_export_symbols=yes
15969 if test "$aix_use_runtimelinking" = yes; then
15970 # Warning - without using the other runtime loading flags (-brtl),
15971 # -berok will link without error, but may produce a broken library.
15972 allow_undefined_flag='-berok'
15973 # Determine the default libpath from the value encoded in an
15974 # empty executable.
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15979 main ()
15983 return 0;
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15988 lt_aix_libpath_sed='
15989 /Import File Strings/,/^$/ {
15990 /^0/ {
15991 s/^0 *\(.*\)$/\1/
15995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15996 # Check for a 64-bit object if we didn't find anything.
15997 if test -z "$aix_libpath"; then
15998 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16006 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"
16007 else
16008 if test "$host_cpu" = ia64; then
16009 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16010 allow_undefined_flag="-z nodefs"
16011 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"
16012 else
16013 # Determine the default libpath from the value encoded in an
16014 # empty executable.
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16019 main ()
16023 return 0;
16025 _ACEOF
16026 if ac_fn_c_try_link "$LINENO"; then :
16028 lt_aix_libpath_sed='
16029 /Import File Strings/,/^$/ {
16030 /^0/ {
16031 s/^0 *\(.*\)$/\1/
16035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16036 # Check for a 64-bit object if we didn't find anything.
16037 if test -z "$aix_libpath"; then
16038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16041 rm -f core conftest.err conftest.$ac_objext \
16042 conftest$ac_exeext conftest.$ac_ext
16043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16046 # Warning - without using the other run time loading flags,
16047 # -berok will link without error, but may produce a broken library.
16048 no_undefined_flag=' ${wl}-bernotok'
16049 allow_undefined_flag=' ${wl}-berok'
16050 if test "$with_gnu_ld" = yes; then
16051 # We only use this code for GNU lds that support --whole-archive.
16052 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16053 else
16054 # Exported symbols can be pulled into shared objects from archives
16055 whole_archive_flag_spec='$convenience'
16057 archive_cmds_need_lc=yes
16058 # This is similar to how AIX traditionally builds its shared libraries.
16059 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'
16064 amigaos*)
16065 case $host_cpu in
16066 powerpc)
16067 # see comment about AmigaOS4 .so support
16068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069 archive_expsym_cmds=''
16071 m68k)
16072 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)'
16073 hardcode_libdir_flag_spec='-L$libdir'
16074 hardcode_minus_L=yes
16076 esac
16079 bsdi[45]*)
16080 export_dynamic_flag_spec=-rdynamic
16083 cygwin* | mingw* | pw32* | cegcc*)
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 # hardcode_libdir_flag_spec is actually meaningless, as there is
16087 # no search path for DLLs.
16088 hardcode_libdir_flag_spec=' '
16089 allow_undefined_flag=unsupported
16090 # Tell ltmain to make .lib files, not .a files.
16091 libext=lib
16092 # Tell ltmain to make .dll files, not .so files.
16093 shrext_cmds=".dll"
16094 # FIXME: Setting linknames here is a bad hack.
16095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16096 # The linker will automatically build a .lib file if we build a DLL.
16097 old_archive_from_new_cmds='true'
16098 # FIXME: Should let the user specify the lib program.
16099 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16100 fix_srcfile_path='`cygpath -w "$srcfile"`'
16101 enable_shared_with_static_runtimes=yes
16104 darwin* | rhapsody*)
16107 archive_cmds_need_lc=no
16108 hardcode_direct=no
16109 hardcode_automatic=yes
16110 hardcode_shlibpath_var=unsupported
16111 if test "$lt_cv_ld_force_load" = "yes"; then
16112 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\"`'
16113 else
16114 whole_archive_flag_spec=''
16116 link_all_deplibs=yes
16117 allow_undefined_flag="$_lt_dar_allow_undefined"
16118 case $cc_basename in
16119 ifort*) _lt_dar_can_shared=yes ;;
16120 *) _lt_dar_can_shared=$GCC ;;
16121 esac
16122 if test "$_lt_dar_can_shared" = "yes"; then
16123 output_verbose_link_cmd=func_echo_all
16124 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16125 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16126 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}"
16127 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}"
16129 else
16130 ld_shlibs=no
16135 dgux*)
16136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_libdir_flag_spec='-L$libdir'
16138 hardcode_shlibpath_var=no
16141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16142 # support. Future versions do this automatically, but an explicit c++rt0.o
16143 # does not break anything, and helps significantly (at the cost of a little
16144 # extra space).
16145 freebsd2.2*)
16146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16147 hardcode_libdir_flag_spec='-R$libdir'
16148 hardcode_direct=yes
16149 hardcode_shlibpath_var=no
16152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16153 freebsd2*)
16154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_direct=yes
16156 hardcode_minus_L=yes
16157 hardcode_shlibpath_var=no
16160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16161 freebsd* | dragonfly*)
16162 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16163 hardcode_libdir_flag_spec='-R$libdir'
16164 hardcode_direct=yes
16165 hardcode_shlibpath_var=no
16168 hpux9*)
16169 if test "$GCC" = yes; then
16170 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'
16171 else
16172 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'
16174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16175 hardcode_libdir_separator=:
16176 hardcode_direct=yes
16178 # hardcode_minus_L: Not really in the search PATH,
16179 # but as the default location of the library.
16180 hardcode_minus_L=yes
16181 export_dynamic_flag_spec='${wl}-E'
16184 hpux10*)
16185 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16186 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16187 else
16188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16190 if test "$with_gnu_ld" = no; then
16191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16192 hardcode_libdir_flag_spec_ld='+b $libdir'
16193 hardcode_libdir_separator=:
16194 hardcode_direct=yes
16195 hardcode_direct_absolute=yes
16196 export_dynamic_flag_spec='${wl}-E'
16197 # hardcode_minus_L: Not really in the search PATH,
16198 # but as the default location of the library.
16199 hardcode_minus_L=yes
16203 hpux11*)
16204 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16205 case $host_cpu in
16206 hppa*64*)
16207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16209 ia64*)
16210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16213 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16215 esac
16216 else
16217 case $host_cpu in
16218 hppa*64*)
16219 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 ia64*)
16222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16226 # Older versions of the 11.00 compiler do not understand -b yet
16227 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16229 $as_echo_n "checking if $CC understands -b... " >&6; }
16230 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 lt_cv_prog_compiler__b=no
16234 save_LDFLAGS="$LDFLAGS"
16235 LDFLAGS="$LDFLAGS -b"
16236 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16238 # The linker can only warn and ignore the option if not recognized
16239 # So say no if there are warnings
16240 if test -s conftest.err; then
16241 # Append any errors to the config.log.
16242 cat conftest.err 1>&5
16243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16245 if diff conftest.exp conftest.er2 >/dev/null; then
16246 lt_cv_prog_compiler__b=yes
16248 else
16249 lt_cv_prog_compiler__b=yes
16252 $RM -r conftest*
16253 LDFLAGS="$save_LDFLAGS"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16257 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16259 if test x"$lt_cv_prog_compiler__b" = xyes; then
16260 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16261 else
16262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16266 esac
16268 if test "$with_gnu_ld" = no; then
16269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16270 hardcode_libdir_separator=:
16272 case $host_cpu in
16273 hppa*64*|ia64*)
16274 hardcode_direct=no
16275 hardcode_shlibpath_var=no
16278 hardcode_direct=yes
16279 hardcode_direct_absolute=yes
16280 export_dynamic_flag_spec='${wl}-E'
16282 # hardcode_minus_L: Not really in the search PATH,
16283 # but as the default location of the library.
16284 hardcode_minus_L=yes
16286 esac
16290 irix5* | irix6* | nonstopux*)
16291 if test "$GCC" = yes; then
16292 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'
16293 # Try to use the -exported_symbol ld option, if it does not
16294 # work, assume that -exports_file does not work either and
16295 # implicitly export all symbols.
16296 save_LDFLAGS="$LDFLAGS"
16297 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 int foo(void) {}
16301 _ACEOF
16302 if ac_fn_c_try_link "$LINENO"; then :
16303 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'
16306 rm -f core conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308 LDFLAGS="$save_LDFLAGS"
16309 else
16310 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'
16311 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'
16313 archive_cmds_need_lc='no'
16314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16315 hardcode_libdir_separator=:
16316 inherit_rpath=yes
16317 link_all_deplibs=yes
16320 netbsd*)
16321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16323 else
16324 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16326 hardcode_libdir_flag_spec='-R$libdir'
16327 hardcode_direct=yes
16328 hardcode_shlibpath_var=no
16331 newsos6)
16332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_direct=yes
16334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16335 hardcode_libdir_separator=:
16336 hardcode_shlibpath_var=no
16339 *nto* | *qnx*)
16342 openbsd*)
16343 if test -f /usr/libexec/ld.so; then
16344 hardcode_direct=yes
16345 hardcode_shlibpath_var=no
16346 hardcode_direct_absolute=yes
16347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16349 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16351 export_dynamic_flag_spec='${wl}-E'
16352 else
16353 case $host_os in
16354 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16356 hardcode_libdir_flag_spec='-R$libdir'
16359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16362 esac
16364 else
16365 ld_shlibs=no
16369 os2*)
16370 hardcode_libdir_flag_spec='-L$libdir'
16371 hardcode_minus_L=yes
16372 allow_undefined_flag=unsupported
16373 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'
16374 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16377 osf3*)
16378 if test "$GCC" = yes; then
16379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16380 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'
16381 else
16382 allow_undefined_flag=' -expect_unresolved \*'
16383 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'
16385 archive_cmds_need_lc='no'
16386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16387 hardcode_libdir_separator=:
16390 osf4* | osf5*) # as osf3* with the addition of -msym flag
16391 if test "$GCC" = yes; then
16392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16393 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'
16394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16395 else
16396 allow_undefined_flag=' -expect_unresolved \*'
16397 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'
16398 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~
16399 $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'
16401 # Both c and cxx compiler support -rpath directly
16402 hardcode_libdir_flag_spec='-rpath $libdir'
16404 archive_cmds_need_lc='no'
16405 hardcode_libdir_separator=:
16408 solaris*)
16409 no_undefined_flag=' -z defs'
16410 if test "$GCC" = yes; then
16411 wlarc='${wl}'
16412 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16414 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16415 else
16416 case `$CC -V 2>&1` in
16417 *"Compilers 5.0"*)
16418 wlarc=''
16419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16424 wlarc='${wl}'
16425 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16426 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16427 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16429 esac
16431 hardcode_libdir_flag_spec='-R$libdir'
16432 hardcode_shlibpath_var=no
16433 case $host_os in
16434 solaris2.[0-5] | solaris2.[0-5].*) ;;
16436 # The compiler driver will combine and reorder linker options,
16437 # but understands `-z linker_flag'. GCC discards it without `$wl',
16438 # but is careful enough not to reorder.
16439 # Supported since Solaris 2.6 (maybe 2.5.1?)
16440 if test "$GCC" = yes; then
16441 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16442 else
16443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16446 esac
16447 link_all_deplibs=yes
16450 sunos4*)
16451 if test "x$host_vendor" = xsequent; then
16452 # Use $CC to link under sequent, because it throws in some extra .o
16453 # files that make .init and .fini sections work.
16454 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16455 else
16456 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_libdir_flag_spec='-L$libdir'
16459 hardcode_direct=yes
16460 hardcode_minus_L=yes
16461 hardcode_shlibpath_var=no
16464 sysv4)
16465 case $host_vendor in
16466 sni)
16467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_direct=yes # is this really true???
16470 siemens)
16471 ## LD is ld it makes a PLAMLIB
16472 ## CC just makes a GrossModule.
16473 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16474 reload_cmds='$CC -r -o $output$reload_objs'
16475 hardcode_direct=no
16477 motorola)
16478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16479 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16481 esac
16482 runpath_var='LD_RUN_PATH'
16483 hardcode_shlibpath_var=no
16486 sysv4.3*)
16487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488 hardcode_shlibpath_var=no
16489 export_dynamic_flag_spec='-Bexport'
16492 sysv4*MP*)
16493 if test -d /usr/nec; then
16494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_shlibpath_var=no
16496 runpath_var=LD_RUN_PATH
16497 hardcode_runpath_var=yes
16498 ld_shlibs=yes
16502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16503 no_undefined_flag='${wl}-z,text'
16504 archive_cmds_need_lc=no
16505 hardcode_shlibpath_var=no
16506 runpath_var='LD_RUN_PATH'
16508 if test "$GCC" = yes; then
16509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 else
16512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 sysv5* | sco3.2v5* | sco5v6*)
16518 # Note: We can NOT use -z defs as we might desire, because we do not
16519 # link with -lc, and that would cause any symbols used from libc to
16520 # always be unresolved, which means just about no library would
16521 # ever link correctly. If we're not using GNU ld we use -z text
16522 # though, which does catch some bad symbols but isn't as heavy-handed
16523 # as -z defs.
16524 no_undefined_flag='${wl}-z,text'
16525 allow_undefined_flag='${wl}-z,nodefs'
16526 archive_cmds_need_lc=no
16527 hardcode_shlibpath_var=no
16528 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16529 hardcode_libdir_separator=':'
16530 link_all_deplibs=yes
16531 export_dynamic_flag_spec='${wl}-Bexport'
16532 runpath_var='LD_RUN_PATH'
16534 if test "$GCC" = yes; then
16535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 else
16538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 uts4*)
16544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545 hardcode_libdir_flag_spec='-L$libdir'
16546 hardcode_shlibpath_var=no
16550 ld_shlibs=no
16552 esac
16554 if test x$host_vendor = xsni; then
16555 case $host in
16556 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16557 export_dynamic_flag_spec='${wl}-Blargedynsym'
16559 esac
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16564 $as_echo "$ld_shlibs" >&6; }
16565 test "$ld_shlibs" = no && can_build_shared=no
16567 with_gnu_ld=$with_gnu_ld
16584 # Do we need to explicitly link libc?
16586 case "x$archive_cmds_need_lc" in
16587 x|xyes)
16588 # Assume -lc should be added
16589 archive_cmds_need_lc=yes
16591 if test "$enable_shared" = yes && test "$GCC" = yes; then
16592 case $archive_cmds in
16593 *'~'*)
16594 # FIXME: we may have to deal with multi-command sequences.
16596 '$CC '*)
16597 # Test whether the compiler implicitly links with -lc since on some
16598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16599 # to ld, don't add -lc before -lgcc.
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16602 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 $RM conftest*
16606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16609 (eval $ac_compile) 2>&5
16610 ac_status=$?
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; } 2>conftest.err; then
16613 soname=conftest
16614 lib=conftest
16615 libobjs=conftest.$ac_objext
16616 deplibs=
16617 wl=$lt_prog_compiler_wl
16618 pic_flag=$lt_prog_compiler_pic
16619 compiler_flags=-v
16620 linker_flags=-v
16621 verstring=
16622 output_objdir=.
16623 libname=conftest
16624 lt_save_allow_undefined_flag=$allow_undefined_flag
16625 allow_undefined_flag=
16626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16627 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16628 ac_status=$?
16629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16630 test $ac_status = 0; }
16631 then
16632 lt_cv_archive_cmds_need_lc=no
16633 else
16634 lt_cv_archive_cmds_need_lc=yes
16636 allow_undefined_flag=$lt_save_allow_undefined_flag
16637 else
16638 cat conftest.err 1>&5
16640 $RM conftest*
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16644 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16645 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16647 esac
16650 esac
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16811 if test "$GCC" = yes; then
16812 case $host_os in
16813 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16814 *) lt_awk_arg="/^libraries:/" ;;
16815 esac
16816 case $host_os in
16817 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16818 *) lt_sed_strip_eq="s,=/,/,g" ;;
16819 esac
16820 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16821 case $lt_search_path_spec in
16822 *\;*)
16823 # if the path contains ";" then we assume it to be the separator
16824 # otherwise default to the standard path separator (i.e. ":") - it is
16825 # assumed that no part of a normal pathname contains ";" but that should
16826 # okay in the real world where ";" in dirpaths is itself problematic.
16827 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16830 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16832 esac
16833 # Ok, now we have the path, separated by spaces, we can step through it
16834 # and add multilib dir if necessary.
16835 lt_tmp_lt_search_path_spec=
16836 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16837 for lt_sys_path in $lt_search_path_spec; do
16838 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16839 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16840 else
16841 test -d "$lt_sys_path" && \
16842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16844 done
16845 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16846 BEGIN {RS=" "; FS="/|\n";} {
16847 lt_foo="";
16848 lt_count=0;
16849 for (lt_i = NF; lt_i > 0; lt_i--) {
16850 if ($lt_i != "" && $lt_i != ".") {
16851 if ($lt_i == "..") {
16852 lt_count++;
16853 } else {
16854 if (lt_count == 0) {
16855 lt_foo="/" $lt_i lt_foo;
16856 } else {
16857 lt_count--;
16862 if (lt_foo != "") { lt_freq[lt_foo]++; }
16863 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16865 # AWK program above erroneously prepends '/' to C:/dos/paths
16866 # for these hosts.
16867 case $host_os in
16868 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16869 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16870 esac
16871 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16872 else
16873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16875 library_names_spec=
16876 libname_spec='lib$name'
16877 soname_spec=
16878 shrext_cmds=".so"
16879 postinstall_cmds=
16880 postuninstall_cmds=
16881 finish_cmds=
16882 finish_eval=
16883 shlibpath_var=
16884 shlibpath_overrides_runpath=unknown
16885 version_type=none
16886 dynamic_linker="$host_os ld.so"
16887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16895 case $host_os in
16896 aix3*)
16897 version_type=linux
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899 shlibpath_var=LIBPATH
16901 # AIX 3 has no versioning support, so we append a major version to the name.
16902 soname_spec='${libname}${release}${shared_ext}$major'
16905 aix[4-9]*)
16906 version_type=linux
16907 need_lib_prefix=no
16908 need_version=no
16909 hardcode_into_libs=yes
16910 if test "$host_cpu" = ia64; then
16911 # AIX 5 supports IA64
16912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 else
16915 # With GCC up to 2.95.x, collect2 would create an import file
16916 # for dependence libraries. The import file would start with
16917 # the line `#! .'. This would cause the generated library to
16918 # depend on `.', always an invalid library. This was fixed in
16919 # development snapshots of GCC prior to 3.0.
16920 case $host_os in
16921 aix4 | aix4.[01] | aix4.[01].*)
16922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16923 echo ' yes '
16924 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16926 else
16927 can_build_shared=no
16930 esac
16931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932 # soname into executable. Probably we can add versioning support to
16933 # collect2, so additional links can be useful in future.
16934 if test "$aix_use_runtimelinking" = yes; then
16935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936 # instead of lib<name>.a to let people know that these are not
16937 # typical AIX shared libraries.
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 else
16940 # We preserve .a as extension for shared libraries through AIX4.2
16941 # and later when we are not doing run time linking.
16942 library_names_spec='${libname}${release}.a $libname.a'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LIBPATH
16949 amigaos*)
16950 case $host_cpu in
16951 powerpc)
16952 # Since July 2007 AmigaOS4 officially supports .so libraries.
16953 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 m68k)
16957 library_names_spec='$libname.ixlibrary $libname.a'
16958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959 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'
16961 esac
16964 beos*)
16965 library_names_spec='${libname}${shared_ext}'
16966 dynamic_linker="$host_os ld.so"
16967 shlibpath_var=LIBRARY_PATH
16970 bsdi[45]*)
16971 version_type=linux
16972 need_version=no
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16979 # the default ld.so.conf also contains /usr/contrib/lib and
16980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16981 # libtool to hard-code these into programs
16984 cygwin* | mingw* | pw32* | cegcc*)
16985 version_type=windows
16986 shrext_cmds=".dll"
16987 need_version=no
16988 need_lib_prefix=no
16990 case $GCC,$host_os in
16991 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16992 library_names_spec='$libname.dll.a'
16993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16994 postinstall_cmds='base_file=`basename \${file}`~
16995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16996 dldir=$destdir/`dirname \$dlpath`~
16997 test -d \$dldir || mkdir -p \$dldir~
16998 $install_prog $dir/$dlname \$dldir/$dlname~
16999 chmod a+x \$dldir/$dlname~
17000 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17001 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17004 dlpath=$dir/\$dldll~
17005 $RM \$dlpath'
17006 shlibpath_overrides_runpath=yes
17008 case $host_os in
17009 cygwin*)
17010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17011 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17015 mingw* | cegcc*)
17016 # MinGW DLLs use traditional 'lib' prefix
17017 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17019 pw32*)
17020 # pw32 DLLs use 'pw' prefix rather than 'lib'
17021 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17023 esac
17027 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17029 esac
17030 dynamic_linker='Win32 ld.exe'
17031 # FIXME: first we should search . and the directory the executable is in
17032 shlibpath_var=PATH
17035 darwin* | rhapsody*)
17036 dynamic_linker="$host_os dyld"
17037 version_type=darwin
17038 need_lib_prefix=no
17039 need_version=no
17040 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17041 soname_spec='${libname}${release}${major}$shared_ext'
17042 shlibpath_overrides_runpath=yes
17043 shlibpath_var=DYLD_LIBRARY_PATH
17044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17050 dgux*)
17051 version_type=linux
17052 need_lib_prefix=no
17053 need_version=no
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 shlibpath_var=LD_LIBRARY_PATH
17059 freebsd* | dragonfly*)
17060 # DragonFly does not have aout. When/if they implement a new
17061 # versioning mechanism, adjust this.
17062 if test -x /usr/bin/objformat; then
17063 objformat=`/usr/bin/objformat`
17064 else
17065 case $host_os in
17066 freebsd[123]*) objformat=aout ;;
17067 *) objformat=elf ;;
17068 esac
17070 version_type=freebsd-$objformat
17071 case $version_type in
17072 freebsd-elf*)
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17074 need_version=no
17075 need_lib_prefix=no
17077 freebsd-*)
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17079 need_version=yes
17081 esac
17082 shlibpath_var=LD_LIBRARY_PATH
17083 case $host_os in
17084 freebsd2*)
17085 shlibpath_overrides_runpath=yes
17087 freebsd3.[01]* | freebsdelf3.[01]*)
17088 shlibpath_overrides_runpath=yes
17089 hardcode_into_libs=yes
17091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17093 shlibpath_overrides_runpath=no
17094 hardcode_into_libs=yes
17096 *) # from 4.6 on, and DragonFly
17097 shlibpath_overrides_runpath=yes
17098 hardcode_into_libs=yes
17100 esac
17103 gnu*)
17104 version_type=linux
17105 need_lib_prefix=no
17106 need_version=no
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 hardcode_into_libs=yes
17113 haiku*)
17114 version_type=linux
17115 need_lib_prefix=no
17116 need_version=no
17117 dynamic_linker="$host_os runtime_loader"
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LIBRARY_PATH
17121 shlibpath_overrides_runpath=yes
17122 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17123 hardcode_into_libs=yes
17126 hpux9* | hpux10* | hpux11*)
17127 # Give a soname corresponding to the major version so that dld.sl refuses to
17128 # link against other versions.
17129 version_type=sunos
17130 need_lib_prefix=no
17131 need_version=no
17132 case $host_cpu in
17133 ia64*)
17134 shrext_cmds='.so'
17135 hardcode_into_libs=yes
17136 dynamic_linker="$host_os dld.so"
17137 shlibpath_var=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 soname_spec='${libname}${release}${shared_ext}$major'
17141 if test "X$HPUX_IA64_MODE" = X32; then
17142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17143 else
17144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17148 hppa*64*)
17149 shrext_cmds='.sl'
17150 hardcode_into_libs=yes
17151 dynamic_linker="$host_os dld.sl"
17152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17160 shrext_cmds='.sl'
17161 dynamic_linker="$host_os dld.sl"
17162 shlibpath_var=SHLIB_PATH
17163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17167 esac
17168 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17169 postinstall_cmds='chmod 555 $lib'
17170 # or fails outright, so override atomically:
17171 install_override_mode=555
17174 interix[3-9]*)
17175 version_type=linux
17176 need_lib_prefix=no
17177 need_version=no
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17179 soname_spec='${libname}${release}${shared_ext}$major'
17180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=no
17183 hardcode_into_libs=yes
17186 irix5* | irix6* | nonstopux*)
17187 case $host_os in
17188 nonstopux*) version_type=nonstopux ;;
17190 if test "$lt_cv_prog_gnu_ld" = yes; then
17191 version_type=linux
17192 else
17193 version_type=irix
17194 fi ;;
17195 esac
17196 need_lib_prefix=no
17197 need_version=no
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17200 case $host_os in
17201 irix5* | nonstopux*)
17202 libsuff= shlibsuff=
17205 case $LD in # libtool.m4 will add one of these switches to LD
17206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17207 libsuff= shlibsuff= libmagic=32-bit;;
17208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17209 libsuff=32 shlibsuff=N32 libmagic=N32;;
17210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17212 *) libsuff= shlibsuff= libmagic=never-match;;
17213 esac
17215 esac
17216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17217 shlibpath_overrides_runpath=no
17218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17220 hardcode_into_libs=yes
17223 # No shared lib support for Linux oldld, aout, or coff.
17224 linux*oldld* | linux*aout* | linux*coff*)
17225 dynamic_linker=no
17228 # This must be Linux ELF.
17229 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17230 version_type=linux
17231 need_lib_prefix=no
17232 need_version=no
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=no
17239 # Some binutils ld are patched to set DT_RUNPATH
17240 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 lt_cv_shlibpath_overrides_runpath=no
17244 save_LDFLAGS=$LDFLAGS
17245 save_libdir=$libdir
17246 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17247 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17252 main ()
17256 return 0;
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17261 lt_cv_shlibpath_overrides_runpath=yes
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 LDFLAGS=$save_LDFLAGS
17267 libdir=$save_libdir
17271 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17273 # This implies no fast_install, which is unacceptable.
17274 # Some rework will be needed to allow for fast_install
17275 # before this can be enabled.
17276 hardcode_into_libs=yes
17278 # Append ld.so.conf contents to the search path
17279 if test -f /etc/ld.so.conf; then
17280 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' ' '`
17281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17284 # We used to test for /lib/ld.so.1 and disable shared libraries on
17285 # powerpc, because MkLinux only supported shared libraries with the
17286 # GNU dynamic linker. Since this was broken with cross compilers,
17287 # most powerpc-linux boxes support dynamic linking these days and
17288 # people can always --disable-shared, the test was removed, and we
17289 # assume the GNU/Linux dynamic linker is in use.
17290 dynamic_linker='GNU/Linux ld.so'
17293 netbsd*)
17294 version_type=sunos
17295 need_lib_prefix=no
17296 need_version=no
17297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17300 dynamic_linker='NetBSD (a.out) ld.so'
17301 else
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 dynamic_linker='NetBSD ld.elf_so'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=yes
17308 hardcode_into_libs=yes
17311 newsos6)
17312 version_type=linux
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=yes
17318 *nto* | *qnx*)
17319 version_type=qnx
17320 need_lib_prefix=no
17321 need_version=no
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath=no
17326 hardcode_into_libs=yes
17327 dynamic_linker='ldqnx.so'
17330 openbsd*)
17331 version_type=sunos
17332 sys_lib_dlsearch_path_spec="/usr/lib"
17333 need_lib_prefix=no
17334 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17335 case $host_os in
17336 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17337 *) need_version=no ;;
17338 esac
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17343 case $host_os in
17344 openbsd2.[89] | openbsd2.[89].*)
17345 shlibpath_overrides_runpath=no
17348 shlibpath_overrides_runpath=yes
17350 esac
17351 else
17352 shlibpath_overrides_runpath=yes
17356 os2*)
17357 libname_spec='$name'
17358 shrext_cmds=".dll"
17359 need_lib_prefix=no
17360 library_names_spec='$libname${shared_ext} $libname.a'
17361 dynamic_linker='OS/2 ld.exe'
17362 shlibpath_var=LIBPATH
17365 osf3* | osf4* | osf5*)
17366 version_type=osf
17367 need_lib_prefix=no
17368 need_version=no
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17373 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17376 rdos*)
17377 dynamic_linker=no
17380 solaris*)
17381 version_type=linux
17382 need_lib_prefix=no
17383 need_version=no
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 soname_spec='${libname}${release}${shared_ext}$major'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 shlibpath_overrides_runpath=yes
17388 hardcode_into_libs=yes
17389 # ldd complains unless libraries are executable
17390 postinstall_cmds='chmod +x $lib'
17393 sunos4*)
17394 version_type=sunos
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath=yes
17399 if test "$with_gnu_ld" = yes; then
17400 need_lib_prefix=no
17402 need_version=yes
17405 sysv4 | sysv4.3*)
17406 version_type=linux
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 case $host_vendor in
17411 sni)
17412 shlibpath_overrides_runpath=no
17413 need_lib_prefix=no
17414 runpath_var=LD_RUN_PATH
17416 siemens)
17417 need_lib_prefix=no
17419 motorola)
17420 need_lib_prefix=no
17421 need_version=no
17422 shlibpath_overrides_runpath=no
17423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17425 esac
17428 sysv4*MP*)
17429 if test -d /usr/nec ;then
17430 version_type=linux
17431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17432 soname_spec='$libname${shared_ext}.$major'
17433 shlibpath_var=LD_LIBRARY_PATH
17437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17438 version_type=freebsd-elf
17439 need_lib_prefix=no
17440 need_version=no
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=yes
17445 hardcode_into_libs=yes
17446 if test "$with_gnu_ld" = yes; then
17447 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17448 else
17449 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17450 case $host_os in
17451 sco3.2v5*)
17452 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17454 esac
17456 sys_lib_dlsearch_path_spec='/usr/lib'
17459 tpf*)
17460 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17461 version_type=linux
17462 need_lib_prefix=no
17463 need_version=no
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=no
17467 hardcode_into_libs=yes
17470 uts4*)
17471 version_type=linux
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 shlibpath_var=LD_LIBRARY_PATH
17478 dynamic_linker=no
17480 esac
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17482 $as_echo "$dynamic_linker" >&6; }
17483 test "$dynamic_linker" = no && can_build_shared=no
17485 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17486 if test "$GCC" = yes; then
17487 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17490 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17491 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17493 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17494 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17589 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17590 hardcode_action=
17591 if test -n "$hardcode_libdir_flag_spec" ||
17592 test -n "$runpath_var" ||
17593 test "X$hardcode_automatic" = "Xyes" ; then
17595 # We can hardcode non-existent directories.
17596 if test "$hardcode_direct" != no &&
17597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17598 # have to relink, otherwise we might link with an installed library
17599 # when we should be linking with a yet-to-be-installed one
17600 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17601 test "$hardcode_minus_L" != no; then
17602 # Linking always hardcodes the temporary library directory.
17603 hardcode_action=relink
17604 else
17605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17606 hardcode_action=immediate
17608 else
17609 # We cannot hardcode anything, or else we can only hardcode existing
17610 # directories.
17611 hardcode_action=unsupported
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17614 $as_echo "$hardcode_action" >&6; }
17616 if test "$hardcode_action" = relink ||
17617 test "$inherit_rpath" = yes; then
17618 # Fast installation is not supported
17619 enable_fast_install=no
17620 elif test "$shlibpath_overrides_runpath" = yes ||
17621 test "$enable_shared" = no; then
17622 # Fast installation is not necessary
17623 enable_fast_install=needless
17631 if test "x$enable_dlopen" != xyes; then
17632 enable_dlopen=unknown
17633 enable_dlopen_self=unknown
17634 enable_dlopen_self_static=unknown
17635 else
17636 lt_cv_dlopen=no
17637 lt_cv_dlopen_libs=
17639 case $host_os in
17640 beos*)
17641 lt_cv_dlopen="load_add_on"
17642 lt_cv_dlopen_libs=
17643 lt_cv_dlopen_self=yes
17646 mingw* | pw32* | cegcc*)
17647 lt_cv_dlopen="LoadLibrary"
17648 lt_cv_dlopen_libs=
17651 cygwin*)
17652 lt_cv_dlopen="dlopen"
17653 lt_cv_dlopen_libs=
17656 darwin*)
17657 # if libdl is installed we need to link against it
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17659 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-ldl $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char dlopen ();
17676 main ()
17678 return dlopen ();
17680 return 0;
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 ac_cv_lib_dl_dlopen=yes
17685 else
17686 ac_cv_lib_dl_dlopen=no
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17693 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17694 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17696 else
17698 lt_cv_dlopen="dyld"
17699 lt_cv_dlopen_libs=
17700 lt_cv_dlopen_self=yes
17707 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17708 if test "x$ac_cv_func_shl_load" = x""yes; then :
17709 lt_cv_dlopen="shl_load"
17710 else
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17712 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17713 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17714 $as_echo_n "(cached) " >&6
17715 else
17716 ac_check_lib_save_LIBS=$LIBS
17717 LIBS="-ldld $LIBS"
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17724 #ifdef __cplusplus
17725 extern "C"
17726 #endif
17727 char shl_load ();
17729 main ()
17731 return shl_load ();
17733 return 0;
17735 _ACEOF
17736 if ac_fn_c_try_link "$LINENO"; then :
17737 ac_cv_lib_dld_shl_load=yes
17738 else
17739 ac_cv_lib_dld_shl_load=no
17741 rm -f core conftest.err conftest.$ac_objext \
17742 conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17746 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17747 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17749 else
17750 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17751 if test "x$ac_cv_func_dlopen" = x""yes; then :
17752 lt_cv_dlopen="dlopen"
17753 else
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17755 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17756 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
17758 else
17759 ac_check_lib_save_LIBS=$LIBS
17760 LIBS="-ldl $LIBS"
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 /* Override any GCC internal prototype to avoid an error.
17765 Use char because int might match the return type of a GCC
17766 builtin and then its argument prototype would still apply. */
17767 #ifdef __cplusplus
17768 extern "C"
17769 #endif
17770 char dlopen ();
17772 main ()
17774 return dlopen ();
17776 return 0;
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 ac_cv_lib_dl_dlopen=yes
17781 else
17782 ac_cv_lib_dl_dlopen=no
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 LIBS=$ac_check_lib_save_LIBS
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17789 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17790 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17792 else
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17794 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17796 $as_echo_n "(cached) " >&6
17797 else
17798 ac_check_lib_save_LIBS=$LIBS
17799 LIBS="-lsvld $LIBS"
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char dlopen ();
17811 main ()
17813 return dlopen ();
17815 return 0;
17817 _ACEOF
17818 if ac_fn_c_try_link "$LINENO"; then :
17819 ac_cv_lib_svld_dlopen=yes
17820 else
17821 ac_cv_lib_svld_dlopen=no
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17828 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17829 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17831 else
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17833 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17835 $as_echo_n "(cached) " >&6
17836 else
17837 ac_check_lib_save_LIBS=$LIBS
17838 LIBS="-ldld $LIBS"
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17842 /* Override any GCC internal prototype to avoid an error.
17843 Use char because int might match the return type of a GCC
17844 builtin and then its argument prototype would still apply. */
17845 #ifdef __cplusplus
17846 extern "C"
17847 #endif
17848 char dld_link ();
17850 main ()
17852 return dld_link ();
17854 return 0;
17856 _ACEOF
17857 if ac_fn_c_try_link "$LINENO"; then :
17858 ac_cv_lib_dld_dld_link=yes
17859 else
17860 ac_cv_lib_dld_dld_link=no
17862 rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864 LIBS=$ac_check_lib_save_LIBS
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17867 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17868 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17869 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17888 esac
17890 if test "x$lt_cv_dlopen" != xno; then
17891 enable_dlopen=yes
17892 else
17893 enable_dlopen=no
17896 case $lt_cv_dlopen in
17897 dlopen)
17898 save_CPPFLAGS="$CPPFLAGS"
17899 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17901 save_LDFLAGS="$LDFLAGS"
17902 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17904 save_LIBS="$LIBS"
17905 LIBS="$lt_cv_dlopen_libs $LIBS"
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17908 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17909 if test "${lt_cv_dlopen_self+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 if test "$cross_compiling" = yes; then :
17913 lt_cv_dlopen_self=cross
17914 else
17915 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17916 lt_status=$lt_dlunknown
17917 cat > conftest.$ac_ext <<_LT_EOF
17918 #line 17918 "configure"
17919 #include "confdefs.h"
17921 #if HAVE_DLFCN_H
17922 #include <dlfcn.h>
17923 #endif
17925 #include <stdio.h>
17927 #ifdef RTLD_GLOBAL
17928 # define LT_DLGLOBAL RTLD_GLOBAL
17929 #else
17930 # ifdef DL_GLOBAL
17931 # define LT_DLGLOBAL DL_GLOBAL
17932 # else
17933 # define LT_DLGLOBAL 0
17934 # endif
17935 #endif
17937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17938 find out it does not work in some platform. */
17939 #ifndef LT_DLLAZY_OR_NOW
17940 # ifdef RTLD_LAZY
17941 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17942 # else
17943 # ifdef DL_LAZY
17944 # define LT_DLLAZY_OR_NOW DL_LAZY
17945 # else
17946 # ifdef RTLD_NOW
17947 # define LT_DLLAZY_OR_NOW RTLD_NOW
17948 # else
17949 # ifdef DL_NOW
17950 # define LT_DLLAZY_OR_NOW DL_NOW
17951 # else
17952 # define LT_DLLAZY_OR_NOW 0
17953 # endif
17954 # endif
17955 # endif
17956 # endif
17957 #endif
17959 /* When -fvisbility=hidden is used, assume the code has been annotated
17960 correspondingly for the symbols needed. */
17961 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17962 void fnord () __attribute__((visibility("default")));
17963 #endif
17965 void fnord () { int i=42; }
17966 int main ()
17968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17969 int status = $lt_dlunknown;
17971 if (self)
17973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17974 else
17976 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17977 else puts (dlerror ());
17979 /* dlclose (self); */
17981 else
17982 puts (dlerror ());
17984 return status;
17986 _LT_EOF
17987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17988 (eval $ac_link) 2>&5
17989 ac_status=$?
17990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17992 (./conftest; exit; ) >&5 2>/dev/null
17993 lt_status=$?
17994 case x$lt_status in
17995 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17996 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17997 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17998 esac
17999 else :
18000 # compilation failed
18001 lt_cv_dlopen_self=no
18004 rm -fr conftest*
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18009 $as_echo "$lt_cv_dlopen_self" >&6; }
18011 if test "x$lt_cv_dlopen_self" = xyes; then
18012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18014 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18015 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 if test "$cross_compiling" = yes; then :
18019 lt_cv_dlopen_self_static=cross
18020 else
18021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18022 lt_status=$lt_dlunknown
18023 cat > conftest.$ac_ext <<_LT_EOF
18024 #line 18024 "configure"
18025 #include "confdefs.h"
18027 #if HAVE_DLFCN_H
18028 #include <dlfcn.h>
18029 #endif
18031 #include <stdio.h>
18033 #ifdef RTLD_GLOBAL
18034 # define LT_DLGLOBAL RTLD_GLOBAL
18035 #else
18036 # ifdef DL_GLOBAL
18037 # define LT_DLGLOBAL DL_GLOBAL
18038 # else
18039 # define LT_DLGLOBAL 0
18040 # endif
18041 #endif
18043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18044 find out it does not work in some platform. */
18045 #ifndef LT_DLLAZY_OR_NOW
18046 # ifdef RTLD_LAZY
18047 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18048 # else
18049 # ifdef DL_LAZY
18050 # define LT_DLLAZY_OR_NOW DL_LAZY
18051 # else
18052 # ifdef RTLD_NOW
18053 # define LT_DLLAZY_OR_NOW RTLD_NOW
18054 # else
18055 # ifdef DL_NOW
18056 # define LT_DLLAZY_OR_NOW DL_NOW
18057 # else
18058 # define LT_DLLAZY_OR_NOW 0
18059 # endif
18060 # endif
18061 # endif
18062 # endif
18063 #endif
18065 /* When -fvisbility=hidden is used, assume the code has been annotated
18066 correspondingly for the symbols needed. */
18067 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18068 void fnord () __attribute__((visibility("default")));
18069 #endif
18071 void fnord () { int i=42; }
18072 int main ()
18074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18075 int status = $lt_dlunknown;
18077 if (self)
18079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18080 else
18082 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18083 else puts (dlerror ());
18085 /* dlclose (self); */
18087 else
18088 puts (dlerror ());
18090 return status;
18092 _LT_EOF
18093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18094 (eval $ac_link) 2>&5
18095 ac_status=$?
18096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18097 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18098 (./conftest; exit; ) >&5 2>/dev/null
18099 lt_status=$?
18100 case x$lt_status in
18101 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18102 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18103 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18104 esac
18105 else :
18106 # compilation failed
18107 lt_cv_dlopen_self_static=no
18110 rm -fr conftest*
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18115 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18118 CPPFLAGS="$save_CPPFLAGS"
18119 LDFLAGS="$save_LDFLAGS"
18120 LIBS="$save_LIBS"
18122 esac
18124 case $lt_cv_dlopen_self in
18125 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18126 *) enable_dlopen_self=unknown ;;
18127 esac
18129 case $lt_cv_dlopen_self_static in
18130 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18131 *) enable_dlopen_self_static=unknown ;;
18132 esac
18151 striplib=
18152 old_striplib=
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18154 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18155 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18156 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18157 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18159 $as_echo "yes" >&6; }
18160 else
18161 # FIXME - insert some real tests, host_os isn't really good enough
18162 case $host_os in
18163 darwin*)
18164 if test -n "$STRIP" ; then
18165 striplib="$STRIP -x"
18166 old_striplib="$STRIP -S"
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18168 $as_echo "yes" >&6; }
18169 else
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171 $as_echo "no" >&6; }
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18178 esac
18192 # Report which library types will actually be built
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18194 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18196 $as_echo "$can_build_shared" >&6; }
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18199 $as_echo_n "checking whether to build shared libraries... " >&6; }
18200 test "$can_build_shared" = "no" && enable_shared=no
18202 # On AIX, shared libraries and static libraries use the same namespace, and
18203 # are all built from PIC.
18204 case $host_os in
18205 aix3*)
18206 test "$enable_shared" = yes && enable_static=no
18207 if test -n "$RANLIB"; then
18208 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18209 postinstall_cmds='$RANLIB $lib'
18213 aix[4-9]*)
18214 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18215 test "$enable_shared" = yes && enable_static=no
18218 esac
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18220 $as_echo "$enable_shared" >&6; }
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18223 $as_echo_n "checking whether to build static libraries... " >&6; }
18224 # Make sure either enable_shared or enable_static is yes.
18225 test "$enable_shared" = yes || enable_static=yes
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18227 $as_echo "$enable_static" >&6; }
18233 ac_ext=c
18234 ac_cpp='$CPP $CPPFLAGS'
18235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18239 CC="$lt_save_CC"
18241 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18242 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18243 (test "X$CXX" != "Xg++"))) ; then
18244 ac_ext=cpp
18245 ac_cpp='$CXXCPP $CPPFLAGS'
18246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18250 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18251 if test -z "$CXXCPP"; then
18252 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18253 $as_echo_n "(cached) " >&6
18254 else
18255 # Double quotes because CXXCPP needs to be expanded
18256 for CXXCPP in "$CXX -E" "/lib/cpp"
18258 ac_preproc_ok=false
18259 for ac_cxx_preproc_warn_flag in '' yes
18261 # Use a header file that comes with gcc, so configuring glibc
18262 # with a fresh cross-compiler works.
18263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264 # <limits.h> exists even on freestanding compilers.
18265 # On the NeXT, cc -E runs the code through the compiler's parser,
18266 # not just through cpp. "Syntax error" is here to catch this case.
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18269 #ifdef __STDC__
18270 # include <limits.h>
18271 #else
18272 # include <assert.h>
18273 #endif
18274 Syntax error
18275 _ACEOF
18276 if ac_fn_cxx_try_cpp "$LINENO"; then :
18278 else
18279 # Broken: fails on valid input.
18280 continue
18282 rm -f conftest.err conftest.$ac_ext
18284 # OK, works on sane cases. Now check whether nonexistent headers
18285 # can be detected and how.
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 #include <ac_nonexistent.h>
18289 _ACEOF
18290 if ac_fn_cxx_try_cpp "$LINENO"; then :
18291 # Broken: success on invalid input.
18292 continue
18293 else
18294 # Passes both tests.
18295 ac_preproc_ok=:
18296 break
18298 rm -f conftest.err conftest.$ac_ext
18300 done
18301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18302 rm -f conftest.err conftest.$ac_ext
18303 if $ac_preproc_ok; then :
18304 break
18307 done
18308 ac_cv_prog_CXXCPP=$CXXCPP
18311 CXXCPP=$ac_cv_prog_CXXCPP
18312 else
18313 ac_cv_prog_CXXCPP=$CXXCPP
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18316 $as_echo "$CXXCPP" >&6; }
18317 ac_preproc_ok=false
18318 for ac_cxx_preproc_warn_flag in '' yes
18320 # Use a header file that comes with gcc, so configuring glibc
18321 # with a fresh cross-compiler works.
18322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18323 # <limits.h> exists even on freestanding compilers.
18324 # On the NeXT, cc -E runs the code through the compiler's parser,
18325 # not just through cpp. "Syntax error" is here to catch this case.
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18328 #ifdef __STDC__
18329 # include <limits.h>
18330 #else
18331 # include <assert.h>
18332 #endif
18333 Syntax error
18334 _ACEOF
18335 if ac_fn_cxx_try_cpp "$LINENO"; then :
18337 else
18338 # Broken: fails on valid input.
18339 continue
18341 rm -f conftest.err conftest.$ac_ext
18343 # OK, works on sane cases. Now check whether nonexistent headers
18344 # can be detected and how.
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18347 #include <ac_nonexistent.h>
18348 _ACEOF
18349 if ac_fn_cxx_try_cpp "$LINENO"; then :
18350 # Broken: success on invalid input.
18351 continue
18352 else
18353 # Passes both tests.
18354 ac_preproc_ok=:
18355 break
18357 rm -f conftest.err conftest.$ac_ext
18359 done
18360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18361 rm -f conftest.err conftest.$ac_ext
18362 if $ac_preproc_ok; then :
18364 else
18365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18367 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18368 See \`config.log' for more details." "$LINENO" 5; }
18371 ac_ext=c
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18377 else
18378 _lt_caught_CXX_error=yes
18381 ac_ext=cpp
18382 ac_cpp='$CXXCPP $CPPFLAGS'
18383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18387 archive_cmds_need_lc_CXX=no
18388 allow_undefined_flag_CXX=
18389 always_export_symbols_CXX=no
18390 archive_expsym_cmds_CXX=
18391 compiler_needs_object_CXX=no
18392 export_dynamic_flag_spec_CXX=
18393 hardcode_direct_CXX=no
18394 hardcode_direct_absolute_CXX=no
18395 hardcode_libdir_flag_spec_CXX=
18396 hardcode_libdir_flag_spec_ld_CXX=
18397 hardcode_libdir_separator_CXX=
18398 hardcode_minus_L_CXX=no
18399 hardcode_shlibpath_var_CXX=unsupported
18400 hardcode_automatic_CXX=no
18401 inherit_rpath_CXX=no
18402 module_cmds_CXX=
18403 module_expsym_cmds_CXX=
18404 link_all_deplibs_CXX=unknown
18405 old_archive_cmds_CXX=$old_archive_cmds
18406 reload_flag_CXX=$reload_flag
18407 reload_cmds_CXX=$reload_cmds
18408 no_undefined_flag_CXX=
18409 whole_archive_flag_spec_CXX=
18410 enable_shared_with_static_runtimes_CXX=no
18412 # Source file extension for C++ test sources.
18413 ac_ext=cpp
18415 # Object file extension for compiled C++ test sources.
18416 objext=o
18417 objext_CXX=$objext
18419 # No sense in running all these tests if we already determined that
18420 # the CXX compiler isn't working. Some variables (like enable_shared)
18421 # are currently assumed to apply to all compilers on this platform,
18422 # and will be corrupted by setting them based on a non-working compiler.
18423 if test "$_lt_caught_CXX_error" != yes; then
18424 # Code to be used in simple compile tests
18425 lt_simple_compile_test_code="int some_variable = 0;"
18427 # Code to be used in simple link tests
18428 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18430 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18437 # If no C compiler was specified, use CC.
18438 LTCC=${LTCC-"$CC"}
18440 # If no C compiler flags were specified, use CFLAGS.
18441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18443 # Allow CC to be a program name with arguments.
18444 compiler=$CC
18447 # save warnings/boilerplate of simple test code
18448 ac_outfile=conftest.$ac_objext
18449 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18451 _lt_compiler_boilerplate=`cat conftest.err`
18452 $RM conftest*
18454 ac_outfile=conftest.$ac_objext
18455 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18457 _lt_linker_boilerplate=`cat conftest.err`
18458 $RM -r conftest*
18461 # Allow CC to be a program name with arguments.
18462 lt_save_CC=$CC
18463 lt_save_LD=$LD
18464 lt_save_GCC=$GCC
18465 GCC=$GXX
18466 lt_save_with_gnu_ld=$with_gnu_ld
18467 lt_save_path_LD=$lt_cv_path_LD
18468 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18469 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18470 else
18471 $as_unset lt_cv_prog_gnu_ld
18473 if test -n "${lt_cv_path_LDCXX+set}"; then
18474 lt_cv_path_LD=$lt_cv_path_LDCXX
18475 else
18476 $as_unset lt_cv_path_LD
18478 test -z "${LDCXX+set}" || LD=$LDCXX
18479 CC=${CXX-"c++"}
18480 compiler=$CC
18481 compiler_CXX=$CC
18482 for cc_temp in $compiler""; do
18483 case $cc_temp in
18484 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18485 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18486 \-*) ;;
18487 *) break;;
18488 esac
18489 done
18490 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18493 if test -n "$compiler"; then
18494 # We don't want -fno-exception when compiling C++ code, so set the
18495 # no_builtin_flag separately
18496 if test "$GXX" = yes; then
18497 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18498 else
18499 lt_prog_compiler_no_builtin_flag_CXX=
18502 if test "$GXX" = yes; then
18503 # Set up default GNU C++ configuration
18507 # Check whether --with-gnu-ld was given.
18508 if test "${with_gnu_ld+set}" = set; then :
18509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18510 else
18511 with_gnu_ld=no
18514 ac_prog=ld
18515 if test "$GCC" = yes; then
18516 # Check if gcc -print-prog-name=ld gives a path.
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18518 $as_echo_n "checking for ld used by $CC... " >&6; }
18519 case $host in
18520 *-*-mingw*)
18521 # gcc leaves a trailing carriage return which upsets mingw
18522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18525 esac
18526 case $ac_prog in
18527 # Accept absolute paths.
18528 [\\/]* | ?:[\\/]*)
18529 re_direlt='/[^/][^/]*/\.\./'
18530 # Canonicalize the pathname of ld
18531 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18532 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18533 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18534 done
18535 test -z "$LD" && LD="$ac_prog"
18538 # If it fails, then pretend we aren't using GCC.
18539 ac_prog=ld
18542 # If it is relative, then search for the first ld in PATH.
18543 with_gnu_ld=unknown
18545 esac
18546 elif test "$with_gnu_ld" = yes; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18548 $as_echo_n "checking for GNU ld... " >&6; }
18549 else
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18551 $as_echo_n "checking for non-GNU ld... " >&6; }
18553 if test "${lt_cv_path_LD+set}" = set; then :
18554 $as_echo_n "(cached) " >&6
18555 else
18556 if test -z "$LD"; then
18557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18558 for ac_dir in $PATH; do
18559 IFS="$lt_save_ifs"
18560 test -z "$ac_dir" && ac_dir=.
18561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18562 lt_cv_path_LD="$ac_dir/$ac_prog"
18563 # Check to see if the program is GNU ld. I'd rather use --version,
18564 # but apparently some variants of GNU ld only accept -v.
18565 # Break only if it was the GNU/non-GNU ld that we prefer.
18566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18567 *GNU* | *'with BFD'*)
18568 test "$with_gnu_ld" != no && break
18571 test "$with_gnu_ld" != yes && break
18573 esac
18575 done
18576 IFS="$lt_save_ifs"
18577 else
18578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18582 LD="$lt_cv_path_LD"
18583 if test -n "$LD"; then
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18585 $as_echo "$LD" >&6; }
18586 else
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588 $as_echo "no" >&6; }
18590 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18592 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18593 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18594 $as_echo_n "(cached) " >&6
18595 else
18596 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18597 case `$LD -v 2>&1 </dev/null` in
18598 *GNU* | *'with BFD'*)
18599 lt_cv_prog_gnu_ld=yes
18602 lt_cv_prog_gnu_ld=no
18604 esac
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18607 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18608 with_gnu_ld=$lt_cv_prog_gnu_ld
18616 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18617 # archiving commands below assume that GNU ld is being used.
18618 if test "$with_gnu_ld" = yes; then
18619 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18620 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'
18622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18625 # If archive_cmds runs LD, not CC, wlarc should be empty
18626 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18627 # investigate it a little bit more. (MM)
18628 wlarc='${wl}'
18630 # ancient GNU ld didn't support --whole-archive et. al.
18631 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18632 $GREP 'no-whole-archive' > /dev/null; then
18633 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18634 else
18635 whole_archive_flag_spec_CXX=
18637 else
18638 with_gnu_ld=no
18639 wlarc=
18641 # A generic and very simple default shared library creation
18642 # command for GNU C++ for the case where it uses the native
18643 # linker, instead of GNU ld. If possible, this setting should
18644 # overridden to take advantage of the native linker features on
18645 # the platform it is being used on.
18646 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18649 # Commands to make compiler produce verbose output that lists
18650 # what "hidden" libraries, object files and flags are used when
18651 # linking a shared library.
18652 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18654 else
18655 GXX=no
18656 with_gnu_ld=no
18657 wlarc=
18660 # PORTME: fill in a description of your system's C++ link characteristics
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18663 ld_shlibs_CXX=yes
18664 case $host_os in
18665 aix3*)
18666 # FIXME: insert proper C++ library support
18667 ld_shlibs_CXX=no
18669 aix[4-9]*)
18670 if test "$host_cpu" = ia64; then
18671 # On IA64, the linker does run time linking by default, so we don't
18672 # have to do anything special.
18673 aix_use_runtimelinking=no
18674 exp_sym_flag='-Bexport'
18675 no_entry_flag=""
18676 else
18677 aix_use_runtimelinking=no
18679 # Test if we are trying to use run time linking or normal
18680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18681 # need to do runtime linking.
18682 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18683 for ld_flag in $LDFLAGS; do
18684 case $ld_flag in
18685 *-brtl*)
18686 aix_use_runtimelinking=yes
18687 break
18689 esac
18690 done
18692 esac
18694 exp_sym_flag='-bexport'
18695 no_entry_flag='-bnoentry'
18698 # When large executables or shared objects are built, AIX ld can
18699 # have problems creating the table of contents. If linking a library
18700 # or program results in "error TOC overflow" add -mminimal-toc to
18701 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18702 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18704 archive_cmds_CXX=''
18705 hardcode_direct_CXX=yes
18706 hardcode_direct_absolute_CXX=yes
18707 hardcode_libdir_separator_CXX=':'
18708 link_all_deplibs_CXX=yes
18709 file_list_spec_CXX='${wl}-f,'
18711 if test "$GXX" = yes; then
18712 case $host_os in aix4.[012]|aix4.[012].*)
18713 # We only want to do this on AIX 4.2 and lower, the check
18714 # below for broken collect2 doesn't work under 4.3+
18715 collect2name=`${CC} -print-prog-name=collect2`
18716 if test -f "$collect2name" &&
18717 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18718 then
18719 # We have reworked collect2
18721 else
18722 # We have old collect2
18723 hardcode_direct_CXX=unsupported
18724 # It fails to find uninstalled libraries when the uninstalled
18725 # path is not listed in the libpath. Setting hardcode_minus_L
18726 # to unsupported forces relinking
18727 hardcode_minus_L_CXX=yes
18728 hardcode_libdir_flag_spec_CXX='-L$libdir'
18729 hardcode_libdir_separator_CXX=
18731 esac
18732 shared_flag='-shared'
18733 if test "$aix_use_runtimelinking" = yes; then
18734 shared_flag="$shared_flag "'${wl}-G'
18736 else
18737 # not using gcc
18738 if test "$host_cpu" = ia64; then
18739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18740 # chokes on -Wl,-G. The following line is correct:
18741 shared_flag='-G'
18742 else
18743 if test "$aix_use_runtimelinking" = yes; then
18744 shared_flag='${wl}-G'
18745 else
18746 shared_flag='${wl}-bM:SRE'
18751 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18752 # It seems that -bexpall does not export symbols beginning with
18753 # underscore (_), so it is better to generate a list of symbols to
18754 # export.
18755 always_export_symbols_CXX=yes
18756 if test "$aix_use_runtimelinking" = yes; then
18757 # Warning - without using the other runtime loading flags (-brtl),
18758 # -berok will link without error, but may produce a broken library.
18759 allow_undefined_flag_CXX='-berok'
18760 # Determine the default libpath from the value encoded in an empty
18761 # executable.
18762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18766 main ()
18770 return 0;
18772 _ACEOF
18773 if ac_fn_cxx_try_link "$LINENO"; then :
18775 lt_aix_libpath_sed='
18776 /Import File Strings/,/^$/ {
18777 /^0/ {
18778 s/^0 *\(.*\)$/\1/
18782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18783 # Check for a 64-bit object if we didn't find anything.
18784 if test -z "$aix_libpath"; then
18785 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18788 rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18792 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18794 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"
18795 else
18796 if test "$host_cpu" = ia64; then
18797 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18798 allow_undefined_flag_CXX="-z nodefs"
18799 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"
18800 else
18801 # Determine the default libpath from the value encoded in an
18802 # empty executable.
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18807 main ()
18811 return 0;
18813 _ACEOF
18814 if ac_fn_cxx_try_link "$LINENO"; then :
18816 lt_aix_libpath_sed='
18817 /Import File Strings/,/^$/ {
18818 /^0/ {
18819 s/^0 *\(.*\)$/\1/
18823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 # Check for a 64-bit object if we didn't find anything.
18825 if test -z "$aix_libpath"; then
18826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18829 rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
18831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18833 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18834 # Warning - without using the other run time loading flags,
18835 # -berok will link without error, but may produce a broken library.
18836 no_undefined_flag_CXX=' ${wl}-bernotok'
18837 allow_undefined_flag_CXX=' ${wl}-berok'
18838 if test "$with_gnu_ld" = yes; then
18839 # We only use this code for GNU lds that support --whole-archive.
18840 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18841 else
18842 # Exported symbols can be pulled into shared objects from archives
18843 whole_archive_flag_spec_CXX='$convenience'
18845 archive_cmds_need_lc_CXX=yes
18846 # This is similar to how AIX traditionally builds its shared
18847 # libraries.
18848 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'
18853 beos*)
18854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18855 allow_undefined_flag_CXX=unsupported
18856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18857 # support --undefined. This deserves some investigation. FIXME
18858 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18859 else
18860 ld_shlibs_CXX=no
18864 chorus*)
18865 case $cc_basename in
18867 # FIXME: insert proper C++ library support
18868 ld_shlibs_CXX=no
18870 esac
18873 cygwin* | mingw* | pw32* | cegcc*)
18874 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18875 # as there is no search path for DLLs.
18876 hardcode_libdir_flag_spec_CXX='-L$libdir'
18877 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18878 allow_undefined_flag_CXX=unsupported
18879 always_export_symbols_CXX=no
18880 enable_shared_with_static_runtimes_CXX=yes
18882 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18883 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'
18884 # If the export-symbols file already is a .def file (1st line
18885 # is EXPORTS), use it as is; otherwise, prepend...
18886 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18887 cp $export_symbols $output_objdir/$soname.def;
18888 else
18889 echo EXPORTS > $output_objdir/$soname.def;
18890 cat $export_symbols >> $output_objdir/$soname.def;
18892 $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'
18893 else
18894 ld_shlibs_CXX=no
18897 darwin* | rhapsody*)
18900 archive_cmds_need_lc_CXX=no
18901 hardcode_direct_CXX=no
18902 hardcode_automatic_CXX=yes
18903 hardcode_shlibpath_var_CXX=unsupported
18904 if test "$lt_cv_ld_force_load" = "yes"; then
18905 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\"`'
18906 else
18907 whole_archive_flag_spec_CXX=''
18909 link_all_deplibs_CXX=yes
18910 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18911 case $cc_basename in
18912 ifort*) _lt_dar_can_shared=yes ;;
18913 *) _lt_dar_can_shared=$GCC ;;
18914 esac
18915 if test "$_lt_dar_can_shared" = "yes"; then
18916 output_verbose_link_cmd=func_echo_all
18917 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}"
18918 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18919 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}"
18920 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}"
18921 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18922 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}"
18923 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}"
18926 else
18927 ld_shlibs_CXX=no
18932 dgux*)
18933 case $cc_basename in
18934 ec++*)
18935 # FIXME: insert proper C++ library support
18936 ld_shlibs_CXX=no
18938 ghcx*)
18939 # Green Hills C++ Compiler
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18944 # FIXME: insert proper C++ library support
18945 ld_shlibs_CXX=no
18947 esac
18950 freebsd[12]*)
18951 # C++ shared libraries reported to be fairly broken before
18952 # switch to ELF
18953 ld_shlibs_CXX=no
18956 freebsd-elf*)
18957 archive_cmds_need_lc_CXX=no
18960 freebsd* | dragonfly*)
18961 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18962 # conventions
18963 ld_shlibs_CXX=yes
18966 gnu*)
18969 haiku*)
18970 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18971 link_all_deplibs_CXX=yes
18974 hpux9*)
18975 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18976 hardcode_libdir_separator_CXX=:
18977 export_dynamic_flag_spec_CXX='${wl}-E'
18978 hardcode_direct_CXX=yes
18979 hardcode_minus_L_CXX=yes # Not in the search PATH,
18980 # but as the default
18981 # location of the library.
18983 case $cc_basename in
18984 CC*)
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18988 aCC*)
18989 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'
18990 # Commands to make compiler produce verbose output that lists
18991 # what "hidden" libraries, object files and flags are used when
18992 # linking a shared library.
18994 # There doesn't appear to be a way to prevent this compiler from
18995 # explicitly linking system object files so we need to strip them
18996 # from the output so that they don't get included in the library
18997 # dependencies.
18998 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"'
19001 if test "$GXX" = yes; then
19002 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'
19003 else
19004 # FIXME: insert proper C++ library support
19005 ld_shlibs_CXX=no
19008 esac
19011 hpux10*|hpux11*)
19012 if test $with_gnu_ld = no; then
19013 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19014 hardcode_libdir_separator_CXX=:
19016 case $host_cpu in
19017 hppa*64*|ia64*)
19020 export_dynamic_flag_spec_CXX='${wl}-E'
19022 esac
19024 case $host_cpu in
19025 hppa*64*|ia64*)
19026 hardcode_direct_CXX=no
19027 hardcode_shlibpath_var_CXX=no
19030 hardcode_direct_CXX=yes
19031 hardcode_direct_absolute_CXX=yes
19032 hardcode_minus_L_CXX=yes # Not in the search PATH,
19033 # but as the default
19034 # location of the library.
19036 esac
19038 case $cc_basename in
19039 CC*)
19040 # FIXME: insert proper C++ library support
19041 ld_shlibs_CXX=no
19043 aCC*)
19044 case $host_cpu in
19045 hppa*64*)
19046 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19048 ia64*)
19049 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19052 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054 esac
19055 # Commands to make compiler produce verbose output that lists
19056 # what "hidden" libraries, object files and flags are used when
19057 # linking a shared library.
19059 # There doesn't appear to be a way to prevent this compiler from
19060 # explicitly linking system object files so we need to strip them
19061 # from the output so that they don't get included in the library
19062 # dependencies.
19063 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"'
19066 if test "$GXX" = yes; then
19067 if test $with_gnu_ld = no; then
19068 case $host_cpu in
19069 hppa*64*)
19070 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19072 ia64*)
19073 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19076 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'
19078 esac
19080 else
19081 # FIXME: insert proper C++ library support
19082 ld_shlibs_CXX=no
19085 esac
19088 interix[3-9]*)
19089 hardcode_direct_CXX=no
19090 hardcode_shlibpath_var_CXX=no
19091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19092 export_dynamic_flag_spec_CXX='${wl}-E'
19093 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19094 # Instead, shared libraries are loaded at an image base (0x10000000 by
19095 # default) and relocated if they conflict, which is a slow very memory
19096 # consuming and fragmenting process. To avoid this, we pick a random,
19097 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19098 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19099 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'
19100 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'
19102 irix5* | irix6*)
19103 case $cc_basename in
19104 CC*)
19105 # SGI C++
19106 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'
19108 # Archives containing C++ object files must be created using
19109 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19110 # necessary to make sure instantiated templates are included
19111 # in the archive.
19112 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19115 if test "$GXX" = yes; then
19116 if test "$with_gnu_ld" = no; then
19117 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'
19118 else
19119 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'
19122 link_all_deplibs_CXX=yes
19124 esac
19125 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19126 hardcode_libdir_separator_CXX=:
19127 inherit_rpath_CXX=yes
19130 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19131 case $cc_basename in
19132 KCC*)
19133 # Kuck and Associates, Inc. (KAI) C++ Compiler
19135 # KCC will only create a shared library if the output file
19136 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19137 # to its proper name (with version) after linking.
19138 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'
19139 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'
19140 # Commands to make compiler produce verbose output that lists
19141 # what "hidden" libraries, object files and flags are used when
19142 # linking a shared library.
19144 # There doesn't appear to be a way to prevent this compiler from
19145 # explicitly linking system object files so we need to strip them
19146 # from the output so that they don't get included in the library
19147 # dependencies.
19148 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"'
19150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19153 # Archives containing C++ object files must be created using
19154 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19155 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19157 icpc* | ecpc* )
19158 # Intel C++
19159 with_gnu_ld=yes
19160 # version 8.0 and above of icpc choke on multiply defined symbols
19161 # if we add $predep_objects and $postdep_objects, however 7.1 and
19162 # earlier do not add the objects themselves.
19163 case `$CC -V 2>&1` in
19164 *"Version 7."*)
19165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166 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'
19168 *) # Version 8.0 or newer
19169 tmp_idyn=
19170 case $host_cpu in
19171 ia64*) tmp_idyn=' -i_dynamic';;
19172 esac
19173 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19174 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'
19176 esac
19177 archive_cmds_need_lc_CXX=no
19178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19179 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19180 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19182 pgCC* | pgcpp*)
19183 # Portland Group C++ compiler
19184 case `$CC -V` in
19185 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19186 prelink_cmds_CXX='tpldir=Template.dir~
19187 rm -rf $tpldir~
19188 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19189 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19190 old_archive_cmds_CXX='tpldir=Template.dir~
19191 rm -rf $tpldir~
19192 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19193 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19194 $RANLIB $oldlib'
19195 archive_cmds_CXX='tpldir=Template.dir~
19196 rm -rf $tpldir~
19197 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19198 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19199 archive_expsym_cmds_CXX='tpldir=Template.dir~
19200 rm -rf $tpldir~
19201 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19202 $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'
19204 *) # Version 6 and above use weak symbols
19205 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19206 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'
19208 esac
19210 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19212 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'
19214 cxx*)
19215 # Compaq C++
19216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19217 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'
19219 runpath_var=LD_RUN_PATH
19220 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19221 hardcode_libdir_separator_CXX=:
19223 # Commands to make compiler produce verbose output that lists
19224 # what "hidden" libraries, object files and flags are used when
19225 # linking a shared library.
19227 # There doesn't appear to be a way to prevent this compiler from
19228 # explicitly linking system object files so we need to strip them
19229 # from the output so that they don't get included in the library
19230 # dependencies.
19231 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'
19233 xl* | mpixl* | bgxl*)
19234 # IBM XL 8.0 on PPC, with GNU ld
19235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19236 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19237 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19238 if test "x$supports_anon_versioning" = xyes; then
19239 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19241 echo "local: *; };" >> $output_objdir/$libname.ver~
19242 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19246 case `$CC -V 2>&1 | sed 5q` in
19247 *Sun\ C*)
19248 # Sun C++ 5.9
19249 no_undefined_flag_CXX=' -zdefs'
19250 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 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'
19252 hardcode_libdir_flag_spec_CXX='-R$libdir'
19253 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'
19254 compiler_needs_object_CXX=yes
19256 # Not sure whether something based on
19257 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19258 # would be better.
19259 output_verbose_link_cmd='func_echo_all'
19261 # Archives containing C++ object files must be created using
19262 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19264 # in the archive.
19265 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19267 esac
19269 esac
19272 lynxos*)
19273 # FIXME: insert proper C++ library support
19274 ld_shlibs_CXX=no
19277 m88k*)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19282 mvs*)
19283 case $cc_basename in
19284 cxx*)
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19292 esac
19295 netbsd*)
19296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19297 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19298 wlarc=
19299 hardcode_libdir_flag_spec_CXX='-R$libdir'
19300 hardcode_direct_CXX=yes
19301 hardcode_shlibpath_var_CXX=no
19303 # Workaround some broken pre-1.5 toolchains
19304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19307 *nto* | *qnx*)
19308 ld_shlibs_CXX=yes
19311 openbsd2*)
19312 # C++ shared libraries are fairly broken
19313 ld_shlibs_CXX=no
19316 openbsd*)
19317 if test -f /usr/libexec/ld.so; then
19318 hardcode_direct_CXX=yes
19319 hardcode_shlibpath_var_CXX=no
19320 hardcode_direct_absolute_CXX=yes
19321 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19324 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19325 export_dynamic_flag_spec_CXX='${wl}-E'
19326 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19328 output_verbose_link_cmd=func_echo_all
19329 else
19330 ld_shlibs_CXX=no
19334 osf3* | osf4* | osf5*)
19335 case $cc_basename in
19336 KCC*)
19337 # Kuck and Associates, Inc. (KAI) C++ Compiler
19339 # KCC will only create a shared library if the output file
19340 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19341 # to its proper name (with version) after linking.
19342 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'
19344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19345 hardcode_libdir_separator_CXX=:
19347 # Archives containing C++ object files must be created using
19348 # the KAI C++ compiler.
19349 case $host in
19350 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19351 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19352 esac
19354 RCC*)
19355 # Rational C++ 2.4.1
19356 # FIXME: insert proper C++ library support
19357 ld_shlibs_CXX=no
19359 cxx*)
19360 case $host in
19361 osf3*)
19362 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19363 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'
19364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19367 allow_undefined_flag_CXX=' -expect_unresolved \*'
19368 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'
19369 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370 echo "-hidden">> $lib.exp~
19371 $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~
19372 $RM $lib.exp'
19373 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375 esac
19377 hardcode_libdir_separator_CXX=:
19379 # Commands to make compiler produce verbose output that lists
19380 # what "hidden" libraries, object files and flags are used when
19381 # linking a shared library.
19383 # There doesn't appear to be a way to prevent this compiler from
19384 # explicitly linking system object files so we need to strip them
19385 # from the output so that they don't get included in the library
19386 # dependencies.
19387 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"'
19390 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19392 case $host in
19393 osf3*)
19394 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'
19397 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'
19399 esac
19401 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19402 hardcode_libdir_separator_CXX=:
19404 # Commands to make compiler produce verbose output that lists
19405 # what "hidden" libraries, object files and flags are used when
19406 # linking a shared library.
19407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19409 else
19410 # FIXME: insert proper C++ library support
19411 ld_shlibs_CXX=no
19414 esac
19417 psos*)
19418 # FIXME: insert proper C++ library support
19419 ld_shlibs_CXX=no
19422 sunos4*)
19423 case $cc_basename in
19424 CC*)
19425 # Sun C++ 4.x
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19429 lcc*)
19430 # Lucid
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19435 # FIXME: insert proper C++ library support
19436 ld_shlibs_CXX=no
19438 esac
19441 solaris*)
19442 case $cc_basename in
19443 CC*)
19444 # Sun C++ 4.2, 5.x and Centerline C++
19445 archive_cmds_need_lc_CXX=yes
19446 no_undefined_flag_CXX=' -zdefs'
19447 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19448 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19449 $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'
19451 hardcode_libdir_flag_spec_CXX='-R$libdir'
19452 hardcode_shlibpath_var_CXX=no
19453 case $host_os in
19454 solaris2.[0-5] | solaris2.[0-5].*) ;;
19456 # The compiler driver will combine and reorder linker options,
19457 # but understands `-z linker_flag'.
19458 # Supported since Solaris 2.6 (maybe 2.5.1?)
19459 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19461 esac
19462 link_all_deplibs_CXX=yes
19464 output_verbose_link_cmd='func_echo_all'
19466 # Archives containing C++ object files must be created using
19467 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19468 # necessary to make sure instantiated templates are included
19469 # in the archive.
19470 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19472 gcx*)
19473 # Green Hills C++ Compiler
19474 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19476 # The C++ compiler must be used to create the archive.
19477 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19480 # GNU C++ compiler with Solaris linker
19481 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19482 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19483 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19484 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19485 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19486 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19488 # Commands to make compiler produce verbose output that lists
19489 # what "hidden" libraries, object files and flags are used when
19490 # linking a shared library.
19491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19492 else
19493 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19494 # platform.
19495 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19496 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19497 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19499 # Commands to make compiler produce verbose output that lists
19500 # what "hidden" libraries, object files and flags are used when
19501 # linking a shared library.
19502 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19505 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19506 case $host_os in
19507 solaris2.[0-5] | solaris2.[0-5].*) ;;
19509 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19511 esac
19514 esac
19517 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19518 no_undefined_flag_CXX='${wl}-z,text'
19519 archive_cmds_need_lc_CXX=no
19520 hardcode_shlibpath_var_CXX=no
19521 runpath_var='LD_RUN_PATH'
19523 case $cc_basename in
19524 CC*)
19525 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19526 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19529 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19530 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532 esac
19535 sysv5* | sco3.2v5* | sco5v6*)
19536 # Note: We can NOT use -z defs as we might desire, because we do not
19537 # link with -lc, and that would cause any symbols used from libc to
19538 # always be unresolved, which means just about no library would
19539 # ever link correctly. If we're not using GNU ld we use -z text
19540 # though, which does catch some bad symbols but isn't as heavy-handed
19541 # as -z defs.
19542 no_undefined_flag_CXX='${wl}-z,text'
19543 allow_undefined_flag_CXX='${wl}-z,nodefs'
19544 archive_cmds_need_lc_CXX=no
19545 hardcode_shlibpath_var_CXX=no
19546 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19547 hardcode_libdir_separator_CXX=':'
19548 link_all_deplibs_CXX=yes
19549 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19550 runpath_var='LD_RUN_PATH'
19552 case $cc_basename in
19553 CC*)
19554 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19555 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19557 '"$old_archive_cmds_CXX"
19558 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19559 '"$reload_cmds_CXX"
19562 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19565 esac
19568 tandem*)
19569 case $cc_basename in
19570 NCC*)
19571 # NonStop-UX NCC 3.20
19572 # FIXME: insert proper C++ library support
19573 ld_shlibs_CXX=no
19576 # FIXME: insert proper C++ library support
19577 ld_shlibs_CXX=no
19579 esac
19582 vxworks*)
19583 # FIXME: insert proper C++ library support
19584 ld_shlibs_CXX=no
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19591 esac
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19594 $as_echo "$ld_shlibs_CXX" >&6; }
19595 test "$ld_shlibs_CXX" = no && can_build_shared=no
19597 GCC_CXX="$GXX"
19598 LD_CXX="$LD"
19600 ## CAVEAT EMPTOR:
19601 ## There is no encapsulation within the following macros, do not change
19602 ## the running order or otherwise move them around unless you know exactly
19603 ## what you are doing...
19604 # Dependencies to place before and after the object being linked:
19605 predep_objects_CXX=
19606 postdep_objects_CXX=
19607 predeps_CXX=
19608 postdeps_CXX=
19609 compiler_lib_search_path_CXX=
19611 cat > conftest.$ac_ext <<_LT_EOF
19612 class Foo
19614 public:
19615 Foo (void) { a = 0; }
19616 private:
19617 int a;
19619 _LT_EOF
19621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19622 (eval $ac_compile) 2>&5
19623 ac_status=$?
19624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19625 test $ac_status = 0; }; then
19626 # Parse the compiler output and extract the necessary
19627 # objects, libraries and library flags.
19629 # Sentinel used to keep track of whether or not we are before
19630 # the conftest object file.
19631 pre_test_object_deps_done=no
19633 for p in `eval "$output_verbose_link_cmd"`; do
19634 case $p in
19636 -L* | -R* | -l*)
19637 # Some compilers place space between "-{L,R}" and the path.
19638 # Remove the space.
19639 if test $p = "-L" ||
19640 test $p = "-R"; then
19641 prev=$p
19642 continue
19643 else
19644 prev=
19647 if test "$pre_test_object_deps_done" = no; then
19648 case $p in
19649 -L* | -R*)
19650 # Internal compiler library paths should come after those
19651 # provided the user. The postdeps already come after the
19652 # user supplied libs so there is no need to process them.
19653 if test -z "$compiler_lib_search_path_CXX"; then
19654 compiler_lib_search_path_CXX="${prev}${p}"
19655 else
19656 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19659 # The "-l" case would never come before the object being
19660 # linked, so don't bother handling this case.
19661 esac
19662 else
19663 if test -z "$postdeps_CXX"; then
19664 postdeps_CXX="${prev}${p}"
19665 else
19666 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19671 *.$objext)
19672 # This assumes that the test object file only shows up
19673 # once in the compiler output.
19674 if test "$p" = "conftest.$objext"; then
19675 pre_test_object_deps_done=yes
19676 continue
19679 if test "$pre_test_object_deps_done" = no; then
19680 if test -z "$predep_objects_CXX"; then
19681 predep_objects_CXX="$p"
19682 else
19683 predep_objects_CXX="$predep_objects_CXX $p"
19685 else
19686 if test -z "$postdep_objects_CXX"; then
19687 postdep_objects_CXX="$p"
19688 else
19689 postdep_objects_CXX="$postdep_objects_CXX $p"
19694 *) ;; # Ignore the rest.
19696 esac
19697 done
19699 # Clean up.
19700 rm -f a.out a.exe
19701 else
19702 echo "libtool.m4: error: problem compiling CXX test program"
19705 $RM -f confest.$objext
19707 # PORTME: override above test on systems where it is broken
19708 case $host_os in
19709 interix[3-9]*)
19710 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19711 # hack all around it, let's just trust "g++" to DTRT.
19712 predep_objects_CXX=
19713 postdep_objects_CXX=
19714 postdeps_CXX=
19717 linux*)
19718 case `$CC -V 2>&1 | sed 5q` in
19719 *Sun\ C*)
19720 # Sun C++ 5.9
19722 # The more standards-conforming stlport4 library is
19723 # incompatible with the Cstd library. Avoid specifying
19724 # it if it's in CXXFLAGS. Ignore libCrun as
19725 # -library=stlport4 depends on it.
19726 case " $CXX $CXXFLAGS " in
19727 *" -library=stlport4 "*)
19728 solaris_use_stlport4=yes
19730 esac
19732 if test "$solaris_use_stlport4" != yes; then
19733 postdeps_CXX='-library=Cstd -library=Crun'
19736 esac
19739 solaris*)
19740 case $cc_basename in
19741 CC*)
19742 # The more standards-conforming stlport4 library is
19743 # incompatible with the Cstd library. Avoid specifying
19744 # it if it's in CXXFLAGS. Ignore libCrun as
19745 # -library=stlport4 depends on it.
19746 case " $CXX $CXXFLAGS " in
19747 *" -library=stlport4 "*)
19748 solaris_use_stlport4=yes
19750 esac
19752 # Adding this requires a known-good setup of shared libraries for
19753 # Sun compiler versions before 5.6, else PIC objects from an old
19754 # archive will be linked into the output, leading to subtle bugs.
19755 if test "$solaris_use_stlport4" != yes; then
19756 postdeps_CXX='-library=Cstd -library=Crun'
19759 esac
19761 esac
19764 case " $postdeps_CXX " in
19765 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19766 esac
19767 compiler_lib_search_dirs_CXX=
19768 if test -n "${compiler_lib_search_path_CXX}"; then
19769 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19802 lt_prog_compiler_wl_CXX=
19803 lt_prog_compiler_pic_CXX=
19804 lt_prog_compiler_static_CXX=
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19809 # C++ specific cases for pic, static, wl, etc.
19810 if test "$GXX" = yes; then
19811 lt_prog_compiler_wl_CXX='-Wl,'
19812 lt_prog_compiler_static_CXX='-static'
19814 case $host_os in
19815 aix*)
19816 # All AIX code is PIC.
19817 if test "$host_cpu" = ia64; then
19818 # AIX 5 now supports IA64 processor
19819 lt_prog_compiler_static_CXX='-Bstatic'
19823 amigaos*)
19824 case $host_cpu in
19825 powerpc)
19826 # see comment about AmigaOS4 .so support
19827 lt_prog_compiler_pic_CXX='-fPIC'
19829 m68k)
19830 # FIXME: we need at least 68020 code to build shared libraries, but
19831 # adding the `-m68020' flag to GCC prevents building anything better,
19832 # like `-m68040'.
19833 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19835 esac
19838 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19839 # PIC is the default for these OSes.
19841 mingw* | cygwin* | os2* | pw32* | cegcc*)
19842 # This hack is so that the source file can tell whether it is being
19843 # built for inclusion in a dll (and should export symbols for example).
19844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19845 # (--disable-auto-import) libraries
19846 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19848 darwin* | rhapsody*)
19849 # PIC is the default on this platform
19850 # Common symbols not allowed in MH_DYLIB files
19851 lt_prog_compiler_pic_CXX='-fno-common'
19853 *djgpp*)
19854 # DJGPP does not support shared libraries at all
19855 lt_prog_compiler_pic_CXX=
19857 haiku*)
19858 # PIC is the default for Haiku.
19859 # The "-static" flag exists, but is broken.
19860 lt_prog_compiler_static_CXX=
19862 interix[3-9]*)
19863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19864 # Instead, we relocate shared libraries at runtime.
19866 sysv4*MP*)
19867 if test -d /usr/nec; then
19868 lt_prog_compiler_pic_CXX=-Kconform_pic
19871 hpux*)
19872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19874 # sets the default TLS model and affects inlining.
19875 case $host_cpu in
19876 hppa*64*)
19879 lt_prog_compiler_pic_CXX='-fPIC'
19881 esac
19883 *qnx* | *nto*)
19884 # QNX uses GNU C++, but need to define -shared option too, otherwise
19885 # it will coredump.
19886 lt_prog_compiler_pic_CXX='-fPIC -shared'
19889 lt_prog_compiler_pic_CXX='-fPIC'
19891 esac
19892 else
19893 case $host_os in
19894 aix[4-9]*)
19895 # All AIX code is PIC.
19896 if test "$host_cpu" = ia64; then
19897 # AIX 5 now supports IA64 processor
19898 lt_prog_compiler_static_CXX='-Bstatic'
19899 else
19900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19903 chorus*)
19904 case $cc_basename in
19905 cxch68*)
19906 # Green Hills C++ Compiler
19907 # _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"
19909 esac
19911 dgux*)
19912 case $cc_basename in
19913 ec++*)
19914 lt_prog_compiler_pic_CXX='-KPIC'
19916 ghcx*)
19917 # Green Hills C++ Compiler
19918 lt_prog_compiler_pic_CXX='-pic'
19922 esac
19924 freebsd* | dragonfly*)
19925 # FreeBSD uses GNU C++
19927 hpux9* | hpux10* | hpux11*)
19928 case $cc_basename in
19929 CC*)
19930 lt_prog_compiler_wl_CXX='-Wl,'
19931 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19932 if test "$host_cpu" != ia64; then
19933 lt_prog_compiler_pic_CXX='+Z'
19936 aCC*)
19937 lt_prog_compiler_wl_CXX='-Wl,'
19938 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19939 case $host_cpu in
19940 hppa*64*|ia64*)
19941 # +Z the default
19944 lt_prog_compiler_pic_CXX='+Z'
19946 esac
19950 esac
19952 interix*)
19953 # This is c89, which is MS Visual C++ (no shared libs)
19954 # Anyone wants to do a port?
19956 irix5* | irix6* | nonstopux*)
19957 case $cc_basename in
19958 CC*)
19959 lt_prog_compiler_wl_CXX='-Wl,'
19960 lt_prog_compiler_static_CXX='-non_shared'
19961 # CC pic flag -KPIC is the default.
19965 esac
19967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19968 case $cc_basename in
19969 KCC*)
19970 # KAI C++ Compiler
19971 lt_prog_compiler_wl_CXX='--backend -Wl,'
19972 lt_prog_compiler_pic_CXX='-fPIC'
19974 ecpc* )
19975 # old Intel C++ for x86_64 which still supported -KPIC.
19976 lt_prog_compiler_wl_CXX='-Wl,'
19977 lt_prog_compiler_pic_CXX='-KPIC'
19978 lt_prog_compiler_static_CXX='-static'
19980 icpc* )
19981 # Intel C++, used to be incompatible with GCC.
19982 # ICC 10 doesn't accept -KPIC any more.
19983 lt_prog_compiler_wl_CXX='-Wl,'
19984 lt_prog_compiler_pic_CXX='-fPIC'
19985 lt_prog_compiler_static_CXX='-static'
19987 pgCC* | pgcpp*)
19988 # Portland Group C++ compiler
19989 lt_prog_compiler_wl_CXX='-Wl,'
19990 lt_prog_compiler_pic_CXX='-fpic'
19991 lt_prog_compiler_static_CXX='-Bstatic'
19993 cxx*)
19994 # Compaq C++
19995 # Make sure the PIC flag is empty. It appears that all Alpha
19996 # Linux and Compaq Tru64 Unix objects are PIC.
19997 lt_prog_compiler_pic_CXX=
19998 lt_prog_compiler_static_CXX='-non_shared'
20000 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20001 # IBM XL 8.0, 9.0 on PPC and BlueGene
20002 lt_prog_compiler_wl_CXX='-Wl,'
20003 lt_prog_compiler_pic_CXX='-qpic'
20004 lt_prog_compiler_static_CXX='-qstaticlink'
20007 case `$CC -V 2>&1 | sed 5q` in
20008 *Sun\ C*)
20009 # Sun C++ 5.9
20010 lt_prog_compiler_pic_CXX='-KPIC'
20011 lt_prog_compiler_static_CXX='-Bstatic'
20012 lt_prog_compiler_wl_CXX='-Qoption ld '
20014 esac
20016 esac
20018 lynxos*)
20020 m88k*)
20022 mvs*)
20023 case $cc_basename in
20024 cxx*)
20025 lt_prog_compiler_pic_CXX='-W c,exportall'
20029 esac
20031 netbsd*)
20033 *qnx* | *nto*)
20034 # QNX uses GNU C++, but need to define -shared option too, otherwise
20035 # it will coredump.
20036 lt_prog_compiler_pic_CXX='-fPIC -shared'
20038 osf3* | osf4* | osf5*)
20039 case $cc_basename in
20040 KCC*)
20041 lt_prog_compiler_wl_CXX='--backend -Wl,'
20043 RCC*)
20044 # Rational C++ 2.4.1
20045 lt_prog_compiler_pic_CXX='-pic'
20047 cxx*)
20048 # Digital/Compaq C++
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 # Make sure the PIC flag is empty. It appears that all Alpha
20051 # Linux and Compaq Tru64 Unix objects are PIC.
20052 lt_prog_compiler_pic_CXX=
20053 lt_prog_compiler_static_CXX='-non_shared'
20057 esac
20059 psos*)
20061 solaris*)
20062 case $cc_basename in
20063 CC*)
20064 # Sun C++ 4.2, 5.x and Centerline C++
20065 lt_prog_compiler_pic_CXX='-KPIC'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20067 lt_prog_compiler_wl_CXX='-Qoption ld '
20069 gcx*)
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX='-PIC'
20075 esac
20077 sunos4*)
20078 case $cc_basename in
20079 CC*)
20080 # Sun C++ 4.x
20081 lt_prog_compiler_pic_CXX='-pic'
20082 lt_prog_compiler_static_CXX='-Bstatic'
20084 lcc*)
20085 # Lucid
20086 lt_prog_compiler_pic_CXX='-pic'
20090 esac
20092 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20093 case $cc_basename in
20094 CC*)
20095 lt_prog_compiler_wl_CXX='-Wl,'
20096 lt_prog_compiler_pic_CXX='-KPIC'
20097 lt_prog_compiler_static_CXX='-Bstatic'
20099 esac
20101 tandem*)
20102 case $cc_basename in
20103 NCC*)
20104 # NonStop-UX NCC 3.20
20105 lt_prog_compiler_pic_CXX='-KPIC'
20109 esac
20111 vxworks*)
20114 lt_prog_compiler_can_build_shared_CXX=no
20116 esac
20119 case $host_os in
20120 # For platforms which do not support PIC, -DPIC is meaningless:
20121 *djgpp*)
20122 lt_prog_compiler_pic_CXX=
20125 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20127 esac
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20129 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20134 # Check to make sure the PIC flag actually works.
20136 if test -n "$lt_prog_compiler_pic_CXX"; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20138 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20139 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20140 $as_echo_n "(cached) " >&6
20141 else
20142 lt_cv_prog_compiler_pic_works_CXX=no
20143 ac_outfile=conftest.$ac_objext
20144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20145 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20146 # Insert the option either (1) after the last *FLAGS variable, or
20147 # (2) before a word containing "conftest.", or (3) at the end.
20148 # Note that $ac_compile itself does not contain backslashes and begins
20149 # with a dollar sign (not a hyphen), so the echo should work correctly.
20150 # The option is referenced via a variable to avoid confusing sed.
20151 lt_compile=`echo "$ac_compile" | $SED \
20152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20154 -e 's:$: $lt_compiler_flag:'`
20155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20156 (eval "$lt_compile" 2>conftest.err)
20157 ac_status=$?
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 if (exit $ac_status) && test -s "$ac_outfile"; then
20161 # The compiler can only warn and ignore the option if not recognized
20162 # So say no if there are warnings other than the usual output.
20163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20166 lt_cv_prog_compiler_pic_works_CXX=yes
20169 $RM conftest*
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20173 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20175 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20176 case $lt_prog_compiler_pic_CXX in
20177 "" | " "*) ;;
20178 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20179 esac
20180 else
20181 lt_prog_compiler_pic_CXX=
20182 lt_prog_compiler_can_build_shared_CXX=no
20190 # Check to make sure the static flag actually works.
20192 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20194 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20195 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20196 $as_echo_n "(cached) " >&6
20197 else
20198 lt_cv_prog_compiler_static_works_CXX=no
20199 save_LDFLAGS="$LDFLAGS"
20200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20203 # The linker can only warn and ignore the option if not recognized
20204 # So say no if there are warnings
20205 if test -s conftest.err; then
20206 # Append any errors to the config.log.
20207 cat conftest.err 1>&5
20208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20210 if diff conftest.exp conftest.er2 >/dev/null; then
20211 lt_cv_prog_compiler_static_works_CXX=yes
20213 else
20214 lt_cv_prog_compiler_static_works_CXX=yes
20217 $RM -r conftest*
20218 LDFLAGS="$save_LDFLAGS"
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20222 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20224 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20226 else
20227 lt_prog_compiler_static_CXX=
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20235 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20236 $as_echo_n "(cached) " >&6
20237 else
20238 lt_cv_prog_compiler_c_o_CXX=no
20239 $RM -r conftest 2>/dev/null
20240 mkdir conftest
20241 cd conftest
20242 mkdir out
20243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20245 lt_compiler_flag="-o out/conftest2.$ac_objext"
20246 # Insert the option either (1) after the last *FLAGS variable, or
20247 # (2) before a word containing "conftest.", or (3) at the end.
20248 # Note that $ac_compile itself does not contain backslashes and begins
20249 # with a dollar sign (not a hyphen), so the echo should work correctly.
20250 lt_compile=`echo "$ac_compile" | $SED \
20251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20253 -e 's:$: $lt_compiler_flag:'`
20254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20255 (eval "$lt_compile" 2>out/conftest.err)
20256 ac_status=$?
20257 cat out/conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20260 then
20261 # The compiler can only warn and ignore the option if not recognized
20262 # So say no if there are warnings
20263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20266 lt_cv_prog_compiler_c_o_CXX=yes
20269 chmod u+w . 2>&5
20270 $RM conftest*
20271 # SGI C++ compiler will create directory out/ii_files/ for
20272 # template instantiation
20273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20274 $RM out/* && rmdir out
20275 cd ..
20276 $RM -r conftest
20277 $RM conftest*
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20281 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290 lt_cv_prog_compiler_c_o_CXX=no
20291 $RM -r conftest 2>/dev/null
20292 mkdir conftest
20293 cd conftest
20294 mkdir out
20295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20297 lt_compiler_flag="-o out/conftest2.$ac_objext"
20298 # Insert the option either (1) after the last *FLAGS variable, or
20299 # (2) before a word containing "conftest.", or (3) at the end.
20300 # Note that $ac_compile itself does not contain backslashes and begins
20301 # with a dollar sign (not a hyphen), so the echo should work correctly.
20302 lt_compile=`echo "$ac_compile" | $SED \
20303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20305 -e 's:$: $lt_compiler_flag:'`
20306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20307 (eval "$lt_compile" 2>out/conftest.err)
20308 ac_status=$?
20309 cat out/conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20312 then
20313 # The compiler can only warn and ignore the option if not recognized
20314 # So say no if there are warnings
20315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20318 lt_cv_prog_compiler_c_o_CXX=yes
20321 chmod u+w . 2>&5
20322 $RM conftest*
20323 # SGI C++ compiler will create directory out/ii_files/ for
20324 # template instantiation
20325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20326 $RM out/* && rmdir out
20327 cd ..
20328 $RM -r conftest
20329 $RM conftest*
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20333 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20338 hard_links="nottested"
20339 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20340 # do not overwrite the value of need_locks provided by the user
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20342 $as_echo_n "checking if we can lock with hard links... " >&6; }
20343 hard_links=yes
20344 $RM conftest*
20345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20346 touch conftest.a
20347 ln conftest.a conftest.b 2>&5 || hard_links=no
20348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20350 $as_echo "$hard_links" >&6; }
20351 if test "$hard_links" = no; then
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20354 need_locks=warn
20356 else
20357 need_locks=no
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20366 case $host_os in
20367 aix[4-9]*)
20368 # If we're using GNU nm, then we don't want the "-C" option.
20369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20370 # Also, AIX nm treats weak defined symbols like other global defined
20371 # symbols, whereas GNU nm marks them as "W".
20372 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20373 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'
20374 else
20375 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'
20378 pw32*)
20379 export_symbols_cmds_CXX="$ltdll_cmds"
20381 cygwin* | mingw* | cegcc*)
20382 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'
20385 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20387 esac
20388 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20391 $as_echo "$ld_shlibs_CXX" >&6; }
20392 test "$ld_shlibs_CXX" = no && can_build_shared=no
20394 with_gnu_ld_CXX=$with_gnu_ld
20402 # Do we need to explicitly link libc?
20404 case "x$archive_cmds_need_lc_CXX" in
20405 x|xyes)
20406 # Assume -lc should be added
20407 archive_cmds_need_lc_CXX=yes
20409 if test "$enable_shared" = yes && test "$GCC" = yes; then
20410 case $archive_cmds_CXX in
20411 *'~'*)
20412 # FIXME: we may have to deal with multi-command sequences.
20414 '$CC '*)
20415 # Test whether the compiler implicitly links with -lc since on some
20416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20417 # to ld, don't add -lc before -lgcc.
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20420 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20421 $as_echo_n "(cached) " >&6
20422 else
20423 $RM conftest*
20424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20427 (eval $ac_compile) 2>&5
20428 ac_status=$?
20429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20430 test $ac_status = 0; } 2>conftest.err; then
20431 soname=conftest
20432 lib=conftest
20433 libobjs=conftest.$ac_objext
20434 deplibs=
20435 wl=$lt_prog_compiler_wl_CXX
20436 pic_flag=$lt_prog_compiler_pic_CXX
20437 compiler_flags=-v
20438 linker_flags=-v
20439 verstring=
20440 output_objdir=.
20441 libname=conftest
20442 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20443 allow_undefined_flag_CXX=
20444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20445 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20446 ac_status=$?
20447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448 test $ac_status = 0; }
20449 then
20450 lt_cv_archive_cmds_need_lc_CXX=no
20451 else
20452 lt_cv_archive_cmds_need_lc_CXX=yes
20454 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20455 else
20456 cat conftest.err 1>&5
20458 $RM conftest*
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20462 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20463 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20465 esac
20468 esac
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20536 library_names_spec=
20537 libname_spec='lib$name'
20538 soname_spec=
20539 shrext_cmds=".so"
20540 postinstall_cmds=
20541 postuninstall_cmds=
20542 finish_cmds=
20543 finish_eval=
20544 shlibpath_var=
20545 shlibpath_overrides_runpath=unknown
20546 version_type=none
20547 dynamic_linker="$host_os ld.so"
20548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20549 need_lib_prefix=unknown
20550 hardcode_into_libs=no
20552 # when you set need_version to no, make sure it does not cause -set_version
20553 # flags to be left without arguments
20554 need_version=unknown
20556 case $host_os in
20557 aix3*)
20558 version_type=linux
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20560 shlibpath_var=LIBPATH
20562 # AIX 3 has no versioning support, so we append a major version to the name.
20563 soname_spec='${libname}${release}${shared_ext}$major'
20566 aix[4-9]*)
20567 version_type=linux
20568 need_lib_prefix=no
20569 need_version=no
20570 hardcode_into_libs=yes
20571 if test "$host_cpu" = ia64; then
20572 # AIX 5 supports IA64
20573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20574 shlibpath_var=LD_LIBRARY_PATH
20575 else
20576 # With GCC up to 2.95.x, collect2 would create an import file
20577 # for dependence libraries. The import file would start with
20578 # the line `#! .'. This would cause the generated library to
20579 # depend on `.', always an invalid library. This was fixed in
20580 # development snapshots of GCC prior to 3.0.
20581 case $host_os in
20582 aix4 | aix4.[01] | aix4.[01].*)
20583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20584 echo ' yes '
20585 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20587 else
20588 can_build_shared=no
20591 esac
20592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20593 # soname into executable. Probably we can add versioning support to
20594 # collect2, so additional links can be useful in future.
20595 if test "$aix_use_runtimelinking" = yes; then
20596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20597 # instead of lib<name>.a to let people know that these are not
20598 # typical AIX shared libraries.
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 else
20601 # We preserve .a as extension for shared libraries through AIX4.2
20602 # and later when we are not doing run time linking.
20603 library_names_spec='${libname}${release}.a $libname.a'
20604 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LIBPATH
20610 amigaos*)
20611 case $host_cpu in
20612 powerpc)
20613 # Since July 2007 AmigaOS4 officially supports .so libraries.
20614 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617 m68k)
20618 library_names_spec='$libname.ixlibrary $libname.a'
20619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20620 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'
20622 esac
20625 beos*)
20626 library_names_spec='${libname}${shared_ext}'
20627 dynamic_linker="$host_os ld.so"
20628 shlibpath_var=LIBRARY_PATH
20631 bsdi[45]*)
20632 version_type=linux
20633 need_version=no
20634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20635 soname_spec='${libname}${release}${shared_ext}$major'
20636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20637 shlibpath_var=LD_LIBRARY_PATH
20638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20640 # the default ld.so.conf also contains /usr/contrib/lib and
20641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20642 # libtool to hard-code these into programs
20645 cygwin* | mingw* | pw32* | cegcc*)
20646 version_type=windows
20647 shrext_cmds=".dll"
20648 need_version=no
20649 need_lib_prefix=no
20651 case $GCC,$host_os in
20652 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20653 library_names_spec='$libname.dll.a'
20654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20655 postinstall_cmds='base_file=`basename \${file}`~
20656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20657 dldir=$destdir/`dirname \$dlpath`~
20658 test -d \$dldir || mkdir -p \$dldir~
20659 $install_prog $dir/$dlname \$dldir/$dlname~
20660 chmod a+x \$dldir/$dlname~
20661 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20662 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20664 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20665 dlpath=$dir/\$dldll~
20666 $RM \$dlpath'
20667 shlibpath_overrides_runpath=yes
20669 case $host_os in
20670 cygwin*)
20671 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20672 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20675 mingw* | cegcc*)
20676 # MinGW DLLs use traditional 'lib' prefix
20677 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20679 pw32*)
20680 # pw32 DLLs use 'pw' prefix rather than 'lib'
20681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20683 esac
20687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20689 esac
20690 dynamic_linker='Win32 ld.exe'
20691 # FIXME: first we should search . and the directory the executable is in
20692 shlibpath_var=PATH
20695 darwin* | rhapsody*)
20696 dynamic_linker="$host_os dyld"
20697 version_type=darwin
20698 need_lib_prefix=no
20699 need_version=no
20700 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20701 soname_spec='${libname}${release}${major}$shared_ext'
20702 shlibpath_overrides_runpath=yes
20703 shlibpath_var=DYLD_LIBRARY_PATH
20704 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20706 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20709 dgux*)
20710 version_type=linux
20711 need_lib_prefix=no
20712 need_version=no
20713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20714 soname_spec='${libname}${release}${shared_ext}$major'
20715 shlibpath_var=LD_LIBRARY_PATH
20718 freebsd* | dragonfly*)
20719 # DragonFly does not have aout. When/if they implement a new
20720 # versioning mechanism, adjust this.
20721 if test -x /usr/bin/objformat; then
20722 objformat=`/usr/bin/objformat`
20723 else
20724 case $host_os in
20725 freebsd[123]*) objformat=aout ;;
20726 *) objformat=elf ;;
20727 esac
20729 version_type=freebsd-$objformat
20730 case $version_type in
20731 freebsd-elf*)
20732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20733 need_version=no
20734 need_lib_prefix=no
20736 freebsd-*)
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20738 need_version=yes
20740 esac
20741 shlibpath_var=LD_LIBRARY_PATH
20742 case $host_os in
20743 freebsd2*)
20744 shlibpath_overrides_runpath=yes
20746 freebsd3.[01]* | freebsdelf3.[01]*)
20747 shlibpath_overrides_runpath=yes
20748 hardcode_into_libs=yes
20750 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20751 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20752 shlibpath_overrides_runpath=no
20753 hardcode_into_libs=yes
20755 *) # from 4.6 on, and DragonFly
20756 shlibpath_overrides_runpath=yes
20757 hardcode_into_libs=yes
20759 esac
20762 gnu*)
20763 version_type=linux
20764 need_lib_prefix=no
20765 need_version=no
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20767 soname_spec='${libname}${release}${shared_ext}$major'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 hardcode_into_libs=yes
20772 haiku*)
20773 version_type=linux
20774 need_lib_prefix=no
20775 need_version=no
20776 dynamic_linker="$host_os runtime_loader"
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 shlibpath_var=LIBRARY_PATH
20780 shlibpath_overrides_runpath=yes
20781 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20782 hardcode_into_libs=yes
20785 hpux9* | hpux10* | hpux11*)
20786 # Give a soname corresponding to the major version so that dld.sl refuses to
20787 # link against other versions.
20788 version_type=sunos
20789 need_lib_prefix=no
20790 need_version=no
20791 case $host_cpu in
20792 ia64*)
20793 shrext_cmds='.so'
20794 hardcode_into_libs=yes
20795 dynamic_linker="$host_os dld.so"
20796 shlibpath_var=LD_LIBRARY_PATH
20797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20799 soname_spec='${libname}${release}${shared_ext}$major'
20800 if test "X$HPUX_IA64_MODE" = X32; then
20801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20802 else
20803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20807 hppa*64*)
20808 shrext_cmds='.sl'
20809 hardcode_into_libs=yes
20810 dynamic_linker="$host_os dld.sl"
20811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20819 shrext_cmds='.sl'
20820 dynamic_linker="$host_os dld.sl"
20821 shlibpath_var=SHLIB_PATH
20822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20826 esac
20827 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20828 postinstall_cmds='chmod 555 $lib'
20829 # or fails outright, so override atomically:
20830 install_override_mode=555
20833 interix[3-9]*)
20834 version_type=linux
20835 need_lib_prefix=no
20836 need_version=no
20837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20838 soname_spec='${libname}${release}${shared_ext}$major'
20839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20840 shlibpath_var=LD_LIBRARY_PATH
20841 shlibpath_overrides_runpath=no
20842 hardcode_into_libs=yes
20845 irix5* | irix6* | nonstopux*)
20846 case $host_os in
20847 nonstopux*) version_type=nonstopux ;;
20849 if test "$lt_cv_prog_gnu_ld" = yes; then
20850 version_type=linux
20851 else
20852 version_type=irix
20853 fi ;;
20854 esac
20855 need_lib_prefix=no
20856 need_version=no
20857 soname_spec='${libname}${release}${shared_ext}$major'
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20859 case $host_os in
20860 irix5* | nonstopux*)
20861 libsuff= shlibsuff=
20864 case $LD in # libtool.m4 will add one of these switches to LD
20865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20866 libsuff= shlibsuff= libmagic=32-bit;;
20867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20868 libsuff=32 shlibsuff=N32 libmagic=N32;;
20869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20871 *) libsuff= shlibsuff= libmagic=never-match;;
20872 esac
20874 esac
20875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20876 shlibpath_overrides_runpath=no
20877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20879 hardcode_into_libs=yes
20882 # No shared lib support for Linux oldld, aout, or coff.
20883 linux*oldld* | linux*aout* | linux*coff*)
20884 dynamic_linker=no
20887 # This must be Linux ELF.
20888 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20889 version_type=linux
20890 need_lib_prefix=no
20891 need_version=no
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 soname_spec='${libname}${release}${shared_ext}$major'
20894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20895 shlibpath_var=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath=no
20898 # Some binutils ld are patched to set DT_RUNPATH
20899 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20900 $as_echo_n "(cached) " >&6
20901 else
20902 lt_cv_shlibpath_overrides_runpath=no
20903 save_LDFLAGS=$LDFLAGS
20904 save_libdir=$libdir
20905 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20906 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20911 main ()
20915 return 0;
20917 _ACEOF
20918 if ac_fn_cxx_try_link "$LINENO"; then :
20919 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20920 lt_cv_shlibpath_overrides_runpath=yes
20923 rm -f core conftest.err conftest.$ac_objext \
20924 conftest$ac_exeext conftest.$ac_ext
20925 LDFLAGS=$save_LDFLAGS
20926 libdir=$save_libdir
20930 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20932 # This implies no fast_install, which is unacceptable.
20933 # Some rework will be needed to allow for fast_install
20934 # before this can be enabled.
20935 hardcode_into_libs=yes
20937 # Append ld.so.conf contents to the search path
20938 if test -f /etc/ld.so.conf; then
20939 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' ' '`
20940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20943 # We used to test for /lib/ld.so.1 and disable shared libraries on
20944 # powerpc, because MkLinux only supported shared libraries with the
20945 # GNU dynamic linker. Since this was broken with cross compilers,
20946 # most powerpc-linux boxes support dynamic linking these days and
20947 # people can always --disable-shared, the test was removed, and we
20948 # assume the GNU/Linux dynamic linker is in use.
20949 dynamic_linker='GNU/Linux ld.so'
20952 netbsd*)
20953 version_type=sunos
20954 need_lib_prefix=no
20955 need_version=no
20956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20959 dynamic_linker='NetBSD (a.out) ld.so'
20960 else
20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20962 soname_spec='${libname}${release}${shared_ext}$major'
20963 dynamic_linker='NetBSD ld.elf_so'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 shlibpath_overrides_runpath=yes
20967 hardcode_into_libs=yes
20970 newsos6)
20971 version_type=linux
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 shlibpath_var=LD_LIBRARY_PATH
20974 shlibpath_overrides_runpath=yes
20977 *nto* | *qnx*)
20978 version_type=qnx
20979 need_lib_prefix=no
20980 need_version=no
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982 soname_spec='${libname}${release}${shared_ext}$major'
20983 shlibpath_var=LD_LIBRARY_PATH
20984 shlibpath_overrides_runpath=no
20985 hardcode_into_libs=yes
20986 dynamic_linker='ldqnx.so'
20989 openbsd*)
20990 version_type=sunos
20991 sys_lib_dlsearch_path_spec="/usr/lib"
20992 need_lib_prefix=no
20993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20994 case $host_os in
20995 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20996 *) need_version=no ;;
20997 esac
20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21000 shlibpath_var=LD_LIBRARY_PATH
21001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21002 case $host_os in
21003 openbsd2.[89] | openbsd2.[89].*)
21004 shlibpath_overrides_runpath=no
21007 shlibpath_overrides_runpath=yes
21009 esac
21010 else
21011 shlibpath_overrides_runpath=yes
21015 os2*)
21016 libname_spec='$name'
21017 shrext_cmds=".dll"
21018 need_lib_prefix=no
21019 library_names_spec='$libname${shared_ext} $libname.a'
21020 dynamic_linker='OS/2 ld.exe'
21021 shlibpath_var=LIBPATH
21024 osf3* | osf4* | osf5*)
21025 version_type=osf
21026 need_lib_prefix=no
21027 need_version=no
21028 soname_spec='${libname}${release}${shared_ext}$major'
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 shlibpath_var=LD_LIBRARY_PATH
21031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21035 rdos*)
21036 dynamic_linker=no
21039 solaris*)
21040 version_type=linux
21041 need_lib_prefix=no
21042 need_version=no
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 soname_spec='${libname}${release}${shared_ext}$major'
21045 shlibpath_var=LD_LIBRARY_PATH
21046 shlibpath_overrides_runpath=yes
21047 hardcode_into_libs=yes
21048 # ldd complains unless libraries are executable
21049 postinstall_cmds='chmod +x $lib'
21052 sunos4*)
21053 version_type=sunos
21054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21056 shlibpath_var=LD_LIBRARY_PATH
21057 shlibpath_overrides_runpath=yes
21058 if test "$with_gnu_ld" = yes; then
21059 need_lib_prefix=no
21061 need_version=yes
21064 sysv4 | sysv4.3*)
21065 version_type=linux
21066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21067 soname_spec='${libname}${release}${shared_ext}$major'
21068 shlibpath_var=LD_LIBRARY_PATH
21069 case $host_vendor in
21070 sni)
21071 shlibpath_overrides_runpath=no
21072 need_lib_prefix=no
21073 runpath_var=LD_RUN_PATH
21075 siemens)
21076 need_lib_prefix=no
21078 motorola)
21079 need_lib_prefix=no
21080 need_version=no
21081 shlibpath_overrides_runpath=no
21082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21084 esac
21087 sysv4*MP*)
21088 if test -d /usr/nec ;then
21089 version_type=linux
21090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21091 soname_spec='$libname${shared_ext}.$major'
21092 shlibpath_var=LD_LIBRARY_PATH
21096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21097 version_type=freebsd-elf
21098 need_lib_prefix=no
21099 need_version=no
21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21101 soname_spec='${libname}${release}${shared_ext}$major'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath=yes
21104 hardcode_into_libs=yes
21105 if test "$with_gnu_ld" = yes; then
21106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21107 else
21108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21109 case $host_os in
21110 sco3.2v5*)
21111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21113 esac
21115 sys_lib_dlsearch_path_spec='/usr/lib'
21118 tpf*)
21119 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21120 version_type=linux
21121 need_lib_prefix=no
21122 need_version=no
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124 shlibpath_var=LD_LIBRARY_PATH
21125 shlibpath_overrides_runpath=no
21126 hardcode_into_libs=yes
21129 uts4*)
21130 version_type=linux
21131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132 soname_spec='${libname}${release}${shared_ext}$major'
21133 shlibpath_var=LD_LIBRARY_PATH
21137 dynamic_linker=no
21139 esac
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21141 $as_echo "$dynamic_linker" >&6; }
21142 test "$dynamic_linker" = no && can_build_shared=no
21144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21145 if test "$GCC" = yes; then
21146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21149 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21153 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21194 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21195 hardcode_action_CXX=
21196 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21197 test -n "$runpath_var_CXX" ||
21198 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21200 # We can hardcode non-existent directories.
21201 if test "$hardcode_direct_CXX" != no &&
21202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21203 # have to relink, otherwise we might link with an installed library
21204 # when we should be linking with a yet-to-be-installed one
21205 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21206 test "$hardcode_minus_L_CXX" != no; then
21207 # Linking always hardcodes the temporary library directory.
21208 hardcode_action_CXX=relink
21209 else
21210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21211 hardcode_action_CXX=immediate
21213 else
21214 # We cannot hardcode anything, or else we can only hardcode existing
21215 # directories.
21216 hardcode_action_CXX=unsupported
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21219 $as_echo "$hardcode_action_CXX" >&6; }
21221 if test "$hardcode_action_CXX" = relink ||
21222 test "$inherit_rpath_CXX" = yes; then
21223 # Fast installation is not supported
21224 enable_fast_install=no
21225 elif test "$shlibpath_overrides_runpath" = yes ||
21226 test "$enable_shared" = no; then
21227 # Fast installation is not necessary
21228 enable_fast_install=needless
21237 fi # test -n "$compiler"
21239 CC=$lt_save_CC
21240 LDCXX=$LD
21241 LD=$lt_save_LD
21242 GCC=$lt_save_GCC
21243 with_gnu_ld=$lt_save_with_gnu_ld
21244 lt_cv_path_LDCXX=$lt_cv_path_LD
21245 lt_cv_path_LD=$lt_save_path_LD
21246 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21247 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21248 fi # test "$_lt_caught_CXX_error" != yes
21250 ac_ext=c
21251 ac_cpp='$CPP $CPPFLAGS'
21252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21271 # Only expand once:
21277 # Identify the assembler which will work hand-in-glove with the newly
21278 # built GCC, so that we can examine its features. This is the assembler
21279 # which will be driven by the driver program.
21281 # If build != host, and we aren't building gas in-tree, we identify a
21282 # build->target assembler and hope that it will have the same features
21283 # as the host->target assembler we'll be using.
21284 gcc_cv_gas_major_version=
21285 gcc_cv_gas_minor_version=
21286 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21288 if test "${gcc_cv_as+set}" = set; then :
21290 else
21292 if test -x "$DEFAULT_ASSEMBLER"; then
21293 gcc_cv_as="$DEFAULT_ASSEMBLER"
21294 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21295 && test -f ../gas/Makefile \
21296 && test x$build = x$host; then
21297 gcc_cv_as=../gas/as-new$build_exeext
21298 elif test -x as$build_exeext; then
21299 # Build using assembler in the current directory.
21300 gcc_cv_as=./as$build_exeext
21301 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21302 gcc_cv_as="$AS_FOR_TARGET"
21303 else
21304 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21305 set dummy $AS_FOR_TARGET; ac_word=$2
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21307 $as_echo_n "checking for $ac_word... " >&6; }
21308 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21309 $as_echo_n "(cached) " >&6
21310 else
21311 case $gcc_cv_as in
21312 [\\/]* | ?:[\\/]*)
21313 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21317 for as_dir in $PATH
21319 IFS=$as_save_IFS
21320 test -z "$as_dir" && as_dir=.
21321 for ac_exec_ext in '' $ac_executable_extensions; do
21322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21323 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21325 break 2
21327 done
21328 done
21329 IFS=$as_save_IFS
21332 esac
21334 gcc_cv_as=$ac_cv_path_gcc_cv_as
21335 if test -n "$gcc_cv_as"; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21337 $as_echo "$gcc_cv_as" >&6; }
21338 else
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21347 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21349 case "$ORIGINAL_AS_FOR_TARGET" in
21350 ./as | ./as$build_exeext) ;;
21351 *) ac_config_files="$ac_config_files as:exec-tool.in"
21353 esac
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21356 $as_echo_n "checking what assembler to use... " >&6; }
21357 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21358 # Single tree build which includes gas. We want to prefer it
21359 # over whatever linker top-level may have detected, since
21360 # we'll use what we're building after installation anyway.
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21362 $as_echo "newly built gas" >&6; }
21363 in_tree_gas=yes
21364 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21365 for f in $gcc_cv_as_bfd_srcdir/configure \
21366 $gcc_cv_as_gas_srcdir/configure \
21367 $gcc_cv_as_gas_srcdir/configure.in \
21368 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21369 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21370 if test x$gcc_cv_gas_version != x; then
21371 break
21373 done
21374 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21375 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21376 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21377 case $gcc_cv_gas_patch_version in
21378 "") gcc_cv_gas_patch_version="0" ;;
21379 esac
21380 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21381 + $gcc_cv_gas_minor_version \) \* 1000 \
21382 + $gcc_cv_gas_patch_version`
21384 in_tree_gas_is_elf=no
21385 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21386 || (grep 'obj_format = multi' ../gas/Makefile \
21387 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21388 then
21389 in_tree_gas_is_elf=yes
21391 else
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21393 $as_echo "$gcc_cv_as" >&6; }
21394 in_tree_gas=no
21397 # Identify the linker which will work hand-in-glove with the newly
21398 # built GCC, so that we can examine its features. This is the linker
21399 # which will be driven by the driver program.
21401 # If build != host, and we aren't building gas in-tree, we identify a
21402 # build->target linker and hope that it will have the same features
21403 # as the host->target linker we'll be using.
21404 gcc_cv_gld_major_version=
21405 gcc_cv_gld_minor_version=
21406 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21407 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21409 if test "${gcc_cv_ld+set}" = set; then :
21411 else
21413 if test -x "$DEFAULT_LINKER"; then
21414 gcc_cv_ld="$DEFAULT_LINKER"
21415 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21416 && test -f ../ld/Makefile \
21417 && test x$build = x$host; then
21418 gcc_cv_ld=../ld/ld-new$build_exeext
21419 elif test -x collect-ld$build_exeext; then
21420 # Build using linker in the current directory.
21421 gcc_cv_ld=./collect-ld$build_exeext
21422 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21423 gcc_cv_ld="$LD_FOR_TARGET"
21424 else
21425 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21426 set dummy $LD_FOR_TARGET; ac_word=$2
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21428 $as_echo_n "checking for $ac_word... " >&6; }
21429 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21430 $as_echo_n "(cached) " >&6
21431 else
21432 case $gcc_cv_ld in
21433 [\\/]* | ?:[\\/]*)
21434 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21438 for as_dir in $PATH
21440 IFS=$as_save_IFS
21441 test -z "$as_dir" && as_dir=.
21442 for ac_exec_ext in '' $ac_executable_extensions; do
21443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21444 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21446 break 2
21448 done
21449 done
21450 IFS=$as_save_IFS
21453 esac
21455 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21456 if test -n "$gcc_cv_ld"; then
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21458 $as_echo "$gcc_cv_ld" >&6; }
21459 else
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21461 $as_echo "no" >&6; }
21468 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21469 PLUGIN_LD=`basename $gcc_cv_ld`
21471 # Check whether --with-plugin-ld was given.
21472 if test "${with_plugin_ld+set}" = set; then :
21473 withval=$with_plugin_ld; if test x"$withval" != x; then
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21475 PLUGIN_LD="$withval"
21481 cat >>confdefs.h <<_ACEOF
21482 #define PLUGIN_LD "$PLUGIN_LD"
21483 _ACEOF
21486 # Check to see if we are using gold instead of ld
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21488 $as_echo_n "checking whether we are using gold... " >&6; }
21489 ld_is_gold=no
21490 if test x$gcc_cv_ld != x; then
21491 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21492 | grep "GNU gold" > /dev/null; then
21493 ld_is_gold=yes
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21497 $as_echo "$ld_is_gold" >&6; }
21499 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21501 case "$ORIGINAL_LD_FOR_TARGET" in
21502 ./collect-ld | ./collect-ld$build_exeext) ;;
21503 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21505 esac
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21508 $as_echo_n "checking what linker to use... " >&6; }
21509 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21510 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21511 # Single tree build which includes ld. We want to prefer it
21512 # over whatever linker top-level may have detected, since
21513 # we'll use what we're building after installation anyway.
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21515 $as_echo "newly built ld" >&6; }
21516 in_tree_ld=yes
21517 in_tree_ld_is_elf=no
21518 if (grep 'EMUL = .*elf' ../ld/Makefile \
21519 || grep 'EMUL = .*linux' ../ld/Makefile \
21520 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21521 in_tree_ld_is_elf=yes
21522 elif test "$ld_is_gold" = yes; then
21523 in_tree_ld_is_elf=yes
21525 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
21527 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21528 if test x$gcc_cv_gld_version != x; then
21529 break
21531 done
21532 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21533 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21534 else
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21536 $as_echo "$gcc_cv_ld" >&6; }
21537 in_tree_ld=no
21540 # Figure out what nm we will be using.
21541 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21542 if test "${gcc_cv_nm+set}" = set; then :
21544 else
21546 if test -f $gcc_cv_binutils_srcdir/configure.in \
21547 && test -f ../binutils/Makefile \
21548 && test x$build = x$host; then
21549 gcc_cv_nm=../binutils/nm-new$build_exeext
21550 elif test -x nm$build_exeext; then
21551 gcc_cv_nm=./nm$build_exeext
21552 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21553 gcc_cv_nm="$NM_FOR_TARGET"
21554 else
21555 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21556 set dummy $NM_FOR_TARGET; ac_word=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21561 else
21562 case $gcc_cv_nm in
21563 [\\/]* | ?:[\\/]*)
21564 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21568 for as_dir in $PATH
21570 IFS=$as_save_IFS
21571 test -z "$as_dir" && as_dir=.
21572 for ac_exec_ext in '' $ac_executable_extensions; do
21573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21576 break 2
21578 done
21579 done
21580 IFS=$as_save_IFS
21583 esac
21585 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21586 if test -n "$gcc_cv_nm"; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21588 $as_echo "$gcc_cv_nm" >&6; }
21589 else
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21599 $as_echo_n "checking what nm to use... " >&6; }
21600 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21601 # Single tree build which includes binutils.
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21603 $as_echo "newly built nm" >&6; }
21604 in_tree_nm=yes
21605 else
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21607 $as_echo "$gcc_cv_nm" >&6; }
21608 in_tree_nm=no
21611 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21613 case "$ORIGINAL_NM_FOR_TARGET" in
21614 ./nm | ./nm$build_exeext) ;;
21615 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21617 esac
21620 # Figure out what objdump we will be using.
21621 if test "${gcc_cv_objdump+set}" = set; then :
21623 else
21625 if test -f $gcc_cv_binutils_srcdir/configure.in \
21626 && test -f ../binutils/Makefile \
21627 && test x$build = x$host; then
21628 # Single tree build which includes binutils.
21629 gcc_cv_objdump=../binutils/objdump$build_exeext
21630 elif test -x objdump$build_exeext; then
21631 gcc_cv_objdump=./objdump$build_exeext
21632 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21633 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21634 else
21635 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21636 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21641 else
21642 case $gcc_cv_objdump in
21643 [\\/]* | ?:[\\/]*)
21644 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21648 for as_dir in $PATH
21650 IFS=$as_save_IFS
21651 test -z "$as_dir" && as_dir=.
21652 for ac_exec_ext in '' $ac_executable_extensions; do
21653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21654 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21656 break 2
21658 done
21659 done
21660 IFS=$as_save_IFS
21663 esac
21665 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21666 if test -n "$gcc_cv_objdump"; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21668 $as_echo "$gcc_cv_objdump" >&6; }
21669 else
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21679 $as_echo_n "checking what objdump to use... " >&6; }
21680 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21681 # Single tree build which includes binutils.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21683 $as_echo "newly built objdump" >&6; }
21684 elif test x$gcc_cv_objdump = x; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21686 $as_echo "not found" >&6; }
21687 else
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21689 $as_echo "$gcc_cv_objdump" >&6; }
21692 # Figure out what readelf we will be using.
21693 if test "${gcc_cv_readelf+set}" = set; then :
21695 else
21697 if test -f $gcc_cv_binutils_srcdir/configure.in \
21698 && test -f ../binutils/Makefile \
21699 && test x$build = x$host; then
21700 # Single tree build which includes binutils.
21701 gcc_cv_readelf=../binutils/readelf$build_exeext
21702 elif test -x readelf$build_exeext; then
21703 gcc_cv_readelf=./readelf$build_exeext
21704 else
21705 # Extract the first word of "readelf", so it can be a program name with args.
21706 set dummy readelf; ac_word=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21711 else
21712 case $gcc_cv_readelf in
21713 [\\/]* | ?:[\\/]*)
21714 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21720 IFS=$as_save_IFS
21721 test -z "$as_dir" && as_dir=.
21722 for ac_exec_ext in '' $ac_executable_extensions; do
21723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21726 break 2
21728 done
21729 done
21730 IFS=$as_save_IFS
21733 esac
21735 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21736 if test -n "$gcc_cv_readelf"; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21738 $as_echo "$gcc_cv_readelf" >&6; }
21739 else
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21749 $as_echo_n "checking what readelf to use... " >&6; }
21750 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21751 # Single tree build which includes binutils.
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21753 $as_echo "newly built readelf" >&6; }
21754 elif test x$gcc_cv_readelf = x; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21757 else
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21759 $as_echo "$gcc_cv_readelf" >&6; }
21762 # Figure out what assembler alignment features are present.
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21764 $as_echo_n "checking assembler flags... " >&6; }
21765 if test "${gcc_cv_as_flags+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21767 else
21768 case "$target" in
21769 i[34567]86-*-linux*)
21770 gcc_cv_as_flags="--32"
21772 powerpc*-*-darwin*)
21773 gcc_cv_as_flags="-arch ppc"
21776 gcc_cv_as_flags=" "
21778 esac
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21781 $as_echo "$gcc_cv_as_flags" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21784 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21785 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21786 $as_echo_n "(cached) " >&6
21787 else
21788 gcc_cv_as_balign_and_p2align=no
21789 if test $in_tree_gas = yes; then
21790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21791 then gcc_cv_as_balign_and_p2align=yes
21793 elif test x$gcc_cv_as != x; then
21794 $as_echo '.balign 4
21795 .p2align 2' > conftest.s
21796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; }
21802 then
21803 gcc_cv_as_balign_and_p2align=yes
21804 else
21805 echo "configure: failed program was" >&5
21806 cat conftest.s >&5
21808 rm -f conftest.o conftest.s
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21812 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21813 if test $gcc_cv_as_balign_and_p2align = yes; then
21815 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21820 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21821 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 gcc_cv_as_max_skip_p2align=no
21825 if test $in_tree_gas = yes; then
21826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21827 then gcc_cv_as_max_skip_p2align=yes
21829 elif test x$gcc_cv_as != x; then
21830 $as_echo '.p2align 4,,7' > conftest.s
21831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21837 then
21838 gcc_cv_as_max_skip_p2align=yes
21839 else
21840 echo "configure: failed program was" >&5
21841 cat conftest.s >&5
21843 rm -f conftest.o conftest.s
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21848 if test $gcc_cv_as_max_skip_p2align = yes; then
21850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21855 $as_echo_n "checking assembler for .literal16... " >&6; }
21856 if test "${gcc_cv_as_literal16+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 gcc_cv_as_literal16=no
21860 if test $in_tree_gas = yes; then
21861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21862 then gcc_cv_as_literal16=yes
21864 elif test x$gcc_cv_as != x; then
21865 $as_echo '.literal16' > conftest.s
21866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871 test $ac_status = 0; }; }
21872 then
21873 gcc_cv_as_literal16=yes
21874 else
21875 echo "configure: failed program was" >&5
21876 cat conftest.s >&5
21878 rm -f conftest.o conftest.s
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21882 $as_echo "$gcc_cv_as_literal16" >&6; }
21883 if test $gcc_cv_as_literal16 = yes; then
21885 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21890 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21891 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21893 else
21894 gcc_cv_as_subsection_m1=no
21895 if test $in_tree_gas = yes; then
21896 if test $in_tree_gas_is_elf = yes \
21897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21898 then gcc_cv_as_subsection_m1=yes
21900 elif test x$gcc_cv_as != x; then
21901 $as_echo 'conftest_label1: .word 0
21902 .subsection -1
21903 conftest_label2: .word 0
21904 .previous' > conftest.s
21905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21911 then
21912 if test x$gcc_cv_nm != x; then
21913 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21914 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21915 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21916 then :
21917 else gcc_cv_as_subsection_m1=yes
21919 rm -f conftest.nm1 conftest.nm2
21921 else
21922 echo "configure: failed program was" >&5
21923 cat conftest.s >&5
21925 rm -f conftest.o conftest.s
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21930 if test $gcc_cv_as_subsection_m1 = yes; then
21932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21937 $as_echo_n "checking assembler for .weak... " >&6; }
21938 if test "${gcc_cv_as_weak+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 gcc_cv_as_weak=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21944 then gcc_cv_as_weak=yes
21946 elif test x$gcc_cv_as != x; then
21947 $as_echo ' .weak foobar' > conftest.s
21948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21950 (eval $ac_try) 2>&5
21951 ac_status=$?
21952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21953 test $ac_status = 0; }; }
21954 then
21955 gcc_cv_as_weak=yes
21956 else
21957 echo "configure: failed program was" >&5
21958 cat conftest.s >&5
21960 rm -f conftest.o conftest.s
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21964 $as_echo "$gcc_cv_as_weak" >&6; }
21965 if test $gcc_cv_as_weak = yes; then
21967 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21972 $as_echo_n "checking assembler for .weakref... " >&6; }
21973 if test "${gcc_cv_as_weakref+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21975 else
21976 gcc_cv_as_weakref=no
21977 if test $in_tree_gas = yes; then
21978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21979 then gcc_cv_as_weakref=yes
21981 elif test x$gcc_cv_as != x; then
21982 $as_echo ' .weakref foobar, barfnot' > conftest.s
21983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }; }
21989 then
21990 gcc_cv_as_weakref=yes
21991 else
21992 echo "configure: failed program was" >&5
21993 cat conftest.s >&5
21995 rm -f conftest.o conftest.s
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21999 $as_echo "$gcc_cv_as_weakref" >&6; }
22000 if test $gcc_cv_as_weakref = yes; then
22002 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22007 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22008 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 gcc_cv_as_nsubspa_comdat=no
22012 if test $in_tree_gas = yes; then
22013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22014 then gcc_cv_as_nsubspa_comdat=yes
22016 elif test x$gcc_cv_as != x; then
22017 $as_echo ' .SPACE $TEXT$
22018 .NSUBSPA $CODE$,COMDAT' > conftest.s
22019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; }
22025 then
22026 gcc_cv_as_nsubspa_comdat=yes
22027 else
22028 echo "configure: failed program was" >&5
22029 cat conftest.s >&5
22031 rm -f conftest.o conftest.s
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22035 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22036 if test $gcc_cv_as_nsubspa_comdat = yes; then
22038 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22042 # .hidden needs to be supported in both the assembler and the linker,
22043 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22044 # This is irritatingly difficult to feature test for; we have to check the
22045 # date string after the version number. If we've got an in-tree
22046 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22047 # to be safe.
22048 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22050 $as_echo_n "checking assembler for .hidden... " >&6; }
22051 if test "${gcc_cv_as_hidden+set}" = set; then :
22052 $as_echo_n "(cached) " >&6
22053 else
22054 gcc_cv_as_hidden=no
22055 if test $in_tree_gas = yes; then
22056 if test $in_tree_gas_is_elf = yes \
22057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22058 then gcc_cv_as_hidden=yes
22060 elif test x$gcc_cv_as != x; then
22061 $as_echo ' .hidden foobar
22062 foobar:' > conftest.s
22063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
22067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068 test $ac_status = 0; }; }
22069 then
22071 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22072 # STV_HIDDEN, so disable .hidden support if so.
22073 case "${target}" in
22074 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22075 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22076 cat > conftest.s <<EOF
22077 .globl hidden
22078 .hidden hidden
22079 hidden:
22080 .globl default
22081 .set default,hidden
22083 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22084 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22085 grep '\.hidden default' > /dev/null; then
22086 gcc_cv_as_hidden=no
22087 else
22088 gcc_cv_as_hidden=yes
22090 else
22091 # Assume bug is present if objdump is missing.
22092 gcc_cv_as_hidden=no
22096 gcc_cv_as_hidden=yes
22098 esac
22099 else
22100 echo "configure: failed program was" >&5
22101 cat conftest.s >&5
22103 rm -f conftest.o conftest.s
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22107 $as_echo "$gcc_cv_as_hidden" >&6; }
22109 case "${target}" in
22110 *-*-darwin*)
22111 # Darwin as has some visibility support, though with a different syntax.
22112 gcc_cv_as_hidden=yes
22114 esac
22116 # gnu_indirect_function type is an extension proposed at
22117 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22118 # selection of function implementation
22119 # Check whether --enable-gnu-indirect-function was given.
22120 if test "${enable_gnu_indirect_function+set}" = set; then :
22121 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22122 yes | no) ;;
22123 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22124 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22125 esac
22126 else
22127 enable_gnu_indirect_function="$default_gnu_indirect_function"
22130 if test x$enable_gnu_indirect_function = xyes; then
22132 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22136 if test $in_tree_ld != yes ; then
22137 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22138 if echo "$ld_ver" | grep GNU > /dev/null; then
22139 if test x"$ld_is_gold" = xyes; then
22140 # GNU gold --version looks like this:
22142 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22144 # We extract the binutils version which is more familiar and specific
22145 # than the gold version.
22146 ld_vers=`echo $ld_ver | sed -n \
22147 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22148 else
22149 # GNU ld --version looks like this:
22151 # GNU ld (GNU Binutils) 2.21.51.20110225
22152 ld_vers=`echo $ld_ver | sed -n \
22153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22155 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'`
22156 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22157 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22158 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22159 else
22160 case "${target}" in
22161 *-*-solaris2*)
22163 # Solaris 2 ld -V output looks like this for a regular version:
22165 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22167 # but test versions add stuff at the end:
22169 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22171 ld_ver=`$gcc_cv_ld -V 2>&1`
22172 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22173 ld_vers=`echo $ld_ver | sed -n \
22174 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22175 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22176 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22179 esac
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22184 $as_echo_n "checking linker for .hidden support... " >&6; }
22185 if test "${gcc_cv_ld_hidden+set}" = set; then :
22186 $as_echo_n "(cached) " >&6
22187 else
22188 if test $in_tree_ld = yes ; then
22189 gcc_cv_ld_hidden=no
22190 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 \
22191 && test $in_tree_ld_is_elf = yes; then
22192 gcc_cv_ld_hidden=yes
22194 else
22195 gcc_cv_ld_hidden=yes
22196 if test x"$ld_is_gold" = xyes; then
22198 elif echo "$ld_ver" | grep GNU > /dev/null; then
22199 if test 0"$ld_date" -lt 20020404; then
22200 if test -n "$ld_date"; then
22201 # If there was date string, but was earlier than 2002-04-04, fail
22202 gcc_cv_ld_hidden=no
22203 elif test -z "$ld_vers"; then
22204 # If there was no date string nor ld version number, something is wrong
22205 gcc_cv_ld_hidden=no
22206 else
22207 test -z "$ld_vers_patch" && ld_vers_patch=0
22208 if test "$ld_vers_major" -lt 2; then
22209 gcc_cv_ld_hidden=no
22210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22211 gcc_cv_ld_hidden="no"
22212 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22213 gcc_cv_ld_hidden=no
22217 else
22218 case "${target}" in
22219 *-*-darwin*)
22220 # Darwin ld has some visibility support.
22221 gcc_cv_ld_hidden=yes
22223 hppa64*-*-hpux* | ia64*-*-hpux*)
22224 gcc_cv_ld_hidden=yes
22226 *-*-solaris2.8*)
22227 # .hidden support was backported to Solaris 8, starting with ld
22228 # version 1.276.
22229 if test "$ld_vers_minor" -ge 276; then
22230 gcc_cv_ld_hidden=yes
22231 else
22232 gcc_cv_ld_hidden=no
22235 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22236 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22237 # .symbolic was only added in Solaris 9 12/02.
22238 gcc_cv_ld_hidden=yes
22241 gcc_cv_ld_hidden=no
22243 esac
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22248 $as_echo "$gcc_cv_ld_hidden" >&6; }
22249 libgcc_visibility=no
22252 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22253 libgcc_visibility=yes
22255 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22260 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22261 gcc_cv_ld_ro_rw_mix=unknown
22262 if test $in_tree_ld = yes ; then
22263 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 \
22264 && test $in_tree_ld_is_elf = yes; then
22265 gcc_cv_ld_ro_rw_mix=read-write
22267 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22268 echo '.section myfoosect, "a"' > conftest1.s
22269 echo '.section myfoosect, "aw"' > conftest2.s
22270 echo '.byte 1' >> conftest2.s
22271 echo '.section myfoosect, "a"' > conftest3.s
22272 echo '.byte 0' >> conftest3.s
22273 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22274 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22275 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22276 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22277 conftest2.o conftest3.o > /dev/null 2>&1; then
22278 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22279 | sed -e '/myfoosect/!d' -e N`
22280 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22281 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22282 gcc_cv_ld_ro_rw_mix=read-only
22283 else
22284 gcc_cv_ld_ro_rw_mix=read-write
22288 rm -f conftest.* conftest[123].*
22290 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22292 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22296 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22298 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22300 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22301 if test "${gcc_cv_as_leb128+set}" = set; then :
22302 $as_echo_n "(cached) " >&6
22303 else
22304 gcc_cv_as_leb128=no
22305 if test $in_tree_gas = yes; then
22306 if test $in_tree_gas_is_elf = yes \
22307 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22308 then gcc_cv_as_leb128=yes
22310 elif test x$gcc_cv_as != x; then
22311 $as_echo ' .data
22312 .uleb128 L2 - L1
22314 .uleb128 1280
22315 .sleb128 -1010
22316 L2:' > conftest.s
22317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22322 test $ac_status = 0; }; }
22323 then
22324 # GAS versions before 2.11 do not support uleb128,
22325 # despite appearing to.
22326 # ??? There exists an elf-specific test that will crash
22327 # the assembler. Perhaps it's better to figure out whether
22328 # arbitrary sections are supported and try the test.
22329 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22330 if echo "$as_ver" | grep GNU > /dev/null; then
22331 as_vers=`echo $as_ver | sed -n \
22332 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22333 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22334 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22335 if test $as_major -eq 2 && test $as_minor -lt 11
22336 then :
22337 else gcc_cv_as_leb128=yes
22340 else
22341 echo "configure: failed program was" >&5
22342 cat conftest.s >&5
22344 rm -f conftest.o conftest.s
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22348 $as_echo "$gcc_cv_as_leb128" >&6; }
22349 if test $gcc_cv_as_leb128 = yes; then
22351 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22355 # Check if we have assembler support for unwind directives.
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22357 $as_echo_n "checking assembler for cfi directives... " >&6; }
22358 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22360 else
22361 gcc_cv_as_cfi_directive=no
22362 if test x$gcc_cv_as != x; then
22363 $as_echo ' .text
22364 .cfi_startproc
22365 .cfi_offset 0, 0
22366 .cfi_same_value 1
22367 .cfi_def_cfa 1, 2
22368 .cfi_escape 1, 2, 3, 4, 5
22369 .cfi_endproc' > conftest.s
22370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22372 (eval $ac_try) 2>&5
22373 ac_status=$?
22374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22375 test $ac_status = 0; }; }
22376 then
22377 case "$target" in
22378 *-*-solaris*)
22379 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22380 # read-only and read-write sections, we need to make sure that the
22381 # assembler used emits read-write .eh_frame sections.
22382 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22383 if test "x$gcc_cv_objdump" != x; then
22384 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22385 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22386 gcc_cv_as_cfi_directive=no
22387 else
22388 case "$target" in
22389 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22390 # On Solaris/x86, make sure that GCC and gas agree on using
22391 # read-only .eh_frame sections for 64-bit.
22392 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22393 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22394 sed -e /.eh_frame/!d -e N | \
22395 grep READONLY > /dev/null; then
22396 gcc_cv_as_cfi_directive=yes
22397 else
22398 gcc_cv_as_cfi_directive=no
22402 gcc_cv_as_cfi_directive=yes
22404 esac
22406 else
22407 # no objdump, err on the side of caution
22408 gcc_cv_as_cfi_directive=no
22410 else
22411 gcc_cv_as_cfi_directive=yes
22414 *-*-*)
22415 gcc_cv_as_cfi_directive=yes
22417 esac
22418 else
22419 echo "configure: failed program was" >&5
22420 cat conftest.s >&5
22422 rm -f conftest.o conftest.s
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22426 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22428 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22430 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22431 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 gcc_cv_as_cfi_advance_working=no
22435 if test x$gcc_cv_as != x; then
22436 $as_echo ' .text
22437 .cfi_startproc
22438 .cfi_adjust_cfa_offset 64
22439 .skip 75040, 0
22440 .cfi_adjust_cfa_offset 128
22441 .cfi_endproc' > conftest.s
22442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22448 then
22450 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22451 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22452 gcc_cv_as_cfi_advance_working=yes
22455 else
22456 echo "configure: failed program was" >&5
22457 cat conftest.s >&5
22459 rm -f conftest.o conftest.s
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22463 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22465 else
22466 # no objdump, err on the side of caution
22467 gcc_cv_as_cfi_advance_working=no
22471 cat >>confdefs.h <<_ACEOF
22472 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22473 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22474 _ACEOF
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22479 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22480 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22481 $as_echo_n "(cached) " >&6
22482 else
22483 gcc_cv_as_cfi_personality_directive=no
22484 if test x$gcc_cv_as != x; then
22485 $as_echo ' .text
22486 .cfi_startproc
22487 .cfi_personality 0, symbol
22488 .cfi_endproc' > conftest.s
22489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }
22495 then
22496 gcc_cv_as_cfi_personality_directive=yes
22497 else
22498 echo "configure: failed program was" >&5
22499 cat conftest.s >&5
22501 rm -f conftest.o conftest.s
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22505 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22508 cat >>confdefs.h <<_ACEOF
22509 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22510 then echo 1; else echo 0; fi`
22511 _ACEOF
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22515 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22516 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22518 else
22519 gcc_cv_as_cfi_sections_directive=no
22520 if test x$gcc_cv_as != x; then
22521 $as_echo ' .text
22522 .cfi_sections .debug_frame, .eh_frame
22523 .cfi_startproc
22524 .cfi_endproc' > conftest.s
22525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530 test $ac_status = 0; }; }
22531 then
22532 case $target_os in
22533 win32 | pe | cygwin* | mingw32* | uwin*)
22534 # Need to check that we generated the correct relocation for the
22535 # .debug_frame section. This was fixed for binutils 2.21.
22536 gcc_cv_as_cfi_sections_directive=no
22537 if test "x$gcc_cv_objdump" != x; then
22538 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22539 grep secrel > /dev/null; then
22540 gcc_cv_as_cfi_sections_directive=yes
22545 gcc_cv_as_cfi_sections_directive=yes
22547 esac
22548 else
22549 echo "configure: failed program was" >&5
22550 cat conftest.s >&5
22552 rm -f conftest.o conftest.s
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22556 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22562 then echo 1; else echo 0; fi`
22563 _ACEOF
22566 # GAS versions up to and including 2.11.0 may mis-optimize
22567 # .eh_frame data.
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22569 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22570 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22571 $as_echo_n "(cached) " >&6
22572 else
22573 gcc_cv_as_eh_frame=no
22574 if test $in_tree_gas = yes; then
22575 if test $in_tree_gas_is_elf = yes \
22576 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22577 then gcc_cv_as_eh_frame=yes
22579 elif test x$gcc_cv_as != x; then
22580 $as_echo ' .text
22581 .LFB1:
22582 .4byte 0
22583 .L1:
22584 .4byte 0
22585 .LFE1:
22586 .section .eh_frame,"aw",@progbits
22587 __FRAME_BEGIN__:
22588 .4byte .LECIE1-.LSCIE1
22589 .LSCIE1:
22590 .4byte 0x0
22591 .byte 0x1
22592 .ascii "z\0"
22593 .byte 0x1
22594 .byte 0x78
22595 .byte 0x1a
22596 .byte 0x0
22597 .byte 0x4
22598 .4byte 1
22599 .p2align 1
22600 .LECIE1:
22601 .LSFDE1:
22602 .4byte .LEFDE1-.LASFDE1
22603 .LASFDE1:
22604 .4byte .LASFDE1-__FRAME_BEGIN__
22605 .4byte .LFB1
22606 .4byte .LFE1-.LFB1
22607 .byte 0x4
22608 .4byte .LFE1-.LFB1
22609 .byte 0x4
22610 .4byte .L1-.LFB1
22611 .LEFDE1:' > conftest.s
22612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }
22618 then
22619 cat > conftest.lit <<EOF
22620 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22621 0010 01000000 12000000 18000000 00000000 ................
22622 0020 08000000 04080000 0044 .........D
22624 cat > conftest.big <<EOF
22625 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22626 0010 00000001 00000012 00000018 00000000 ................
22627 0020 00000008 04000000 0844 .........D
22629 # If the assembler didn't choke, and we can objdump,
22630 # and we got the correct data, then succeed.
22631 # The text in the here-document typically retains its unix-style line
22632 # endings, while the output of objdump will use host line endings.
22633 # Therefore, use diff -b for the comparisons.
22634 if test x$gcc_cv_objdump != x \
22635 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22636 | tail -3 > conftest.got \
22637 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22638 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22639 then
22640 gcc_cv_as_eh_frame=yes
22641 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22643 (eval $ac_try) 2>&5
22644 ac_status=$?
22645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22646 test $ac_status = 0; }; }; then
22647 gcc_cv_as_eh_frame=buggy
22648 else
22649 # Uh oh, what do we do now?
22650 gcc_cv_as_eh_frame=no
22652 else
22653 echo "configure: failed program was" >&5
22654 cat conftest.s >&5
22656 rm -f conftest.o conftest.s
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22660 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22663 if test $gcc_cv_as_eh_frame = buggy; then
22665 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22670 $as_echo_n "checking assembler for section merging support... " >&6; }
22671 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22672 $as_echo_n "(cached) " >&6
22673 else
22674 gcc_cv_as_shf_merge=no
22675 if test $in_tree_gas = yes; then
22676 if test $in_tree_gas_is_elf = yes \
22677 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22678 then gcc_cv_as_shf_merge=yes
22680 elif test x$gcc_cv_as != x; then
22681 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687 test $ac_status = 0; }; }
22688 then
22689 gcc_cv_as_shf_merge=yes
22690 else
22691 echo "configure: failed program was" >&5
22692 cat conftest.s >&5
22694 rm -f conftest.o conftest.s
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22698 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22700 if test $gcc_cv_as_shf_merge = no; then
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22702 $as_echo_n "checking assembler for section merging support... " >&6; }
22703 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 gcc_cv_as_shf_merge=no
22707 if test $in_tree_gas = yes; then
22708 if test $in_tree_gas_is_elf = yes \
22709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22710 then gcc_cv_as_shf_merge=yes
22712 elif test x$gcc_cv_as != x; then
22713 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22719 test $ac_status = 0; }; }
22720 then
22721 gcc_cv_as_shf_merge=yes
22722 else
22723 echo "configure: failed program was" >&5
22724 cat conftest.s >&5
22726 rm -f conftest.o conftest.s
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22730 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22736 _ACEOF
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22740 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22741 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22742 $as_echo_n "(cached) " >&6
22743 else
22744 gcc_cv_as_comdat_group=no
22745 if test $in_tree_gas = yes; then
22746 if test $in_tree_gas_is_elf = yes \
22747 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22748 then gcc_cv_as_comdat_group=yes
22750 elif test x$gcc_cv_as != x; then
22751 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22755 ac_status=$?
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; }
22758 then
22759 gcc_cv_as_comdat_group=yes
22760 else
22761 echo "configure: failed program was" >&5
22762 cat conftest.s >&5
22764 rm -f conftest.o conftest.s
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22768 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22770 if test $gcc_cv_as_comdat_group = yes; then
22771 gcc_cv_as_comdat_group_percent=no
22772 gcc_cv_as_comdat_group_group=no
22773 else
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22775 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22776 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22777 $as_echo_n "(cached) " >&6
22778 else
22779 gcc_cv_as_comdat_group_percent=no
22780 if test $in_tree_gas = yes; then
22781 if test $in_tree_gas_is_elf = yes \
22782 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22783 then gcc_cv_as_comdat_group_percent=yes
22785 elif test x$gcc_cv_as != x; then
22786 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792 test $ac_status = 0; }; }
22793 then
22794 gcc_cv_as_comdat_group_percent=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_comdat_group_percent" >&5
22803 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22805 if test $gcc_cv_as_comdat_group_percent = yes; then
22806 gcc_cv_as_comdat_group_group=no
22807 else
22808 case "${target}" in
22809 # Sun as uses a completely different syntax.
22810 *-*-solaris2*)
22811 case "${target}" in
22812 sparc*-*-solaris2*)
22813 conftest_s='
22814 .group foo,".text%foo",#comdat
22815 .section ".text%foo", #alloc,#execinstr,#progbits
22816 .globl foo
22817 foo:
22820 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22821 conftest_s='
22822 .group foo,.text%foo,#comdat
22823 .section .text%foo, "ax", @progbits
22824 .globl foo
22825 foo:
22828 esac
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22830 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22831 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22832 $as_echo_n "(cached) " >&6
22833 else
22834 gcc_cv_as_comdat_group_group=no
22835 if test x$gcc_cv_as != x; then
22836 $as_echo "$conftest_s" > conftest.s
22837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }
22843 then
22844 gcc_cv_as_comdat_group_group=yes
22845 else
22846 echo "configure: failed program was" >&5
22847 cat conftest.s >&5
22849 rm -f conftest.o conftest.s
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22853 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22856 esac
22859 if test x"$ld_is_gold" = xyes; then
22860 comdat_group=yes
22861 elif test $in_tree_ld = yes ; then
22862 comdat_group=no
22863 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 \
22864 && test $in_tree_ld_is_elf = yes; then
22865 comdat_group=yes
22867 elif echo "$ld_ver" | grep GNU > /dev/null; then
22868 comdat_group=yes
22869 if test 0"$ld_date" -lt 20050308; then
22870 if test -n "$ld_date"; then
22871 # If there was date string, but was earlier than 2005-03-08, fail
22872 comdat_group=no
22873 elif test "$ld_vers_major" -lt 2; then
22874 comdat_group=no
22875 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22876 comdat_group=no
22879 else
22880 case "${target}" in
22881 *-*-solaris2.1[1-9]*)
22882 comdat_group=no
22883 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22884 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22885 # version 1.688.
22887 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22888 # least ld version 1.2267.
22889 if test "$ld_vers_major" -gt 1; then
22890 comdat_group=yes
22891 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22892 comdat_group=yes
22893 elif test "$ld_vers_minor" -ge 2267; then
22894 comdat_group=yes
22898 # Assume linkers other than GNU ld don't support COMDAT group.
22899 comdat_group=no
22901 esac
22903 # Allow overriding the automatic COMDAT group tests above.
22904 # Check whether --enable-comdat was given.
22905 if test "${enable_comdat+set}" = set; then :
22906 enableval=$enable_comdat; comdat_group="$enable_comdat"
22909 if test $comdat_group = no; then
22910 gcc_cv_as_comdat_group=no
22911 gcc_cv_as_comdat_group_percent=no
22912 gcc_cv_as_comdat_group_group=no
22915 cat >>confdefs.h <<_ACEOF
22916 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22917 || test $gcc_cv_as_comdat_group_percent = yes \
22918 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22919 _ACEOF
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22923 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22924 if test "${gcc_cv_as_discriminator+set}" = set; then :
22925 $as_echo_n "(cached) " >&6
22926 else
22927 gcc_cv_as_discriminator=no
22928 if test $in_tree_gas = yes; then
22929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22930 then gcc_cv_as_discriminator=yes
22932 elif test x$gcc_cv_as != x; then
22933 $as_echo ' .text
22934 .file 1 "conf.c"
22935 .loc 1 1 0 discriminator 1' > conftest.s
22936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22942 then
22943 gcc_cv_as_discriminator=yes
22944 else
22945 echo "configure: failed program was" >&5
22946 cat conftest.s >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22952 $as_echo "$gcc_cv_as_discriminator" >&6; }
22953 if test $gcc_cv_as_discriminator = yes; then
22955 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22959 # Thread-local storage - the check is heavily parameterized.
22960 conftest_s=
22961 tls_first_major=
22962 tls_first_minor=
22963 tls_as_opt=
22964 case "$target" in
22965 alpha*-*-*)
22966 conftest_s='
22967 .section ".tdata","awT",@progbits
22968 foo: .long 25
22969 .text
22970 ldq $27,__tls_get_addr($29) !literal!1
22971 lda $16,foo($29) !tlsgd!1
22972 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22973 ldq $27,__tls_get_addr($29) !literal!2
22974 lda $16,foo($29) !tlsldm!2
22975 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22976 ldq $1,foo($29) !gotdtprel
22977 ldah $2,foo($29) !dtprelhi
22978 lda $3,foo($2) !dtprello
22979 lda $4,foo($29) !dtprel
22980 ldq $1,foo($29) !gottprel
22981 ldah $2,foo($29) !tprelhi
22982 lda $3,foo($2) !tprello
22983 lda $4,foo($29) !tprel'
22984 tls_first_major=2
22985 tls_first_minor=13
22986 tls_as_opt=--fatal-warnings
22988 cris-*-*|crisv32-*-*)
22989 conftest_s='
22990 .section ".tdata","awT",@progbits
22991 x: .long 25
22992 .text
22993 move.d x:IE,$r10
22994 nop'
22995 tls_first_major=2
22996 tls_first_minor=20
22997 tls_as_opt=--fatal-warnings
22999 frv*-*-*)
23000 conftest_s='
23001 .section ".tdata","awT",@progbits
23002 x: .long 25
23003 .text
23004 call #gettlsoff(x)'
23005 tls_first_major=2
23006 tls_first_minor=14
23008 hppa*-*-linux*)
23009 conftest_s='
23010 t1: .reg %r20
23011 t2: .reg %r21
23012 gp: .reg %r19
23013 .section ".tdata","awT",@progbits
23014 foo: .long 25
23015 .text
23016 .align 4
23017 addil LT%foo-$tls_gdidx$,gp
23018 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23019 b __tls_get_addr
23021 addil LT%foo-$tls_ldidx$,gp
23022 b __tls_get_addr
23023 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23024 addil LR%foo-$tls_dtpoff$,%ret0
23025 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23026 mfctl %cr27,%t1
23027 addil LT%foo-$tls_ieoff$,gp
23028 ldw RT%foo-$tls_ieoff$(%r1),%t2
23029 add %t1,%t2,%t3
23030 mfctl %cr27,%t1
23031 addil LR%foo-$tls_leoff$,%t1
23032 ldo RR%foo-$tls_leoff$(%r1),%t2'
23033 tls_first_major=2
23034 tls_first_minor=15
23035 tls_as_opt=--fatal-warnings
23037 arm*-*-*)
23038 conftest_s='
23039 .section ".tdata","awT",%progbits
23040 foo: .long 25
23041 .text
23042 .word foo(gottpoff)
23043 .word foo(tpoff)
23044 .word foo(tlsgd)
23045 .word foo(tlsldm)
23046 .word foo(tlsldo)'
23047 tls_first_major=2
23048 tls_first_minor=17
23050 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23051 case "$target" in
23052 i[34567]86-*-solaris2.*)
23053 on_solaris=yes
23054 tga_func=___tls_get_addr
23056 x86_64-*-solaris2.1[0-9]*)
23057 on_solaris=yes
23058 tga_func=__tls_get_addr
23061 on_solaris=no
23063 esac
23064 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23065 conftest_s='
23066 .section .tdata,"awt",@progbits'
23067 tls_first_major=0
23068 tls_first_minor=0
23070 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23072 else
23073 conftest_s='
23074 .section ".tdata","awT",@progbits'
23075 tls_first_major=2
23076 tls_first_minor=14
23077 tls_as_opt="--fatal-warnings"
23079 conftest_s="$conftest_s
23080 foo: .long 25
23081 .text
23082 movl %gs:0, %eax
23083 leal foo@tlsgd(,%ebx,1), %eax
23084 leal foo@tlsldm(%ebx), %eax
23085 leal foo@dtpoff(%eax), %edx
23086 movl foo@gottpoff(%ebx), %eax
23087 subl foo@gottpoff(%ebx), %eax
23088 addl foo@gotntpoff(%ebx), %eax
23089 movl foo@indntpoff, %eax
23090 movl \$foo@tpoff, %eax
23091 subl \$foo@tpoff, %eax
23092 leal foo@ntpoff(%ecx), %eax"
23094 x86_64-*-*)
23095 conftest_s='
23096 .section ".tdata","awT",@progbits
23097 foo: .long 25
23098 .text
23099 movq %fs:0, %rax
23100 leaq foo@TLSGD(%rip), %rdi
23101 leaq foo@TLSLD(%rip), %rdi
23102 leaq foo@DTPOFF(%rax), %rdx
23103 movq foo@GOTTPOFF(%rip), %rax
23104 movq $foo@TPOFF, %rax'
23105 tls_first_major=2
23106 tls_first_minor=14
23107 tls_as_opt=--fatal-warnings
23109 ia64-*-*)
23110 conftest_s='
23111 .section ".tdata","awT",@progbits
23112 foo: data8 25
23113 .text
23114 addl r16 = @ltoff(@dtpmod(foo#)), gp
23115 addl r17 = @ltoff(@dtprel(foo#)), gp
23116 addl r18 = @ltoff(@tprel(foo#)), gp
23117 addl r19 = @dtprel(foo#), gp
23118 adds r21 = @dtprel(foo#), r13
23119 movl r23 = @dtprel(foo#)
23120 addl r20 = @tprel(foo#), gp
23121 adds r22 = @tprel(foo#), r13
23122 movl r24 = @tprel(foo#)'
23123 tls_first_major=2
23124 tls_first_minor=13
23125 tls_as_opt=--fatal-warnings
23127 mips*-*-*)
23128 conftest_s='
23129 .section .tdata,"awT",@progbits
23131 .word 2
23132 .text
23133 addiu $4, $28, %tlsgd(x)
23134 addiu $4, $28, %tlsldm(x)
23135 lui $4, %dtprel_hi(x)
23136 addiu $4, $4, %dtprel_lo(x)
23137 lw $4, %gottprel(x)($28)
23138 lui $4, %tprel_hi(x)
23139 addiu $4, $4, %tprel_lo(x)'
23140 tls_first_major=2
23141 tls_first_minor=16
23142 tls_as_opt='-32 --fatal-warnings'
23144 m68k-*-*)
23145 conftest_s='
23146 .section .tdata,"awT",@progbits
23148 .word 2
23149 .text
23150 foo:
23151 move.l x@TLSGD(%a5),%a0
23152 move.l x@TLSLDM(%a5),%a0
23153 move.l x@TLSLDO(%a5),%a0
23154 move.l x@TLSIE(%a5),%a0
23155 move.l x@TLSLE(%a5),%a0'
23156 tls_first_major=2
23157 tls_first_minor=19
23158 tls_as_opt='--fatal-warnings'
23160 powerpc-*-*)
23161 conftest_s='
23162 .section ".tdata","awT",@progbits
23163 .align 2
23164 ld0: .space 4
23165 ld1: .space 4
23166 x1: .space 4
23167 x2: .space 4
23168 x3: .space 4
23169 .text
23170 addi 3,31,ld0@got@tlsgd
23171 bl __tls_get_addr
23172 addi 3,31,x1@got@tlsld
23173 bl __tls_get_addr
23174 addi 9,3,x1@dtprel
23175 addis 9,3,x2@dtprel@ha
23176 addi 9,9,x2@dtprel@l
23177 lwz 9,x3@got@tprel(31)
23178 add 9,9,x@tls
23179 addi 9,2,x1@tprel
23180 addis 9,2,x2@tprel@ha
23181 addi 9,9,x2@tprel@l'
23182 tls_first_major=2
23183 tls_first_minor=14
23184 tls_as_opt="-a32 --fatal-warnings"
23186 powerpc64-*-*)
23187 conftest_s='
23188 .section ".tdata","awT",@progbits
23189 .align 3
23190 ld0: .space 8
23191 ld1: .space 8
23192 x1: .space 8
23193 x2: .space 8
23194 x3: .space 8
23195 .text
23196 addi 3,2,ld0@got@tlsgd
23197 bl .__tls_get_addr
23199 addi 3,2,ld1@toc
23200 bl .__tls_get_addr
23202 addi 3,2,x1@got@tlsld
23203 bl .__tls_get_addr
23205 addi 9,3,x1@dtprel
23206 bl .__tls_get_addr
23208 addis 9,3,x2@dtprel@ha
23209 addi 9,9,x2@dtprel@l
23210 bl .__tls_get_addr
23212 ld 9,x3@got@dtprel(2)
23213 add 9,9,3
23214 bl .__tls_get_addr
23215 nop'
23216 tls_first_major=2
23217 tls_first_minor=14
23218 tls_as_opt="-a64 --fatal-warnings"
23220 s390-*-*)
23221 conftest_s='
23222 .section ".tdata","awT",@progbits
23223 foo: .long 25
23224 .text
23225 .long foo@TLSGD
23226 .long foo@TLSLDM
23227 .long foo@DTPOFF
23228 .long foo@NTPOFF
23229 .long foo@GOTNTPOFF
23230 .long foo@INDNTPOFF
23231 l %r1,foo@GOTNTPOFF(%r12)
23232 l %r1,0(%r1):tls_load:foo
23233 bas %r14,0(%r1,%r13):tls_gdcall:foo
23234 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23235 tls_first_major=2
23236 tls_first_minor=14
23237 tls_as_opt="-m31 --fatal-warnings"
23239 s390x-*-*)
23240 conftest_s='
23241 .section ".tdata","awT",@progbits
23242 foo: .long 25
23243 .text
23244 .quad foo@TLSGD
23245 .quad foo@TLSLDM
23246 .quad foo@DTPOFF
23247 .quad foo@NTPOFF
23248 .quad foo@GOTNTPOFF
23249 lg %r1,foo@GOTNTPOFF(%r12)
23250 larl %r1,foo@INDNTPOFF
23251 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23252 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23253 tls_first_major=2
23254 tls_first_minor=14
23255 tls_as_opt="-m64 -Aesame --fatal-warnings"
23257 sh-*-* | sh[34]-*-*)
23258 conftest_s='
23259 .section ".tdata","awT",@progbits
23260 foo: .long 25
23261 .text
23262 .long foo@TLSGD
23263 .long foo@TLSLDM
23264 .long foo@DTPOFF
23265 .long foo@GOTTPOFF
23266 .long foo@TPOFF'
23267 tls_first_major=2
23268 tls_first_minor=13
23269 tls_as_opt=--fatal-warnings
23271 sparc*-*-*)
23272 case "$target" in
23273 sparc*-sun-solaris2.*)
23274 on_solaris=yes
23275 tga_func=__tls_get_addr
23278 on_solaris=no
23280 esac
23281 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23282 conftest_s='
23283 .section ".tdata",#alloc,#write,#tls'
23284 tls_first_major=0
23285 tls_first_minor=0
23286 else
23287 conftest_s='
23288 .section ".tdata","awT",@progbits'
23289 tls_first_major=2
23290 tls_first_minor=14
23291 tls_as_opt="-32 --fatal-warnings"
23293 conftest_s="$conftest_s
23294 foo: .long 25
23295 .text
23296 sethi %tgd_hi22(foo), %o0
23297 add %o0, %tgd_lo10(foo), %o1
23298 add %l7, %o1, %o0, %tgd_add(foo)
23299 call __tls_get_addr, %tgd_call(foo)
23300 sethi %tldm_hi22(foo), %l1
23301 add %l1, %tldm_lo10(foo), %l2
23302 add %l7, %l2, %o0, %tldm_add(foo)
23303 call __tls_get_addr, %tldm_call(foo)
23304 sethi %tldo_hix22(foo), %l3
23305 xor %l3, %tldo_lox10(foo), %l4
23306 add %o0, %l4, %l5, %tldo_add(foo)
23307 sethi %tie_hi22(foo), %o3
23308 add %o3, %tie_lo10(foo), %o3
23309 ld [%l7 + %o3], %o2, %tie_ld(foo)
23310 add %g7, %o2, %o4, %tie_add(foo)
23311 sethi %tle_hix22(foo), %l1
23312 xor %l1, %tle_lox10(foo), %o5
23313 ld [%g7 + %o5], %o1"
23315 xtensa*-*-*)
23316 conftest_s='
23317 .section ".tdata","awT",@progbits
23318 foo: .long 25
23319 .text
23320 movi a8, foo@TLSFUNC
23321 movi a10, foo@TLSARG
23322 callx8.tls a8, foo@TLSCALL'
23323 tls_first_major=2
23324 tls_first_minor=19
23326 esac
23327 set_have_as_tls=no
23328 if test "x$enable_tls" = xno ; then
23329 : # TLS explicitly disabled.
23330 elif test "x$enable_tls" = xyes ; then
23331 set_have_as_tls=yes # TLS explicitly enabled.
23332 elif test -z "$tls_first_major"; then
23333 : # If we don't have a check, assume no support.
23334 else
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23336 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23337 if test "${gcc_cv_as_tls+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 gcc_cv_as_tls=no
23341 if test $in_tree_gas = yes; then
23342 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23343 then gcc_cv_as_tls=yes
23345 elif test x$gcc_cv_as != x; then
23346 $as_echo "$conftest_s" > conftest.s
23347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352 test $ac_status = 0; }; }
23353 then
23354 gcc_cv_as_tls=yes
23355 else
23356 echo "configure: failed program was" >&5
23357 cat conftest.s >&5
23359 rm -f conftest.o conftest.s
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23363 $as_echo "$gcc_cv_as_tls" >&6; }
23364 if test $gcc_cv_as_tls = yes; then
23365 set_have_as_tls=yes
23368 case "$target" in
23369 *-*-irix6*)
23370 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23371 # with TLS support are in use, native TLS cannot work.
23372 set_have_as_tls=no
23374 *-*-osf*)
23375 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23376 # gld with TLS support are in use, native TLS cannot work.
23377 set_have_as_tls=no
23379 # TLS was introduced in the Solaris 9 FCS release and backported to
23380 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23381 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23382 # ld and GCC don't support any longer.
23383 *-*-solaris2.*)
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23385 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23386 ld_tls_support=no
23387 # Check ld and ld.so.1 TLS support.
23388 if echo "$ld_ver" | grep GNU > /dev/null; then
23389 # Assume all interesting versions of GNU ld have TLS support.
23390 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23391 ld_tls_support=yes
23392 else
23393 case "$target" in
23394 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23395 i?86-*-solaris2.8)
23396 min_tls_ld_vers_minor=280
23398 # Solaris 8/SPARC ld has TLS support since version 1.272.
23399 sparc*-*-solaris2.8)
23400 min_tls_ld_vers_minor=272
23402 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23403 i?86-*-solaris2.9)
23404 min_tls_ld_vers_minor=374
23406 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23407 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23408 min_tls_ld_vers_minor=343
23410 esac
23411 if test "$ld_vers_major" -gt 1 || \
23412 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23413 ld_tls_support=yes
23414 else
23415 set_have_as_tls=no
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23419 $as_echo "$ld_tls_support" >&6; }
23421 save_LIBS="$LIBS"
23422 save_LDFLAGS="$LDFLAGS"
23423 LIBS=
23424 LDFLAGS=
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23427 $as_echo_n "checking alternate thread library... " >&6; }
23428 case "$target" in
23429 # TLS support was backported to Solaris 8 patches, but only lives in
23430 # the alternate thread library which became the default in Solaris 9.
23431 # We want to always use that, irrespective of TLS support.
23432 *-*-solaris2.8)
23433 # Take multilib subdir into account. There's no spec to handle
23434 # this. The 64 symlink exists since Solaris 8.
23435 lwp_dir=/usr/lib/lwp
23436 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23437 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23439 *-*-solaris2*)
23440 lwp_dir="none"
23441 lwp_spec=""
23443 esac
23444 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23446 cat >>confdefs.h <<_ACEOF
23447 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23448 _ACEOF
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23451 $as_echo "$lwp_dir" >&6; }
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23454 $as_echo_n "checking library containing $tga_func... " >&6; }
23455 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23456 # (32-bit x86) only lived in libthread, so check for that. Keep
23457 # set_have_as_tls if found, disable if not.
23458 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23460 $as_echo_n "checking for library containing $tga_func... " >&6; }
23461 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23462 $as_echo_n "(cached) " >&6
23463 else
23464 ac_func_search_save_LIBS=$LIBS
23465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23466 /* end confdefs.h. */
23468 /* Override any GCC internal prototype to avoid an error.
23469 Use char because int might match the return type of a GCC
23470 builtin and then its argument prototype would still apply. */
23471 #ifdef __cplusplus
23472 extern "C"
23473 #endif
23474 char $tga_func ();
23476 main ()
23478 return $tga_func ();
23480 return 0;
23482 _ACEOF
23483 for ac_lib in '' thread; do
23484 if test -z "$ac_lib"; then
23485 ac_res="none required"
23486 else
23487 ac_res=-l$ac_lib
23488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23490 if ac_fn_c_try_link "$LINENO"; then :
23491 eval "$as_ac_Search=\$ac_res"
23493 rm -f core conftest.err conftest.$ac_objext \
23494 conftest$ac_exeext
23495 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23496 break
23498 done
23499 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23501 else
23502 eval "$as_ac_Search=no"
23504 rm conftest.$ac_ext
23505 LIBS=$ac_func_search_save_LIBS
23507 eval ac_res=\$$as_ac_Search
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23509 $as_echo "$ac_res" >&6; }
23510 eval ac_res=\$$as_ac_Search
23511 if test "$ac_res" != no; then :
23512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23514 else
23515 set_have_as_tls=no
23518 # Clear LIBS if we cannot support TLS.
23519 if test $set_have_as_tls = no; then
23520 LIBS=
23522 # Always define LIB_TLS_SPEC, even without TLS support.
23524 cat >>confdefs.h <<_ACEOF
23525 #define LIB_TLS_SPEC "$LIBS"
23526 _ACEOF
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23529 $as_echo "$LIBS" >&6; }
23531 LIBS="$save_LIBS"
23532 LDFLAGS="$save_LDFLAGS"
23534 esac
23535 if test $set_have_as_tls = yes ; then
23537 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23541 # Target-specific assembler checks.
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23544 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23545 gcc_cv_ld_static_dynamic=no
23546 gcc_cv_ld_static_option='-Bstatic'
23547 gcc_cv_ld_dynamic_option='-Bdynamic'
23548 if test $in_tree_ld = yes ; then
23549 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
23550 gcc_cv_ld_static_dynamic=yes
23552 elif test x$gcc_cv_ld != x; then
23553 # Check if linker supports -Bstatic/-Bdynamic option
23554 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23555 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23556 gcc_cv_ld_static_dynamic=yes
23557 else
23558 case "$target" in
23559 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23560 alpha*-dec-osf*)
23561 gcc_cv_ld_static_dynamic=yes
23562 gcc_cv_ld_static_option="-noso"
23563 gcc_cv_ld_dynamic_option="-so_archive"
23565 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23566 mips-sgi-irix6*)
23567 gcc_cv_ld_static_dynamic=yes
23569 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23570 *-*-solaris2*)
23571 gcc_cv_ld_static_dynamic=yes
23573 esac
23576 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23578 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23581 cat >>confdefs.h <<_ACEOF
23582 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23583 _ACEOF
23586 cat >>confdefs.h <<_ACEOF
23587 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23588 _ACEOF
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23592 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23594 if test x"$demangler_in_ld" = xyes; then
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23596 $as_echo_n "checking linker --demangle support... " >&6; }
23597 gcc_cv_ld_demangle=no
23598 if test $in_tree_ld = yes; then
23599 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 \
23600 gcc_cv_ld_demangle=yes
23602 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23603 # Check if the GNU linker supports --demangle option
23604 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23605 gcc_cv_ld_demangle=yes
23608 if test x"$gcc_cv_ld_demangle" = xyes; then
23610 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23614 $as_echo "$gcc_cv_ld_demangle" >&6; }
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23618 $as_echo_n "checking linker plugin support... " >&6; }
23619 gcc_cv_lto_plugin=0
23620 if test -f liblto_plugin.la; then
23621 save_ld_ver="$ld_ver"
23622 save_ld_vers_major="$ld_vers_major"
23623 save_ld_vers_minor="$ld_vers_minor"
23624 save_ld_is_gold="$ld_is_gold"
23626 ld_is_gold=no
23628 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23629 ld_ver="GNU ld"
23630 # FIXME: ld_is_gold?
23631 ld_vers_major="$gcc_cv_gld_major_version"
23632 ld_vers_minor="$gcc_cv_gld_minor_version"
23633 else
23634 # Determine plugin linker version.
23635 # FIXME: Partial duplicate from above, generalize.
23636 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23637 if echo "$ld_ver" | grep GNU > /dev/null; then
23638 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23639 ld_is_gold=yes
23640 ld_vers=`echo $ld_ver | sed -n \
23641 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23642 else
23643 ld_vers=`echo $ld_ver | sed -n \
23644 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23646 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23647 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23651 # Determine plugin support.
23652 if echo "$ld_ver" | grep GNU > /dev/null; then
23653 # Require GNU ld or gold 2.21+ for plugin support by default.
23654 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23655 gcc_cv_lto_plugin=2
23656 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23657 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23658 gcc_cv_lto_plugin=1
23662 ld_ver="$save_ld_ver"
23663 ld_vers_major="$save_ld_vers_major"
23664 ld_vers_minor="$save_ld_vers_minor"
23665 ld_is_gold="$save_ld_is_gold"
23668 cat >>confdefs.h <<_ACEOF
23669 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23670 _ACEOF
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23673 $as_echo "$gcc_cv_lto_plugin" >&6; }
23675 case "$target" in
23676 # All TARGET_ABI_OSF targets.
23677 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23679 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23680 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23681 $as_echo_n "(cached) " >&6
23682 else
23683 gcc_cv_as_alpha_explicit_relocs=no
23684 if test $in_tree_gas = yes; then
23685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23686 then gcc_cv_as_alpha_explicit_relocs=yes
23688 elif test x$gcc_cv_as != x; then
23689 $as_echo ' .set nomacro
23690 .text
23691 extbl $3, $2, $3 !lituse_bytoff!1
23692 ldq $2, a($29) !literal!1
23693 ldq $4, b($29) !literal!2
23694 ldq_u $3, 0($2) !lituse_base!1
23695 ldq $27, f($29) !literal!5
23696 jsr $26, ($27), f !lituse_jsr!5
23697 ldah $29, 0($26) !gpdisp!3
23698 lda $0, c($29) !gprel
23699 ldah $1, d($29) !gprelhigh
23700 lda $1, d($1) !gprellow
23701 lda $29, 0($29) !gpdisp!3' > conftest.s
23702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23704 (eval $ac_try) 2>&5
23705 ac_status=$?
23706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23707 test $ac_status = 0; }; }
23708 then
23709 gcc_cv_as_alpha_explicit_relocs=yes
23710 else
23711 echo "configure: failed program was" >&5
23712 cat conftest.s >&5
23714 rm -f conftest.o conftest.s
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23718 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23719 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23721 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23725 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23726 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23727 $as_echo_n "(cached) " >&6
23728 else
23729 gcc_cv_as_alpha_jsrdirect_relocs=no
23730 if test $in_tree_gas = yes; then
23731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23732 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23734 elif test x$gcc_cv_as != x; then
23735 $as_echo ' .set nomacro
23736 .text
23737 ldq $27, a($29) !literal!1
23738 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23744 test $ac_status = 0; }; }
23745 then
23746 gcc_cv_as_alpha_jsrdirect_relocs=yes
23747 else
23748 echo "configure: failed program was" >&5
23749 cat conftest.s >&5
23751 rm -f conftest.o conftest.s
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23755 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23756 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23758 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23763 cris-*-*)
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23765 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23766 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23768 else
23769 gcc_cv_as_cris_no_mul_bug=no
23770 if test $in_tree_gas = yes; then
23771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23772 then gcc_cv_as_cris_no_mul_bug=yes
23774 elif test x$gcc_cv_as != x; then
23775 $as_echo '.text' > conftest.s
23776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778 (eval $ac_try) 2>&5
23779 ac_status=$?
23780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781 test $ac_status = 0; }; }
23782 then
23783 gcc_cv_as_cris_no_mul_bug=yes
23784 else
23785 echo "configure: failed program was" >&5
23786 cat conftest.s >&5
23788 rm -f conftest.o conftest.s
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23792 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23793 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23795 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23800 sparc*-*-*)
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23802 $as_echo_n "checking assembler for .register... " >&6; }
23803 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 gcc_cv_as_sparc_register_op=no
23807 if test x$gcc_cv_as != x; then
23808 $as_echo '.register %g2, #scratch' > conftest.s
23809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814 test $ac_status = 0; }; }
23815 then
23816 gcc_cv_as_sparc_register_op=yes
23817 else
23818 echo "configure: failed program was" >&5
23819 cat conftest.s >&5
23821 rm -f conftest.o conftest.s
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23825 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23826 if test $gcc_cv_as_sparc_register_op = yes; then
23828 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23833 $as_echo_n "checking assembler for -relax option... " >&6; }
23834 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23836 else
23837 gcc_cv_as_sparc_relax=no
23838 if test x$gcc_cv_as != x; then
23839 $as_echo '.text' > conftest.s
23840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845 test $ac_status = 0; }; }
23846 then
23847 gcc_cv_as_sparc_relax=yes
23848 else
23849 echo "configure: failed program was" >&5
23850 cat conftest.s >&5
23852 rm -f conftest.o conftest.s
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23856 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23857 if test $gcc_cv_as_sparc_relax = yes; then
23859 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23864 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23865 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 gcc_cv_as_sparc_gotdata_op=no
23869 if test x$gcc_cv_as != x; then
23870 $as_echo '.text
23871 .align 4
23872 foo:
23874 bar:
23875 sethi %gdop_hix22(foo), %g1
23876 xor %g1, %gdop_lox10(foo), %g1
23877 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23880 (eval $ac_try) 2>&5
23881 ac_status=$?
23882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23883 test $ac_status = 0; }; }
23884 then
23885 if test x$gcc_cv_ld != x \
23886 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23887 if test x$gcc_cv_objdump != x; then
23888 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23889 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23890 gcc_cv_as_sparc_gotdata_op=no
23891 else
23892 gcc_cv_as_sparc_gotdata_op=yes
23896 rm -f conftest
23897 else
23898 echo "configure: failed program was" >&5
23899 cat conftest.s >&5
23901 rm -f conftest.o conftest.s
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23905 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23906 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23908 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23913 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23914 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23915 $as_echo_n "(cached) " >&6
23916 else
23917 gcc_cv_as_sparc_ua_pcrel=no
23918 if test x$gcc_cv_as != x; then
23919 $as_echo '.text
23920 foo:
23922 .data
23923 .align 4
23924 .byte 0
23925 .uaword %r_disp32(foo)' > conftest.s
23926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23932 then
23933 if test x$gcc_cv_ld != x \
23934 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23935 gcc_cv_as_sparc_ua_pcrel=yes
23937 rm -f conftest
23938 else
23939 echo "configure: failed program was" >&5
23940 cat conftest.s >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23946 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23947 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23949 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23953 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23954 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23956 else
23957 gcc_cv_as_sparc_ua_pcrel_hidden=no
23958 if test x$gcc_cv_as != x; then
23959 $as_echo '.data
23960 .align 4
23961 .byte 0x31
23962 .uaword %r_disp32(foo)
23963 .byte 0x32, 0x33, 0x34
23964 .global foo
23965 .hidden foo
23966 foo:
23967 .skip 4' > conftest.s
23968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }
23974 then
23975 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23976 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23977 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23978 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23979 if $gcc_cv_objdump -R conftest 2> /dev/null \
23980 | grep 'DISP32' > /dev/null 2>&1; then
23982 else
23983 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23986 rm -f conftest
23987 else
23988 echo "configure: failed program was" >&5
23989 cat conftest.s >&5
23991 rm -f conftest.o conftest.s
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23995 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23996 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23998 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24002 fi # unaligned pcrel relocs
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24005 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24006 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24008 else
24009 gcc_cv_as_sparc_offsetable_lo10=no
24010 if test x$gcc_cv_as != x; then
24011 $as_echo '.text
24012 or %g1, %lo(ab) + 12, %g1
24013 or %g1, %lo(ab + 12), %g1' > conftest.s
24014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24016 (eval $ac_try) 2>&5
24017 ac_status=$?
24018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24019 test $ac_status = 0; }; }
24020 then
24021 if test x$gcc_cv_objdump != x \
24022 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24023 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24024 gcc_cv_as_sparc_offsetable_lo10=yes
24026 else
24027 echo "configure: failed program was" >&5
24028 cat conftest.s >&5
24030 rm -f conftest.o conftest.s
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24034 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24035 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24037 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24042 i[34567]86-*-* | x86_64-*-*)
24043 case $target_os in
24044 cygwin*)
24045 # Full C++ conformance when using a shared libstdc++-v3 requires some
24046 # support from the Cygwin DLL, which in more recent versions exports
24047 # wrappers to aid in interposing and redirecting operators new, delete,
24048 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24049 # are configuring for a version of Cygwin that exports the wrappers.
24050 if test x$host = x$target; then
24051 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24052 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24053 gcc_ac_cygwin_dll_wrappers=yes
24054 else
24055 gcc_ac_cygwin_dll_wrappers=no
24058 else
24059 # Can't check presence of libc functions during cross-compile, so
24060 # we just have to assume we're building for an up-to-date target.
24061 gcc_ac_cygwin_dll_wrappers=yes
24064 cat >>confdefs.h <<_ACEOF
24065 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24066 _ACEOF
24068 esac
24069 case $target_os in
24070 cygwin* | pe | mingw32*)
24071 # Recent binutils allows the three-operand form of ".comm" on PE. This
24072 # definition is used unconditionally to initialise the default state of
24073 # the target option variable that governs usage of the feature.
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24075 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24076 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24079 gcc_cv_as_comm_has_align=no
24080 if test $in_tree_gas = yes; then
24081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24082 then gcc_cv_as_comm_has_align=yes
24084 elif test x$gcc_cv_as != x; then
24085 $as_echo '.comm foo,1,32' > conftest.s
24086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088 (eval $ac_try) 2>&5
24089 ac_status=$?
24090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091 test $ac_status = 0; }; }
24092 then
24093 gcc_cv_as_comm_has_align=yes
24094 else
24095 echo "configure: failed program was" >&5
24096 cat conftest.s >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24102 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24105 cat >>confdefs.h <<_ACEOF
24106 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24107 _ACEOF
24109 # Used for DWARF 2 in PE
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24111 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24112 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24113 $as_echo_n "(cached) " >&6
24114 else
24115 gcc_cv_as_ix86_pe_secrel32=no
24116 if test $in_tree_gas = yes; then
24117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24118 then gcc_cv_as_ix86_pe_secrel32=yes
24120 elif test x$gcc_cv_as != x; then
24121 $as_echo '.text
24122 foo: nop
24123 .data
24124 .secrel32 foo' > conftest.s
24125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127 (eval $ac_try) 2>&5
24128 ac_status=$?
24129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130 test $ac_status = 0; }; }
24131 then
24132 if test x$gcc_cv_ld != x \
24133 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24134 gcc_cv_as_ix86_pe_secrel32=yes
24136 rm -f conftest
24137 else
24138 echo "configure: failed program was" >&5
24139 cat conftest.s >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24145 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24146 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24148 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24151 # Test if the assembler supports the extended form of the .section
24152 # directive that specifies section alignment. LTO support uses this,
24153 # but normally only after installation, so we warn but don't fail the
24154 # configure if LTO is enabled but the assembler does not support it.
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24156 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24157 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24159 else
24160 gcc_cv_as_section_has_align=no
24161 if test $in_tree_gas = yes; then
24162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24163 then gcc_cv_as_section_has_align=yes
24165 elif test x$gcc_cv_as != x; then
24166 $as_echo '.section lto_test,"dr0"' > conftest.s
24167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24170 ac_status=$?
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }
24173 then
24174 gcc_cv_as_section_has_align=yes
24175 else
24176 echo "configure: failed program was" >&5
24177 cat conftest.s >&5
24179 rm -f conftest.o conftest.s
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24183 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24185 if test x$gcc_cv_as_section_has_align != xyes; then
24186 case ",$enable_languages," in
24187 *,lto,*)
24188 { $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
24189 $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;}
24191 esac
24194 esac
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24197 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24198 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24201 gcc_cv_as_ix86_filds=no
24202 if test x$gcc_cv_as != x; then
24203 $as_echo 'filds mem; fists mem' > conftest.s
24204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; }; }
24210 then
24211 gcc_cv_as_ix86_filds=yes
24212 else
24213 echo "configure: failed program was" >&5
24214 cat conftest.s >&5
24216 rm -f conftest.o conftest.s
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24220 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24221 if test $gcc_cv_as_ix86_filds = yes; then
24223 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24228 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24229 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24231 else
24232 gcc_cv_as_ix86_fildq=no
24233 if test x$gcc_cv_as != x; then
24234 $as_echo 'fildq mem; fistpq mem' > conftest.s
24235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_fildq=yes
24243 else
24244 echo "configure: failed program was" >&5
24245 cat conftest.s >&5
24247 rm -f conftest.o conftest.s
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24251 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24252 if test $gcc_cv_as_ix86_fildq = yes; then
24254 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24259 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24260 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24262 else
24263 gcc_cv_as_ix86_cmov_sun_syntax=no
24264 if test x$gcc_cv_as != x; then
24265 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268 (eval $ac_try) 2>&5
24269 ac_status=$?
24270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271 test $ac_status = 0; }; }
24272 then
24273 gcc_cv_as_ix86_cmov_sun_syntax=yes
24274 else
24275 echo "configure: failed program was" >&5
24276 cat conftest.s >&5
24278 rm -f conftest.o conftest.s
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24282 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24283 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24285 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24290 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24291 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24293 else
24294 gcc_cv_as_ix86_ffreep=no
24295 if test x$gcc_cv_as != x; then
24296 $as_echo 'ffreep %st(1)' > conftest.s
24297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24303 then
24304 gcc_cv_as_ix86_ffreep=yes
24305 else
24306 echo "configure: failed program was" >&5
24307 cat conftest.s >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24313 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24314 if test $gcc_cv_as_ix86_ffreep = yes; then
24316 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24321 $as_echo_n "checking assembler for .quad directive... " >&6; }
24322 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24324 else
24325 gcc_cv_as_ix86_quad=no
24326 if test x$gcc_cv_as != x; then
24327 $as_echo '.quad 0' > conftest.s
24328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24334 then
24335 gcc_cv_as_ix86_quad=yes
24336 else
24337 echo "configure: failed program was" >&5
24338 cat conftest.s >&5
24340 rm -f conftest.o conftest.s
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24344 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24345 if test $gcc_cv_as_ix86_quad = yes; then
24347 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24352 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24353 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24355 else
24356 gcc_cv_as_ix86_sahf=no
24357 if test x$gcc_cv_as != x; then
24358 $as_echo '.code64
24359 sahf' > conftest.s
24360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24362 (eval $ac_try) 2>&5
24363 ac_status=$?
24364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24365 test $ac_status = 0; }; }
24366 then
24367 gcc_cv_as_ix86_sahf=yes
24368 else
24369 echo "configure: failed program was" >&5
24370 cat conftest.s >&5
24372 rm -f conftest.o conftest.s
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24376 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24377 if test $gcc_cv_as_ix86_sahf = yes; then
24379 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24384 $as_echo_n "checking assembler for swap suffix... " >&6; }
24385 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24386 $as_echo_n "(cached) " >&6
24387 else
24388 gcc_cv_as_ix86_swap=no
24389 if test x$gcc_cv_as != x; then
24390 $as_echo 'movl.s %esp, %ebp' > conftest.s
24391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393 (eval $ac_try) 2>&5
24394 ac_status=$?
24395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396 test $ac_status = 0; }; }
24397 then
24398 gcc_cv_as_ix86_swap=yes
24399 else
24400 echo "configure: failed program was" >&5
24401 cat conftest.s >&5
24403 rm -f conftest.o conftest.s
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24407 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24408 if test $gcc_cv_as_ix86_swap = yes; then
24410 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24415 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24416 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24418 else
24419 gcc_cv_as_ix86_diff_sect_delta=no
24420 if test x$gcc_cv_as != x; then
24421 $as_echo '.section .rodata
24422 .L1:
24423 .long .L2-.L1
24424 .long .L3-.L1
24425 .text
24426 .L3: nop
24427 .L2: nop' > conftest.s
24428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24430 (eval $ac_try) 2>&5
24431 ac_status=$?
24432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24433 test $ac_status = 0; }; }
24434 then
24435 gcc_cv_as_ix86_diff_sect_delta=yes
24436 else
24437 echo "configure: failed program was" >&5
24438 cat conftest.s >&5
24440 rm -f conftest.o conftest.s
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24444 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24445 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24447 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24451 # These two are used unconditionally by i386.[ch]; it is to be defined
24452 # to 1 if the feature is present, 0 otherwise.
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24454 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24455 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24456 $as_echo_n "(cached) " >&6
24457 else
24458 gcc_cv_as_ix86_gotoff_in_data=no
24459 if test $in_tree_gas = yes; then
24460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24461 then gcc_cv_as_ix86_gotoff_in_data=yes
24463 elif test x$gcc_cv_as != x; then
24464 $as_echo ' .text
24465 .L0:
24467 .data
24468 .long .L0@GOTOFF' > conftest.s
24469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24475 then
24476 gcc_cv_as_ix86_gotoff_in_data=yes
24477 else
24478 echo "configure: failed program was" >&5
24479 cat conftest.s >&5
24481 rm -f conftest.o conftest.s
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24485 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24488 cat >>confdefs.h <<_ACEOF
24489 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24490 _ACEOF
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24494 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24495 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24497 else
24498 gcc_cv_as_ix86_rep_lock_prefix=no
24499 if test x$gcc_cv_as != x; then
24500 $as_echo 'rep movsl
24501 lock addl %edi, (%eax,%esi)
24502 lock orl $0, (%esp)' > conftest.s
24503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24506 ac_status=$?
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24509 then
24510 gcc_cv_as_ix86_rep_lock_prefix=yes
24511 else
24512 echo "configure: failed program was" >&5
24513 cat conftest.s >&5
24515 rm -f conftest.o conftest.s
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24519 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24520 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24522 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24527 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24528 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 gcc_cv_as_ix86_tlsgdplt=no
24532 if test x$gcc_cv_as != x; then
24533 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24540 then
24541 gcc_cv_as_ix86_tlsgdplt=yes
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24550 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24551 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24553 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24558 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24559 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24561 else
24562 gcc_cv_as_ix86_tlsldmplt=no
24563 if test x$gcc_cv_as != x; then
24564 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24571 then
24572 gcc_cv_as_ix86_tlsldmplt=yes
24573 else
24574 echo "configure: failed program was" >&5
24575 cat conftest.s >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24581 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24582 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24584 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24590 ia64*-*-*)
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24592 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24593 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24595 else
24596 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24597 if test $in_tree_gas = yes; then
24598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24599 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24601 elif test x$gcc_cv_as != x; then
24602 $as_echo ' .text
24603 addl r15 = @ltoffx(x#), gp
24605 ld8.mov r16 = [r15], x#' > conftest.s
24606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24609 ac_status=$?
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24612 then
24613 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24614 else
24615 echo "configure: failed program was" >&5
24616 cat conftest.s >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24622 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24623 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24625 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24631 powerpc*-*-*)
24632 case $target in
24633 *-*-aix*) conftest_s=' .machine "pwr5"
24634 .csect .text[PR]
24635 mfcr 3,128';;
24636 *-*-darwin*)
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24638 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24639 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24640 $as_echo_n "(cached) " >&6
24641 else
24642 gcc_cv_as_machine_directive=no
24643 if test x$gcc_cv_as != x; then
24644 $as_echo ' .machine ppc7400' > 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_machine_directive=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_machine_directive" >&5
24661 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24663 if test x$gcc_cv_as_machine_directive != xyes; then
24664 echo "*** This target requires an assembler supporting \".machine\"" >&2
24665 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24666 test x$build = x$target && exit 1
24668 conftest_s=' .text
24669 mfcr r3,128';;
24670 *) conftest_s=' .machine power4
24671 .text
24672 mfcr 3,128';;
24673 esac
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24676 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24677 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24679 else
24680 gcc_cv_as_powerpc_mfcrf=no
24681 if test $in_tree_gas = yes; then
24682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24683 then gcc_cv_as_powerpc_mfcrf=yes
24685 elif test x$gcc_cv_as != x; then
24686 $as_echo "$conftest_s" > conftest.s
24687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24693 then
24694 gcc_cv_as_powerpc_mfcrf=yes
24695 else
24696 echo "configure: failed program was" >&5
24697 cat conftest.s >&5
24699 rm -f conftest.o conftest.s
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24703 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24704 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24706 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24710 case $target in
24711 *-*-aix*) conftest_s=' .machine "pwr5"
24712 .csect .text[PR]
24713 popcntb 3,3';;
24714 *) conftest_s=' .machine power5
24715 .text
24716 popcntb 3,3';;
24717 esac
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24720 $as_echo_n "checking assembler for popcntb support... " >&6; }
24721 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24723 else
24724 gcc_cv_as_powerpc_popcntb=no
24725 if test $in_tree_gas = yes; then
24726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24727 then gcc_cv_as_powerpc_popcntb=yes
24729 elif test x$gcc_cv_as != x; then
24730 $as_echo "$conftest_s" > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_powerpc_popcntb=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24743 rm -f conftest.o conftest.s
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24747 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24748 if test $gcc_cv_as_powerpc_popcntb = yes; then
24750 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24754 case $target in
24755 *-*-aix*) conftest_s=' .machine "pwr5x"
24756 .csect .text[PR]
24757 frin 1,1';;
24758 *) conftest_s=' .machine power5
24759 .text
24760 frin 1,1';;
24761 esac
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24764 $as_echo_n "checking assembler for fp round support... " >&6; }
24765 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24767 else
24768 gcc_cv_as_powerpc_fprnd=no
24769 if test $in_tree_gas = yes; then
24770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24771 then gcc_cv_as_powerpc_fprnd=yes
24773 elif test x$gcc_cv_as != x; then
24774 $as_echo "$conftest_s" > conftest.s
24775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780 test $ac_status = 0; }; }
24781 then
24782 gcc_cv_as_powerpc_fprnd=yes
24783 else
24784 echo "configure: failed program was" >&5
24785 cat conftest.s >&5
24787 rm -f conftest.o conftest.s
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24791 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24792 if test $gcc_cv_as_powerpc_fprnd = yes; then
24794 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24798 case $target in
24799 *-*-aix*) conftest_s=' .machine "pwr6"
24800 .csect .text[PR]
24801 mffgpr 1,3';;
24802 *) conftest_s=' .machine power6
24803 .text
24804 mffgpr 1,3';;
24805 esac
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24808 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24809 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24812 gcc_cv_as_powerpc_mfpgpr=no
24813 if test $in_tree_gas = yes; then
24814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24815 then gcc_cv_as_powerpc_mfpgpr=yes
24817 elif test x$gcc_cv_as != x; then
24818 $as_echo "$conftest_s" > conftest.s
24819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24822 ac_status=$?
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24825 then
24826 gcc_cv_as_powerpc_mfpgpr=yes
24827 else
24828 echo "configure: failed program was" >&5
24829 cat conftest.s >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24835 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24836 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24838 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24842 case $target in
24843 *-*-aix*) conftest_s=' .csect .text[PR]
24844 LCF..0:
24845 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24846 *-*-darwin*)
24847 conftest_s=' .text
24848 LCF0:
24849 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24850 *) conftest_s=' .text
24851 .LCF0:
24852 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24853 esac
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24856 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24857 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24859 else
24860 gcc_cv_as_powerpc_rel16=no
24861 if test $in_tree_gas = yes; then
24862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24863 then gcc_cv_as_powerpc_rel16=yes
24865 elif test x$gcc_cv_as != x; then
24866 $as_echo "$conftest_s" > conftest.s
24867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 then
24874 gcc_cv_as_powerpc_rel16=yes
24875 else
24876 echo "configure: failed program was" >&5
24877 cat conftest.s >&5
24879 rm -f conftest.o conftest.s
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24883 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24884 if test $gcc_cv_as_powerpc_rel16 = yes; then
24886 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24890 case $target in
24891 *-*-aix*) conftest_s=' .machine "pwr6"
24892 .csect .text[PR]
24893 cmpb 3,4,5';;
24894 *) conftest_s=' .machine power6
24895 .text
24896 cmpb 3,4,5';;
24897 esac
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24900 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24901 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24903 else
24904 gcc_cv_as_powerpc_cmpb=no
24905 if test $in_tree_gas = yes; then
24906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24907 then gcc_cv_as_powerpc_cmpb=yes
24909 elif test x$gcc_cv_as != x; then
24910 $as_echo "$conftest_s" > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24918 gcc_cv_as_powerpc_cmpb=yes
24919 else
24920 echo "configure: failed program was" >&5
24921 cat conftest.s >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24927 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24928 if test $gcc_cv_as_powerpc_cmpb = yes; then
24930 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24934 case $target in
24935 *-*-aix*) conftest_s=' .machine "pwr6"
24936 .csect .text[PR]
24937 dadd 1,2,3';;
24938 *) conftest_s=' .machine power6
24939 .text
24940 dadd 1,2,3';;
24941 esac
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24944 $as_echo_n "checking assembler for decimal float support... " >&6; }
24945 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948 gcc_cv_as_powerpc_dfp=no
24949 if test $in_tree_gas = yes; then
24950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24951 then gcc_cv_as_powerpc_dfp=yes
24953 elif test x$gcc_cv_as != x; then
24954 $as_echo "$conftest_s" > conftest.s
24955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960 test $ac_status = 0; }; }
24961 then
24962 gcc_cv_as_powerpc_dfp=yes
24963 else
24964 echo "configure: failed program was" >&5
24965 cat conftest.s >&5
24967 rm -f conftest.o conftest.s
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24971 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24972 if test $gcc_cv_as_powerpc_dfp = yes; then
24974 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24978 case $target in
24979 *-*-aix*) conftest_s=' .machine "pwr7"
24980 .csect .text[PR]
24981 lxvd2x 1,2,3';;
24982 *) conftest_s=' .machine power7
24983 .text
24984 lxvd2x 1,2,3';;
24985 esac
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24988 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24989 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24991 else
24992 gcc_cv_as_powerpc_vsx=no
24993 if test $in_tree_gas = yes; then
24994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24995 then gcc_cv_as_powerpc_vsx=yes
24997 elif test x$gcc_cv_as != x; then
24998 $as_echo "$conftest_s" > conftest.s
24999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25004 test $ac_status = 0; }; }
25005 then
25006 gcc_cv_as_powerpc_vsx=yes
25007 else
25008 echo "configure: failed program was" >&5
25009 cat conftest.s >&5
25011 rm -f conftest.o conftest.s
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25015 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25016 if test $gcc_cv_as_powerpc_vsx = yes; then
25018 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25022 case $target in
25023 *-*-aix*) conftest_s=' .machine "pwr7"
25024 .csect .text[PR]
25025 popcntd 3,3';;
25026 *) conftest_s=' .machine power7
25027 .text
25028 popcntd 3,3';;
25029 esac
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25032 $as_echo_n "checking assembler for popcntd support... " >&6; }
25033 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25034 $as_echo_n "(cached) " >&6
25035 else
25036 gcc_cv_as_powerpc_popcntd=no
25037 if test $in_tree_gas = yes; then
25038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25039 then gcc_cv_as_powerpc_popcntd=yes
25041 elif test x$gcc_cv_as != x; then
25042 $as_echo "$conftest_s" > conftest.s
25043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048 test $ac_status = 0; }; }
25049 then
25050 gcc_cv_as_powerpc_popcntd=yes
25051 else
25052 echo "configure: failed program was" >&5
25053 cat conftest.s >&5
25055 rm -f conftest.o conftest.s
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25059 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25060 if test $gcc_cv_as_powerpc_popcntd = yes; then
25062 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25066 case $target in
25067 *-*-aix*) conftest_s=' .csect .text[PR]
25068 lwsync';;
25069 *) conftest_s=' .text
25070 lwsync';;
25071 esac
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25074 $as_echo_n "checking assembler for lwsync support... " >&6; }
25075 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25076 $as_echo_n "(cached) " >&6
25077 else
25078 gcc_cv_as_powerpc_lwsync=no
25079 if test $in_tree_gas = yes; then
25080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25081 then gcc_cv_as_powerpc_lwsync=yes
25083 elif test x$gcc_cv_as != x; then
25084 $as_echo "$conftest_s" > conftest.s
25085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090 test $ac_status = 0; }; }
25091 then
25092 gcc_cv_as_powerpc_lwsync=yes
25093 else
25094 echo "configure: failed program was" >&5
25095 cat conftest.s >&5
25097 rm -f conftest.o conftest.s
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25101 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25102 if test $gcc_cv_as_powerpc_lwsync = yes; then
25104 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25108 case $target in
25109 *-*-aix*) conftest_s=' .machine "476"
25110 .csect .text[PR]
25111 dci 0';;
25112 *) conftest_s=' .machine "476"
25113 .text
25114 dci 0';;
25115 esac
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25118 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25119 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25121 else
25122 gcc_cv_as_powerpc_dci=no
25123 if test $in_tree_gas = yes; then
25124 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25125 then gcc_cv_as_powerpc_dci=yes
25127 elif test x$gcc_cv_as != x; then
25128 $as_echo "$conftest_s" > conftest.s
25129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25135 then
25136 gcc_cv_as_powerpc_dci=yes
25137 else
25138 echo "configure: failed program was" >&5
25139 cat conftest.s >&5
25141 rm -f conftest.o conftest.s
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25145 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25146 if test $gcc_cv_as_powerpc_dci = yes; then
25148 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25153 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25154 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 gcc_cv_as_powerpc_gnu_attribute=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25160 then gcc_cv_as_powerpc_gnu_attribute=yes
25162 elif test x$gcc_cv_as != x; then
25163 $as_echo '.gnu_attribute 4,1' > 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_powerpc_gnu_attribute=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_powerpc_gnu_attribute" >&5
25180 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25181 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25183 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25188 $as_echo_n "checking assembler for tls marker support... " >&6; }
25189 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25190 $as_echo_n "(cached) " >&6
25191 else
25192 gcc_cv_as_powerpc_tls_markers=no
25193 if test $in_tree_gas = yes; then
25194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25195 then gcc_cv_as_powerpc_tls_markers=yes
25197 elif test x$gcc_cv_as != x; then
25198 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25205 then
25206 gcc_cv_as_powerpc_tls_markers=yes
25207 else
25208 echo "configure: failed program was" >&5
25209 cat conftest.s >&5
25211 rm -f conftest.o conftest.s
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25215 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25216 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25218 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25222 case $target in
25223 *-*-aix*)
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25225 $as_echo_n "checking assembler for .ref support... " >&6; }
25226 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25227 $as_echo_n "(cached) " >&6
25228 else
25229 gcc_cv_as_aix_ref=no
25230 if test $in_tree_gas = yes; then
25231 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25232 then :
25234 elif test x$gcc_cv_as != x; then
25235 $as_echo ' .csect stuff[rw]
25236 stuff:
25237 .long 1
25238 .extern sym
25239 .ref sym
25240 ' > conftest.s
25241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }; }
25247 then
25248 gcc_cv_as_aix_ref=yes
25249 else
25250 echo "configure: failed program was" >&5
25251 cat conftest.s >&5
25253 rm -f conftest.o conftest.s
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25257 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25258 if test $gcc_cv_as_aix_ref = yes; then
25260 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25264 esac
25267 mips*-*-*)
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25269 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25270 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25272 else
25273 gcc_cv_as_mips_explicit_relocs=no
25274 if test $in_tree_gas = yes; then
25275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25276 then gcc_cv_as_mips_explicit_relocs=yes
25278 elif test x$gcc_cv_as != x; then
25279 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25286 then
25287 gcc_cv_as_mips_explicit_relocs=yes
25288 else
25289 echo "configure: failed program was" >&5
25290 cat conftest.s >&5
25292 rm -f conftest.o conftest.s
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25296 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25297 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25298 if test x$target_cpu_default = x
25299 then target_cpu_default=MASK_EXPLICIT_RELOCS
25300 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25304 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25305 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25307 else
25308 gcc_cv_as_mips_no_shared=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25311 then gcc_cv_as_mips_no_shared=yes
25313 elif test x$gcc_cv_as != x; then
25314 $as_echo 'nop' > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 gcc_cv_as_mips_no_shared=yes
25323 else
25324 echo "configure: failed program was" >&5
25325 cat conftest.s >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25331 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25332 if test $gcc_cv_as_mips_no_shared = yes; then
25334 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25339 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25340 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 gcc_cv_as_mips_gnu_attribute=no
25344 if test $in_tree_gas = yes; then
25345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25346 then gcc_cv_as_mips_gnu_attribute=yes
25348 elif test x$gcc_cv_as != x; then
25349 $as_echo '.gnu_attribute 4,1' > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 gcc_cv_as_mips_gnu_attribute=yes
25358 else
25359 echo "configure: failed program was" >&5
25360 cat conftest.s >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25366 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25367 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25369 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25374 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25375 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25377 else
25378 gcc_cv_as_mips_dtprelword=no
25379 if test $in_tree_gas = yes; then
25380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25381 then gcc_cv_as_mips_dtprelword=yes
25383 elif test x$gcc_cv_as != x; then
25384 $as_echo '.section .tdata,"awT",@progbits
25386 .word 2
25387 .text
25388 .dtprelword x+0x8000' > conftest.s
25389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25394 test $ac_status = 0; }; }
25395 then
25396 gcc_cv_as_mips_dtprelword=yes
25397 else
25398 echo "configure: failed program was" >&5
25399 cat conftest.s >&5
25401 rm -f conftest.o conftest.s
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25405 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25406 if test $gcc_cv_as_mips_dtprelword = yes; then
25408 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25413 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25414 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25415 $as_echo_n "(cached) " >&6
25416 else
25417 gcc_cv_as_mips_dspr1_mult=no
25418 if test x$gcc_cv_as != x; then
25419 $as_echo ' .set mips32r2
25420 .set nodspr2
25421 .set dsp
25422 madd $ac3,$4,$5
25423 maddu $ac3,$4,$5
25424 msub $ac3,$4,$5
25425 msubu $ac3,$4,$5
25426 mult $ac3,$4,$5
25427 multu $ac3,$4,$5' > conftest.s
25428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25434 then
25435 gcc_cv_as_mips_dspr1_mult=yes
25436 else
25437 echo "configure: failed program was" >&5
25438 cat conftest.s >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25444 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25445 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25447 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25452 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25453 gcc_cv_as_ld_jalr_reloc=no
25454 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25455 if test $in_tree_ld = yes ; then
25456 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 \
25457 && test $in_tree_ld_is_elf = yes; then
25458 gcc_cv_as_ld_jalr_reloc=yes
25460 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25461 echo ' .ent x' > conftest.s
25462 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25463 echo ' ld $25,%call16(y)($28)' >> conftest.s
25464 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25465 echo '1: jalr $25' >> conftest.s
25466 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25467 echo '1: jalr $25' >> conftest.s
25468 echo ' .end x' >> conftest.s
25469 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25470 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25471 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25472 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25473 gcc_cv_as_ld_jalr_reloc=yes
25476 rm -f conftest.*
25479 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25480 if test x$target_cpu_default = x; then
25481 target_cpu_default=MASK_RELAX_PIC_CALLS
25482 else
25483 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25487 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25490 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25491 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 gcc_cv_ld_mips_personality_relaxation=no
25495 if test $in_tree_ld = yes ; then
25496 if test "$gcc_cv_gld_major_version" -eq 2 \
25497 -a "$gcc_cv_gld_minor_version" -ge 21 \
25498 -o "$gcc_cv_gld_major_version" -gt 2; then
25499 gcc_cv_ld_mips_personality_relaxation=yes
25501 elif test x$gcc_cv_as != x \
25502 -a x$gcc_cv_ld != x \
25503 -a x$gcc_cv_readelf != x ; then
25504 cat > conftest.s <<EOF
25505 .cfi_startproc
25506 .cfi_personality 0x80,indirect_ptr
25507 .ent test
25508 test:
25510 .end test
25511 .cfi_endproc
25513 .section .data,"aw",@progbits
25514 indirect_ptr:
25515 .dc.a personality
25517 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25518 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25519 if $gcc_cv_readelf -d conftest 2>&1 \
25520 | grep TEXTREL > /dev/null 2>&1; then
25522 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25523 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25525 else
25526 gcc_cv_ld_mips_personality_relaxation=yes
25530 rm -f conftest.s conftest.o conftest
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25533 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25534 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25536 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25540 esac
25542 # Mips and HP-UX need the GNU assembler.
25543 # Linux on IA64 might be able to use the Intel assembler.
25545 case "$target" in
25546 mips*-*-* | *-*-hpux* )
25547 if test x$gas_flag = xyes \
25548 || test x"$host" != x"$build" \
25549 || test ! -x "$gcc_cv_as" \
25550 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25552 else
25553 echo "*** This configuration requires the GNU assembler" >&2
25554 exit 1
25557 esac
25559 # ??? Not all targets support dwarf2 debug_line, even within a version
25560 # of gas. Moreover, we need to emit a valid instruction to trigger any
25561 # info to the output file. So, as supported targets are added to gas 2.11,
25562 # add some instruction here to (also) show we expect this might work.
25563 # ??? Once 2.11 is released, probably need to add first known working
25564 # version to the per-target configury.
25565 case "$cpu_type" in
25566 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25567 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25568 insn="nop"
25570 ia64 | s390)
25571 insn="nop 0"
25573 mmix)
25574 insn="swym 0"
25576 esac
25577 if test x"$insn" != x; then
25578 conftest_s="\
25579 .file 1 \"conftest.s\"
25580 .loc 1 3 0
25581 $insn"
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25583 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25584 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25586 else
25587 gcc_cv_as_dwarf2_debug_line=no
25588 if test $in_tree_gas = yes; then
25589 if test $in_tree_gas_is_elf = yes \
25590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25591 then gcc_cv_as_dwarf2_debug_line=yes
25593 elif test x$gcc_cv_as != x; then
25594 $as_echo "$conftest_s" > conftest.s
25595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25600 test $ac_status = 0; }; }
25601 then
25602 if test x$gcc_cv_objdump != x \
25603 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25604 | grep debug_line > /dev/null 2>&1; then
25605 gcc_cv_as_dwarf2_debug_line=yes
25607 else
25608 echo "configure: failed program was" >&5
25609 cat conftest.s >&5
25611 rm -f conftest.o conftest.s
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25615 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25618 # The .debug_line file table must be in the exact order that
25619 # we specified the files, since these indices are also used
25620 # by DW_AT_decl_file. Approximate this test by testing if
25621 # the assembler bitches if the same index is assigned twice.
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25623 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25624 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25625 $as_echo_n "(cached) " >&6
25626 else
25627 gcc_cv_as_dwarf2_file_buggy=no
25628 if test x$gcc_cv_as != x; then
25629 $as_echo ' .file 1 "foo.s"
25630 .file 1 "bar.s"' > conftest.s
25631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633 (eval $ac_try) 2>&5
25634 ac_status=$?
25635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636 test $ac_status = 0; }; }
25637 then
25638 gcc_cv_as_dwarf2_file_buggy=yes
25639 else
25640 echo "configure: failed program was" >&5
25641 cat conftest.s >&5
25643 rm -f conftest.o conftest.s
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25647 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25650 if test $gcc_cv_as_dwarf2_debug_line = yes \
25651 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25653 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25658 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25659 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25661 else
25662 gcc_cv_as_gdwarf2_flag=no
25663 if test $in_tree_gas = yes; then
25664 if test $in_tree_gas_is_elf = yes \
25665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25666 then gcc_cv_as_gdwarf2_flag=yes
25668 elif test x$gcc_cv_as != x; then
25669 $as_echo "$insn" > conftest.s
25670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675 test $ac_status = 0; }; }
25676 then
25677 gcc_cv_as_gdwarf2_flag=yes
25678 else
25679 echo "configure: failed program was" >&5
25680 cat conftest.s >&5
25682 rm -f conftest.o conftest.s
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25686 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25687 if test $gcc_cv_as_gdwarf2_flag = yes; then
25689 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25694 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25695 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25696 $as_echo_n "(cached) " >&6
25697 else
25698 gcc_cv_as_gstabs_flag=no
25699 if test $in_tree_gas = yes; then
25700 if test $in_tree_gas_is_elf = yes \
25701 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25702 then gcc_cv_as_gstabs_flag=yes
25704 elif test x$gcc_cv_as != x; then
25705 $as_echo "$insn" > conftest.s
25706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711 test $ac_status = 0; }; }
25712 then
25713 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25714 # and warns about it, but still exits successfully. So check for
25715 # this.
25716 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25721 test $ac_status = 0; }; }
25722 then :
25723 else gcc_cv_as_gstabs_flag=yes
25725 else
25726 echo "configure: failed program was" >&5
25727 cat conftest.s >&5
25729 rm -f conftest.o conftest.s
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25733 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25734 if test $gcc_cv_as_gstabs_flag = yes; then
25736 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25741 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25742 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 gcc_cv_as_debug_prefix_map_flag=no
25746 if test $in_tree_gas = yes; then
25747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25748 then gcc_cv_as_debug_prefix_map_flag=yes
25750 elif test x$gcc_cv_as != x; then
25751 $as_echo "$insn" > conftest.s
25752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25758 then
25759 gcc_cv_as_debug_prefix_map_flag=yes
25760 else
25761 echo "configure: failed program was" >&5
25762 cat conftest.s >&5
25764 rm -f conftest.o conftest.s
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25768 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25769 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25771 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25777 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25778 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25780 else
25781 gcc_cv_as_lcomm_with_alignment=no
25782 if test x$gcc_cv_as != x; then
25783 $as_echo '.lcomm bar,4,16' > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25790 then
25791 gcc_cv_as_lcomm_with_alignment=yes
25792 else
25793 echo "configure: failed program was" >&5
25794 cat conftest.s >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25800 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25801 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25803 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25807 # Check whether --enable-gnu-unique-object was given.
25808 if test "${enable_gnu_unique_object+set}" = set; then :
25809 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25810 yes | no) ;;
25811 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25812 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25813 esac
25814 else
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25816 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25817 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25819 else
25820 gcc_cv_as_gnu_unique_object=no
25821 if test $in_tree_gas = yes; then
25822 if test $in_tree_gas_is_elf = yes \
25823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25824 then gcc_cv_as_gnu_unique_object=yes
25826 elif test x$gcc_cv_as != x; then
25827 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25831 ac_status=$?
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25834 then
25835 gcc_cv_as_gnu_unique_object=yes
25836 else
25837 echo "configure: failed program was" >&5
25838 cat conftest.s >&5
25840 rm -f conftest.o conftest.s
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25844 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25845 if test $gcc_cv_as_gnu_unique_object = yes; then
25846 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25847 if test x$host = x$build -a x$host = x$target &&
25848 ldd --version 2>/dev/null &&
25849 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25850 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25851 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25852 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25853 if test "$glibcnum" -ge 2011 ; then
25854 enable_gnu_unique_object=yes
25860 if test x$enable_gnu_unique_object = xyes; then
25862 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25867 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25868 if test "${gcc_cv_as_line_zero+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25870 else
25871 gcc_cv_as_line_zero=no
25872 if test $in_tree_gas = yes; then
25873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25874 then gcc_cv_as_line_zero=yes
25876 elif test "x$gcc_cv_as" != x; then
25877 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25878 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883 test $ac_status = 0; }; } &&
25884 test "x`cat conftest.out`" = x
25885 then
25886 gcc_cv_as_line_zero=yes
25887 else
25888 echo "configure: failed program was" >&5
25889 cat conftest.s >&5
25890 echo "configure: error output was" >&5
25891 cat conftest.out >&5
25893 rm -f conftest.o conftest.s conftest.out
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25897 $as_echo "$gcc_cv_as_line_zero" >&6; }
25898 if test "x$gcc_cv_as_line_zero" = xyes; then
25900 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25905 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25906 gcc_cv_ld_eh_frame_hdr=no
25907 if test $in_tree_ld = yes ; then
25908 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 \
25909 && test $in_tree_ld_is_elf = yes; then
25910 gcc_cv_ld_eh_frame_hdr=yes
25912 elif test x$gcc_cv_ld != x; then
25913 if echo "$ld_ver" | grep GNU > /dev/null; then
25914 # Check if linker supports --eh-frame-hdr option
25915 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25916 gcc_cv_ld_eh_frame_hdr=yes
25918 else
25919 case "$target" in
25920 *-*-solaris2*)
25921 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25922 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25923 gcc_cv_ld_eh_frame_hdr=yes
25926 esac
25930 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25932 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25936 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25939 $as_echo_n "checking linker position independent executable support... " >&6; }
25940 gcc_cv_ld_pie=no
25941 if test $in_tree_ld = yes ; then
25942 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 \
25943 && test $in_tree_ld_is_elf = yes; then
25944 gcc_cv_ld_pie=yes
25946 elif test x$gcc_cv_ld != x; then
25947 # Check if linker supports -pie option
25948 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25949 gcc_cv_ld_pie=yes
25952 if test x"$gcc_cv_ld_pie" = xyes; then
25954 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25958 $as_echo "$gcc_cv_ld_pie" >&6; }
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25961 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25962 gcc_cv_ld_eh_gc_sections=no
25963 if test $in_tree_ld = yes ; then
25964 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 \
25965 && test $in_tree_ld_is_elf = yes; then
25966 gcc_cv_ld_eh_gc_sections=yes
25968 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25969 cat > conftest.s <<EOF
25970 .section .text
25971 .globl _start
25972 .type _start, @function
25973 _start:
25974 .long foo
25975 .size _start, .-_start
25976 .section .text.foo,"ax",@progbits
25977 .type foo, @function
25978 foo:
25979 .long 0
25980 .size foo, .-foo
25981 .section .gcc_except_table.foo,"a",@progbits
25982 .L0:
25983 .long 0
25984 .section .eh_frame,"a",@progbits
25985 .long .L0
25987 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25988 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25989 | grep "gc-sections option ignored" > /dev/null; then
25990 gcc_cv_ld_eh_gc_sections=no
25991 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25992 | grep gcc_except_table > /dev/null; then
25993 gcc_cv_ld_eh_gc_sections=yes
25994 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25995 if test x$gcc_cv_as_comdat_group != xyes; then
25996 gcc_cv_ld_eh_gc_sections=no
25997 cat > conftest.s <<EOF
25998 .section .text
25999 .globl _start
26000 .type _start, @function
26001 _start:
26002 .long foo
26003 .size _start, .-_start
26004 .section .gnu.linkonce.t.foo,"ax",@progbits
26005 .type foo, @function
26006 foo:
26007 .long 0
26008 .size foo, .-foo
26009 .section .gcc_except_table.foo,"a",@progbits
26010 .L0:
26011 .long 0
26012 .section .eh_frame,"a",@progbits
26013 .long .L0
26015 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26016 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26017 | grep "gc-sections option ignored" > /dev/null; then
26018 gcc_cv_ld_eh_gc_sections=no
26019 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26020 | grep gcc_except_table > /dev/null; then
26021 gcc_cv_ld_eh_gc_sections=yes
26027 rm -f conftest.s conftest.o conftest
26029 case "$target" in
26030 hppa*-*-linux*)
26031 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26032 gcc_cv_ld_eh_gc_sections=no
26034 esac
26035 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26037 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26041 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26044 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26045 gcc_cv_ld_eh_gc_sections_bug=no
26046 if test $in_tree_ld = yes ; then
26047 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 \
26048 && test $in_tree_ld_is_elf = yes; then
26049 gcc_cv_ld_eh_gc_sections_bug=yes
26051 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
26052 gcc_cv_ld_eh_gc_sections_bug=yes
26053 cat > conftest.s <<EOF
26054 .section .text
26055 .globl _start
26056 .type _start, @function
26057 _start:
26058 .long foo
26059 .size _start, .-_start
26060 .section .text.startup.foo,"ax",@progbits
26061 .type foo, @function
26062 foo:
26063 .long 0
26064 .size foo, .-foo
26065 .section .gcc_except_table.foo,"a",@progbits
26066 .L0:
26067 .long 0
26068 .section .eh_frame,"a",@progbits
26069 .long .L0
26071 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26072 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26073 | grep "gc-sections option ignored" > /dev/null; then
26075 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26076 | grep gcc_except_table > /dev/null; then
26077 gcc_cv_ld_eh_gc_sections_bug=no
26080 rm -f conftest.s conftest.o conftest
26082 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26084 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26088 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26090 # --------
26091 # UNSORTED
26092 # --------
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26095 $as_echo_n "checking linker --as-needed support... " >&6; }
26096 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26098 else
26099 gcc_cv_ld_as_needed=no
26100 if test $in_tree_ld = yes ; then
26101 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 \
26102 && test $in_tree_ld_is_elf = yes; then
26103 gcc_cv_ld_as_needed=yes
26105 elif test x$gcc_cv_ld != x; then
26106 # Check if linker supports --as-needed and --no-as-needed options
26107 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26108 gcc_cv_ld_as_needed=yes
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26114 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26115 if test x"$gcc_cv_ld_as_needed" = xyes; then
26117 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26121 case "$target:$tm_file" in
26122 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26124 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26125 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26126 $as_echo_n "(cached) " >&6
26127 else
26128 gcc_cv_ld_no_dot_syms=no
26129 if test $in_tree_ld = yes ; then
26130 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
26131 gcc_cv_ld_no_dot_syms=yes
26133 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26134 cat > conftest1.s <<EOF
26135 .text
26136 bl .foo
26138 cat > conftest2.s <<EOF
26139 .section ".opd","aw"
26140 .align 3
26141 .globl foo
26142 .type foo,@function
26143 foo:
26144 .quad .LEfoo,.TOC.@tocbase,0
26145 .text
26146 .LEfoo:
26148 .size foo,.-.LEfoo
26150 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26151 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26152 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26153 gcc_cv_ld_no_dot_syms=yes
26155 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26160 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26161 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26163 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26168 $as_echo_n "checking linker large toc support... " >&6; }
26169 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26170 $as_echo_n "(cached) " >&6
26171 else
26172 gcc_cv_ld_large_toc=no
26173 if test $in_tree_ld = yes ; then
26174 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
26175 gcc_cv_ld_large_toc=yes
26177 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26178 cat > conftest.s <<EOF
26179 .section ".tbss","awT",@nobits
26180 .align 3
26181 ie0: .space 8
26182 .global _start
26183 .text
26184 _start:
26185 addis 9,13,ie0@got@tprel@ha
26186 ld 9,ie0@got@tprel@l(9)
26188 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26189 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26190 gcc_cv_ld_large_toc=yes
26192 rm -f conftest conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26197 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26198 if test x"$gcc_cv_ld_large_toc" = xyes; then
26200 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26204 esac
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26207 $as_echo_n "checking linker --build-id support... " >&6; }
26208 if test "${gcc_cv_ld_buildid+set}" = set; then :
26209 $as_echo_n "(cached) " >&6
26210 else
26211 gcc_cv_ld_buildid=no
26212 if test $in_tree_ld = yes ; then
26213 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26214 "$gcc_cv_gld_minor_version" -ge 18 -o \
26215 "$gcc_cv_gld_major_version" -gt 2 \
26216 && test $in_tree_ld_is_elf = yes; then
26217 gcc_cv_ld_buildid=yes
26219 elif test x$gcc_cv_ld != x; then
26220 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26221 gcc_cv_ld_buildid=yes
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26226 $as_echo "$gcc_cv_ld_buildid" >&6; }
26227 if test x"$gcc_cv_ld_buildid" = xyes; then
26229 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26233 # Check whether --enable-linker-build-id was given.
26234 if test "${enable_linker_build_id+set}" = set; then :
26235 enableval=$enable_linker_build_id;
26236 else
26237 enable_linker_build_id=no
26241 if test x"$enable_linker_build_id" = xyes; then
26242 if test x"$gcc_cv_ld_buildid" = xyes; then
26244 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26246 else
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26248 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26252 # In binutils 2.21, GNU ld gained support for new emulations fully
26253 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26255 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26256 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26258 else
26259 gcc_cv_ld_sol2_emulation=no
26260 if test $in_tree_ld = yes ; then
26261 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26262 "$gcc_cv_gld_minor_version" -ge 21 -o \
26263 "$gcc_cv_gld_major_version" -gt 2 \
26264 && test $in_tree_ld_is_elf = yes; then
26265 gcc_cv_ld_sol2_emulation=yes
26267 elif test x$gcc_cv_ld != x; then
26268 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26269 grep _sol2 > /dev/null; then
26270 gcc_cv_ld_sol2_emulation=yes
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26275 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26276 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26278 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26283 $as_echo_n "checking linker --sysroot support... " >&6; }
26284 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26285 $as_echo_n "(cached) " >&6
26286 else
26287 gcc_cv_ld_sysroot=no
26288 if test $in_tree_ld = yes ; then
26289 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
26290 gcc_cv_ld_sysroot=yes
26292 elif test x$gcc_cv_ld != x; then
26293 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26294 gcc_cv_ld_sysroot=yes
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26299 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26300 if test x"$gcc_cv_ld_sysroot" = xyes; then
26302 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26306 if test x$with_sysroot = x && test x$host = x$target \
26307 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26308 && test "$prefix" != "NONE"; then
26310 cat >>confdefs.h <<_ACEOF
26311 #define PREFIX_INCLUDE_DIR "$prefix/include"
26312 _ACEOF
26316 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26317 if test "x$with_headers" != x; then
26318 target_header_dir=$with_headers
26319 elif test "x$with_sysroot" = x; then
26320 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26321 elif test "x$with_build_sysroot" != "x"; then
26322 target_header_dir="${with_build_sysroot}/usr/include"
26323 elif test "x$with_sysroot" = xyes; then
26324 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26325 else
26326 target_header_dir="${with_sysroot}/usr/include"
26328 else
26329 target_header_dir=/usr/include
26332 # Test for stack protector support in target C library.
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26334 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26335 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_libc_provides_ssp=no
26339 case "$target" in
26340 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26341 # glibc 2.4 and later provides __stack_chk_fail and
26342 # either __stack_chk_guard, or TLS access to stack guard canary.
26343 if test -f $target_header_dir/features.h \
26344 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26345 $target_header_dir/features.h > /dev/null; then
26346 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26347 $target_header_dir/features.h > /dev/null; then
26348 gcc_cv_libc_provides_ssp=yes
26349 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26350 $target_header_dir/features.h > /dev/null \
26351 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26352 $target_header_dir/features.h > /dev/null; then
26353 gcc_cv_libc_provides_ssp=yes
26354 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26355 $target_header_dir/features.h > /dev/null && \
26356 test -f $target_header_dir/bits/uClibc_config.h && \
26357 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26358 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26359 gcc_cv_libc_provides_ssp=yes
26363 *-*-gnu*)
26364 # Avoid complicated tests (see
26365 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26366 # simply assert that glibc does provide this, which is true for all
26367 # realistically usable GNU/Hurd configurations.
26368 gcc_cv_libc_provides_ssp=yes;;
26369 *-*-darwin* | *-*-freebsd*)
26370 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26371 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26372 gcc_cv_libc_provides_ssp=yes
26373 else
26374 echo "no __stack_chk_fail on this target"
26378 *) gcc_cv_libc_provides_ssp=no ;;
26379 esac
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26382 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26384 if test x$gcc_cv_libc_provides_ssp = xyes; then
26386 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26390 # Test for <sys/sdt.h> on the target.
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26393 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26394 have_sys_sdt_h=no
26395 if test -f $target_header_dir/sys/sdt.h; then
26397 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26401 $as_echo "$have_sys_sdt_h" >&6; }
26403 # Check if TFmode long double should be used by default or not.
26404 # Some glibc targets used DFmode long double, but with glibc 2.4
26405 # and later they can use TFmode.
26406 case "$target" in
26407 powerpc*-*-linux* | \
26408 sparc*-*-linux* | \
26409 s390*-*-linux* | \
26410 alpha*-*-linux*)
26412 # Check whether --with-long-double-128 was given.
26413 if test "${with_long_double_128+set}" = set; then :
26414 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26415 else
26416 gcc_cv_target_ldbl128=no
26417 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26418 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26419 && gcc_cv_target_ldbl128=yes
26424 esac
26425 if test x$gcc_cv_target_ldbl128 = xyes; then
26427 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26432 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26433 gcc_cv_target_dl_iterate_phdr=unknown
26434 case "$target" in
26435 *-*-solaris2*)
26436 # <link.h> needs both a dl_iterate_phdr declaration and support for
26437 # compilation with largefile support.
26438 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26439 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26440 gcc_cv_target_dl_iterate_phdr=yes
26441 else
26442 gcc_cv_target_dl_iterate_phdr=no
26445 esac
26447 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26449 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26453 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26455 # Find out what GC implementation we want, or may, use.
26457 # Check whether --with-gc was given.
26458 if test "${with_gc+set}" = set; then :
26459 withval=$with_gc; case "$withval" in
26460 page)
26461 GGC=ggc-$withval
26463 zone)
26464 GGC=ggc-$withval
26466 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26470 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26472 esac
26473 else
26474 GGC=ggc-page
26478 echo "Using $GGC for garbage collection."
26480 # Libraries to use on the host. This will normally be set by the top
26481 # level Makefile. Here we simply capture the value for our Makefile.
26482 if test -z "${HOST_LIBS+set}"; then
26483 HOST_LIBS=
26487 # Use the system's zlib library.
26488 zlibdir=-L../zlib
26489 zlibinc="-I\$(srcdir)/../zlib"
26491 # Check whether --with-system-zlib was given.
26492 if test "${with_system_zlib+set}" = set; then :
26493 withval=$with_system_zlib; zlibdir=
26494 zlibinc=
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26503 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26504 # Check whether --enable-maintainer-mode was given.
26505 if test "${enable_maintainer_mode+set}" = set; then :
26506 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26507 else
26508 maintainer_mode=no
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26513 $as_echo "$maintainer_mode" >&6; }
26515 if test "$maintainer_mode" = "yes"; then
26516 MAINT=''
26517 else
26518 MAINT='#'
26521 # --------------
26522 # Language hooks
26523 # --------------
26525 # Make empty files to contain the specs and options for each language.
26526 # Then add #include lines to for a compiler that has specs and/or options.
26528 subdirs=
26529 lang_opt_files=
26530 lang_specs_files=
26531 lang_tree_files=
26532 # These (without "all_") are set in each config-lang.in.
26533 # `language' must be a single word so is spelled singularly.
26534 all_languages=
26535 all_compilers=
26536 all_outputs='Makefile'
26537 # List of language makefile fragments.
26538 all_lang_makefrags=
26539 # Additional files for gengtype
26540 all_gtfiles="$target_gtfiles"
26542 # These are the languages that are set in --enable-languages,
26543 # and are available in the GCC tree.
26544 all_selected_languages=
26546 # Add the language fragments.
26547 # Languages are added via two mechanisms. Some information must be
26548 # recorded in makefile variables, these are defined in config-lang.in.
26549 # We accumulate them and plug them into the main Makefile.
26550 # The other mechanism is a set of hooks for each of the main targets
26551 # like `clean', `install', etc.
26553 language_hooks="Make-hooks"
26555 for lang in ${srcdir}/*/config-lang.in
26557 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26559 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26560 if test "x$lang_alias" = x
26561 then
26562 echo "$lang doesn't set \$language." 1>&2
26563 exit 1
26565 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26566 subdirs="$subdirs $subdir"
26568 # $gcc_subdir is where the gcc integration files are to be found
26569 # for a language, both for internal compiler purposes (compiler
26570 # sources implementing front-end to GCC tree converters), and for
26571 # build infrastructure purposes (Make-lang.in, etc.)
26573 # This will be <subdir> (relative to $srcdir) if a line like
26574 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26575 # is found in <langdir>/config-lang.in, and will remain <langdir>
26576 # otherwise.
26578 # Except for the language alias (fetched above), the regular
26579 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26580 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26581 # only this and the language alias.
26583 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26584 if [ "$gcc_subdir" = "" ]; then
26585 gcc_subdir="$subdir"
26588 case ",$enable_languages," in
26589 *,$lang_alias,*)
26590 all_selected_languages="$all_selected_languages $lang_alias"
26591 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26592 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26595 esac
26597 language=
26598 boot_language=
26599 compilers=
26600 outputs=
26601 gtfiles=
26602 subdir_requires=
26603 . ${srcdir}/$gcc_subdir/config-lang.in
26604 if test "x$language" = x
26605 then
26606 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26607 exit 1
26610 ok=:
26611 case ",$enable_languages," in
26612 *,$lang_alias,*) ;;
26614 for i in $subdir_requires; do
26615 test -f "${srcdir}/$i/config-lang.in" && continue
26616 ok=false
26617 break
26618 done
26620 esac
26621 $ok || continue
26623 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26624 if test -f $srcdir/$gcc_subdir/lang.opt; then
26625 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26626 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26628 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26629 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26631 all_languages="$all_languages $language"
26632 all_compilers="$all_compilers $compilers"
26633 all_outputs="$all_outputs $outputs"
26634 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26635 case ",$enable_languages," in
26636 *,lto,*)
26638 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26640 enable_lto=yes
26643 *) ;;
26644 esac
26645 done
26647 # Pick up gtfiles for c
26648 gtfiles=
26649 . ${srcdir}/c-config-lang.in
26650 all_gtfiles="$all_gtfiles [c] $gtfiles"
26652 check_languages=
26653 for language in $all_selected_languages
26655 check_languages="$check_languages check-$language"
26656 done
26658 # We link each language in with a set of hooks, reached indirectly via
26659 # lang.${target}. Only do so for selected languages.
26661 rm -f Make-hooks
26662 touch Make-hooks
26663 target_list="all.cross start.encap rest.encap tags \
26664 install-common install-man install-info install-pdf install-html dvi \
26665 pdf html uninstall info man srcextra srcman srcinfo \
26666 mostlyclean clean distclean maintainer-clean install-plugin"
26668 for t in $target_list
26671 for lang in $all_selected_languages
26673 x="$x $lang.$t"
26674 done
26675 echo "lang.$t: $x" >> Make-hooks
26676 done
26678 # --------
26679 # Option include files
26680 # --------
26682 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26683 option_includes="option-includes.mk"
26686 # --------
26687 # UNSORTED
26688 # --------
26690 # Create .gdbinit.
26692 echo "dir ." > .gdbinit
26693 echo "dir ${srcdir}" >> .gdbinit
26694 if test x$gdb_needs_out_file_path = xyes
26695 then
26696 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26698 if test "x$subdirs" != x; then
26699 for s in $subdirs
26701 echo "dir ${srcdir}/$s" >> .gdbinit
26702 done
26704 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26706 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26710 # Find a directory in which to install a shared libgcc.
26712 # Check whether --enable-version-specific-runtime-libs was given.
26713 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26714 enableval=$enable_version_specific_runtime_libs;
26719 # Check whether --with-slibdir was given.
26720 if test "${with_slibdir+set}" = set; then :
26721 withval=$with_slibdir; slibdir="$with_slibdir"
26722 else
26723 if test "${enable_version_specific_runtime_libs+set}" = set; then
26724 slibdir='$(libsubdir)'
26725 elif test "$host" != "$target"; then
26726 slibdir='$(build_tooldir)/lib'
26727 else
26728 slibdir='$(libdir)'
26734 # Substitute configuration variables
26801 # Echo link setup.
26802 if test x${build} = x${host} ; then
26803 if test x${host} = x${target} ; then
26804 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26805 else
26806 echo "Links are now set up to build a cross-compiler" 1>&2
26807 echo " from ${host} to ${target}." 1>&2
26809 else
26810 if test x${host} = x${target} ; then
26811 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26812 echo " for ${target}." 1>&2
26813 else
26814 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26815 echo " from ${host} to ${target}." 1>&2
26827 if test "x${CLOOGLIBS}" != "x" ; then
26829 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26833 # Check for plugin support
26834 # Check whether --enable-plugin was given.
26835 if test "${enable_plugin+set}" = set; then :
26836 enableval=$enable_plugin; enable_plugin=$enableval
26837 else
26838 enable_plugin=yes; default_plugin=yes
26842 pluginlibs=
26844 case "${host}" in
26845 *-*-darwin*)
26846 if test x$build = x$host; then
26847 export_sym_check="nm${exeext} -g"
26848 elif test x$host = x$target; then
26849 export_sym_check="$gcc_cv_nm -g"
26850 else
26851 export_sym_check=
26855 if test x$build = x$host; then
26856 export_sym_check="objdump${exeext} -T"
26857 elif test x$host = x$target; then
26858 export_sym_check="$gcc_cv_objdump -T"
26859 else
26860 export_sym_check=
26863 esac
26865 if test x"$enable_plugin" = x"yes"; then
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26868 $as_echo_n "checking for exported symbols... " >&6; }
26869 if test "x$export_sym_check" != x; then
26870 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26871 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26872 if $export_sym_check conftest | grep foobar > /dev/null; then
26873 : # No need to use a flag
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26875 $as_echo "yes" >&6; }
26876 else
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26878 $as_echo "yes" >&6; }
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26880 $as_echo_n "checking for -rdynamic... " >&6; }
26881 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26882 if $export_sym_check conftest | grep foobar > /dev/null; then
26883 plugin_rdynamic=yes
26884 pluginlibs="-rdynamic"
26885 else
26886 plugin_rdynamic=no
26887 enable_plugin=no
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26890 $as_echo "$plugin_rdynamic" >&6; }
26892 else
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26894 $as_echo "unable to check" >&6; }
26897 # Check -ldl
26898 saved_LIBS="$LIBS"
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26900 $as_echo_n "checking for library containing dlopen... " >&6; }
26901 if test "${ac_cv_search_dlopen+set}" = set; then :
26902 $as_echo_n "(cached) " >&6
26903 else
26904 ac_func_search_save_LIBS=$LIBS
26905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h. */
26908 /* Override any GCC internal prototype to avoid an error.
26909 Use char because int might match the return type of a GCC
26910 builtin and then its argument prototype would still apply. */
26911 #ifdef __cplusplus
26912 extern "C"
26913 #endif
26914 char dlopen ();
26916 main ()
26918 return dlopen ();
26920 return 0;
26922 _ACEOF
26923 for ac_lib in '' dl; do
26924 if test -z "$ac_lib"; then
26925 ac_res="none required"
26926 else
26927 ac_res=-l$ac_lib
26928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26930 if ac_fn_c_try_link "$LINENO"; then :
26931 ac_cv_search_dlopen=$ac_res
26933 rm -f core conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext
26935 if test "${ac_cv_search_dlopen+set}" = set; then :
26936 break
26938 done
26939 if test "${ac_cv_search_dlopen+set}" = set; then :
26941 else
26942 ac_cv_search_dlopen=no
26944 rm conftest.$ac_ext
26945 LIBS=$ac_func_search_save_LIBS
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26948 $as_echo "$ac_cv_search_dlopen" >&6; }
26949 ac_res=$ac_cv_search_dlopen
26950 if test "$ac_res" != no; then :
26951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26955 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26956 pluginlibs="$pluginlibs -ldl"
26958 LIBS="$saved_LIBS"
26960 # Check that we can build shared objects with -fPIC -shared
26961 saved_LDFLAGS="$LDFLAGS"
26962 saved_CFLAGS="$CFLAGS"
26963 case "${host}" in
26964 *-*-darwin*)
26965 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26966 CFLAGS="$CFLAGS -fPIC"
26967 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26970 CFLAGS="$CFLAGS -fPIC"
26971 LDFLAGS="$LDFLAGS -fPIC -shared"
26973 esac
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26975 $as_echo_n "checking for -fPIC -shared... " >&6; }
26976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977 /* end confdefs.h. */
26978 extern int X;
26980 main ()
26982 return X == 0;
26984 return 0;
26986 _ACEOF
26987 if ac_fn_c_try_link "$LINENO"; then :
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989 $as_echo "yes" >&6; }; have_pic_shared=yes
26990 else
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26992 $as_echo "no" >&6; }; have_pic_shared=no
26994 rm -f core conftest.err conftest.$ac_objext \
26995 conftest$ac_exeext conftest.$ac_ext
26996 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26997 pluginlibs=
26998 enable_plugin=no
27000 LDFLAGS="$saved_LDFLAGS"
27001 CFLAGS="$saved_CFLAGS"
27003 # If plugin support had been requested but not available, fail.
27004 if test x"$enable_plugin" = x"no" ; then
27005 if test x"$default_plugin" != x"yes"; then
27006 as_fn_error "
27007 Building GCC with plugin support requires a host that supports
27008 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27015 if test x"$enable_plugin" = x"yes"; then
27017 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27022 # Check whether --enable-libquadmath-support was given.
27023 if test "${enable_libquadmath_support+set}" = set; then :
27024 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27025 else
27026 ENABLE_LIBQUADMATH_SUPPORT=yes
27029 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27031 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27036 # Specify what hash style to use by default.
27038 # Check whether --with-linker-hash-style was given.
27039 if test "${with_linker_hash_style+set}" = set; then :
27040 withval=$with_linker_hash_style; case x"$withval" in
27041 xsysv)
27042 LINKER_HASH_STYLE=sysv
27044 xgnu)
27045 LINKER_HASH_STYLE=gnu
27047 xboth)
27048 LINKER_HASH_STYLE=both
27051 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27053 esac
27054 else
27055 LINKER_HASH_STYLE=''
27058 if test x"${LINKER_HASH_STYLE}" != x; then
27060 cat >>confdefs.h <<_ACEOF
27061 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27062 _ACEOF
27066 # Configure the subdirectories
27067 # AC_CONFIG_SUBDIRS($subdirs)
27069 # Create the Makefile
27070 # and configure language subdirectories
27071 ac_config_files="$ac_config_files $all_outputs"
27074 ac_config_commands="$ac_config_commands default"
27076 cat >confcache <<\_ACEOF
27077 # This file is a shell script that caches the results of configure
27078 # tests run on this system so they can be shared between configure
27079 # scripts and configure runs, see configure's option --config-cache.
27080 # It is not useful on other systems. If it contains results you don't
27081 # want to keep, you may remove or edit it.
27083 # config.status only pays attention to the cache file if you give it
27084 # the --recheck option to rerun configure.
27086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27088 # following values.
27090 _ACEOF
27092 # The following way of writing the cache mishandles newlines in values,
27093 # but we know of no workaround that is simple, portable, and efficient.
27094 # So, we kill variables containing newlines.
27095 # Ultrix sh set writes to stderr and can't be redirected directly,
27096 # and sets the high bit in the cache file unless we assign to the vars.
27098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27099 eval ac_val=\$$ac_var
27100 case $ac_val in #(
27101 *${as_nl}*)
27102 case $ac_var in #(
27103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27105 esac
27106 case $ac_var in #(
27107 _ | IFS | as_nl) ;; #(
27108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27109 *) { eval $ac_var=; unset $ac_var;} ;;
27110 esac ;;
27111 esac
27112 done
27114 (set) 2>&1 |
27115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27116 *${as_nl}ac_space=\ *)
27117 # `set' does not quote correctly, so add quotes: double-quote
27118 # substitution turns \\\\ into \\, and sed turns \\ into \.
27119 sed -n \
27120 "s/'/'\\\\''/g;
27121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27122 ;; #(
27124 # `set' quotes correctly as required by POSIX, so do not add quotes.
27125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27127 esac |
27128 sort
27130 sed '
27131 /^ac_cv_env_/b end
27132 t clear
27133 :clear
27134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27135 t end
27136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27137 :end' >>confcache
27138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27139 if test -w "$cache_file"; then
27140 test "x$cache_file" != "x/dev/null" &&
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27142 $as_echo "$as_me: updating cache $cache_file" >&6;}
27143 cat confcache >$cache_file
27144 else
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27149 rm -f confcache
27151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27152 # Let make expand exec_prefix.
27153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27155 DEFS=-DHAVE_CONFIG_H
27157 ac_libobjs=
27158 ac_ltlibobjs=
27159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27160 # 1. Remove the extension, and $U if already installed.
27161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27164 # will be set to the directory where LIBOBJS objects are built.
27165 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27166 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27167 done
27168 LIBOBJS=$ac_libobjs
27170 LTLIBOBJS=$ac_ltlibobjs
27175 : ${CONFIG_STATUS=./config.status}
27176 ac_write_fail=0
27177 ac_clean_files_save=$ac_clean_files
27178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27181 as_write_fail=0
27182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27183 #! $SHELL
27184 # Generated by $as_me.
27185 # Run this file to recreate the current configuration.
27186 # Compiler output produced by configure, useful for debugging
27187 # configure, is in config.log if it exists.
27189 debug=false
27190 ac_cs_recheck=false
27191 ac_cs_silent=false
27193 SHELL=\${CONFIG_SHELL-$SHELL}
27194 export SHELL
27195 _ASEOF
27196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27197 ## -------------------- ##
27198 ## M4sh Initialization. ##
27199 ## -------------------- ##
27201 # Be more Bourne compatible
27202 DUALCASE=1; export DUALCASE # for MKS sh
27203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27204 emulate sh
27205 NULLCMD=:
27206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27207 # is contrary to our usage. Disable this feature.
27208 alias -g '${1+"$@"}'='"$@"'
27209 setopt NO_GLOB_SUBST
27210 else
27211 case `(set -o) 2>/dev/null` in #(
27212 *posix*) :
27213 set -o posix ;; #(
27214 *) :
27216 esac
27220 as_nl='
27222 export as_nl
27223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27227 # Prefer a ksh shell builtin over an external printf program on Solaris,
27228 # but without wasting forks for bash or zsh.
27229 if test -z "$BASH_VERSION$ZSH_VERSION" \
27230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27231 as_echo='print -r --'
27232 as_echo_n='print -rn --'
27233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27234 as_echo='printf %s\n'
27235 as_echo_n='printf %s'
27236 else
27237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27239 as_echo_n='/usr/ucb/echo -n'
27240 else
27241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27242 as_echo_n_body='eval
27243 arg=$1;
27244 case $arg in #(
27245 *"$as_nl"*)
27246 expr "X$arg" : "X\\(.*\\)$as_nl";
27247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27248 esac;
27249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27251 export as_echo_n_body
27252 as_echo_n='sh -c $as_echo_n_body as_echo'
27254 export as_echo_body
27255 as_echo='sh -c $as_echo_body as_echo'
27258 # The user is always right.
27259 if test "${PATH_SEPARATOR+set}" != set; then
27260 PATH_SEPARATOR=:
27261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27263 PATH_SEPARATOR=';'
27268 # IFS
27269 # We need space, tab and new line, in precisely that order. Quoting is
27270 # there to prevent editors from complaining about space-tab.
27271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27272 # splitting by setting IFS to empty value.)
27273 IFS=" "" $as_nl"
27275 # Find who we are. Look in the path if we contain no directory separator.
27276 case $0 in #((
27277 *[\\/]* ) as_myself=$0 ;;
27278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27279 for as_dir in $PATH
27281 IFS=$as_save_IFS
27282 test -z "$as_dir" && as_dir=.
27283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27284 done
27285 IFS=$as_save_IFS
27288 esac
27289 # We did not find ourselves, most probably we were run as `sh COMMAND'
27290 # in which case we are not to be found in the path.
27291 if test "x$as_myself" = x; then
27292 as_myself=$0
27294 if test ! -f "$as_myself"; then
27295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27296 exit 1
27299 # Unset variables that we do not need and which cause bugs (e.g. in
27300 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27301 # suppresses any "Segmentation fault" message there. '((' could
27302 # trigger a bug in pdksh 5.2.14.
27303 for as_var in BASH_ENV ENV MAIL MAILPATH
27304 do eval test x\${$as_var+set} = xset \
27305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27306 done
27307 PS1='$ '
27308 PS2='> '
27309 PS4='+ '
27311 # NLS nuisances.
27312 LC_ALL=C
27313 export LC_ALL
27314 LANGUAGE=C
27315 export LANGUAGE
27317 # CDPATH.
27318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27321 # as_fn_error ERROR [LINENO LOG_FD]
27322 # ---------------------------------
27323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27325 # script with status $?, using 1 if that was 0.
27326 as_fn_error ()
27328 as_status=$?; test $as_status -eq 0 && as_status=1
27329 if test "$3"; then
27330 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27333 $as_echo "$as_me: error: $1" >&2
27334 as_fn_exit $as_status
27335 } # as_fn_error
27338 # as_fn_set_status STATUS
27339 # -----------------------
27340 # Set $? to STATUS, without forking.
27341 as_fn_set_status ()
27343 return $1
27344 } # as_fn_set_status
27346 # as_fn_exit STATUS
27347 # -----------------
27348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27349 as_fn_exit ()
27351 set +e
27352 as_fn_set_status $1
27353 exit $1
27354 } # as_fn_exit
27356 # as_fn_unset VAR
27357 # ---------------
27358 # Portably unset VAR.
27359 as_fn_unset ()
27361 { eval $1=; unset $1;}
27363 as_unset=as_fn_unset
27364 # as_fn_append VAR VALUE
27365 # ----------------------
27366 # Append the text in VALUE to the end of the definition contained in VAR. Take
27367 # advantage of any shell optimizations that allow amortized linear growth over
27368 # repeated appends, instead of the typical quadratic growth present in naive
27369 # implementations.
27370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27371 eval 'as_fn_append ()
27373 eval $1+=\$2
27375 else
27376 as_fn_append ()
27378 eval $1=\$$1\$2
27380 fi # as_fn_append
27382 # as_fn_arith ARG...
27383 # ------------------
27384 # Perform arithmetic evaluation on the ARGs, and store the result in the
27385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27386 # must be portable across $(()) and expr.
27387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27388 eval 'as_fn_arith ()
27390 as_val=$(( $* ))
27392 else
27393 as_fn_arith ()
27395 as_val=`expr "$@" || test $? -eq 1`
27397 fi # as_fn_arith
27400 if expr a : '\(a\)' >/dev/null 2>&1 &&
27401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27402 as_expr=expr
27403 else
27404 as_expr=false
27407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27408 as_basename=basename
27409 else
27410 as_basename=false
27413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27414 as_dirname=dirname
27415 else
27416 as_dirname=false
27419 as_me=`$as_basename -- "$0" ||
27420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27421 X"$0" : 'X\(//\)$' \| \
27422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27423 $as_echo X/"$0" |
27424 sed '/^.*\/\([^/][^/]*\)\/*$/{
27425 s//\1/
27428 /^X\/\(\/\/\)$/{
27429 s//\1/
27432 /^X\/\(\/\).*/{
27433 s//\1/
27436 s/.*/./; q'`
27438 # Avoid depending upon Character Ranges.
27439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27442 as_cr_digits='0123456789'
27443 as_cr_alnum=$as_cr_Letters$as_cr_digits
27445 ECHO_C= ECHO_N= ECHO_T=
27446 case `echo -n x` in #(((((
27447 -n*)
27448 case `echo 'xy\c'` in
27449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27450 xy) ECHO_C='\c';;
27451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27452 ECHO_T=' ';;
27453 esac;;
27455 ECHO_N='-n';;
27456 esac
27458 rm -f conf$$ conf$$.exe conf$$.file
27459 if test -d conf$$.dir; then
27460 rm -f conf$$.dir/conf$$.file
27461 else
27462 rm -f conf$$.dir
27463 mkdir conf$$.dir 2>/dev/null
27465 if (echo >conf$$.file) 2>/dev/null; then
27466 if ln -s conf$$.file conf$$ 2>/dev/null; then
27467 as_ln_s='ln -s'
27468 # ... but there are two gotchas:
27469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27471 # In both cases, we have to default to `cp -p'.
27472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27473 as_ln_s='cp -p'
27474 elif ln conf$$.file conf$$ 2>/dev/null; then
27475 as_ln_s=ln
27476 else
27477 as_ln_s='cp -p'
27479 else
27480 as_ln_s='cp -p'
27482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27483 rmdir conf$$.dir 2>/dev/null
27486 # as_fn_mkdir_p
27487 # -------------
27488 # Create "$as_dir" as a directory, including parents if necessary.
27489 as_fn_mkdir_p ()
27492 case $as_dir in #(
27493 -*) as_dir=./$as_dir;;
27494 esac
27495 test -d "$as_dir" || eval $as_mkdir_p || {
27496 as_dirs=
27497 while :; do
27498 case $as_dir in #(
27499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27500 *) as_qdir=$as_dir;;
27501 esac
27502 as_dirs="'$as_qdir' $as_dirs"
27503 as_dir=`$as_dirname -- "$as_dir" ||
27504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27505 X"$as_dir" : 'X\(//\)[^/]' \| \
27506 X"$as_dir" : 'X\(//\)$' \| \
27507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27508 $as_echo X"$as_dir" |
27509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27510 s//\1/
27513 /^X\(\/\/\)[^/].*/{
27514 s//\1/
27517 /^X\(\/\/\)$/{
27518 s//\1/
27521 /^X\(\/\).*/{
27522 s//\1/
27525 s/.*/./; q'`
27526 test -d "$as_dir" && break
27527 done
27528 test -z "$as_dirs" || eval "mkdir $as_dirs"
27529 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27532 } # as_fn_mkdir_p
27533 if mkdir -p . 2>/dev/null; then
27534 as_mkdir_p='mkdir -p "$as_dir"'
27535 else
27536 test -d ./-p && rmdir ./-p
27537 as_mkdir_p=false
27540 if test -x / >/dev/null 2>&1; then
27541 as_test_x='test -x'
27542 else
27543 if ls -dL / >/dev/null 2>&1; then
27544 as_ls_L_option=L
27545 else
27546 as_ls_L_option=
27548 as_test_x='
27549 eval sh -c '\''
27550 if test -d "$1"; then
27551 test -d "$1/.";
27552 else
27553 case $1 in #(
27554 -*)set "./$1";;
27555 esac;
27556 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27557 ???[sx]*):;;*)false;;esac;fi
27558 '\'' sh
27561 as_executable_p=$as_test_x
27563 # Sed expression to map a string onto a valid CPP name.
27564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27566 # Sed expression to map a string onto a valid variable name.
27567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27570 exec 6>&1
27571 ## ----------------------------------- ##
27572 ## Main body of $CONFIG_STATUS script. ##
27573 ## ----------------------------------- ##
27574 _ASEOF
27575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27578 # Save the log message, to keep $0 and so on meaningful, and to
27579 # report actual input values of CONFIG_FILES etc. instead of their
27580 # values after options handling.
27581 ac_log="
27582 This file was extended by $as_me, which was
27583 generated by GNU Autoconf 2.64. Invocation command line was
27585 CONFIG_FILES = $CONFIG_FILES
27586 CONFIG_HEADERS = $CONFIG_HEADERS
27587 CONFIG_LINKS = $CONFIG_LINKS
27588 CONFIG_COMMANDS = $CONFIG_COMMANDS
27589 $ $0 $@
27591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27594 _ACEOF
27596 case $ac_config_files in *"
27597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27598 esac
27600 case $ac_config_headers in *"
27601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27602 esac
27605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27606 # Files that config.status was made for.
27607 config_files="$ac_config_files"
27608 config_headers="$ac_config_headers"
27609 config_commands="$ac_config_commands"
27611 _ACEOF
27613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27614 ac_cs_usage="\
27615 \`$as_me' instantiates files and other configuration actions
27616 from templates according to the current configuration. Unless the files
27617 and actions are specified as TAGs, all are instantiated by default.
27619 Usage: $0 [OPTION]... [TAG]...
27621 -h, --help print this help, then exit
27622 -V, --version print version number and configuration settings, then exit
27623 -q, --quiet, --silent
27624 do not print progress messages
27625 -d, --debug don't remove temporary files
27626 --recheck update $as_me by reconfiguring in the same conditions
27627 --file=FILE[:TEMPLATE]
27628 instantiate the configuration file FILE
27629 --header=FILE[:TEMPLATE]
27630 instantiate the configuration header FILE
27632 Configuration files:
27633 $config_files
27635 Configuration headers:
27636 $config_headers
27638 Configuration commands:
27639 $config_commands
27641 Report bugs to the package provider."
27643 _ACEOF
27644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27645 ac_cs_version="\\
27646 config.status
27647 configured by $0, generated by GNU Autoconf 2.64,
27648 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27650 Copyright (C) 2009 Free Software Foundation, Inc.
27651 This config.status script is free software; the Free Software Foundation
27652 gives unlimited permission to copy, distribute and modify it."
27654 ac_pwd='$ac_pwd'
27655 srcdir='$srcdir'
27656 AWK='$AWK'
27657 test -n "\$AWK" || AWK=awk
27658 _ACEOF
27660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27661 # The default lists apply if the user does not specify any file.
27662 ac_need_defaults=:
27663 while test $# != 0
27665 case $1 in
27666 --*=*)
27667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27668 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27669 ac_shift=:
27672 ac_option=$1
27673 ac_optarg=$2
27674 ac_shift=shift
27676 esac
27678 case $ac_option in
27679 # Handling of the options.
27680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27681 ac_cs_recheck=: ;;
27682 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27683 $as_echo "$ac_cs_version"; exit ;;
27684 --debug | --debu | --deb | --de | --d | -d )
27685 debug=: ;;
27686 --file | --fil | --fi | --f )
27687 $ac_shift
27688 case $ac_optarg in
27689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27690 esac
27691 as_fn_append CONFIG_FILES " '$ac_optarg'"
27692 ac_need_defaults=false;;
27693 --header | --heade | --head | --hea )
27694 $ac_shift
27695 case $ac_optarg in
27696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27697 esac
27698 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27699 ac_need_defaults=false;;
27700 --he | --h)
27701 # Conflict between --help and --header
27702 as_fn_error "ambiguous option: \`$1'
27703 Try \`$0 --help' for more information.";;
27704 --help | --hel | -h )
27705 $as_echo "$ac_cs_usage"; exit ;;
27706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27708 ac_cs_silent=: ;;
27710 # This is an error.
27711 -*) as_fn_error "unrecognized option: \`$1'
27712 Try \`$0 --help' for more information." ;;
27714 *) as_fn_append ac_config_targets " $1"
27715 ac_need_defaults=false ;;
27717 esac
27718 shift
27719 done
27721 ac_configure_extra_args=
27723 if $ac_cs_silent; then
27724 exec 6>/dev/null
27725 ac_configure_extra_args="$ac_configure_extra_args --silent"
27728 _ACEOF
27729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27730 if \$ac_cs_recheck; then
27731 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27732 shift
27733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27734 CONFIG_SHELL='$SHELL'
27735 export CONFIG_SHELL
27736 exec "\$@"
27739 _ACEOF
27740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27741 exec 5>>config.log
27743 echo
27744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27745 ## Running $as_me. ##
27746 _ASBOX
27747 $as_echo "$ac_log"
27748 } >&5
27750 _ACEOF
27751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27753 # INIT-COMMANDS
27755 subdirs='$subdirs'
27757 _ACEOF
27759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27761 # Handling of arguments.
27762 for ac_config_target in $ac_config_targets
27764 case $ac_config_target in
27765 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27766 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27767 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27768 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27769 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27770 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27772 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27773 esac
27774 done
27777 # If the user did not use the arguments to specify the items to instantiate,
27778 # then the envvar interface is used. Set only those that are not.
27779 # We use the long form for the default assignment because of an extremely
27780 # bizarre bug on SunOS 4.1.3.
27781 if $ac_need_defaults; then
27782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27787 # Have a temporary directory for convenience. Make it in the build tree
27788 # simply because there is no reason against having it here, and in addition,
27789 # creating and moving files from /tmp can sometimes cause problems.
27790 # Hook for its removal unless debugging.
27791 # Note that there is a small window in which the directory will not be cleaned:
27792 # after its creation but before its name has been assigned to `$tmp'.
27793 $debug ||
27795 tmp=
27796 trap 'exit_status=$?
27797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27799 trap 'as_fn_exit 1' 1 2 13 15
27801 # Create a (secure) tmp directory for tmp files.
27804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27805 test -n "$tmp" && test -d "$tmp"
27806 } ||
27808 tmp=./conf$$-$RANDOM
27809 (umask 077 && mkdir "$tmp")
27810 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27812 # Set up the scripts for CONFIG_FILES section.
27813 # No need to generate them if there are no CONFIG_FILES.
27814 # This happens for instance with `./config.status config.h'.
27815 if test -n "$CONFIG_FILES"; then
27817 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27818 ac_cs_awk_getline=:
27819 ac_cs_awk_pipe_init=
27820 ac_cs_awk_read_file='
27821 while ((getline aline < (F[key])) > 0)
27822 print(aline)
27823 close(F[key])'
27824 ac_cs_awk_pipe_fini=
27825 else
27826 ac_cs_awk_getline=false
27827 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27828 ac_cs_awk_read_file='
27829 print "|#_!!_#|"
27830 print "cat " F[key] " &&"
27831 '$ac_cs_awk_pipe_init
27832 # The final `:' finishes the AND list.
27833 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27835 ac_cr=`echo X | tr X '\015'`
27836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27837 # But we know of no other shell where ac_cr would be empty at this
27838 # point, so we can use a bashism as a fallback.
27839 if test "x$ac_cr" = x; then
27840 eval ac_cr=\$\'\\r\'
27842 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27844 ac_cs_awk_cr='\r'
27845 else
27846 ac_cs_awk_cr=$ac_cr
27849 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27850 _ACEOF
27852 # Create commands to substitute file output variables.
27854 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27855 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27856 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27857 echo "_ACAWK" &&
27858 echo "_ACEOF"
27859 } >conf$$files.sh &&
27860 . ./conf$$files.sh ||
27861 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27862 rm -f conf$$files.sh
27865 echo "cat >conf$$subs.awk <<_ACEOF" &&
27866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27867 echo "_ACEOF"
27868 } >conf$$subs.sh ||
27869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27871 ac_delim='%!_!# '
27872 for ac_last_try in false false false false false :; do
27873 . ./conf$$subs.sh ||
27874 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27877 if test $ac_delim_n = $ac_delim_num; then
27878 break
27879 elif $ac_last_try; then
27880 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27881 else
27882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27884 done
27885 rm -f conf$$subs.sh
27887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27888 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27889 _ACEOF
27890 sed -n '
27892 s/^/S["/; s/!.*/"]=/
27895 s/^[^!]*!//
27896 :repl
27897 t repl
27898 s/'"$ac_delim"'$//
27899 t delim
27902 s/\(.\{148\}\).*/\1/
27903 t more1
27904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27907 b repl
27908 :more1
27909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27912 s/.\{148\}//
27913 t nl
27914 :delim
27916 s/\(.\{148\}\).*/\1/
27917 t more2
27918 s/["\\]/\\&/g; s/^/"/; s/$/"/
27921 :more2
27922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27925 s/.\{148\}//
27926 t delim
27927 ' <conf$$subs.awk | sed '
27928 /^[^""]/{
27930 s/\n//
27932 ' >>$CONFIG_STATUS || ac_write_fail=1
27933 rm -f conf$$subs.awk
27934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27935 _ACAWK
27936 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27937 for (key in S) S_is_set[key] = 1
27938 FS = "\a"
27939 \$ac_cs_awk_pipe_init
27942 line = $ 0
27943 nfields = split(line, field, "@")
27944 substed = 0
27945 len = length(field[1])
27946 for (i = 2; i < nfields; i++) {
27947 key = field[i]
27948 keylen = length(key)
27949 if (S_is_set[key]) {
27950 value = S[key]
27951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27952 len += length(value) + length(field[++i])
27953 substed = 1
27954 } else
27955 len += 1 + keylen
27957 if (nfields == 3 && !substed) {
27958 key = field[2]
27959 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27960 \$ac_cs_awk_read_file
27961 next
27964 print line
27966 \$ac_cs_awk_pipe_fini
27967 _ACAWK
27968 _ACEOF
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27970 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27971 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27972 else
27974 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27975 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27976 _ACEOF
27978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27980 # trailing colons and then remove the whole line if VPATH becomes empty
27981 # (actually we leave an empty line to preserve line numbers).
27982 if test "x$srcdir" = x.; then
27983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27984 s/:*\$(srcdir):*/:/
27985 s/:*\${srcdir}:*/:/
27986 s/:*@srcdir@:*/:/
27987 s/^\([^=]*=[ ]*\):*/\1/
27988 s/:*$//
27989 s/^[^=]*=[ ]*$//
27993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27994 fi # test -n "$CONFIG_FILES"
27996 # Set up the scripts for CONFIG_HEADERS section.
27997 # No need to generate them if there are no CONFIG_HEADERS.
27998 # This happens for instance with `./config.status Makefile'.
27999 if test -n "$CONFIG_HEADERS"; then
28000 cat >"$tmp/defines.awk" <<\_ACAWK ||
28001 BEGIN {
28002 _ACEOF
28004 # Transform confdefs.h into an awk script `defines.awk', embedded as
28005 # here-document in config.status, that substitutes the proper values into
28006 # config.h.in to produce config.h.
28008 # Create a delimiter string that does not exist in confdefs.h, to ease
28009 # handling of long lines.
28010 ac_delim='%!_!# '
28011 for ac_last_try in false false :; do
28012 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28013 if test -z "$ac_t"; then
28014 break
28015 elif $ac_last_try; then
28016 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28017 else
28018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28020 done
28022 # For the awk script, D is an array of macro values keyed by name,
28023 # likewise P contains macro parameters if any. Preserve backslash
28024 # newline sequences.
28026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28027 sed -n '
28028 s/.\{148\}/&'"$ac_delim"'/g
28029 t rset
28030 :rset
28031 s/^[ ]*#[ ]*define[ ][ ]*/ /
28032 t def
28034 :def
28035 s/\\$//
28036 t bsnl
28037 s/["\\]/\\&/g
28038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28039 D["\1"]=" \3"/p
28040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28042 :bsnl
28043 s/["\\]/\\&/g
28044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28045 D["\1"]=" \3\\\\\\n"\\/p
28046 t cont
28047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28048 t cont
28050 :cont
28052 s/.\{148\}/&'"$ac_delim"'/g
28053 t clear
28054 :clear
28055 s/\\$//
28056 t bsnlc
28057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28059 :bsnlc
28060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28061 b cont
28062 ' <confdefs.h | sed '
28063 s/'"$ac_delim"'/"\\\
28064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28067 for (key in D) D_is_set[key] = 1
28068 FS = "\a"
28070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28071 line = \$ 0
28072 split(line, arg, " ")
28073 if (arg[1] == "#") {
28074 defundef = arg[2]
28075 mac1 = arg[3]
28076 } else {
28077 defundef = substr(arg[1], 2)
28078 mac1 = arg[2]
28080 split(mac1, mac2, "(") #)
28081 macro = mac2[1]
28082 prefix = substr(line, 1, index(line, defundef) - 1)
28083 if (D_is_set[macro]) {
28084 # Preserve the white space surrounding the "#".
28085 print prefix "define", macro P[macro] D[macro]
28086 next
28087 } else {
28088 # Replace #undef with comments. This is necessary, for example,
28089 # in the case of _POSIX_SOURCE, which is predefined and required
28090 # on some systems where configure will not decide to define it.
28091 if (defundef == "undef") {
28092 print "/*", prefix defundef, macro, "*/"
28093 next
28097 { print }
28098 _ACAWK
28099 _ACEOF
28100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28101 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28102 fi # test -n "$CONFIG_HEADERS"
28105 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28106 shift
28107 for ac_tag
28109 case $ac_tag in
28110 :[FHLC]) ac_mode=$ac_tag; continue;;
28111 esac
28112 case $ac_mode$ac_tag in
28113 :[FHL]*:*);;
28114 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28115 :[FH]-) ac_tag=-:-;;
28116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28117 esac
28118 ac_save_IFS=$IFS
28119 IFS=:
28120 set x $ac_tag
28121 IFS=$ac_save_IFS
28122 shift
28123 ac_file=$1
28124 shift
28126 case $ac_mode in
28127 :L) ac_source=$1;;
28128 :[FH])
28129 ac_file_inputs=
28130 for ac_f
28132 case $ac_f in
28133 -) ac_f="$tmp/stdin";;
28134 *) # Look for the file first in the build tree, then in the source tree
28135 # (if the path is not absolute). The absolute path cannot be DOS-style,
28136 # because $ac_f cannot contain `:'.
28137 test -f "$ac_f" ||
28138 case $ac_f in
28139 [\\/$]*) false;;
28140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28141 esac ||
28142 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28143 esac
28144 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28145 as_fn_append ac_file_inputs " '$ac_f'"
28146 done
28148 # Let's still pretend it is `configure' which instantiates (i.e., don't
28149 # use $as_me), people would be surprised to read:
28150 # /* config.h. Generated by config.status. */
28151 configure_input='Generated from '`
28152 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28153 `' by configure.'
28154 if test x"$ac_file" != x-; then
28155 configure_input="$ac_file. $configure_input"
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28157 $as_echo "$as_me: creating $ac_file" >&6;}
28159 # Neutralize special characters interpreted by sed in replacement strings.
28160 case $configure_input in #(
28161 *\&* | *\|* | *\\* )
28162 ac_sed_conf_input=`$as_echo "$configure_input" |
28163 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28164 *) ac_sed_conf_input=$configure_input;;
28165 esac
28167 case $ac_tag in
28168 *:-:* | *:-) cat >"$tmp/stdin" \
28169 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28170 esac
28172 esac
28174 ac_dir=`$as_dirname -- "$ac_file" ||
28175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28176 X"$ac_file" : 'X\(//\)[^/]' \| \
28177 X"$ac_file" : 'X\(//\)$' \| \
28178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28179 $as_echo X"$ac_file" |
28180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28181 s//\1/
28184 /^X\(\/\/\)[^/].*/{
28185 s//\1/
28188 /^X\(\/\/\)$/{
28189 s//\1/
28192 /^X\(\/\).*/{
28193 s//\1/
28196 s/.*/./; q'`
28197 as_dir="$ac_dir"; as_fn_mkdir_p
28198 ac_builddir=.
28200 case "$ac_dir" in
28201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28203 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28204 # A ".." for each directory in $ac_dir_suffix.
28205 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28206 case $ac_top_builddir_sub in
28207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28209 esac ;;
28210 esac
28211 ac_abs_top_builddir=$ac_pwd
28212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28213 # for backward compatibility:
28214 ac_top_builddir=$ac_top_build_prefix
28216 case $srcdir in
28217 .) # We are building in place.
28218 ac_srcdir=.
28219 ac_top_srcdir=$ac_top_builddir_sub
28220 ac_abs_top_srcdir=$ac_pwd ;;
28221 [\\/]* | ?:[\\/]* ) # Absolute name.
28222 ac_srcdir=$srcdir$ac_dir_suffix;
28223 ac_top_srcdir=$srcdir
28224 ac_abs_top_srcdir=$srcdir ;;
28225 *) # Relative name.
28226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28227 ac_top_srcdir=$ac_top_build_prefix$srcdir
28228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28229 esac
28230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28233 case $ac_mode in
28236 # CONFIG_FILE
28239 _ACEOF
28241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28242 # If the template does not know about datarootdir, expand it.
28243 # FIXME: This hack should be removed a few years after 2.60.
28244 ac_datarootdir_hack=; ac_datarootdir_seen=
28245 ac_sed_dataroot='
28246 /datarootdir/ {
28250 /@datadir@/p
28251 /@docdir@/p
28252 /@infodir@/p
28253 /@localedir@/p
28254 /@mandir@/p'
28255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28256 *datarootdir*) ac_datarootdir_seen=yes;;
28257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28260 _ACEOF
28261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28262 ac_datarootdir_hack='
28263 s&@datadir@&$datadir&g
28264 s&@docdir@&$docdir&g
28265 s&@infodir@&$infodir&g
28266 s&@localedir@&$localedir&g
28267 s&@mandir@&$mandir&g
28268 s&\\\${datarootdir}&$datarootdir&g' ;;
28269 esac
28270 _ACEOF
28272 # Neutralize VPATH when `$srcdir' = `.'.
28273 # Shell code in configure.ac might set extrasub.
28274 # FIXME: do we really want to maintain this feature?
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28276 ac_sed_extra="$ac_vpsub
28277 $extrasub
28278 _ACEOF
28279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28282 s|@configure_input@|$ac_sed_conf_input|;t t
28283 s&@top_builddir@&$ac_top_builddir_sub&;t t
28284 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28285 s&@srcdir@&$ac_srcdir&;t t
28286 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28287 s&@top_srcdir@&$ac_top_srcdir&;t t
28288 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28289 s&@builddir@&$ac_builddir&;t t
28290 s&@abs_builddir@&$ac_abs_builddir&;t t
28291 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28292 $ac_datarootdir_hack
28294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28295 if $ac_cs_awk_getline; then
28296 $AWK -f "$tmp/subs.awk"
28297 else
28298 $AWK -f "$tmp/subs.awk" | $SHELL
28299 fi >$tmp/out \
28300 || as_fn_error "could not create $ac_file" "$LINENO" 5
28302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28303 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28306 which seems to be undefined. Please make sure it is defined." >&5
28307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28308 which seems to be undefined. Please make sure it is defined." >&2;}
28310 rm -f "$tmp/stdin"
28311 case $ac_file in
28312 -) cat "$tmp/out" && rm -f "$tmp/out";;
28313 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28314 esac \
28315 || as_fn_error "could not create $ac_file" "$LINENO" 5
28319 # CONFIG_HEADER
28321 if test x"$ac_file" != x-; then
28323 $as_echo "/* $configure_input */" \
28324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28325 } >"$tmp/config.h" \
28326 || as_fn_error "could not create $ac_file" "$LINENO" 5
28327 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28329 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28330 else
28331 rm -f "$ac_file"
28332 mv "$tmp/config.h" "$ac_file" \
28333 || as_fn_error "could not create $ac_file" "$LINENO" 5
28335 else
28336 $as_echo "/* $configure_input */" \
28337 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28338 || as_fn_error "could not create -" "$LINENO" 5
28342 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28343 $as_echo "$as_me: executing $ac_file commands" >&6;}
28345 esac
28348 case $ac_file$ac_mode in
28349 "as":F) chmod +x as ;;
28350 "collect-ld":F) chmod +x collect-ld ;;
28351 "nm":F) chmod +x nm ;;
28352 "default":C)
28353 case ${CONFIG_HEADERS} in
28354 *auto-host.h:config.in*)
28355 echo > cstamp-h ;;
28356 esac
28357 # Make sure all the subdirs exist.
28358 for d in $subdirs doc build common c-family
28360 test -d $d || mkdir $d
28361 done
28364 esac
28365 done # for ac_tag
28368 as_fn_exit 0
28369 _ACEOF
28370 ac_clean_files=$ac_clean_files_save
28372 test $ac_write_fail = 0 ||
28373 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28376 # configure is writing to config.log, and then calls config.status.
28377 # config.status does its own redirection, appending to config.log.
28378 # Unfortunately, on DOS this fails, as config.log is still kept open
28379 # by configure, so config.status won't be able to write to it; its
28380 # output is simply discarded. So we exec the FD to /dev/null,
28381 # effectively closing config.log, so it can be properly (re)opened and
28382 # appended to by config.status. When coming back to configure, we
28383 # need to make the FD available again.
28384 if test "$no_create" != yes; then
28385 ac_cs_success=:
28386 ac_config_status_args=
28387 test "$silent" = yes &&
28388 ac_config_status_args="$ac_config_status_args --quiet"
28389 exec 5>/dev/null
28390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28391 exec 5>>config.log
28392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28393 # would make configure fail if this is the last instruction.
28394 $ac_cs_success || as_fn_exit $?
28396 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28398 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}